Thanks for the info Tim.

Gregg

On Mon, Oct 27, 2008 at 4:29 PM, Tim Fennell <[EMAIL PROTECTED]> wrote:

> So, actually this works reasonably well already in 1.5, will work
> better in 1.5.1 and beyond that the only problem is actually with
> related technologies.
>
> When I say works, I mean you should be able to just have:
>        public Date birthday;
>
> and Stripes will work with the public property instead of requiring
> getters and setters.
>
> There's an existing bug in 1.5 whereby Stripes won't discover
> validation metadata on a public property - it required a method to be
> present to find the property, and would then look on the field.  But
> Freddy has fixed this in the trunk and on the branch, so in 1.5.1
> you'll be able to do just this.
>
> The only problem remaining, as Chris says, is that JSP EL requires the
> accessors, so if you want to access things in EL you'll still need
> getter methods.  However, FreeMarker can be made to read public
> properties.....
>
> -t
>
> On Oct 27, 2008, at 5:22 PM, Chris Herron wrote:
>
> > Is the property syntax definitely out of consideration for Java 7?
> > Last I heard, it was still on the table.
> > JSP EL requires reflection. If Stripes introduces its own @Property
> > annotation I think it would require bytecode manipulation in order to
> > make everything work.
> >
> > Properties don't bother me much as long as someone isn't pedantically
> > demanding them to be Javadocced. I rely on my IDE to generate getters
> > & setters and I collapse & hide them all out of the way at the bottom
> > of the class.
> >
> > Chris.
> >
> > On Oct 27, 2008, at 4:47 PM, Gregg Bolinger wrote:
> >
> >> Before I ask my question let me first say that I have no problems
> >> with getter/setter methods from a practical POV.  At one time Sun
> >> was going to introduce an @Property annotation for beans but it
> >> didn't make it in.  Some frameworks/languages (scala for example) do
> >> offer this to avoid the need to getters/setters.  In groovy getters
> >> and setters are wired up at runtime.  While I try to keep my
> >> controllers as lean as possible getter/setter clutter tends to mount.
> >>
> >> This would probably be something more for Stripes 1.6 but I think it
> >> would be nice if Stripes could get and set properties based on an
> >> @Property annotation rather than requiring getters and setters.  I'm
> >> not sure what "rules" might be broken through reflection for this to
> >> work but it sure would clean up the action beans, I think.  Any
> >> opinions?
> >>
> >> Gregg
> >>
> -------------------------------------------------------------------------
> >> This SF.Net email is sponsored by the Moblin Your Move Developer's
> >> challenge
> >> Build the coolest Linux based applications with Moblin SDK & win
> >> great prizes
> >> Grand prize is a trip for two to an Open Source event anywhere in
> >> the world
> >>
> http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
> >> Stripes-users mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/stripes-users
> >
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> > challenge
> > Build the coolest Linux based applications with Moblin SDK & win
> > great prizes
> > Grand prize is a trip for two to an Open Source event anywhere in
> > the world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > Stripes-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to