struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Nenning <Christoph.Nenn...@lex-com.net>
Subject Antwort: Strange issue with Model driven and Bean validation
Date Tue, 15 Oct 2013 09:45:01 GMT
> 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

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