Re: Why Roo generated Expenses app works despite not having any DataProvider in its CellTable ?
You can just call setRowCount and setRowData on the CellTable. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Why Roo generated Expenses app works despite not having any DataProvider in its CellTable ?
do you mean setRowCount and setRowData is the same as using AsyncDataProvider ? why is that ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Why Roo generated Expenses app works despite not having any DataProvider in its CellTable ?
You can manually set data in CellTable by calling CellTable#setRowCount/setRowData(). You can listen for RangeChangeEvents using CellTable#addRangeChangeHandler(). ListDataProvider and AsyncDataProvider are convenience classes that handle hookup with the table and ensure that only data in range is sent to the table. ListDataProvider in particular binds to a java.util.List, which is convenient. However, using these classes is not required, and DataProvider is just a naming convention. Thanks, John LaBanca jlaba...@google.com On Thu, Jan 20, 2011 at 3:29 PM, zixzigma zixzi...@gmail.com wrote: do you mean setRowCount and setRowData is the same as using AsyncDataProvider ? why is that ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Why Roo generated Expenses app works despite not having any DataProvider in its CellTable ?
Thank You, I understand the fact that we can use setRowCount, setRowData and addRangeChangeHandler. I also read in the documentation that AsyncDataProvider and ListDataProvider are convinience classes what I do Not understand, is when should we use one over the other. In other words, when should we use (setRowCount/setRowData/ RangeChangeHandler) vs AsyncDataProvider ? how they compare, and what is the benefit of each ? Thank You -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.