Re: [T4] Modifying RadioGroup

2008-02-05 Thread Jesse Kuhnert
Yeah the RadioGroup/Radio stuff enforces the containment pretty
strictly currently - but as there is no actual notion of an actual
RadioGroup element in html it may make sense to re-think this logic.
An parameter referencing the RadioGroup to use for Radio options might
make sense.

It's too late to see it get in to the 4.1.5 release but if you log a
jira issue it could probably make it in to 4.1.6.

In the meantimeYou may very well have create your own local copy
of Radio that allows for this functionality.

On Feb 5, 2008 10:05 AM, Andrew Ingram <[EMAIL PROTECTED]> wrote:
> 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
> >
> > 
> >   
> > 
> > 
> >   
> >   
> > 
> > 
> >   
> > 
> >
> > 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]
>
>



-- 
Jesse Kuhnert
Tapestry / OGNL / Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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



Re: [T4] Modifying RadioGroup

2008-02-05 Thread Darío Vasconcelos
Hey,

you're right, I didn't notice you were talking about merging visually two
radio groups. Sorry.

I think the easiest way to solve this might be some kind of HTML/CSS trick.
If you really need the two RadioGroup2 options to the right, the trivial
thing would be changing the layout of the table, but I guess your real
problem is a little harder. Anyway, maybe doing some positioning trick might
be easier than trying to invent the RadioWithoutARadioGroup component...

Regards,

Dario

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

> 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
> >
> > 
> >   
> > 
> > 
> >   
> >   
> > 
> > 
> >   
> > 
> >
> > 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]
>
>


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


Re: [T4] Modifying RadioGroup

2008-02-05 Thread Andrew Ingram

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


  


  
  


  


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

2008-02-05 Thread Darío Vasconcelos
Hi Andrew,

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


  


  
  


  


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:
>
> 
> 
> 
> 
> 
> 
> 
> 
>
> 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


[T4] Modifying RadioGroup

2008-02-05 Thread Andrew Ingram

I'm trying to use radio options in the following way:

pseudo-html:










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]