I'am using the "qxhtml" theme in my form.
the output generated is:
<TR>
<TD vAlign=top align=right></TD>
<TD vAlign=top align=left>
<INPUT id=myckb
style="COLOR: red" type=checkbox value=true name=myckb>
<INPUT type=hidden value=true name=__checkbox_myckb>
<LABEL class=checkboxLabel for=myckb>RED</LABEL>
</TD>
</TR>
The Style doesn't effect the label text, I supposed that:
<LABEL style="COLOR: red" class=checkboxLabel for=myckb>RED</LABEL>
was what I wanted to have, how could I obtain that?
Thanks in advance.
DNewfield wrote:
>
> TonyD wrote:
>> First of all, in my company, I'am representing all my colleagues that
>> have
>> problems with structs.
>
> The tool is called Struts. No 'c'.
>
>> If I have a form with only one structs tag:
>>
>> <s:checkbox cssStyle="color:red" id="myckb" name="myckb" label="RED"
>> value="true"/>
>>
>> and if the syntax of this instruction is correct, I should see a checkbox
>> with a red label checked.
>
> Nothing in this tag is setting the color of the label. You're setting
> the text of the label to read "RED", and (hopefully) the style attribute
> of the checkbox to be "color:red".
>
>> What does HTML mean? I know how setting colors with HTML and it works.
>> The problem is structs.
>
> What html does executing this .jsp produce? Either it produces the html
> you think it generates, and IE is not displaying this in the way you
> expect, or it does not produce the html you want it to, and you should
> figure out why.
>
> (hint: In IE, try "view source" on the generated page.)
>
> Have you tried the suggestions offered earlier? For example, did you
> try cssStyle="%{'color:red'}" ?
>
> What theme is this using? Do you have a theme attribute on the s:form
> tag? If not, do you have a struts.ui.theme setting anywhere?
>
> -Dale
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/How-to-control-the-display-of-Struts2-tags-like-s%3Atextfield-tf4032263.html#a11557206
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]