[T4] Modifying RadioGroup
I'm trying to use radio options in the following way: pseudo-html: tr tdradiogroup1 option 1 //td tdradiogroup2 option 1 //td /tr tr tdradiogroup1 option 2 //td tdradiogroup2 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]
Re: [T4] Modifying RadioGroup
Hi Dario, That only works if there's only one RadioGroup, the problem is that the first RadioGroup needs to refer only to the first column of Radios in the table, whilst the second needs to refer only to the second column. Since Radios have to be inside RadioGroups and RadioGroups can't be nested I can't see any way to do this without rewriting how these things work (which I attempted but hit the problem outlined in my first message). Regards, Andrew Darío Vasconcelos wrote: Hi Andrew, if you start the RadioGroup in an invisible spot, it will render correctly, as in span jwcid=@RadioGroup tr tdradiogroup1 option 1 //td tdradiogroup2 option 1 //td /tr tr tdradiogroup1 option 2 //td tdradiogroup2 option 2 //td /tr /span or at least that's the case with lightly formatted tables... Regards, Dario __ 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]
Re: [T4] Modifying RadioGroup
Hi Andrew, if you start the RadioGroup in an invisible spot, it will render correctly, as in span jwcid=@RadioGroup tr tdradiogroup1 option 1 //td tdradiogroup2 option 1 //td /tr tr tdradiogroup1 option 2 //td tdradiogroup2 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 tdradiogroup1 option 1 //td tdradiogroup2 option 1 //td /tr tr tdradiogroup1 option 2 //td tdradiogroup2 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