Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Auto Complete attribute in jsf ?  RSS feed

 
saivenkat venkatesan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can i use the autocomplete attrubute in input text field?
 
Sergey Smirnov
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If autocomplete provided by browser itself is not desirable for you, you can turn it off. This is a primary reason for this attribute. Do not mismatch it with autocomplete functionality like in Google Suggestion.

Read more about browser autocomplete here:
http://www.geocities.com/technofundo/tech/web/ie_autocomplete.html
 
saivenkat venkatesan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just i want to turn it off auto complete option when i enter login screen.i was trying to give as below.but it seems there is no property like this in jsf. can you suggest me ?


<h:inputSecret styleClass="inputSecret" id="secret1" value="#{pc_Logon.password}" size="15" style="width: 75px" autocomplete = "off" maxlength="15">
</h:inputSecret>
 
Sergey Smirnov
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
it depends of the jsf version. autocomplete has been introduced with JSF 1.2 specification.

Take a look the diff between tld docs:

JSF 1.1:
http://java.sun.com/javaee/javaserverfaces/1.1_01/docs/tlddocs/h/inputSecret.html
JSF 1.2:
http://java.sun.com/javaee/javaserverfaces/1.2/docs/tlddocs/h/inputSecret.html
 
saivenkat venkatesan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sergey
 
Scott Bown
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Sergey
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!