Monday, February 4, 2013

Re: Cannot show DialogBox - IllegalStateException



On Monday, February 4, 2013 12:54:03 PM UTC+1, membersound wrote:
Because I'm trying to split my main/base module into subparts. So I extracted the whole DialogBox part and placed it inside a single java+xml file.

So I thought of wrapping my custom DialogBox inside a custom Component (MyDialog) that I then can just attach to the main module.

How would you do better?

Maybe just remove the containing FlowPanel? I don't know, but a DialogBox (like any PopupPanel) is not a widget that you'll add as a child of another widget; you'll display it using show() or center() and hide it with hide(). So whether you use UiBinder or not, just don't add it as a child of another panel (you can use DialogBox as the root or your UiBinder template for instance, or use UiBinder only for the child widget of the DialogBox)
 

2013/2/4 Thomas Broyer <t.br...@gmail.com>
Why are you adding a DialogBox as a child of another widget to begin with?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment