I am doing a project using primefaces.
In that I am using user login page.
My problem is that, when i enter the text on p:inputText
the previous value is appeared on the p:inputText
.
I used autocomplete=“off”
in p:inputText
and I cleared my Mozilla browser history on every login but still its not working well.
Code:
<h:form>
<p:inputText id="userName" autocomplete="off" value="...">
<p:ajax event="focus" listener="..." update="infoMessage"/>
</p:inputText>
<p:watermark for="userName" value="..." id="userLabelWaterMarkId"/>
<p:password id="password" autocomplete="off" value="....">
<p:ajax event="focus" listener="....." update="infoMessage"/>
</p:password>
<p:watermark for="password" value="..." id="pwddWaterMarkId"/>
</h:form>
Any idea?