I am trying to pass a parameter through a command link from JSF to backing beans. But when I am trying to get that parameter in my bean it is returning a null value. Please refer the code below.
JSF Coding:
<h:commandLink value="#{searchResults.netid}" action="#{managebean.DeleteConfirmation}">
<f:param name="netid" value="#{searchResults.netid}" />
</h:commandLink>
Coding in my bean:
String userid=(String) FacesContext.getCurrentInstance().getExternalContext()
.getSessionMap().get("netid");
faces-config.xml
<managed-bean>
<managed-bean-name>managebean</managed-bean-name>
<managed-bean-class>com.worker.Manager</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
When i print the string userid it is showing as null.
Please help me with this issue,