On 25 nov, 01:53, tieTYT <[EMAIL PROTECTED]> wrote:
> Hello,
>
> For reasons explained in this thread,
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/9a050d74a6cd22bc#
> , I need to define some HTML in the HTML document. The rest of the
> page is generated by GWT. The problem is, I can't figure out a way to
> take my formPanel, defined like this, FormPanel formPanel =
> FormPanel.wrap(DOM.getElementById("loginForm"), true);
> And add it to a basePanel that's been defined like this: basePanel =
> new VerticalPanel();
If you do this, you'll likely lose the form's autocomplete (just
guessing, I haven't tried it)
> So, is there a way to move HTML from the document into GWT generated
> panel's?
You could move the DOM element, not the widget (this means you won't
have your FormPanel as a child of your VerticalPanel, and your
VerticalPanel will be in some kind of "inconsistent" state: its DOM
structure has been changed without it being notified, so some things
might break).
> My alternative is to add the whole layout of the page into
> the HTML and put placeholders in it that GWT populates. I'd like to
> avoid that.
That's the Best Thing (TM) to do IMO. Why would you like to avoid this
approach?
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---