struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gutostraube <gutostra...@gmail.com>
Subject Re: customize fielderror
Date Sun, 31 May 2009 20:07:19 GMT

Hi all!

I had the same problem here and I wrote the following code to avoid change
the default struts template:

<s:if test="fieldErrors.get('email').size() > 0"><s:property
value="fieldErrors.get('email').get(0)" /></s:if>



newton.dave wrote:
> 
> manub wrote:
>> Yes. <s:fielderror> renders also <ul> and <li> tag, and I don't
need
>> them.
>> I'm in need of a way to showing only the errors for a specific field
>> without
>> having any HTML tag (I need only the plain text).
> 
> You'd either need to create/extend/modify the theme, use CSS, or just do 
> it manually.
> 
> Dave
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/customize-fielderror-tp21990061p23806475.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message