t:dataScroller Go to the first page automatically

View: New views
2 Messages — Rating Filter:   Alert me  

t:dataScroller Go to the first page automatically

by Tremal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi!

I'm working in a Web Application that needs after make a submit, that the t:dataScroller goes to its first page automatically, exist some engine to do this? Thank you

Re: t:dataScroller Go to the first page automatically

by fabios77 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Juan!
You can try:

In the controller, you define this attribute:

    private HtmlDataScroller scroller;

with set and get methods.

In the jsp, you define binding with controller attribute:

<t:dataScroller id="dataScrollerTable" .... binding="#{controller.scroller}">

Then, you set page 0 when refresh table data with:

getScroller().getUIData().setFirst(0);

Bye
Fabio


2009/10/2 Juan Jesús Cremades Monserrat <relicary@...>
Hi!

I'm working in a Web Application that needs after make a submit, that the t:dataScroller goes to its first page automatically, exist some engine to do this? Thank you