p:password doesn't redisplay prefilled model value

后端 未结 1 1262
北恋
北恋 2021-01-17 23:48

i have my managed bean like this :

@ManagedBean 
@SessionScoped
public class utilisateur implements Serializable {

    private String login =\"yous\" ;
             


        
相关标签:
1条回答
  • 2021-01-18 00:40

    This is the default behaviour for security reasons. You need to explicitly set the redisplay attribute to true if you need to display the password from the model whenever it's been submitted or preset.

    <p:password value="#{utilisateur.password}" redisplay="true" />  
    

    See also the <p:password> VDL documentation, it's the one before last attribute.

    redisplay Boolean flag indicating whether or not a previously entered password should be rendered in form. Default is false.

    0 讨论(0)
提交回复
热议问题