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

Why can't I get object in request scope?  RSS feed

 
Will Lee
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm new in JSF and always got problem when using request scope bean, they seems can't be populated (or pass through) from POJO to JSF(jsp) page. This is what I did:
in faces-config.xml:



Then in one jsp file, I got a list of publications, when click the link of one link,

The control goes to viewPublication method in the bean, w/in webapp.action.ViewPublication class:


Then it navigate to viewPublicationDetails.jsp page
but in this page I get nothing from the bean, e.g.,
<hutputText value="#{viewPublication.publication.title}"/>

or I tried
<hutputText value="#{requestScope.viewPublication.publication.title}"/>

Any idea? Thanks
 
Sergey Smirnov
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The <redirect /> in the navigation rule cleans up the request scope.

--
Sergey : http://jsfTutorials.net
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!