webtier@glassfish.java.net

Re: [webtier] JSF2 form does not support HTML autocomplete="off" attribute

From: Ryan Lubke <Ryan.Lubke_at_Sun.COM>
Date: Sat, 11 Apr 2009 09:52:37 -0700

On 4/11/09 9:42 AM, Lincoln Baxter, III wrote:
> <h:form id="form" autocomplete="off">
>
> In order to prevent firefox 3 from caching form values, the
> autocomplete="off" attribute is required. Is there any way to get this
> rendered despite not being an attribute on h:form?
Not without overriding the existing Renderer. Just so I'm clear, the
autocomplete attribute on the input components has no impact on FF3's
behavior in the area?
>
> Thanks,
> Lincoln
>
> In further thought...is there a way to tell JSF components to
> pass-through any non-standard attributes? (like HTML, "if I don't know
> what it is... ok then... it goes in anyway")
Not with the default components, no.