But alas, you cannot. If I remember correctly, you're not allowed to use expansions in parameters (${}). This isn't needed for value as its expanded anyway, but the bottom line is T5 throws an exception if you do something like this:

<t:radio value="prop:STATIC_FIELD"/>
or
<t:radio value="${prop:STATIC_FIELD}"/>
or
<t:radio value="STATIC_FIELD"/>

Even if the page class has this field. It throws an exception with the message:

"Could not convert 'prop:AGENT_LISTER' into a component parameter binding: Class xxx.Login does not contain a property named 'AGENT_LISTER' (within property expression 'AGENT_LISTER')."

Daniel Jue wrote:
T5 uses Prop, so you should be able to specify it using ${prop:STATIC_MEMBER}

On 8/16/07, Chris Lewis <[EMAIL PROTECTED]> wrote:
Hello,

I'm implementing a form with some radio buttons. My understanding so far
is that the radio buttons provide a value, and that value is stored in
the containing RadioGroup's value parameter when the form is submitted.
The form has only 2 radio buttons, each representing a string value.
This string value should be a constant in the page class, but I can't
figure out how to grab a constant from the page class in the template.
In T4 this was done with something like:

value="ognl:@com.app.MyPage.STATIC_MEMBER"

How can this be done in T5?

thanks!
chris

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



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


Reply via email to