我有一个包含 gwt 引导文本框、密码文本框和提交按钮的登录页面
<g:VerticalPanel height="400px" width="50%">
<b:WellForm height="400px" ui:field="loginPanel">
<g:VerticalPanel horizontalAlignment="ALIGN_CENTER"
width="100%">
<b:FormLabel ui:field="emailErrorLabel" visible="false">
<font color="red">
<i> Please enter your login name</i>
</font>
</b:FormLabel>
<b:TextBox alternateSize="LARGE" b:id="Email"
ui:field="Email" placeholder="E-mail" width="335px"
height="30px" />
</g:VerticalPanel>
<g:VerticalPanel horizontalAlignment="ALIGN_CENTER" width="100%">
<b:FormLabel ui:field="passwordErrorLabel" visible="false">
<font color="red">
<i> Please enter password</i>
</font>
</b:FormLabel>
<b:PasswordTextBox width="335px"
alternateSize="LARGE" ui:field="password" placeholder="Password"
height="30px" />
</g:VerticalPanel>
<b:Button type="PRIMARY" ui:field="loginButton" icon="SIGNIN">Login</b:Button></b:Wellform>
我设置以下属性
loginPanel.setMethod("POST");
loginPanel.getElement().setPropertyString("autocomplete", "on");
Email.getElement().setAttribute("type", "text");
password.getElement().setAttribute("type", "password");
并且在单击登录时,我正在调用一个进行登录的 rpc。我缺少什么属性。如何让浏览器提示保存密码选项。