0

we have autocomplete="off" in jquery but not finding to set in gwt xml file.Can someone help me to set autocomplete to false.

<f:FieldLabel labelSeparator="" ui:field="userNameLabel">
<f:widget><f:TextField width="300" ui:field="userName" /></f:widget>
</f:FieldLabel>

Textfield doesn't have autocomplete attribute to set.

ramya
  • 51
  • 1
  • 4
  • Is this a UiBinder .ui.xml file you are refering to? There is an answer here: https://stackoverflow.com/questions/16018822/gwt-uibinder-autocorrect-off – Robert Newton Jan 04 '22 at 00:35
  • yes.but we are using TextField not textbox @RobertNewton – ramya Jan 04 '22 at 08:08
  • Nowhere in your question have you mentioned what GWT UI library you are using. The answer below asked you this question and you didn't say. Do you want help or not? – Robert Newton Jan 04 '22 at 23:45
  • what about adding the "gxt" or "gwt-ext" tag so that experts in GXT will see your question and possibly help you? At the moment you only have the "gwt" tag. – Robert Newton Jan 05 '22 at 23:44

1 Answers1

1

What ui library are you using?

For example if you are using vanilla gwt you could get the Element and set the attribute autocomplete="off" manually

http://www.gwtproject.org/javadoc/latest/com/google/gwt/dom/client/Element.html#setAttribute-java.lang.String-java.lang.String-

You could create a Composite that wraps the field and set this automatically, then create instances of TextFieldNotAutocomplete for example

http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/Composite.html

ics_mauricio
  • 369
  • 3
  • 16