(from jsf page to bean)
.xhtml:
<h:commandLink value="clickToTransfer" actionListener="#{activeBackingBean.methodName}" title="Hover effect">
<f:param name="myParam" value="TakeMe" />
</h:commandLink>
.java:
String parametar = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("myParam");
Ref:
4-ways-to-pass-parameter-from-jsf-page-to-backing-bean
No comments:
Post a Comment