Watch this video:
http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html

<http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html>Try
this:

1. Login Widget logs in via remote service
2. Server returns: login credentials are ok; login is successful
3. Login widget fires a new LoginEvent
4. Some other widget hears that and change the view

After you watch the video, there is a nice example of some of these patterns
(notably, MVP, and the event bus) here:
http://code.google.com/p/gwt-mvp-sample/ that you can try to incorporate to
achieve steps 1, 2, 3, 4.

Hope that helps,
Davis

On Tue, Nov 17, 2009 at 11:17 PM, Jaimon <[email protected]> wrote:

> hi,
>
> i am pretty new to gwt so be gentle and more than welcome to
> elaborate.
>
> i have created some custom composite widget, which listens to an
> events (in my case loginEvent). once the event is caught the state of
> the widget changes and i want to show it in the ui, (in my case i
> would like to change one of the icons to a signal that the user is
> logged in).
>
> since initWidget can called only once,
> how i can make the widget draw it self again according to the new
> state?
>
> thanks Me
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-web-toolkit%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=.
>
>
>


-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=.


Reply via email to