[seam-issues] [JBoss JIRA] Commented: (SEAMFACES-37) Attach a UIFormValidator to a UIForm automatically via name resolution

Lincoln Baxter III (JIRA) jira-events at lists.jboss.org
Wed Jun 16 16:30:46 EDT 2010


    [ https://jira.jboss.org/browse/SEAMFACES-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12535972#action_12535972 ] 

Lincoln Baxter III commented on SEAMFACES-37:
---------------------------------------------

This should be provided via the @FormValidator annotation:

@FormValidator("vacationForm")
@FormValidator("spaForm")
public class MyCalendarValidator ...

or--

@FormValidators({
   @FormValidator("bookingForm")
   @FormValidator("spaForm")
   @FormValidator("vacationFinderForm)
}})
public class MyCalendarValidator ...

getAnnotations(*.class) -- and we have our forms.

Dynamically attach via PreValidateEvent, can even do this where we grab the current form.

> Attach a UIFormValidator to a UIForm automatically via name resolution
> ----------------------------------------------------------------------
>
>                 Key: SEAMFACES-37
>                 URL: https://jira.jboss.org/browse/SEAMFACES-37
>             Project: Seam Faces
>          Issue Type: Feature Request
>          Components: UI Components, Validation & Conversion
>            Reporter: Lincoln Baxter III
>
> Attach a UIFormValidator to a UIForm via name resolution.
> If the name of the form matches the name of the validator, attach the validator to the form and enable it.

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

        


More information about the seam-issues mailing list