2

I have two GWT Bootstrap form fields Email and password

<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>&nbsp;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>

and i want browser to tell to store the email addresses and password entered and prompt remember password .how can i do this in gwt bootstrap. please help

Ekata
  • 259
  • 2
  • 7
  • 21

1 Answers1

0

With HTML you have to use autocomplete='on'. By the way it is good practice to use autocomplete='off' on login and password input fields in case of a CSRF attack.

You'll have to do something like

TextBox box;
box.getElement().setPropertyString("autocomplete", "on")
Olivier Tonglet
  • 3,312
  • 24
  • 40