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>
2. also in portlet.xml
<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>
3. in the jsf file of the sending portlet (...xhtml)
<f:view>
<h:form id="helloForm">
.............
<h:inputText id="userNo" value="#{UserNumberBean.userNumber}"
validator="#{UserNumberBean.validate}"/>
.................
</h:form>
</f:view>
4. in the jsf file (...xhtml)
FacesContext context = FacesContext.getCurrentInstance();
PortletRequest request = (PortletRequest)context.getExternalContext().getRequest();
return request.getParameter("helloForm:userNo");
to get the public paramter.
i become no error, but also not the parameter.
the question is, do someone knows how to send a parameter from portlet A to B?
Thx for reading my question!