you can't have several 'style' in a same outputtext.
The output text has 1 value and 1 style.
if you want several style, your have to split your outputtext:
<h:outputText value="#{myBean.myFirstname} " style="color: #eeeeee"/>
<h:outputText value="#{myBean.mySurname}" style="color: #ffffee"/>
(notice i included the space in first value)
En l'instant précis du 01/26/07 09:33, Thomas Chang s'exprimait en ces
termes:
> How can I set the color of each value? Such as following?
>
> value="#{myBean.myFirstname} color="#eeeeee" #{myBean.mySurname}
> color="#ffffee"..."/>.
>
> Thomas
>
>
> Simon Lessard <[EMAIL PROTECTED]> schrieb: Hello Thomas,
>
> Yes, you can do it using <t:outputText value="#{myBean.myFirstname}
> #{myBean.mySurname} ..."/>.
>
> Note the absence of + and the fact that it's a single string value with
> inlined EL expreseeions.
>
>
> Regards,
>
> ~ Simon
>
> On 1/25/07, Thomas Chang <[EMAIL PROTECTED]> wrote: Hi,
>
> Is it possible to put more values in the value="#{...}" such like:
>
> <t:outputText value="#{myBean.myFirstname} + " " + #{myBean.mySurname } +
> ..."/>
>
> Thanks
>
> Thomas
>
>
> ---------------------------------
> NEU: Fragen stellen - Wissen, Meinungen und Erfahrungen teilen. Jetzt auf
> Yahoo! Clever.
>
>
>
>
>
> ---------------------------------
> Was Sie schon immer wissen wollten aber nie zu Fragen trauten? Yahoo! Clever
> hilft Ihnen.
>