[s2] errorStyleClass equivalent in Struts 2

2009-04-27 Thread Cristian Peraferrer
Hi,

Is there a way in struts2 to point out that there was validation
errors in each input field, like putting an error style using
errorStyleClass (of struts1)?

struts1 example:

html:password property=password styleId=password
errorStyleClass=frmError/

Thanks,
Cris.

-- 
GPG Key-ID: 0x564903FA - JID: corell...@swissjabber.ch

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



Re: [s2] errorStyleClass equivalent in Struts 2

2009-04-27 Thread Dave Newton

Cristian Peraferrer wrote:

Is there a way in struts2 to point out that there was validation
errors in each input field, like putting an error style using
errorStyleClass (of struts1)?

struts1 example:

html:password property=password styleId=password
errorStyleClass=frmError/


The xhtml theme does this by default. The style can be overridden by 
including your own style sheet after the S2 head tag.


Dave


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



Re: [s2] errorStyleClass equivalent in Struts 2

2009-04-27 Thread Burton Rhodes
I use 'cssError'  property with the simple theme. Works on text
fields, but still haven't been able to set css properly for the
datetimepicker.

On 4/27/09, Dave Newton newton.d...@yahoo.com wrote:
 Cristian Peraferrer wrote:
 Is there a way in struts2 to point out that there was validation
 errors in each input field, like putting an error style using
 errorStyleClass (of struts1)?

 struts1 example:

 html:password property=password styleId=password
 errorStyleClass=frmError/

 The xhtml theme does this by default. The style can be overridden by
 including your own style sheet after the S2 head tag.

 Dave


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



-- 
Sent from my mobile device

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



Re: [s2] errorStyleClass equivalent in Struts 2

2009-04-27 Thread Burton Rhodes
I meant 'cssErrorClass'

s:textfield value=[value] cssClass=Data cssErrorClass=DataError
cssStyle=width: 75px /

On Mon, Apr 27, 2009 at 1:25 PM, Burton Rhodes burtonrho...@gmail.com wrote:
 I use 'cssError'  property with the simple theme. Works on text
 fields, but still haven't been able to set css properly for the
 datetimepicker.

 On 4/27/09, Dave Newton newton.d...@yahoo.com wrote:
 Cristian Peraferrer wrote:
 Is there a way in struts2 to point out that there was validation
 errors in each input field, like putting an error style using
 errorStyleClass (of struts1)?

 struts1 example:

 html:password property=password styleId=password
 errorStyleClass=frmError/

 The xhtml theme does this by default. The style can be overridden by
 including your own style sheet after the S2 head tag.

 Dave


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



 --
 Sent from my mobile device


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