Ability to reset datascroller(UIData) to page one from a UICommand
------------------------------------------------------------------
Key: TOMAHAWK-548
URL: http://issues.apache.org/jira/browse/TOMAHAWK-548
Project: MyFaces Tomahawk
Issue Type: Improvement
Components: Data Scroller, Extended Datatable
Reporter: Mike Kienenberger
There should be a way to reset the datascroller back to page one when clicking
a UICommand without writing java code and binding the UIData to the backing
bean.
Currently this has to be done as follows:
<h:commandButton
value="Submit Query"
action="#{searchPageBean.search}"
actionListener="#{searchPageBean.resetDataScroller}">
</h:commandButton>
<t:dataTable id="searchResultsDataTable"
binding="#{searchPageBean.searchUIData}"
public void resetDataScroller(ActionEvent e)
{
searchUIData.setFirst(0);
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira