【发布时间】:2011-08-02 13:46:26
【问题描述】:
我有一个要求,当单击按钮时,应使用弹出/对话框提示用户输入一些其他详细信息,例如姓氏、出生日期等。我尝试使用window.confirm(),但我认为这不符合我的目的。有人可以帮助我如何通过 UIBinder 在 GWT 中实现这一点吗?
我在我的 UI binder.xml 中尝试了类似的操作
<g:HTMLPanel visible="false" >
<g:DialogBox ui:field="dialogPanel"
animationEnabled="true" modal="false" glassEnabled="false">
<g:caption>More Details</g:caption>
<table>
<tr>
<td colspan="2" align="center">
<g:Datepicker ui:field="DOB">DOB:</g:Datepicker>
</td>
</tr>
<tr>
<td>UserName:</td>
<td>
<g:TextBox ui:field="usernameTextBox" />
</td>
</tr>
<tr>
<td></td>
<td align="right">
<g:Button ui:field="loginButton">OK</g:Button>
</td>
</tr>
</table>
</g:DialogBox>
</g:HTMLPanel>
我不确定要使用哪一个:弹出窗口还是对话框!
谢谢。
【问题讨论】: