hello everybody,
iam using jboss portal 2.7.2 with jsf 1.1.14, richfaces 3.1.1 and of course the portletbridge 1.0.0.CR1.
Now i have to send Integer Parameters from Portlet A to Portlet B.
Therefor i found an example which says,
1. in the protlet.xml
<init-param> <name>com.sun.faces.portlet.SAVE_REQUEST_SCOPE</name> <value>true</value> </init-param>
<portlet-app> <portlet> ........... <supported-public-render-parameter>helloForm:userNo</supported-public-render-parameter> </portlet> <public-render-parameter> <identifier>helloForm:userNo</identifier> <qname xmlns:x="http://www.sun.com/params">x:userNumber</qname> </public-render-parameter> </portlet-app>
<f:view> <h:form id="helloForm"> ............. <h:inputText id="userNo" value="#{UserNumberBean.userNumber}" validator="#{UserNumberBean.validate}"/> ................. </h:form> </f:view>
FacesContext context = FacesContext.getCurrentInstance(); PortletRequest request = (PortletRequest)context.getExternalContext().getRequest(); return request.getParameter("helloForm:userNo");
I have to correct my statements:
3. This point is in the xhtml file of the sending portlet. It use a java file which stores this value.
4. This point is in the java file of the receiving portlet. here i should receive the parameter from the request. afterward it will be picked up from the xhtml file.