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.
Prevent browser saved password suggestion in <p:password>?
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
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.
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.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
If you star the issue, you'll get email notifications regarding issue changes.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
This is fixed now, autocomplete attribute is added to make this configurable.
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 ?
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 ?
-
- Posts: 3
- Joined: 15 Aug 2014, 11:41
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,
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
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.
-
- Posts: 3
- Joined: 15 Aug 2014, 11:41
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:
i'm using primefaces 3.2 with jsf 2.0.4. JBoss Server 7.1, eclipse Juno
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.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 57 guests