Thursday, February 9, 2012

Is it bad practice to use links like "#viewObject104" instead of eventBus.fireEvent(viewObjectEvent(id)) ?

Hi coders,

Hopefully the subject explains the question enough but here's a bit of background.

I have been using events for pretty much everything, but while searching for a better way than using ButonCell in my CellTable, I discovered that using SafeHtml I could generate an anchor with a token, which when clicked would add that token to the History. Then, my AppController would parse the token and load the correct presenter/view. Seems ok and works with the History system well.

I guess what I'm asking is: If my event's job was only to get an ID and then load a new presenter/view with that ID, does it need to exist or can I just bash a new item in the history from anywhere as long as my AppController can handle it?

Thanks as always,

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/-/G3-xxaDZ0ggJ.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate