I ran into this problem too.  FieldLabel does not work with Radio because
it is not an IFormComponent.

The order of FieldLabel & the component it refers to doesn't matter.  Except
that if you put the FieldLabel after the component you have to set
prerender=false.

I worked around this by creating a radio component that is a form component.
The
attached file has the class.  Now the disclaimer- this is code from 6 or 7
months 
ago on a project that didn't finish & was developerd early in my tapestry
learning 
cycle - treat with appropriate caution :)

cheers,
Ben
 

-----Original Message-----
From: Todd Orr [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 26 October 2006 1:44 AM
To: Tapestry users
Subject: Re: Dynamic Radiogroup

Reversing the radio and the label still causes this exception.

On 10/25/06, James Carman <[EMAIL PROTECTED]> wrote:
> I don't think it matters where you define it within the HTML.  Quite 
> often, the field label will come before the field it labels.  I've 
> never had to resort to a .page/.jwc file in this case.
>
> On 10/24/06, Patrick Moore <[EMAIL PROTECTED]> wrote:
> >
> > your FieldLabel's field parameter is wrong, it should look like this:
> >
> > <label jwcid="@FieldLabel" field="component:sug">
> >
> > but if I remember correctly this will not work anyhow because sug is 
> > defined in the html after the FieldLabel. You will need to specify 
> > sug in your java or .jwc.
> >
> > -Pat
> >
> > --------------------------------------------------------------------
> > - 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]

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

Reply via email to