0
  1. I have a list of users (id, username, etc.) which I gain from the DB
  2. I have an index.xhtml (jsf tags) that I'm using to display all the users
  3. I have a dataTable which displays all the data for a user on one row. On the same row I have a button called "edit". On click it goes to another page "edit.xhtml"

Q: How to get object on which I clicked "edit" in index.xhtml to edit.xhtml ?

nyxz
  • 6,918
  • 9
  • 54
  • 67
  • 1
    http://stackoverflow.com/questions/4312085/set-properties-to-jsf-managed-bean It is answer – Puzirki Sep 12 '11 at 11:23
  • possible duplicate of [How can I pass a parameter to a commandLink inside a datatable?](http://stackoverflow.com/questions/4994458/how-can-i-pass-a-parameter-to-a-commandlink-inside-a-datatable) – BalusC Sep 12 '11 at 20:45
  • The abovelinked duplicate has already been shown to you in your [previous question](http://stackoverflow.com/questions/7348632/jsf-datatable-particular-record). It shows at least 4 different ways of doing this. As long as you don't elaborate the technical problem with any of those ways in more detail, no better answer can be given than already done in the abovelinked duplicate. – BalusC Sep 12 '11 at 20:49

0 Answers0