-
1. Re: How to apply different style for single output text field?
ma.aqcon Aug 23, 2010 10:10 AM (in response to eswaramoorthy1985)Use style or styleClass attributes of h:outputText!
If you want to highlight only the specialSymbol, split your output text into two texts...
{code}
<h:form id="styleForm" binding="#{Style.initForm}">
<h:panelGrid columns="2">
<h:panelGroup>
<h:outputText value="#{Style.name}"/>
<h:outputText value=" #{Style.specialSymbol}" style="color: red;"/>
</h:panelGroup>
<h:inputText value=""/>
</h:panelGrid>
</h:form>{code}
Hope that helps!
Regards
Michael
-
2. Re: How to apply different style for single output text field?
eswaramoorthy1985 Aug 24, 2010 1:16 AM (in response to ma.aqcon)Hi Michael Abele, Thanks for your reply.
Here i don't use two outputtext component.
I want to acheive this (Name ?) using single h:outputText
<h:panelGrid columns="2"> <h:outputText value="#{Style.name} #{Style.specialSymbol}"/> <h:inputText value=""/> </h:panelGrid>
Is possible to acheive that?
-
3. Re: How to apply different style for single output text field?
ma.aqcon Aug 24, 2010 1:55 AM (in response to eswaramoorthy1985)This works ...
<h:outputText value="#{Style.name} <font style='color: red;'>#{Style.specialSymbol}</font>" escape="false"/>
But I don't think it's a nice solution!