Hello,
When using the MVP pattern, how should I display alerts or message
boxes prompting the user for information? For example, the user clicks
a button to add a new item and I prompt for the name. Where should
this prompt happen? In the View class? In the Presenter? The presenter
is where I have added the listener and the prompt should happen when
the user clicks the add button. I could do this in the presenter, when
the listener is triggered, but I do not wish to have UI elements in
the Presenter. The new name obtained from the prompt needs to be
passed back to the presenter.

-- 
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-tool...@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.

Reply via email to