You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Vladimir Coutinho <vl...@gmail.com> on 2006/01/12 18:17:02 UTC

How do I disable autocomplete

How do I disable autocomplete in a form?


In html I use autocomplete="off". But jsf did not recognize this propertie.

Re: How do I disable autocomplete

Posted by Matthias Wessendorf <mw...@gmail.com>.
> What you can do, is creating a custom renderer for the standard
> UIInput component

if you change *default* behavior of a standard component,
you should also provide a tag, to ensure, that the usage of

<h:inputText/> has no side effects for a user.

So something like:
<x:inputText autocomplete="false"/>
is better ;)

btw. you don't need to create a component for this. Just *reuse* the
UIInput, shiped by the faces standard


<snipletOfYourPossibleTag>
public String getComponentType() {
  return ("javax.faces.Input");
}

public String getRendererType() {
  return ("com.foo.renderer.CustomInput");
}

</snipletOfYourPossibleTag>


> -Matthias
>
> On 1/12/06, Vladimir Coutinho <vl...@gmail.com> wrote:
> > How do I disable autocomplete in a form?
> >
> >
> >  In html I use autocomplete="off". But jsf did not recognize this propertie.
> >
>
>
> --
> Matthias Wessendorf
> Zülpicher Wall 12, 239
> 50674 Köln
> http://www.wessendorf.net
> mwessendorf-at-gmail-dot-com
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com

Re: How do I disable autocomplete

Posted by Matthias Wessendorf <mw...@gmail.com>.
That is fixed in jsf 1.2.

currently there is no autocomplete attribute in any jsf standard component.

What you can do, is creating a custom renderer for the standard
UIInput component

-Matthias

On 1/12/06, Vladimir Coutinho <vl...@gmail.com> wrote:
> How do I disable autocomplete in a form?
>
>
>  In html I use autocomplete="off". But jsf did not recognize this propertie.
>


--
Matthias Wessendorf
Zülpicher Wall 12, 239
50674 Köln
http://www.wessendorf.net
mwessendorf-at-gmail-dot-com