myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yee CN <>
Subject RE: Reset the dataScroller Page Number
Date Thu, 29 Dec 2005 06:24:07 GMT
Hi John,


You don't set anything for the datascroller - but the table. You can try
placing something like the following in the action listener.


            FacesContext context = FacesContext.getCurrentInstance();

            UIViewRoot view = context.getViewRoot();

            HtmlDataTable table = (HtmlDataTable)

            // Set page index to 1 again


            // Set a new dataModel for the table







From: Miller, John [] 
Sent: Thursday, 29 December 2005 1:41 AM
To: MyFaces Discussion
Subject: RE: Reset the dataScroller Page Number


To Clarify, I want to add an action listener to another component (lets say
a button or something) that will reset the dataScroller to the page 1 -



From: Miller, John [] 
Sent: Wednesday, December 28, 2005 12:38 PM
To: MyFaces Discussion
Subject: Reset the dataScroller Page Number


Could anyone tell me the best way to reset a dataScrollers page number to 1
from within an actionListenter?  Thanks !


NOTICE: This message, including all attachments transmitted with it, is for
the use of the addressee only. It may contain proprietary, confidential
and/or legally privileged information belonging to Litle & Co. No
confidentiality or privilege is waived or lost by any mistransmission. If
you are not the intended recipient, you must not, directly or indirectly,
use, disclose, distribute, print or copy any part of this message. If you
believe you have received this message in error, please delete it and all
copies of it from your system and notify the sender immediately by reply
e-mail. Thank you.

View raw message