Why not keep wicket simple? I really like the simplicity of the dot notation johan created. I think we should use [] only as a hint. By default wicket tries to find a getter and then checks if the object is a list/set/map and contains the key. The [] hint would tell wicket to skip the getter and go straight for the contains check. I also like that any null link in the chain results in a null.
If you really want the complete groovy syntax why not build a groovy property model using groovy expression evaluator? Same goes for ognl. My 2 cents. -Igor > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Jonathan Carlson > Sent: Thursday, October 27, 2005 11:40 AM > To: wicket-user@lists.sourceforge.net > Subject: Re: [Wicket-user] replace ognl. > > > 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/ind > exing.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 > > > > Wicket-user@lists.sourceforge.net > > > > 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 > > Wicket-user@lists.sourceforge.net > > 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 > Wicket-user@lists.sourceforge.net > 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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user