Hi Andrew,

if you start the RadioGroup in an "invisible" spot, it will render
correctly, as in

<span jwcid="@RadioGroup">
  <tr>
    <td><radiogroup1 option 1 /></td>
    <td><radiogroup2 option 1 /></td>
  </tr>
  <tr>
    <td><radiogroup1 option 2 /></td>
    <td><radiogroup2 option 2 /></td>
  </tr>
</span>

or at least that's the case with lightly formatted tables...

Regards,

Dario

On Feb 5, 2008 7:54 AM, Andrew Ingram <[EMAIL PROTECTED]> wrote:

> I'm trying to use radio options in the following way:
>
> pseudo-html:
>
> <tr>
> <td><radiogroup1 option 1 /></td>
> <td><radiogroup2 option 1 /></td>
> </tr>
> <tr>
> <td><radiogroup1 option 2 /></td>
> <td><radiogroup2 option 2 /></td>
> </tr>
>
> This doesn't work with Tapestry's RadioGroup component because there's
> no way of wrapping a RadioGroup around the related radio fields without
> wrapping the other.
>
> I tried the obvious approach of overriding Radio to allow me to specify
> the RadioGroup to use as a parameter rather than requiring it to be
> nested. To do this I changed the first line of Radio's renderComponent
> to get a supplied RadioGroup rather than the one from the cycle.
>
> This is the only change I made, but I get this error:
>
> "Property 'rewinding' of [RadioGroup Instance] may only be accessed
> while the component is rendering."
>
> Does anyone have any idea how I can solve this problem? I had expected
> it to be something quite easy to do and it's already taken far longer
> than I'd hoped.
>
> Regards,
> Andrew Ingram
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
"A man in love is incomplete until he has married. Then he's finished."
  Zsa Zsa Gabor

Reply via email to