Hi, I extended simple theme and defined my own theme. In that coreheadercontrol.ftl that i added and done some work
<#assign hasFieldErrors = parameters.name?exists && fieldErrors?exists && fieldErrors[parameters.name]?exists/> <#if hasFieldErrors> <div errorFor="${parameters.id}"> <#list fieldErrors[parameters.name] as error> <div class="errorDiv"> ${error?html} </div> </#list> </div> </#if> i acheived little bit but the thing is If i have two fields in td. When validation fires the second field is automatically going to new row. And the labels are going on top of text field. pls provide me a solution.ASAP Srikanth Felipe Fraga wrote: > > Hi, > > It is possible to create a new theme extending the one you are using, > overriding the template for the fielderror tag. > > http://struts.apache.org/2.0.14/docs/extending-themes.html > > Or, you can override the fielderror for the theme without creating a > new one. You just need to create a template/themename in the classes > directory and place the template of the modifield fielderror in there. > Struts first looks for theme templates in the classes directory of the > application. > > Felipe > > On Sat, Jan 31, 2009 at 5:53 AM, Srikanth Goud > <srikanth.vaddepa...@lntinfotech.com> wrote: >> >> Hi, >> My requirement is fieldError should appear below/above respective >> fields. >> >> for that i written the following code:- >> <td> >> <s:textfield name="first" label="First" > >> <s:fielderror > >> <s:param>first</s:param> >> </s:fielderror > >> </s:textfield> >> </td> >> >> with this it is working fine but the thing is alignemt is disturbed >> completly >> >> >> when i looked the source code what i found was >> <ul> >> <li>first is required</li> >> </ul> >> >> <input type="text" name="first" value="" id="chk_first"/> >> >> >> these <ul><li> are making alignemt disturb. >> >> I notice that <s:fielderror>...</s:fielderror> is actually replaced >> by *<ul><li>error >> message</li></ul> *in the code. Is there a way to let the >> <s:fielderror> >> tag >> only renders the error message instead of a list? >> >> Pls, help me out from this problem >> >> Srikanth >> -- >> View this message in context: >> http://www.nabble.com/validation-with-simple-theme-tp21760841p21760841.html >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> 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 > > > -- View this message in context: http://www.nabble.com/validation-with-simple-theme-tp21760841p21772246.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org