This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler 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 Customer Requirements for Developers this week in the Jobs Discussion 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..........
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: know about request scope in JSF(how to pass parameter from one page to other)
 
jQuery in Action, 3rd edition