On Sep 23, 12:40 am, "marius.andreiana" <[email protected]> wrote: > On Sep 23, 1:11 am, Thomas Broyer <[email protected]> wrote:> On 22 sep, > 22:47, "marius.andreiana" <[email protected]> > > wrote: > > > > On Sep 22, 11:21 pm, Gal Dolber <[email protected]> wrote:> As it is a > > > popup it is hidden by default. > > > > For me, with gwt 2.0.4, it's shown by default. > > > I'm declaring <g:DialogBox> inside a UiBinder HTMLPanel tag, among > > > other widgets. > > > That's probably the reason: you add the DialogBox to some widget, so > > it's shown as any other widget. Would you do an > > myHtmlPanel.add(myDialogBox) in Java? > > No :) I prefer to declare the DialogBox with it's inner elements > inside the UiBinder view. It is markup+style, it belongs in UiBinder > xml.
I didn't say you shouldn't use UiBinder, but UiBinder is only generating some Java code for you from the ui.xml file. And if you add a DialogBox inside a HTMLPanel, it'll generate something like "htmlPanel.addAndReplaceElement(dialogBox, someId)". To use DialogBox with UiBinder, just make it the root widget, in its own ui.xml. > Thanks for explaining the reason why this happens though. > Should I file an issue on gwt to make it hidden by default when used > in UiBinder? I guess it'd be rejected as invalid: you're not supposed to add a DialogBox as a child inside another widget. -- 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.
