Hi,
I have a password inputfield where i have a md5 converter on it.
The field is binded with my entity.password
field (that is stored as an md5 hash).
I want to set a f:validateLength
on it so a password must have a certain length.
Problem is that a "" empty String has also an md5 hash. The validator doesn't check the actual input but the converted md5 hash.
Can i set the validator on the actual input, not the converted one?
<ice:inputSecret value="#{user.employer.user.password}" converter="md5hashconverter">
<f:validateLength minimum="3" maximum="15"/>
</ice:inputSecret>
Thank you
Edit: I'm using Hibernate and my backing bean is also the "model" managed bean. I persist with EntityManager.