IntelliJ Java IDE
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
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply 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..........
 
 
subject: know about request scope in JSF(how to pass parameter from one page to other)
 
Threads others viewed
commandLink param problem
problem JSF - datatable from DB
Why can't I get object in request scope?
How to retrieve post parmeters from HTML
java.lang.IllegalStateException: using sendRedirect()
MyEclipse, The Clear Choice