struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jayachandra B <jayachandra1...@gmail.com>
Subject Re: Label CSS or referencing for addFieldError
Date Wed, 11 Dec 2013 11:43:08 GMT
HI,

Can any one tell how to upload files to a particular directory in our
project.


On Wed, Dec 11, 2013 at 5:09 PM, Fabian Richter <frichter@mtg.de> wrote:

> Hi,
>
> how can one add a specific css class/style of the label when instanciating
> like:
>
> <s:textfield label="bla" name="commentField" id="commentField" />
>
> I now had to change theme="simple" and add the css class to the <td> of
> the label but with that I can not reference it with the name when a
> fieldError occurred.
>
> I have:
>
> <s:label theme="simple" key="comment" for="commentField" />
>
> and add an error with addFieldError("commentField", "no comment left") but
> that isnt working. The error is diplayed, but the label isnt red or got
> that exclamation mark in a triangle.
>
> Any ideas how to solve that?
>
> Thx!
>
> Best,
> Fabian
>
>


-- 
Thanks and Regards
Jayachandra

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message