[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-980) @Converter, @Validator

Gavin King (JIRA) jira-events at lists.jboss.org
Sat Mar 3 12:35:09 EST 2007


    [ http://jira.jboss.com/jira/browse/JBSEAM-980?page=comments#action_12354899 ] 
            
Gavin King commented on JBSEAM-980:
-----------------------------------

Alternatively, we could register a component like this:

@Name("foo.mydomain.fooConverter")
public class FooConverter implements Converter { .... } 

As a converter with id "foo.mydomain.fooConverter". Then it would be a full Seam component....

> @Converter, @Validator
> ----------------------
>
>                 Key: JBSEAM-980
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-980
>             Project: JBoss Seam
>          Issue Type: Feature Request
>          Components: JSF
>            Reporter: Gavin King
>         Assigned To: Gavin King
>             Fix For: 1.2.1.GA
>
>
> I think it's a good idea to let users avoid editing faces-config.xml when creating validators and converters.
> @Converter(id="....")
> public class FooConverter implements Converter { .... }
> @Converter(targetClass="....")
> public class FooConverter implements Converter { .... }
> @Validator(id="....")
> public class FooValidator implements Validator { .... }
> We would scan for these guys at startup, and register them with JSF.

-- 
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