[ 
http://issues.apache.org/jira/browse/TOMAHAWK-799?page=comments#action_12458295 
] 
            
David Paterson commented on TOMAHAWK-799:
-----------------------------------------

I implemented the same thing when experiencing the same problem syncing the 
Datatable.first to the backingbean.first.  Unfortunately I came accross this 
defect first and uploaded a patch:
https://issues.apache.org/jira/browse/MYFACES-47

Similar problem with a different suggested solution, creating a new tag to nest 
within the Datascroller.  This way seems a bit easier though.

> Use of the actionListener event of datascroller to maintain the index of the 
> first row inside a managed bean.
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: TOMAHAWK-799
>                 URL: http://issues.apache.org/jira/browse/TOMAHAWK-799
>             Project: MyFaces Tomahawk
>          Issue Type: Improvement
>          Components: Data Scroller
>    Affects Versions: 1.1.5-SNAPSHOT
>         Environment: Windows XP, jakarta-tomcat-5.0.28.
>            Reporter: Jorge Andrés Vásquez
>            Priority: Minor
>
> The the HtmlDataScroller class is currently using the actionListener event 
> (in particular the ScrollerActionEvent) to maintain the firstRow index of the 
> dataTable.  My idea is that if someone needs to control this variable from 
> inside a managed bean for example in order to maintain the page number in a 
> master/detail scenario then that person can use this actionEvent too.  But in 
> order for broadcast method of HtmlDataScroller component class to not 
> overwrite the control logic that one can implement from the bean the 
> suggestion is to modify method:  "public void broadcast(FacesEvent event)" 
> changing the broadcastToActionListener(scrollerEvent); to the end of the if 
> (event instanceof ScrollerActionEvent)...portion of the code.  This change 
> allows anyone to control the rowIndex from a bean with a simple event-based 
> logic.

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


Reply via email to