Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Mark Kafe
Ranch Hand
Posts: 60
Hibernate Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!