title: GWT Popup and UIBinder: Panel or DialogBox?
body: <p>I have a requirement where, when a button is clicked, the user should be prompted with a popup/dialog box to enter some additional details such as last name, DOB, etc.I tried to play with <code>window.confirm()</code> but I think this does not serve my purpose. Can some help me how this can be achieved in GWT through UIBinder?</p>
  
  <p>I tried some thing like this in my UI binder.xml </p>
  
  <pre><code>&lt;g:HTMLPanel visible="false" &gt;
                                      &lt;g:DialogBox ui:field="dialogPanel"
                                          animationEnabled="true" modal="false" glassEnabled="false"&gt;
                                          &lt;g:caption&gt;More Details&lt;/g:caption&gt;
                                          &lt;table&gt;
                                              &lt;tr&gt;
                                                  &lt;td colspan="2" align="center"&gt;
                                                      &lt;g:Datepicker ui:field="DOB"&gt;DOB:&lt;/g:Datepicker&gt;
                                                  &lt;/td&gt;
                                              &lt;/tr&gt;
  
                                              &lt;tr&gt;
                                                  &lt;td&gt;UserName:&lt;/td&gt;
                                                  &lt;td&gt;
                                                      &lt;g:TextBox ui:field="usernameTextBox" /&gt;
                                                  &lt;/td&gt;
                                              &lt;/tr&gt;
                                              &lt;tr&gt;
                                                  &lt;td&gt;&lt;/td&gt;
                                                  &lt;td align="right"&gt;
                                                      &lt;g:Button ui:field="loginButton"&gt;OK&lt;/g:Button&gt;
                                                  &lt;/td&gt;
                                              &lt;/tr&gt;
                                          &lt;/table&gt;
                                      &lt;/g:DialogBox&gt;
                                  &lt;/g:HTMLPanel&gt;
  </code></pre>
  
  <p>I am not sure which one to go with: popup or dialog box!</p>
  
  <p>Thanks.</p>