here is jira issue: http://www.stripesframework.org/jira/browse/STS-604
________________________________________ From: Marijan Miličević [[email protected]] Sent: Wednesday, February 04, 2009 9:41 PM To: Stripes Users List Subject: Re: [Stripes-users] Is it possible to avoid writing getters&setters for action bean request parameters? Hi Ross, I believe this is an already fixed bug, you'll need to build stripes yourself from the trunk though, as 1.5.1 is not released yet... -m ________________________________________ From: Ross Sargant [[email protected]] Sent: Wednesday, February 04, 2009 9:37 PM To: Stripes Users List Subject: [Stripes-users] Is it possible to avoid writing getters&setters for action bean request parameters? Hi, I seem to hardly ever have any real logic in my action bean getter/setter methods and feel they add unnecessary clutter to the code. I was interested in refactoring the following: class Foo extends MyBaseActionBean{ @Validate(required=true,minvalue=5,maxvalue=10) private Integer bar; public Integer getBar(){ return bar; } public void setBar(Integer value){ this.bar=value; } } to class Foo extends MyBaseActionBean{ @Validate(required=true,minvalue=5,maxvalue=10) public Integer bar; } However, it seems like validation does not work correctly when I do this. I do get type conversion failures and binding seems to work but other validations (like a range check) are not applied and my event handler runs with invalid data. Am I missing something here? Is there some reason this can't work? -- Ross Sargant TVR Communications LLC Software Engineer 3275 W Hillsboro Blvd,Suite 300,Deerfield Beach, Florida,33442 http://www.tvrc.com p: 954-571-2017 x2108 email: [email protected]<mailto:[email protected]> ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
