[
https://issues.apache.org/jira/browse/TOMAHAWK-548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12476362
]
Mike Kienenberger commented on TOMAHAWK-548:
--------------------------------------------
One possiblity -- an actionlistener component:
<t:resetUIData for="id of dataTable" first="#{optional value to setFirst()}"/>
> Ability to reset datascroller(UIData) to page one from a UICommand
> ------------------------------------------------------------------
>
> Key: TOMAHAWK-548
> URL: https://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.
-
You can reply to this email to add a comment to the issue online.