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>
<#list fieldErrors[parameters.name] as error>
${error?html}
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
> wrote:
>>
>> Hi,
>> My requirement is fieldError should appear below/above respective
>> fields.
>>
>> for that i written the following code:-
>>
>>
>>
>> first
>>
>>
>>
>>
>> with this it is working fine but the thing is alignemt is disturbed
>> completly
>>
>>
>> when i looked the source code what i found was
>>
>>first is required
>>
>>
>>
>>
>>
>> these are making alignemt disturb.
>>
>> I notice that ... is actually replaced
>> by *error
>>message *in the code. Is there a way to let the
>>
>> 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