Struts2 Validation not working with theme simple

2009-04-19 Thread Bhaarat Sharma
I have a very weird error. I am trying to do a very simple basic validation like this example: http://struts.apache.org/2.x/docs/basic-validation.html However, If i have the following line in my struts.properties then the validation stops happening and I do not see any errors.

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Dave Newton
Bhaarat Sharma wrote: However, If i have the following line in my struts.properties then the validation stops happening and I do not see any errors. struts.ui.theme=simple Technically, the validation does not stop happening. Has someone seen something like this before? Yes, anybody using

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Bhaarat Sharma
Stop using the simple theme. The simple theme tags don't display error messages--they're simple. You'll either need to switch themes, show field error messages by hand (if you want the messages near the fields), or modify/extend/create a theme to emit the HTML you want. At this time I cant

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Bhaarat Sharma
by the way. I can do without having errors right beside the textfield. I can have them grouped up top On 4/19/09, Bhaarat Sharma bhaara...@gmail.com wrote: Stop using the simple theme. The simple theme tags don't display error messages--they're simple. You'll either need to switch themes,

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Dave Newton
Bhaarat Sharma wrote: At this time I cant afford to change the theme of the site. Because that breaks the html on a lot of pages and would require a lot of effort to correct those pages. Changing to show field error messages by hand would most likely entail significantly more work. show

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Dave Newton
Bhaarat Sharma wrote: by the way. I can do without having errors right beside the textfield. I can have them grouped up top Are you saying the s:fielderror/ tag doesn't render field errors in the simple theme? The template file sure makes it look like it does. Dave

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Bhaarat Sharma
thanks dave! s:fielderror/ worked fine. I was trying too many things so got confused. I have one further question regarding validation. Is it possible to validate a text field only when certain strings are selected from the multiple drop down box. Basically I want to make the text feild

Re: Struts2 Validation not working with theme simple

2009-04-19 Thread Dave Newton
Bhaarat Sharma wrote: thanks dave! s:fielderror/ worked fine. I was trying too many things so got confused. I have one further question regarding validation. Is it possible to validate a text field only when certain strings are selected from the multiple drop down box. Basically I want to