Yes, container.add(frameInstanceName) where frameInstanceName is the
variable pointing to the frame, will work. However you need to make
sure that container has also been attached to the DOM, and the
container of container, and so on, until you reach all the way up to
RootPanel. ONLY when the entire hierarchy of widgets are added
together and added to the RootPanel, will the frame be attached to the
DOM. If in the onModuleLoad you instantiate your own custom widget and
then add it to the rootpanel, but if it's during the instantiation of
the custom widget that ultimately leads up to the setting of the url
of the frame, then you need to have some sort of init() method (that
sets the url) propagating down to the widget that controls the
frame... call the init() method AFTER adding the top widget to the
rootpanel.

Make sense?

On Feb 5, 11:56 am, mariyan nenchev <[email protected]> wrote:
> Aaam one q:How to attach it? with container.add() because this is not
> working.
> On Fri, Feb 5, 2010 at 7:48 PM, mariyan nenchev
> <[email protected]>wrote:
>
>
>
>
>
> > Thanks that is exactly what i needed too, i will try it.
>
> > On Fri, Feb 5, 2010 at 7:36 PM, Sky <[email protected]> wrote:
>
> >> It probably needs to be attached to the DOM in order to set the URL.
> >> Attach it to the DOM after setting it's visibility to false, then set
> >> the URL. Change it's visibility to true when you want the user to see
> >> it.
>
> >> Pretty sure that should work.
>
> >> Email me if you can't get it to work.
>
> >> On Feb 5, 2:56 am, goolie <[email protected]> wrote:
> >> > Hi,
>
> >> > I've a problem where I have an external webapp running inside a Frame
> >> > in my GWT project. I create the Frame and set the URL at startup of my
> >> > app but I'm not showing it until the user wants to see it. The problem
> >> > seems to be that the frame is not actually initialized until it is
> >> > visible and I need it to be initialized at startup since it is
> >> > listening to events that I'm sending to it.
>
> >> > Is there a way to init the Frame without actually showing it?
>
> >> > BR
> >> > Oskar
>
> >> --
> >> 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%2Bunsubs
> >>  [email protected]>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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=en.

Reply via email to