On Jan 29, 2005, at 2:29 PM, Michiel Meeuwissen wrote:
Rob van Maris wrote:In addition, using a wrapper class, the demands of (for instance) EL
can be met much better than by extending Node. E.g. with node extending
Map it will be impossible to retreive a field named "cloud", since
${node.cloud} always evaluates to node.getCloud() instead of
node.get("cloud").
Really? Would El not firstly decide that it is a Map, and therefore conclude
that it should use the second version?
You're right, I stand corrected.
According to the JSP2.0 specs, if node.get("cloud") exists, it takes precedence over node.getCloud(). This is confusing and an even better reason in favor of a wrapper class instead of Node implementing Map.
Regards, Rob van Maris
_______________________________________________ Developers mailing list [email protected] http://lists.mmbase.org/mailman/listinfo/developers
