What does the following mean ??GOALS in GWT DeveleopmentWe need dumb Views, not dumb UIs(What does View mean here and whats UI in MVP ?? its confusing, , please explain with a small example, a simple one)
• Avoid state within Views(Which state is it talking about, please explain with a small example, a simple one)
• Swap out Views for different platforms(What is the swapping thing here?? does he means change of different technology, say from GWT to Flex )
On Monday, January 16, 2012 8:44:22 AM UTC+1, Qrunk wrote:
What does the following mean�??
GOALS in GWT Develeopment
We need dumb Views, not dumb UIs
(What does �View mean here and whats UI in MVP ?? its confusing,�, please explain with a small example, a simple one)�
A "dumb view" is a view that doesn't do too much (everything's controlled by the presenter), but that doesn't mean you UI has to be "dumb" too: you can have a very complex UI, with complex logic/behavior; the thing is: put it in the presenter, let the view be as "dumb" as possible.
�
� Avoid state within Views
(Which state is it talking about, please explain with a small example, a simple one)
See answer in another thread.
�
� Swap out Views for different platforms
(What is the swapping thing here?? does he means change of different technology, say from GWT to Flex )
E.g. use a PushButton for desktop and a plain old Button (more lightweight, because "native") for mobile. That doesn't change your presentation logic (i.e. your presenter code).
--
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/-/2NL-0Y1fGkwJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.