You should be able to do this, be writing your own theme. Look in the 
struts2-core-2.0.1.jar, all the themes are in "templates" folder, use them as 
reference. You should know freemarker to do this, but I should be easy..

Zafer

----- Original Message ----
From: Struts2 Fan <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[email protected]>
Sent: Saturday, February 3, 2007 5:20:50 PM
Subject: will validation include custom error tag in the next releases?

Hi all,

I really don't like the position of the validation messages. And I
want to use theme="simple" tags always.
So I wonder if we can have the opportunity to have a validation
message such below.

<td>
<s:textfield name="age" theme="simple"/><div name="ageerror"><img
src="images/hata.jpg"></div>
</td>

I want to define a validation for Age field as it is an example on the site.
But if it is an invalid field I want the "ageerror" div to be visible
and if not invisible.

will there be such an option for validation?

If not, please show me a way where to start making such an
implementation :) Because i really want the validation messages
be this way.

Thanks all,







 
____________________________________________________________________________________
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html 

Reply via email to