Re: Highlighting a field with a validation error in struts 2

2008-11-14 Thread Torsten Krah
Am Mittwoch, 12. November 2008 schrieb Adam Lister: I'm not seeing this red border either... does anyone recall which theme provides this? Afaik no theme does provide this, you have to write your own theme (actual for this input field only) to do this - its really easy to do that.

Re: Highlighting a field with a validation error in struts 2

2008-11-13 Thread Arpan Debroy
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

Highlighting a field with a validation error in struts 2

2008-11-12 Thread Adam Lister
Hi, I'm trying to figure out how apply a class or some kind of style to a input field when there is a validation error in struts 2. I think this is a fairly common thing (apply a highlighted background color to an errored field to focus the user's attention) but it does not seem to be

Re: Highlighting a field with a validation error in struts 2

2008-11-12 Thread Dave Newton
--- On Wed, 11/12/08, Adam Lister [EMAIL PROTECTED] wrote: I'm trying to figure out how apply a class or some kind of style to a input field when there is a validation error in struts 2. I generally just override the supplied CSS (which does things like giving text boxes with errors a red

Re: Highlighting a field with a validation error in struts 2

2008-11-12 Thread Adam Lister
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

Re: Highlighting a field with a validation error in struts 2

2008-11-12 Thread Dave Newton
Sorry if this is a dupe; something funky is happening. --- On Wed, 11/12/08, 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. You should be able to use CSS selectors to get child elements of an element

Re: Highlighting a field with a validation error in struts 2

2008-11-12 Thread Andras Balogh
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) { }