Em Tue, 24 Jun 2008 14:06:05 -0300, Lance Java <[EMAIL PROTECTED]>
escreveu:
I'm a newbie but I notice tapestry has a StringToEnumCoercion.
What hapens if you do this?
...
Your above template snippet would be interpreted by Tapestry as "the
context parameter will be given by a call to the
OTECTED]>:
>
> Hi,
>
> There must be a way to use enum in actionlink context. How to do this?
>
> I mean like:
>
> Do not
> push.
>
> - 99
> --
> View this message in context:
> http://www.nabble.com/-T5--How-to-use-enums-in-.tml-files-tp18090334p180903
Em Tue, 24 Jun 2008 09:54:18 -0300, 9902468 <[EMAIL PROTECTED]>
escreveu:
Do not
push.
Or you can write a simple getter method in you page class:
public Enum getContext() {
return Enum.SOME_CONSTANT;
}
Do not
push.
IMHO, the less logic in your templates, the better. :)
Thiago
--
: 9902468 <[EMAIL PROTECTED]>
> Subject: [T5] How to use enums in .tml files
> To: users@tapestry.apache.org
> Date: Tuesday, 24 June, 2008, 8:54 PM
> Hi,
>
> There must be a way to use enum in actionlink context. How
> to do this?
>
> I mean like:
>
> contex
Hi,
There must be a way to use enum in actionlink context. How to do this?
I mean like:
Do not
push.
- 99
--
View this message in context:
http://www.nabble.com/-T5--How-to-use-enums-in-.tml-files-tp18090334p18090334.html
Sent from the Tapestry - User mailing list archive at Nabble.com