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 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.

>show field error messages by hand (if you want the messages near the fields),

how can i do this? do you mean, by using field validators like on this
link? http://struts.apache.org/2.x/docs/using-field-validators.htmls

Appreciate your help


On 4/19/09, Dave Newton <newton.d...@yahoo.com> wrote:
> 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 the "simple" theme.
>
>> what is the best way to resolve this??
>
> 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.
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

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

Reply via email to