Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: [S2] Putting a single html input type="text"

Dariusz Wojtas

2007-01-28

Replies:

<s:textfield name="propName" theme="simple"/>

If you use theme 'ajax' (eg. textfield nested within form with theme='ajax')
then it will generate a row with 2 cells, one with label, one with the
input field.
The bonus of 'ajax' is that it automatically generates validation
error mesage on the field level - if there were validation errors.
Look at the 'core' jar for templates. Different themes may generate
different output for tags.

Dariusz Wojtas

On 1/28/07, Omer Basar <omerbasar@(protected):
> Thanks Dave.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.