File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes how to get old value for edit page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "how to get old value for edit page" Watch "how to get old value for edit page" New topic
Author

how to get old value for edit page

oft sky
Greenhorn

Joined: Jun 22, 2007
Posts: 1
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

Joined: Aug 22, 2006
Posts: 45
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


SCJP1.4, SCWCD1.4
 
 
subject: how to get old value for edit page
 
Threads others viewed
Pass data between managed/ backing beans
Iterator issue in jsp
How to re use values getting from OGNL in jsp
Display all Users Detail on JSP page when we Loged in through ADMIN
making available a single session at any point of time
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com