i have a page called page1.jsf which contains one parameter. i have a command button which contains the param. On clicking the button, it must return to page1.jsf together with whatever parameter i pass.
<h:commandButton action="#{myBean.DoSthng}" value="Something" >
<f:param name="p1" value="sthng"></f:param>
</h:commandButton>
How would i pass this parameter to page1.jsf itself?
In the faces-config.xml – managed Bean, i set it like this
<managed-bean>
<managed-bean-name>myBean</managed-bean-name>
<managed-bean-class>com.MyBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>p1</property-name>
<value>#{myBean.p1}</value>
</managed-property>
</managed-bean>
and this is giving me an error.
Can you all help me please.
EDIT
From page1 i have to pass a value from an action to backing bean. The backing bean should redirect me back to page1 but with different contents!
You put your param in hidden field and it will be available
And then you can use it