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
