I have actually been replacing the CellTable with FlexTable as I said I would, but on the way realised that I could access my eventBus without passing it in to the view. I have a singleton instance of my app so where TheApp.java is my EntryPoint I can go TheApp.get().getEventBus().fireEvent(event) from anywhere. I forgot about that :/
I may switch back to using CellTable though, because it uses much less boilerplate and keeps the code cleaner, as well as providing a way to sort on columns, although I am not at that point yet.
Out of interest, what are you building that uses the CellTable in this way? And how do you refresh your table when you delete an item?
Cheers,
Drew
-- 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/-/ubGXOjKgDPAJ.
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