Fair enough, but I think that is largely a matter of personal preference.
If you split a complex action bean whose events currently share bean
properties into multiple beans, then you'll probably wind up with
duplication across the beans. Possibly even more then you would having to
duplicate event names in "on={...}" lists or otherwise. That starts to get
really bad if it forces you into duplicating validation rules.
Still, I agree that having a single large action bean whose events handle
large sets of independent properties probably isn't the greatest thing
maintenance wise .
I just find the on={} construct a little awkward to work with when you are
in the "grey" area and there is some significant (but not total) cross-over
between the events . It really isn't a big deal though.
Changing stripes to event method parameter binding feels like a real
paradigm shift. Nothing wrong with that if there are good reasons to do it.
I'm just not sure what they are and it doesn't sound like I'm the only one..
2010/10/7 Grzegorz Krugły <g...@karko.net>
> Just my 2 cents - I think that if You have many action fields that are
> not used in some of the events, Your action is too big and should be split.
>
> Solutions to the problem involving additional annotations and other ways
> of duplicating field names in another configuration structures seem ugly
> to me -- they just add more complexity to a complex action bean that
> should be simplified instead so it remains maintainable.
>
>
>
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
> Spend less time writing and rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
--
Ross Sargant
Software Engineer
p: 954-623-6015 x2108
email: rsarg...@tvrc.com
TVR Communications LLC
541 S. State Road 7,Suite 5,Margate, Florida,33068
http://www.tvrc.com
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users