Hi Emi Lu,
The default struts2 tags use themes that determine how they are
formatted as html[1]. The default theme 'xhtml' wraps each form input
inside a table cell and prepends it with a label to the left or above.
The css_xhtml theme uses the same layout with divs.
You have two options:
- use the "simple" theme, which includes no formatting or labels but
gives you complete control of the layout;
- create your theme that sets out the layout you want.
The pages below are a good starting point. It's seems common just use
the simple theme, but if you want to create a lot of forms with similar
layout creating your own theme can be worthwhile.
Hope that helps,
Jeromy Evans
[1] http://struts.apache.org/2.0.11/docs/themes-and-templates.html
Emi Lu wrote:
Hello,
May I know how to keep all checkbox in one line please?
<s:checkbox label="value1" name="value1_search" />
<s:checkbox label="value2" name="value2_search" />
<s:checkbox label="value3" name="value3_search" />
I'd like to display
value1 value2 value3 in one line, but *not*
value1
value2
value3
Did I do something wrong? May I know how to display all tags within
one line please?
Would also like to display <s:textfield> <s:submit> in the same line
as well.
Thank you!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]