Calling action method first
Hi,
I have the following form:
<h:form id='f1'>
<h:dataTable id="data" var="theItem" value="#{tplsf.dataModel}">
<h:column>
<f:facet name="header">
<h:commandLink value="Assignment" id='a' action='#{tplsf.orderByAssignment}'/>
</f:facet>
<h:outputText value="#{theItem}" />
</h:column>
</h:dataTable>
<h:selectOneMenu id="ps" value='#{tplsf.pageSize}'>
<f:selectItems value="#{tplsf.pageSizeList}"/>
</h:selectOneMenu>
<h:inputHidden id='startRow' value='#{tplsf.startRow}'/>
<h:commandButton id='p' value='Previous' action='#{tplsf.previous}'/>
<h:commandButton id='n' value='Next' action='#{tplsf.next}'/>
</h:form>
What I need to do is when user clicks on "Next" button then next method is called before any get method specially (getDataModel). I must admit my understanding for jsf life cycle is poor. I am after a quick fix. Any help will be highly appreciated.
Regards

