aspose file tools*
The moose likes JSF and the fly likes managed bean scope 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 "managed bean scope" Watch "managed bean scope" New topic
Author

managed bean scope

Abhijeet Vaidya
Greenhorn

Joined: Apr 16, 2007
Posts: 20
Hi,

When I keep scope of my managed bean as session, everything works fine but the moment I change it to request, error page is displayed. There is no error / exception in the server log. When I checked boot.log file , somewhere I found the first 2 lines & then it forwards control to error.jsp -

20:23:13,934 DEBUG [JspStateManagerImpl] Exiting restoreTreeStructure - No serialized view found in server session!
20:23:13,934 DEBUG [LifecycleImpl] exiting from lifecycle.execute in RESTORE_VIEW(1) because getRenderResponse is true from one of the after listeners
20:23:13,934 DEBUG [ApplicationDispatcher] servletPath=/pages/error.jsp, pathInfo=null, queryString=null, name=null


I just can not understand what is wrong in it.


Thanks,
Abhijeet
Ganesha Kumar
Ranch Hand

Joined: May 04, 2006
Posts: 56
Can you please tell me for which component you are using the managed bean. If possible post your JSP page.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: managed bean scope