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 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
How are you doing validation now?
In any case, I meant showing field error messages by hand by checking
the field errors map for specific field names, in the HTML/JSP, instead
of having it done by the theme.
Seriously--consider modifying the simple theme (creating your own theme
based on the simple theme) and adding the error message bits of one of
the themes that includes them. Otherwise you'll be adding either a chunk
of JSP to check for field errors, using a custom tag to encapsulate it
somehow, or something fairly similar.
How is it that the project got so far along that changing the theme is
too much work and nobody noticed that validation messages weren't being
displayed?
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org