[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-1236) JSF 1.2 breaks captcha

Shane Bryzak (JIRA) jira-events at lists.jboss.org
Tue Apr 24 05:03:30 EDT 2007

     [ http://jira.jboss.com/jira/browse/JBSEAM-1236?page=all ]

Shane Bryzak closed JBSEAM-1236.

    Resolution: Done

Fixed, this was actually a bug in UIValidateAll.  The getChildren() method was being called in the restore view phase, thereby adding a ModelValidator to all child controls, after which restoreState() was called on each child which in turn added the validators that were previously serialized.  So in summary, every time that the view was refreshed an extra validator was being added to each child control.  Fixed by adding the validators in the encodeChildren() method instead, and to be extra careful also setting a flag indicating that validators have been added.

> JSF 1.2 breaks captcha
> ----------------------
>                 Key: JBSEAM-1236
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1236
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: JSF
>    Affects Versions: 1.3.0.BETA1
>            Reporter: Shane Bryzak
>         Assigned To: Shane Bryzak
>             Fix For: 1.3.0.BETA1
> Captcha is failing validation - for some reason, three ModelValidator instances are being assigned to the captcha UIInput causing validation to occur more than once (validation is only allowed once).

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list