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

Thank you!

I tried "simple" theme, but it seems that all label, tooltip parameters in the form does not work than.

Is there a simple way that
<s:textfield label="test_lable" tooltip="..." theme="simple?" >

Still display label and tooltip still work?

Thanks a lot!

-e

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to