Re: Error message

Shervin Asgari <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
>> Actually the mfapproval is a Enum which has a variable called created
>> which is Date. But perhaps enums are not supported?
> It's supported, and assuming you have a `public Date getCreated()` in
> a public Enum subclass, something like ${someEnum.created?datetime}
> should work. I suspect that somewhere that Enum was converted to
> java.lang.String. Otherwise the reported type wouldn't be
> SimpleScalar. (Actually, wrapped Enum-s are FTL string-s, however they
> are StringModel-s, not SimpleScalar-s, and StringModel-s can have
> subvariables.)
>
Perhaps that is what is happening. The underlying object is enum. That I 
am sure.
But what the other framework is doing, I dont know. But I know other 
java objects works fine, like my custom objects, just not this enum type.

Anyways, thanks for your response.

Shervin

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.