red phoenix wrote:
I read document from struts2 and I know <s:textfield> has
label,name,cssStyle,cssClass,so I use <s:textfield> as follows:
<s:textfield label="Your First Name" name="Fname" cssStyle="test"
cssClass="test">
I want  to set label "Your First Name" as red color and font size is 6,but
when I execute above code,I found label "Your First Name" is still black
color and not red color and its size is not 6,why? How to define label
attribute in <s:textfield> to realize above function?

Well, 'test' isn't a valid CSS rule so setting cssStyle to that's not going to do anything. And setting the CSS class to 'test' will only have any effect if you define a stylesheet rule for that class.

My other question is when execute <s:textfield ...>,it will shows follows:
                        ----------------
Your First Name:|    Mary    |
                        ----------------
I want to know how to set its length,such as label "Your First Name" occupy
30% width of line and "Mary" occupy 70% width of line?

You should be able to meet both sets of requirements by defining the appropriate CSS rules. Depending on what theme you're using, you may or may not need to customize the tag templates to get all the CSS styling hooks you need, though.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to