...
Said another way, let's say I have a value stack that consists of a
model and an action as follows:
Wiki Markup |
---|
\[WW: model, action \] |
here's how the following ognl would resolve:
Wiki Markup |
---|
\[WW:0\] - a CompoundRoot object that contains our stack, \[WW:model, action\] |
Wiki Markup |
---|
\[WW:1\] - another CompoundRoot that contains only \[WW:action\] |
Wiki Markup |
---|
\[WW:0\].toString() - calls toString() on the first object in the value
stack (excluding the CompoundRoot) that supports the toString() method |
Wiki Markup |
---|
\[WW:1\].foo - call getFoo() on the first object in the value stack
starting from \[OS:action] and excluding the CompoundRoot that supports a
getFoo() method |
...
Wiki Markup |
---|
$stack.findValue("\[WW:0\]").peek() |
Wiki Markup |
---|
Unfortunately, <ww:property value="\[WW:0\].peek()"/> won't work as this
would translate into "starting at the top of the value stack (and
excluding the CompoundRoot), find the first object that has a method
called peek()" |
...