You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Serkan Camurcuoglu <Se...@telenity.com> on 2009/05/05 12:00:23 UTC

CheckBoxMultipleChoice in two columns

Hi all,
I want to display the choices in a CheckBoxMultipleChoice component in 
two columns, like in a GridView. Currently the CheckBoxMultipleChoice 
generates an <input> element (checkbox), a <label> element for the 
checkbox and a <br/> element (I'm using wicket 1.3.4). I want it to 
generate the choices in a table with two columns. If there are an odd 
number of choices, I want the last cell to be empty. Is there an easy 
way how I can achieve this?

Best regards,

SerkanC


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: CheckBoxMultipleChoice in two columns

Posted by Serkan Camurcuoglu <Se...@telenity.com>.
sorry, I should have tried it before asking.. thanks a lot..



Igor Vaynberg wrote:
> you are wrong.
>
> -igor
>
> On Tue, May 5, 2009 at 9:52 AM, Serkan Camurcuoglu
> <Se...@telenity.com> wrote:
>   
>> but I think checkgroup is for single selection only, am I wrong?
>>
>>
>>
>> Igor Vaynberg wrote:
>>     
>>> use checkgroup and check components.
>>>
>>> -igor
>>>
>>> On Tue, May 5, 2009 at 3:00 AM, Serkan Camurcuoglu
>>> <Se...@telenity.com> wrote:
>>>
>>>       
>>>> Hi all,
>>>> I want to display the choices in a CheckBoxMultipleChoice component in
>>>> two
>>>> columns, like in a GridView. Currently the CheckBoxMultipleChoice
>>>> generates
>>>> an <input> element (checkbox), a <label> element for the checkbox and a
>>>> <br/> element (I'm using wicket 1.3.4). I want it to generate the choices
>>>> in
>>>> a table with two columns. If there are an odd number of choices, I want
>>>> the
>>>> last cell to be empty. Is there an easy way how I can achieve this?
>>>>
>>>> Best regards,
>>>>
>>>> SerkanC
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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
>>>
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>> 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
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: CheckBoxMultipleChoice in two columns

Posted by Igor Vaynberg <ig...@gmail.com>.
you are wrong.

-igor

On Tue, May 5, 2009 at 9:52 AM, Serkan Camurcuoglu
<Se...@telenity.com> wrote:
> but I think checkgroup is for single selection only, am I wrong?
>
>
>
> Igor Vaynberg wrote:
>>
>> use checkgroup and check components.
>>
>> -igor
>>
>> On Tue, May 5, 2009 at 3:00 AM, Serkan Camurcuoglu
>> <Se...@telenity.com> wrote:
>>
>>>
>>> Hi all,
>>> I want to display the choices in a CheckBoxMultipleChoice component in
>>> two
>>> columns, like in a GridView. Currently the CheckBoxMultipleChoice
>>> generates
>>> an <input> element (checkbox), a <label> element for the checkbox and a
>>> <br/> element (I'm using wicket 1.3.4). I want it to generate the choices
>>> in
>>> a table with two columns. If there are an odd number of choices, I want
>>> the
>>> last cell to be empty. Is there an easy way how I can achieve this?
>>>
>>> Best regards,
>>>
>>> SerkanC
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> 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: CheckBoxMultipleChoice in two columns

Posted by Serkan Camurcuoglu <Se...@telenity.com>.
but I think checkgroup is for single selection only, am I wrong?



Igor Vaynberg wrote:
> use checkgroup and check components.
>
> -igor
>
> On Tue, May 5, 2009 at 3:00 AM, Serkan Camurcuoglu
> <Se...@telenity.com> wrote:
>   
>> Hi all,
>> I want to display the choices in a CheckBoxMultipleChoice component in two
>> columns, like in a GridView. Currently the CheckBoxMultipleChoice generates
>> an <input> element (checkbox), a <label> element for the checkbox and a
>> <br/> element (I'm using wicket 1.3.4). I want it to generate the choices in
>> a table with two columns. If there are an odd number of choices, I want the
>> last cell to be empty. Is there an easy way how I can achieve this?
>>
>> Best regards,
>>
>> SerkanC
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: CheckBoxMultipleChoice in two columns

Posted by Igor Vaynberg <ig...@gmail.com>.
use checkgroup and check components.

-igor

On Tue, May 5, 2009 at 3:00 AM, Serkan Camurcuoglu
<Se...@telenity.com> wrote:
> Hi all,
> I want to display the choices in a CheckBoxMultipleChoice component in two
> columns, like in a GridView. Currently the CheckBoxMultipleChoice generates
> an <input> element (checkbox), a <label> element for the checkbox and a
> <br/> element (I'm using wicket 1.3.4). I want it to generate the choices in
> a table with two columns. If there are an odd number of choices, I want the
> last cell to be empty. Is there an easy way how I can achieve this?
>
> Best regards,
>
> SerkanC
>
>
> ---------------------------------------------------------------------
> 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