You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Allen Gilliland <al...@sun.com> on 2007/05/17 01:59:26 UTC

checkboxlist formatted vertically?

is there any way to make checkboxes created from a checkboxlist 
formatted vertically by adding a <br/> after each checkbox or some other 
means.  right now it just dumps them all out in a row.

same thing for the radio button options.

-- Allen

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: checkboxlist formatted vertically?

Posted by Josh Vickery <jo...@vickeryj.com>.
I agree!  I would use checkboxes instead of a checkboxlist rather than
write my own theme.  I did something like that recently:

<ul>
  <s:iterator value="questions">
    <li>
      <s:checkbox name="assignedQuestionIdMap[%{id}]"/><jsp:include
page="/web/includes/question.jsp"/>
    </li>
  </s:iterator>
</ul>


On 5/17/07, Allen Gilliland <al...@sun.com> wrote:
> yeah, this is for struts2.  that's a shame, hacking my own theme just so
> that my list gets formatted vertically seems overkill :(
>
> -- Allen
>
>
> Nuwan Chandrasoma wrote:
> > Hi,
> >
> > Is this struts 2 or 1.x?
> >
> > in struts 2., we can create a theme , i think this may help you, but i
> > am not sure this is the best solution for your problem
> >
> > http://www.vitarara.org/cms/struts_2_cookbook/creating_a_theme
> >
> > Thanks,
> >
> > Nuwan
> >
> >
> > ----- Original Message ----- From: "Allen Gilliland"
> > <al...@sun.com>
> > To: "Struts Users Mailing List" <us...@struts.apache.org>
> > Sent: Wednesday, May 16, 2007 11:59 PM
> > Subject: checkboxlist formatted vertically?
> >
> >
> >> is there any way to make checkboxes created from a checkboxlist
> >> formatted vertically by adding a <br/> after each checkbox or some
> >> other means. right now it just dumps them all out in a row.
> >>
> >> same thing for the radio button options.
> >>
> >> -- Allen
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: checkboxlist formatted vertically?

Posted by Allen Gilliland <al...@sun.com>.
yeah, this is for struts2.  that's a shame, hacking my own theme just so 
that my list gets formatted vertically seems overkill :(

-- Allen


Nuwan Chandrasoma wrote:
> Hi,
> 
> Is this struts 2 or 1.x?
> 
> in struts 2., we can create a theme , i think this may help you, but i 
> am not sure this is the best solution for your problem
> 
> http://www.vitarara.org/cms/struts_2_cookbook/creating_a_theme
> 
> Thanks,
> 
> Nuwan
> 
> 
> ----- Original Message ----- From: "Allen Gilliland" 
> <al...@sun.com>
> To: "Struts Users Mailing List" <us...@struts.apache.org>
> Sent: Wednesday, May 16, 2007 11:59 PM
> Subject: checkboxlist formatted vertically?
> 
> 
>> is there any way to make checkboxes created from a checkboxlist 
>> formatted vertically by adding a <br/> after each checkbox or some 
>> other means. right now it just dumps them all out in a row.
>>
>> same thing for the radio button options.
>>
>> -- Allen
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: checkboxlist formatted vertically?

Posted by Nuwan Chandrasoma <my...@gmail.com>.
Hi,

Is this struts 2 or 1.x?

in struts 2., we can create a theme , i think this may help you, but i am 
not sure this is the best solution for your problem

http://www.vitarara.org/cms/struts_2_cookbook/creating_a_theme

Thanks,

Nuwan


----- Original Message ----- 
From: "Allen Gilliland" <al...@sun.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Wednesday, May 16, 2007 11:59 PM
Subject: checkboxlist formatted vertically?


> is there any way to make checkboxes created from a checkboxlist formatted 
> vertically by adding a <br/> after each checkbox or some other means. 
> right now it just dumps them all out in a row.
>
> same thing for the radio button options.
>
> -- Allen
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: checkboxlist formatted vertically?

Posted by Al Sutton <al...@alsutton.com>.
If you want to stay with checkboxlist you'll need to define your own theme
with a template for checkboxes separated by <br/>s.

You can find information on how to do it at;

http://cwiki.apache.org/WW/themes-and-templates.html
 

-----Original Message-----
From: Allen.T.Gilliland@sun.com [mailto:Allen.T.Gilliland@sun.com] On Behalf
Of Allen Gilliland
Sent: 17 May 2007 00:59
To: Struts Users Mailing List
Subject: checkboxlist formatted vertically?

is there any way to make checkboxes created from a checkboxlist formatted
vertically by adding a <br/> after each checkbox or some other means.  right
now it just dumps them all out in a row.

same thing for the radio button options.

-- Allen

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org