The DataSourceTableModel is responsible for the actual server side
query (one query returns both the requested results, and total row
count - this saves a server roundtrip), but by default it doesn't have
a reference to the CachedTableModel. I would prefer to inject this
dependency by adding a RowCountChangeEvent handler into
CachedTableModel, but this creates a circular dependency
(CachedTableModel invokes the setRowCount() on the contained
DataSourceTableModel, which fires that event again) and hence it
doesn't work.

not quite sure if that's what you wanted to address in your example
though, pardon me if I got it wrong.

regards,
--andrius

On Nov 4, 2:52 pm, Felipe <[email protected]> wrote:
> mmmm....you would use:
>
> paginadorUnidades.addPageChangeHandler(new PageChangeHandler() {
>
>                         public void onPageChange(PageChangeEvent event) {
>
>                                         myAsync.getSelectCount ( new
> Aync.......
>                                                    .......
>                                                        onSucces
> (Integer result) { cachedTable.setRowCount ()result }; /*  */
>                                                    ....
>
>                                         );
>
>                         }});
> may be your AsyncCallback<ViewResult<User>>() {... is work even.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to