> 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

Reply via email to