aspose file tools
The moose likes JSF and the fly likes I have a problem in JSf Manage Bean when i edit a page Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "I have a problem in JSf Manage Bean when i edit a page" Watch "I have a problem in JSf Manage Bean when i edit a page" New topic
Author

I have a problem in JSf Manage Bean when i edit a page

Mark Kafe
Ranch Hand

Joined: Jun 23, 2008
Posts: 60

I want to edit a page, and use a same Manage Bean that i use for Save a page.

But when i define Manage bean scope request in Face con-fig then all values show null on Edit Grids...........If i change it to Session scope then its working fine..........


can any body help me about that problem........why this happen in Request scope???
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14568
    
    7

The problem is that request objects exists only for the life of that particular request. It's especially a problem when working with tables, since the table model (and its cursor) is used to display the table, but no longer exists when you want to work with a row in the table.

The solution is to use session scope. As a rule, JSF does require more items to be in session scope than other J2EE frameworks.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: I have a problem in JSf Manage Bean when i edit a page
 
Similar Threads
keep the values of my input text fields
Back Navigation
UseBean, scope question.
JSF Beginner
jsp:useBean type requirements