You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Daniel Kröger <kr...@disy.net> on 2007/10/18 10:50:43 UTC
RadioChoice vs. RepeatingView inside RadioGroup
Hi,
using a RadioChoice within my project is out of question because RadioChoice
seems to render the <label>-tag behind the <input type="radio">-Tag
statically, but i need to add a class-attribute to that <label>-tag.
So one attempt could be using a RepeatingView inside the RadioGroup to
dynamically generate the Radios as proposed here:
http://www.nabble.com/Re%3A-Customizing-RadioChoice-p13067505.html
Unfortunately I'm a bit stuck there since I'm quite new to Wicket. Can
someone please provide me with an example for how to use RepeatingView
inside RadioGroup?
Or is there a better way to achieve the desired behavior?
Thanks in advance!
Best regards
Daniel
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
RE: RadioChoice vs. RepeatingView inside RadioGroup
Posted by Daniel Kröger <kr...@disy.net>.
Oh, you're right Martijn. How could I not even think about that!?! ;)
Thanks!
Daniel
> -----Original Message-----
> From: Martijn Dashorst [mailto:martijn.dashorst@gmail.com]
> Sent: Thursday, October 18, 2007 11:13 AM
> To: users@wicket.apache.org
> Subject: Re: RadioChoice vs. RepeatingView inside RadioGroup
>
> Why do you *need* to add a class to the label?
>
> <span wicket:id="radiogroup" class="myradiogroupclass">
> ...
> </span>
>
> css:
>
> .myradiogroupclass label {
> color : red;
> font-size : 72px;
> }
>
> Martijn
>
> On 10/18/07, Daniel Kröger <kr...@disy.net> wrote:
> > Hi,
> >
> > using a RadioChoice within my project is out of question
> because RadioChoice
> > seems to render the <label>-tag behind the <input type="radio">-Tag
> > statically, but i need to add a class-attribute to that <label>-tag.
> >
> > So one attempt could be using a RepeatingView inside the
> RadioGroup to
> > dynamically generate the Radios as proposed here:
> > http://www.nabble.com/Re%3A-Customizing-RadioChoice-p13067505.html
> >
> > Unfortunately I'm a bit stuck there since I'm quite new to
> Wicket. Can
> > someone please provide me with an example for how to use
> RepeatingView
> > inside RadioGroup?
> >
> > Or is there a better way to achieve the desired behavior?
> >
> > Thanks in advance!
> >
> > Best regards
> > Daniel
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
>
> --
> Buy Wicket in Action: http://manning.com/dashorst
> Apache Wicket 1.3.0-beta4 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: RadioChoice vs. RepeatingView inside RadioGroup
Posted by Martijn Dashorst <ma...@gmail.com>.
Why do you *need* to add a class to the label?
<span wicket:id="radiogroup" class="myradiogroupclass">
...
</span>
css:
.myradiogroupclass label {
color : red;
font-size : 72px;
}
Martijn
On 10/18/07, Daniel Kröger <kr...@disy.net> wrote:
> Hi,
>
> using a RadioChoice within my project is out of question because RadioChoice
> seems to render the <label>-tag behind the <input type="radio">-Tag
> statically, but i need to add a class-attribute to that <label>-tag.
>
> So one attempt could be using a RepeatingView inside the RadioGroup to
> dynamically generate the Radios as proposed here:
> http://www.nabble.com/Re%3A-Customizing-RadioChoice-p13067505.html
>
> Unfortunately I'm a bit stuck there since I'm quite new to Wicket. Can
> someone please provide me with an example for how to use RepeatingView
> inside RadioGroup?
>
> Or is there a better way to achieve the desired behavior?
>
> Thanks in advance!
>
> Best regards
> Daniel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
--
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta4 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org