how to do autocomplete="off" at form level in JSF?
See Question&Answers more detail:osThe best and easiest way of doing this is this:
<h:form id="myForm">
<f:passThroughAttribute name="autocomplete" value="off"/>
...
</h:form>
Don't forget to add xmlns:f="http://xmlns.jcp.org/jsf/core"
to your head
attribite if you don't have already.
Why?
autocomplete
attribute.Tip: You can use f:passThroughAttribute
for every JSF element which does not have any specific attribute of newer HTML specifications.