This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JSF and the fly likes Editable Data table in request scop JSF2.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Editable Data table in request scop JSF2.0" Watch "Editable Data table in request scop JSF2.0" New topic
Author

Editable Data table in request scop JSF2.0

Arvind Purohit
Ranch Hand

Joined: Jun 18, 2010
Posts: 43
Hi All I have list of module object. I want to show it to user and user can edit it and can save it also. In module object three members are there 1 String moduleName 2.boolean readFlag 3. writFlag.

The bean i am using is in Request Scop i don't want to use any other scop. My problem is setterOfThatList is not called when update button is clicked. Where as on the same page i used another inputText, setter of the variable which is connected to this inputText is called.

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16019
    
  20

What you want doesn't count. Sometimes life is cruel. Computers doubly so. If you use a dataTable, you need a tableModel that can survive over multiple requests. Otherwise, a new model will be created and destroyed on each request and the context won't be valid for you.

If you're using JSF2, you can use ViewScope and that will construct a short-term session object that will automatically be purged when you go to a different view. For JSF1, you have to use session scope.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Editable Data table in request scop JSF2.0