1

i have a Link in my page the links has a value associated with it , which is dynamically populated by database , the application is in session scope but the param values are not getting updated when passed to new page .

<c:forEach var="var" items="#{test.region}">
    <h:commandLink action="#{test.goToPage}" value="#{var}">
        <f:param name="action" value="#{var}" />
    </h:commandLink>
</c:forEach>

FacesContext fc = FacesContext.getCurrentInstance();
Map<String,String> params = fc.getExternalContext().getRequestParameterMap();
action = params.get("action"); 
System.out.println("I am sesson"+ action);

The value is always comming null

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
Rahul Singh
  • 19,030
  • 11
  • 64
  • 86

0 Answers0