Once for the top paginator and once for the bottom paginator.
Ajax is only working for the top component and view jumps to bottom one after update.
Changin value in bottom menu invokes the ajax but on update the old value is selected again.
Code: Select all
<f:facet name="{PagContent}">
<h:selectOneMenu id="sortCriterion" value="#{bean.sortCriterion}" style="float: right;" >
<p:ajax update=":mainForm:pnlHotels"/>
<f:selectItem itemLabel="Relevance" itemValue="#{null}"/>
<f:selectItems var="varSortCriterion" value="#{bean.sortCriteria}" itemLabel="#{varSortCriterion}" itemValue="#{varSortCriterion}"/>
</h:selectOneMenu>
</f:facet>
Issue: http://forum.primefaces.org/viewtopic.php?f=3&t=43082