wood burning stoves 2.0*
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
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
commandLink param problem
java.lang.IllegalStateException: using sendRedirect()
How to retrieve post parmeters from HTML
problem JSF - datatable from DB
Why can't I get object in request scope?