Thank you guys! Ramiro Pereira de Magalhães
________________________________ De: Matthias Weßendorf (JIRA) <[email protected]> Para: [email protected] Enviadas: Segunda-feira, 4 de Janeiro de 2010 14:29:55 Assunto: [jira] Updated: (TOMAHAWK-799) Use of the actionListener event of datascroller to maintain the index of the first row inside a managed bean. [ https://issues.apache.org/jira/browse/TOMAHAWK-799?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matthias Weßendorf updated TOMAHAWK-799: ---------------------------------------- Resolution: Fixed Fix Version/s: 1.1.10-SNAPSHOT Status: Resolved (was: Patch Available) > Use of the actionListener event of datascroller to maintain the index of the > first row inside a managed bean. > ------------------------------------------------------------------------------------------------------------- > > Key: TOMAHAWK-799 > URL: https://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 > Fix For: 1.1.10-SNAPSHOT > > Attachments: patch-TOMAHAWK-799-20092129-2.txt > > > 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. - You can reply to this email to add a comment to the issue online. ____________________________________________________________________________________ Veja quais são os assuntos do momento no Yahoo! +Buscados http://br.maisbuscados.yahoo.com
