My idea (without testing it):
.... condition='ognl:getPage().isHeadingEquals(Headings.value1)' ...
should look like:
.... condition="ognl:headingEquals(@[EMAIL PROTECTED])" ...
You will find the answer here: http://www.ognl.org/
Stephane Decleire schrieb:
Hi all,
I'm stuck with the problem below :
I've created an enum in a separate class (Headings.java) in my project
public enum Headings { value1, value2, value3 }
And i would like to use this values in an ognl expression in one of my
html templates ...
<span jwcid="@If"
condition='ognl:getPage().isHeadingEquals(Headings.value1)'><img
jwcid="@Image" image="asset:user" alt="User" title="User"
src="images/user.gif"/></span>
This is the error returned
Unable to read OGNL expression '<parsed OGNL expression>' of
[EMAIL PROTECTED]/bb/BB/$Border]: $Border_431.Headings
Thanks in advance for any idea ...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]