No, my issue is something different..
some how underlying Valitor API is not validating all fields and its
happening only when i am using Model driven, for rest cased everything is
working fine for same bean object and for same validations.


On Tue, Oct 15, 2013 at 3:15 PM, Christoph Nenning <
christoph.nenn...@lex-com.net> wrote:

> > Hi All,
> >
> > I am facing a strange issue while trying to validate a bean using bean
> > validation.I am using model driven interface to pass form field values
> to
> > Action and here is the  action code
> >
> > public class ModelDriven extends ActionSupport implements
> > com.opensymphony.xwork2.ModelDriven<ProfileDTO>{
> >
> >
> >  @Valid
> >     public ProfileDTOgetModel()
> >     {
> >          return new ProfileDTO();
> >     }
> > }
> >
> > Though bean validator is validating fields but skipping few of them an
> di
> > am clueless why it is dong this, when i am using simple process without
> > Model driven every validation is working as expected.
> >
> > There is no difference in code and only line of code different is in
> action
> > for model driven.
> >
> > Not sure how relevant question is , but do we need to take care any
> > specific issue while using model driven approach?
> >
>
> Do you use a custom TextProvider?
> There is an open Jira issue with ModelDriven, Validation and custom
> TextProviders:
>
> https://issues.apache.org/jira/browse/WW-4202
>
>
> Regards,
> Christoph
>
> This Email was scanned by Sophos Anti Virus
>



-- 
With Regards
Umesh Awasthi
http://www.travellingrants.com/

Reply via email to