I have problem in using JSF ajax, I have command link like below :
<h:form id="form1">
<h:commandLink value="#{bean.title}">
<f:ajax render=":form1:details" listener="#{bean.populateDetails}"/>
<f:param value="123" name="paramValue"/>
</h:commandLink>
<h:panelGroup id="details">
....
</h:panelGroup>
</h:form>
and the backing bean method like below :
public class BackingBean extends PageCodeBase implements Serializable{
.....
public void populateDetails(AjaxBehaviorEvent ae){
logger.info("Inside Ajax call");
String param = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("paramValue");
logger.info("paramValue = " + param );
}
.....
}
the problem is that whenever I click the commandLink without any wait or delay I got ViewExpiredException in the log and the listener method not called , and rarely it works and call the listener , I cannot catch the issue.
Note: this is a JSF portlet Application deployed on IBM Portal
I have checked many questions here but did not find any answer to solve my issue