[
https://jira.jboss.org/jira/browse/JBSEAM-2809?page=com.atlassian.jira.pl...
]
Daniel Roth commented on JBSEAM-2809:
-------------------------------------
Pete: "Also, I still want to see it be possible to vaidate two fields are
equal". This actually works, I made it more appearent in the trunk now . You only
need the value/valuebinding in the first field. However, it comes with a problem. If field
1 is filled with some data and field 2 is empty (null), the validator code will never be
run... which is why one might need the binding to a bean to ensure that the second value
isn't empty.
A workaround is to do something like:
<h:inputText id="email"/>
<h:inputText value=" ">
<s:validateEquality for="email"/>
</h:inputText>
but this isn't imo very nice. It works though.
I would really like to see a solution for this (before next JSF version), so if anyone has
a suggestion on how to force validation (even when value is null) I'd be glad to put
it in.
s:inputPassword
---------------
Key: JBSEAM-2809
URL:
https://jira.jboss.org/jira/browse/JBSEAM-2809
Project: Seam
Issue Type: Feature Request
Components: JSF Controls
Reporter: Pete Muir
Assignee: Daniel Roth
Fix For: 2.1.0.GA
Attachments: JBSEAM-2809.patch
Extension of h:inputSecret.
Renders two input fields. Attaches a validator by default that checks both fields are the
same. Use like
<s:inputPassword value="#{identity.password}" />
Advantages: No backing bean logic required, validation done at correct point
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira