Hi,

Hmmm...
I access enum like a constant and it works!

public enum ReportType {
        TOTALS, 
        COMPARISON
}

In Template:

<span jwcid="@If"
    condition="ognl:descriptor.mode eq @[EMAIL PROTECTED]">

Alex

GL> This sucks but it works.

GL> @[EMAIL PROTECTED]("ONE")

GL> Geoff

GL> On 10/4/05, Martin Strand <[EMAIL PROTECTED]> wrote:
>>
>> Is there a way to reference an enum with OGNL?
>>
>>
>>
>> package package;
>>
>> class Class
>> {
>> public enum Enum
>> {
>> ONE, TWO, THREE
>> }
>> }
>>
>>
>>
>> I tried a couple of variations but couldn't figure it out. Perhaps it's
>> not possible?
>> ognl:@[EMAIL PROTECTED] ?
>>
>> -Martin
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>>
>>


GL> --
GL> The Spindle guy. http://spindle.sf.net
GL> Get help with Spindle:
GL> http://lists.sourceforge.net/mailman/listinfo/spindle-user
GL> Announcement Feed:
GL> http://www.jroller.com/rss/glongman?catname=/Announcements
GL> Feature Updates: http://spindle.sf.net/updates



-- 
aku


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to