Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to get old value for edit page  RSS feed

 
oft sky
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i have a datatable(usertable.jsp) to show all users-information, now i want to edit one of the users.
i can now send die user-id to beans and build the user-object and also can navigate to the userEdit.jsp .
but i do not know , how to send the user-object to the userEdit.jsp as default value,
can you give me some informations?
 
Majid Al-Fifi
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in view:



in the backing bean:



the important method is getRowData() which will return you the object you were at when you clicked the row but make sure the list values you provide for the dataTable are of type User, say an ArrayList of "User"s.

regards,
Majid
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!