This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes know about request scope in JSF(how to pass parameter from one page to other) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "know about request scope in JSF(how to pass parameter from one page to other)" Watch "know about request scope in JSF(how to pass parameter from one page to other)" New topic
Author

know about request scope in JSF(how to pass parameter from one page to other)

rajesh vaja
Greenhorn

Joined: May 18, 2007
Posts: 2
Hi
know about request scope in JSF.
how to pass parameter from one page to other



<t:commandLink id="viewselectsectgfergfionindex" action="#{selectinstrumentindex.populate}" title="xyz">
<t:graphicImage id="id11" align="center" url="/resources/images/Back_Button.gif" border="1" />

<f:param name="surveyCode" value="#{selectsectionindex.ssSurveyCode}"/>
<f:param name="respCode" value="#{selectsectionindex.respCode}"/>

</t:commandLink>



<navigation-rule>
<from-view-id>/modules/mod_surclient/selectsectionindex.jsp</from-view-id>
<navigation-case>
<from-outcome>sectiontoselectsuccess</from-outcome>
<to-view-id>/modules/mod_surclient/surselectoptionindex.jsp</to-view-id>
</navigation-case>
</navigation-rule>


public String populate()
{
try
{
PortletRequest portletRequest1 = (PortletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();

setParameterSurveyCode(portletRequest1.getParameter("surveyCode"));
}
catch(Exception e)
{
logger.error(e);
return "surselectoptionindexerror";
}
return "surselectoptionindexsuccess";
}


Here in populate() i get the value of the Parameter Survey Code But After i view my
surselectoptionindex.jsp page i am not able to get parameter from the potlet request..
And Also From My bean getter method getParameterSurveyCode()..

Please help me..........
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: know about request scope in JSF(how to pass parameter from one page to other)
 
Similar Threads
java.lang.IllegalStateException: using sendRedirect()
How to retrieve post parmeters from HTML
problem JSF - datatable from DB
commandLink param problem
Why can't I get object in request scope?