Wednesday, November 21, 2012

Re: CellTable - How to temporarily bypass AsyncDataProvider?

Hi,

maybe it's not a good idea to "bypass" the AsyncDataProvider, as proposed above.
But perhaps someone can give a useful hint when describing the problem in another way:

There are two different use cases, where the CellTable is filled with data:

1. Using the Pager
When selecting "next page", "previous page" and so on, the "onRangeChanged" method is called, which in turn fetches the rows from the server.

2. Entering a Chat Message
When the user enters a message, the server should not be called. We already know the new message on the client side. The CellTable should just be extended with the new row. The page size doesn't matter, if it's simpler then...

Hoping for hints...

Magnus

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/4wnmsth_61IJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment