Saturday, November 28, 2009

Re: how to make communicate "two rootPanels"?

Just reading your question, I think it's possible. I am doing
something similar right now.
I put values in a hidden input box with an id and then I add a click
handler to a button in a panel. When I click the button it gets the
values in the hidden input box and displays them in the panel.


On Nov 27, 12:18 am, loveley <lolve...@yahoo.fr> wrote:
> hi,
>
> I think I found a method to have some GWT components on a HTML page,
> nothing miraculous : I create the components in eclipse, assign them to
> a RootPanel.get("truc"); and in the HTML page generated by eclipse I add
> a div with the id="truc".
> If I want to modify the HTML page I only have to keep the script tag and
> the id I mentioned above.
>
> but I have a question : is there a way to make two components (ie
> identified by its rootPanel) communicate, in the java code and in a way
> that e.g. in a first component I enter in a textBox a string "abc", I
> click on a button in this component, and immediately the second
> component's label has as text the content of the textBox?
>
> thank you,
>
> olivier.
>
> ___________________________________________________________________________
> Yahoo! Mail r invente le mail ! D couvrez le nouveau Yahoo! Mail et son interface r volutionnaire.http://fr.mail.yahoo.com

--

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-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