0
I’m using the attribute match
of a <p:password/>
, but it doesn’t work properly.
<p:password id="senha"/>
<p:password match="senha"/>
When I send the form via commandButton, an error message arises, saying that passwords do not match, even though I have placed the same characters.
How can I fix it?
You receive the values in your Controller, if received could post the method you receive? Have you tried to see if they are coming null? Could post which error gives?
– Danilo Oliveira
I don’t get anything in control, I mean, I don’t attribute any attributes to
p:password
with the match. Primefaces does not do this automatically?– ptkato
No, it does not, you have to send to your Controller, see here, you need to set in the value field your Managedbean.Password. Considering "Password" an attribute
– Danilo Oliveira
Ah, just to confirm: both use the same attribute as value?
– ptkato
Yes, from a read in the article I commented on, it’s always good to read the Primefaces Showcase
– Danilo Oliveira