【问题标题】:PrimeFaces autocomplete="off" didn't work for username and passwordPrimeFaces autocomplete="off" 不适用于用户名和密码
【发布时间】:2014-08-14 12:20:25
【问题描述】:

我正在使用 jsf 2.2 和 PrimeFaces 5.0。问题是我已经完成了系统登录页面 通过 spring security,并且还使用另一个页面添加新用户 im 如下所示。

                 <tr>
                    <td><p:outputLabel value="User nameee : " for="user_name_test" /></td>
                    <td><p:inputText autocomplete="off" id="user_name_test" 
                            value="#{userController.userName}" /></td>
                </tr>
                <tr>
                    <td><p:outputLabel value="Password : " for="pass_word_test" /></td>
                    <td><p:password autocomplete="off" id="pass_word_test"
                            value="#{userController.password}" /></td>
                </tr>

问题在于,在 chrome 中,每当我尝试以任何形式使用用户名和密码文本时,我都会将记住密码放到我的系统登录页面中。它不断被该用户名和密码填充。我尝试在我的注册新用户页面中添加“autocomplete="off"。但它不起作用。

【问题讨论】:

标签: jsf primefaces


【解决方案1】:

我相信你不能对它做任何事情,因为它被浏览器记住,但你可以去

chrome://settings/personal

并选择“显示高级设置”并在“密码和表单”下管理密码。

【讨论】:

    猜你喜欢
    • 2014-10-03
    • 1970-01-01
    • 1970-01-01
    • 2013-09-20
    • 1970-01-01
    • 2018-11-09
    • 2016-06-30
    • 2013-12-10
    • 2017-02-25
    相关资源
    最近更新 更多