myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerhard Petracek <gerhard.petra...@gmail.com>
Subject Re: @BeanValidation annotation at class level
Date Thu, 18 Oct 2012 19:49:17 GMT
hi manuel,

you can check it in ExtValBeanValidationMetaDataInternals#
extractExtValBeanValidationMetaData
(see #inspectFirstBean (= class level), #inspectFirstProperty,
#inspectBaseOfProperty (= class level) and #inspectLastProperty)

regards,
gerhard

http://www.irian.at

Your JSF/JavaEE powerhouse -
JavaEE Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces



2012/10/18 <Manuel.Gamerdinger@t-systems.com>

> Hello MyFaces ExtVal users,
>
> I've a question regarding group validation together with @BeanValidation
> annotation. In my example the @BeanValidation annotation only works on page
> bean fields. On class level it seems that the annotation is ignored.
>
> This works:
> @BeanValidation(useGroups=IUiGroupStage2.class)
>     private String wmc;
>
> This doesn't work:
> @BeanValidation(useGroups=IUiGroupStage2.class)
> public class HomeDlg implements Serializable {
>
> The following documentation states that it should be possible to declare
> the annotation at class level:
> http://wiki.apache.org/myfaces/Extensions/Validator/DevDoc
> But now how can I make it run? Is there some configuration to be done?
>
> Thanx in advance!
> Manuel
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message