You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org> on 2007/02/27 21:27:06 UTC

[jira] Commented: (TOMAHAWK-548) Ability to reset datascroller(UIData) to page one from a UICommand

    [ 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.