I haven't tested this but I believe this should be valid:
<tr:inputText styleClass="inputStyle1" label="I a bold label" value="test"/>
<tr:inputText styleClass="inputStyle2" label="I a non-bold label"
value="test"/>
af|inputText.inputStyle1 af|inputText::label {
font-weight: bold;
}
As long as the styleClass gets applied to the root DOM element of the
inputText, that root DOM element also has "af|inputText" as its default
style class, then this should work. If that isn't the case then we can
investigate alternatives.
Thanks,
Matt
On 8/22/07, Francisco Passos <[EMAIL PROTECTED]> wrote:
>
> Hello all!
>
> I intend to know what I need to define in my skin to be able to do
> something like this.
>
> If I use:
>
> <tr:inputText styleClass="inputStyle1" ....
>
> I want my inputText label to be bold.
>
> And if I use:
>
> <tr:inputText styleClass="inputStyle2" ....
>
> I want my inputText label to not be bold.
>
>
> I know that I can use the css class af|inputText::label to define global
> inputText behaviour.
> But in this case, I want to define specific behaviour. I chose this
> example, because it clearly illustrates my need to have more than one kind
> of component style within the same skin.
>