It's all about choice of course. I agree with most proponents of getting rid of OGNL: it's way too heavy for 95% (or more) of the usual cases, and less dependencies == good. But, I think it would be really good not only to keep alternatives in e.g. the extensions project, or with a seperate project (for the sake of keeping the number of dependencies needed for extensions small too), but also make sure our compound property models can work with the different options there are (you could write a Groovy implementation if you want to, and put it in the groovy wicket-stuff project).
AbstractPropertyModel could work with something like a propertyresolver/ delegate (one more indirection :)) for getting and setting values based on a expression, and it might even be a good idea to have the option of having the default delegate as a application setting or something. Would be real easy to implement too. Eelco On 10/27/05, Jonathan Carlson <[EMAIL PROTECTED]> wrote: > > and that is? > > Very similar to what you are proposing: > http://groovy.codehaus.org/Collections > > and > > bean?.property (allows bean to be null) > (see http://groovy.codehaus.org/Migration+From+Classic+to+JSR+syntax ) > > I really appreciate how OGNL is very flexible with allowing me to do > things like concatenate two properties into one without having to write > a new getter. Having a groovy-based property model would give similar > advantages. And Groovy allows for compact iterating over collections > like OGNL does (although I haven't had a need for it yet). If you got > rid of that kind of functionality altogether, I think Wicket would be > poorer for it. > > My 2 cents worth, > > - Jonathan > > > >>> [EMAIL PROTECTED] 2005-10-27 1:23:03 PM >>> > and that is? > > > On 10/27/05, Jonathan Carlson <[EMAIL PROTECTED]> wrote: > > > > I'd prefer if it used a groovy-like syntax (or actual groovy behind > the > > curtain) as much as possible. > > > > > > >>> [EMAIL PROTECTED] 2005-10-27 11:15:05 AM >>> > > The only thing for me to use [] for an index and { } for a map (for > > example) > > would be that this: > > > > mymap.property would mean that you really want to have a getProperty > on > > a > > map > > (same goes for list) > > > > so i will change it to use with [] (without quotes that i find > totally > > not > > needed) > > > > foo.list[0].bar > > foo.map[key].bar > > foo.list.bar (this is a get property of the list) > > foo.map.bar (this is a get property of the map) > > > > But i am affraid that when i do the last thing (it needs to be a > > property of > > map) that wicket fails currently > > so i think i fall back to that that i will also look it up as a key > if > > the > > property is not found. > > > > This will result in more mem en cpu usage. > > (i don't create any garbage currently) > > > > On 10/27/05, Johan Compagner <[EMAIL PROTECTED]> wrote: > > > > > > ognl can do map lookup with just a expression > > > (that was the first thing i had to do because that did go wrong > when > > i > > > started testing it) > > > this was used: Ognl.getValue("string", anHashmap); > > > > > > so the need to do ["sd"] even with " juk why is that needed ...? > > > > > > > > > > > > On 10/27/05, Eelco Hillenius <[EMAIL PROTECTED]> wrote: > > > > > > > > I'm not too sure about using dots for index/ map references. It > > > > differs from OGNL: > > > > > > > http://www.ognl.org/2.6.7/Documentation/html/LanguageGuide/indexing.html > > > > > > > . > > > > And personally, I think it is usefull to be able to distinct > > single > > > > from indexed properties just by looking at the expression. Is it > > > > /that/ more expensive? I mean, optimizing is good, but we don't > > have > > > > to over-do it. > > > > > > > > Eelco > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email is sponsored by the JBoss Inc. > > > > Get Certified Today * Register for a JBoss Training Course > > > > Free Certification Exam for All Training Attendees Through End > of > > 2005 > > > > Visit http://www.jboss.com/services/certification for more > > information > > > > _______________________________________________ > > > > Wicket-user mailing list > > > > [email protected] > > > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > > > > > > > > > > > > ______________________________________________________________________ > > This email and any files transmitted with it are confidential and > > intended solely for the use of the individual or entity to whom they > > are addressed. If you have received this email in error please > notify > > the system manager. > > > > Katun Corporation -- www.katun.com <http://www.katun.com> > > > _____________________________________________________________________ > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by the JBoss Inc. > > Get Certified Today * Register for a JBoss Training Course > > Free Certification Exam for All Training Attendees Through End of > 2005 > > Visit http://www.jboss.com/services/certification for more > information > > _______________________________________________ > > Wicket-user mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > ______________________________________________________________________ > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. If you have received this email in error please notify > the system manager. > > Katun Corporation -- www.katun.com > _____________________________________________________________________ > > > ------------------------------------------------------- > This SF.Net email is sponsored by the JBoss Inc. > Get Certified Today * Register for a JBoss Training Course > Free Certification Exam for All Training Attendees Through End of 2005 > Visit http://www.jboss.com/services/certification for more information > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
