I'm trying to add autocomplete="off" to all forms in my application. It is my understanding that this cannot be done at a form level with xhtml. If this is not accurate it may make this issue moot.
I've set autocomplete="off" on an input field. When I test the app and view the source the input maintains this attribute:
.xhtml
<t:inputText value="#{Bean.email}"autocomplete="off" id="email" />
<input id="myForm:resEmail" name="myForm:email" type="text" value="test" autocomplete="off" />
<t:inputText value="#{Bean.email}"autocomplete="off" id="email"> <rich:ajaxValidator event="onblur" /> </t:inputText>
<input id="myForm:email" name="myForm:email" type="text" value="test" onblur="A4J.AJAX.Submit('_viewRoot','myForm',event,{'control':this,'similarityGroupingId':'myForm:j_id33','parameters':{'ajaxSingle':'myForm:email','myForm:j_id33':'myForm:j_id33'} ,'actionUrl':'/Project/pages/forms/myForm.jsf'} )" />