This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one 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 Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 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)