Re: Strange issue with Model driven and Bean validation

2013-10-15 Thread Umesh Awasthi
Dave, i am agree with you, i just followed doc and than it started giving me some strange issues in validations. I tried to debug underlying API but with no success. On doing some more Googling i came across create new instance outside getModel() and it started working as expected. Thanks Umesh

Re: Strange issue with Model driven and Bean validation

2013-10-15 Thread Dave Newton
Wouldn't this return a new ProfileDTO every single time getModel() is called? This, in turn, would mean that if you were validating model.foo and model.bar that it'd be called twice. I have not verified this, perhaps there's some magic (e.g., spooky) caching happening somewhere, but to my mind, w

Re: Strange issue with Model driven and Bean validation

2013-10-15 Thread Christoph Nenning
> Just to add more information by changing code to > > ProfileDTOgetModel md=new ProfileDTOgetModel(); > @Valid > public ProfileDTOgetModel() > { > return md; > } > } > > Bean Validation is working fine, so i am confused which is right way to use > Model driven. > I took ref

Re: Strange issue with Model driven and Bean validation

2013-10-15 Thread Umesh Awasthi
Just to add more information by changing code to ProfileDTOgetModel md=new ProfileDTOgetModel(); @Valid public ProfileDTOgetModel() { return md; } } Bean Validation is working fine, so i am confused which is right way to use Model driven. I took reference from http://struts.

Re: Strange issue with Model driven and Bean validation

2013-10-15 Thread Umesh Awasthi
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 < chr

Antwort: Strange issue with Model driven and Bean validation

2013-10-15 Thread Christoph Nenning
> 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.ModelDriv

Strange issue with Model driven and Bean validation

2013-10-15 Thread Umesh Awasthi
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{ @Valid