If we use "simple" theme, then also can we make that? On Thu, Nov 13, 2008 at 12:18 PM, Andras Balogh <[EMAIL PROTECTED]> wrote:
> Hi, > > I think the easiest way would be to copy from struts2-core-xx.jar the > validation.js based on the theme and put it in your source package folder . > So example I took template/css_xhtml/validation.js from struts.jar and I > modified the javascript function: > function addError(e, errorText) > { > } > Here the 'e' is the form element so you can easily style it with > javascript. > This applies to the Struts 2.0.11.2, I don't know about newer versions but > I think you can do the same. > > See here about Overriding Templates: > http://struts.apache.org/2.0.12/docs/template-loading.html > > Best regards, > Andras. > > > Adam Lister wrote: > >> I took a look around, and I can't seem to find any way to select an input >> that has an error associated with it using css. The samples I've looked at >> have ways to style the error message text, the label, etc, but no way to >> style an input. I'm not seeing this "red border" either... does anyone >> recall which theme provides this? >> >> Thanks, >> -Adam >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Thanks & Regards Arpan Debroy AOL Online India Private Ltd RMZ EcoSpace Campus 1A Outer Ring Road, Bellandur, Bangalore - 560037 India Mobile No :+9886006306 on-board :+91 (80) 4035 4528 E-mail : [EMAIL PROTECTED]