Re: Enum as a model

Daniel Dekany <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Monday, May 30, 2011, 4:19:06 PM, magic creative wrote:

> Hi guys,
>
>  I can not seem to find an example how to solve my problem so let me ask directly.
>
>  If there is an Enum X which is part of an object Y

What does that mean in Java language?

BTW, just in case you haven't red this, maybe this helps:
http://freemarker.org/docs/pgui_misc_beanwrapper.html#jdk_15_enums

> I put as model and I reference X in my template I am getting:
>
>
>
> Expression Y.X is undefined
>
>
> The template has simply ${Y.X}. If X was a String there would be no
> problem and it would be displayed. As an Enum however it does not
> work. What should I do to allow enums to be parsed?
>
> Kind Regards
-- 
Best regards,
 Daniel Dekany


------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
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.