Prevent browser saved password suggestion in <p:password>?

UI Components for JSF
drakenra
Posts: 22
Joined: 15 Feb 2010, 20:23

24 Feb 2010, 21:02

Hi,
I was wonder if it is somehow possible to do like prevent browser saved password suggestion that fills automatically password input field for the Primefaces own password strength component <p:password> (can't find an option for it in the document...)? JSF inputSecret-component have attribute called autocomplete which does the trick for example <h:inputSecret value="" autocomplete="off"/>?

I am using currently using Primefaces v1.0.0.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

27 Feb 2010, 11:16

Hi and welcome to PrimeFaces!

I've added this ticket in our issue tracker targeting upcoming release cycle.

http://code.google.com/p/primefaces/iss ... ail?id=555

If you start it, you can get email notifications regarding updates.

drakenra
Posts: 22
Joined: 15 Feb 2010, 20:23

28 Feb 2010, 11:07

Thanks.

That's good to hear. I'll be waiting then :).

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

03 Mar 2010, 12:50

If you star the issue, you'll get email notifications regarding issue changes.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

07 Mar 2010, 17:28

This is fixed now, autocomplete attribute is added to make this configurable.

drakenra
Posts: 22
Joined: 15 Feb 2010, 20:23

06 May 2010, 21:09

Thanks, it works great :).

papetti
Posts: 3
Joined: 27 Apr 2011, 03:24

14 May 2011, 00:46

Don't know if I should reopen this thread or create another one. I will describe my problem here

This is my password tag:

<p:password autocomplete="false" value="#{userDataBB.passwordInputed}" id="passwordInput" onkeyup="checkPassword()" feedback="false"/>

Autocomplete false is not working. When there's a password stored on the browser, this field is being completed with the browser suggestion.

I tested with Primefaces 2.2.1 and 3.0M1 running on Firefox and it happened with both of them.

Can someone help me, please? What I'm doing wrong ?

papetti
Posts: 3
Joined: 27 Apr 2011, 03:24

16 May 2011, 21:05

I changed from autocomplete="false" to autocomplete="off" and it worked. Maybe my documentation was not updated. Now it's working.

Darth vader
Posts: 3
Joined: 15 Aug 2014, 11:41

15 Aug 2014, 12:01

Hi,

like papetti i don't know if i should open a new thread or use the current one.
since i've tried both autocomplete="false" and autocomplete="off" and it's not working with both in chrome, still working like a charm on firefox,

Code: Select all

<p:password id="input-code" autocomplete="off" match="input-code-confirm" redisplay="true" value="#userCreationBean.code}"	onkeypress="return isNumberKey(event)" required="false" />

<p:password id="input-code-confirm" autocomplete="off" match="input-code-confirm" redisplay="true" value="#userCreationBean.code}"	onkeypress="return isNumberKey(event)" required="false" />

thnx in advance

i'm using primefaces 3.2 with jsf 2.0.4. JBoss Server 7.1, eclipse Juno

ps: warn me if i should create another thread
Last edited by Darth vader on 03 Sep 2014, 16:26, edited 1 time in total.

Darth vader
Posts: 3
Joined: 15 Aug 2014, 11:41

18 Aug 2014, 09:49

I found the solution,

So here it is,

the attribute autocomplete-off, will no longer work on chrome (since chrome 3.4.XXXX and above), this is now a natural behavior of the browser (disired behavior), under flags settting (chrome://flags) you can activate the #disable-ignore-autocomplete-off, however this solution is deprecated and will not be availiable in newer version of chrome.

the best workaround i found so far, is to use hidden fake fields for login and password:

Code: Select all

<!-- fake password -->
<input type="password" name="password_fake" id="password_fake" value="" style="display: none;" />
<p:password id="password" redisplay="true" value="#{userCreation.password}" required="true" maxlength="16" />

i'm using primefaces 3.2 with jsf 2.0.4. JBoss Server 7.1, eclipse Juno
Last edited by Darth vader on 03 Sep 2014, 16:27, edited 1 time in total.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 57 guests