Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSF autocomplete - fails XHTML validation

843844Dec 7 2009 — edited Apr 6 2010
My JSF pages (mojarra 2.0.1) generate a hidden state holder with an autocomplete="off"' property as part of the </h:form> closing tag:
<input type="hidden" 
name="javax.faces.ViewState" 
id="javax.faces.ViewState" 
value="-1715251979060474851:6281790946545926031" 
autocomplete="off" />
</form>
The autocomplete property is not valid XHTML so it does not validate under XHTML 1.0 Transitional, or any other common XHTML DTD as far as I can tell (see: [http://validator.w3.org/]).

I'd like to validate under XHTML 1.0 Transitional. Has anyone got a good fix for this?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 4 2010
Added on Dec 7 2009
2 comments
495 views