You can write a new Tag extending TextFieldTag to implement your own
attributes.
or
You can use the theme simple on your textfield so you can write the label
directly in html
TR
TD
LABEL style=color: green
/TD
TD
s:textfield
/TD
/TR
TonyD wrote:
I'am using the qxhtml theme in my
Consider wrapping it in a span class=blah tag...
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
First of all, in my company, I'am representing all my colleagues that have
problems with structs.
Our development tool is Eclipse 3.2.2 and our browser is Microsoft Internet
Explorer.
If I have a form with only one structs tag:
s:checkbox cssStyle=color:red id=myckb name=myckb label=RED
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
I tried your suggestions but still the ccsStyle doesn't change the checkbox
label color.
My checkbox is created using an interator and is display into a table.
I tried changing the td Style=color:green or the tr style but nothing
changes.
Please other suggestions! Thanks.
DNewfield wrote:
I tried but doesn't work.
However I'am using in my form a particular theme qxhtml for displaying
fields horizontaly in a table tag.
I cann't believe it's so hard to change a label color with struts!
Thanks for your reply.
Leena Borle wrote:
You can try this,
set the theme of your form to
TonyD wrote:
I tried your suggestions but still the ccsStyle doesn't change the checkbox
label color.
You're right--cssStyle results in a style attribute on the checkbox, not
on the label.
My checkbox is created using an interator and is display into a table.
I tried changing the td
I have the same problem with a checkbox tag,
if a use the ccsStyle=color:Green to change the label color to green,
it doesn't work at run time and the label remains with a black color!
It's a serious problem. I think Hubert Hers wrote for the same thing.
Could someone help us!
Thanks!
TonyD wrote:
I have the same problem with a checkbox tag,
if a use the ccsStyle=color:Green to change the label color to green,
it doesn't work at run time and the label remains with a black color!
Is it generated by struts and ignored by the browser (if so, maybe
Green and green are not
You can try this,
set the theme of your form to css_xhtml .
If you have any css classe, you can just call them within form elements
like .e.g.
s:submit action=ABC cssClass=buttons /
s:textfield key=myText labelposition=left cssClass=textfield /
Leena
On 7/9/07, Dale Newfield [EMAIL
Hubert Hers wrote:
Hi,
Could anyone tell me how to use CSS styles in Struts2 for controlling the
display of labels, input elements, buttons etc. (s:textfield, s:button,
)?
I can control the display of the key attribute using cssStyle or cssClass,
but did not find a way to do the same with
Hi,
Could anyone tell me how to use CSS styles in Struts2 for controlling the
display of labels, input elements, buttons etc. (s:textfield, s:button,
...)?
I can control the display of the key attribute using cssStyle or cssClass,
but did not find a way to do the same with the tags:
13 matches
Mail list logo