You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ko...@chalu.cz on 2009/02/26 11:46:41 UTC
s:checkboxlist
BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px;
}Hallo,
is there any way to set that all items (checkboxes) in
s:checkboxlist are in their own line, one checkbox under other.
Defaultly they are all on the same line and I cannot find the way
how to set that each one checkbox has to have their own line :-(
Thanks, Jiri
Re: s:checkboxlist
Posted by Jiří Chaloupka <ko...@chalu.cz>.
Hallo Jim,
perfect, thank you
Jiri
Jim Kiley napsal(a):
> The way I solved this was to add my own theme, and change the xhtml
> theme's "checkboxlist" template to match what I wanted 'my'
> checkboxlist to do.
>
> Under the root of your web app, add a directory named "template".
> Under "template" add a directory called "myapp". Then copy
> checkboxlist.ftl out of the Struts jar into template/myapp, and modify
> it as you wish. Finally, in your JSP, do <s:checkboxlist
> theme="myapp" .../>
>
> This comes up fairly often -- I am happy to add it to the FAQ if
> someone can tell me how I do that.
>
> jk
>
> On Thu, Feb 26, 2009 at 5:46 AM, <konf@chalu.cz
> <ma...@chalu.cz>> wrote:
>
> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px;
> }Hallo,
> is there any way to set that all items (checkboxes) in
> s:checkboxlist are in their own line, one checkbox under other.
> Defaultly they are all on the same line and I cannot find the way
> how to set that each one checkbox has to have their own line :-(
> Thanks, Jiri
>
>
>
>
> --
> Jim Kiley
> Technical Consultant | Summa
> [p] 412.258.3346 [m] 412.445.1729
> http://www.summa-tech.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: s:checkboxlist
Posted by Jim Kiley <jh...@summa-tech.com>.
The way I solved this was to add my own theme, and change the xhtml theme's
"checkboxlist" template to match what I wanted 'my' checkboxlist to do.
Under the root of your web app, add a directory named "template". Under
"template" add a directory called "myapp". Then copy checkboxlist.ftl out
of the Struts jar into template/myapp, and modify it as you wish. Finally,
in your JSP, do <s:checkboxlist theme="myapp" .../>
This comes up fairly often -- I am happy to add it to the FAQ if someone can
tell me how I do that.
jk
On Thu, Feb 26, 2009 at 5:46 AM, <ko...@chalu.cz> wrote:
> BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px;
> }Hallo,
> is there any way to set that all items (checkboxes) in
> s:checkboxlist are in their own line, one checkbox under other.
> Defaultly they are all on the same line and I cannot find the way
> how to set that each one checkbox has to have their own line :-(
> Thanks, Jiri
>
--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com