Prevent browser autocomplete

Asked

Viewed 1,060 times

3

There is how to prevent, through code, the browser to make suggestions to fill in the login form?

It is that the system will be used in laboratories and it would be boring the browser to suggest all the previously registered CPF. In addition, there is an ugly yellow background when the data comes from suggestion. See

I use JSF + primefaces components, and even with the autocomplete off in inputText, it seems to do no good!

2 answers

2

The primefaces itself has an autocomplete tag so instead of putting the autocomplete="off" of html, you can take advantage of the very first faces tag using the autocomplete="false" according to the documentation.

Reference - https://www.primefaces.org/docs/vdl/3.4/primefaces-p/autoComplete.html

Example:

<p:inputText type="text" autocomplete="false" ... />

1


  • I put, but it did not fit, I saw in some posts that Chrome is ignoring these autocomplete

Browser other questions tagged

You are not signed in. Login or sign up in order to post.