i have my managed bean like this :
@ManagedBean
@SessionScoped
public class utilisateur implements Serializable {
private String login ="yous" ;
private String password ="yous";
...
...
}
and my login.xhtml
<h:outputText value="login: " />
<p:inputText value="#{utilisateur.login}" />
<h:outputText value="password: " />
<p:password value="#{utilisateur.password}" />
so with this configuration the password must be shown by default like ****
(yous) in p:password
but it shows empty.
This is the default behaviour for security reasons. You need to explicitly set the
redisplay
attribute totrue
if you need to display the password from the model whenever it's been submitted or preset.See also the
<p:password>
VDL documentation, it's the one before last attribute.