-
1. Display Multiple Lines in Rich:Column ?
ilya40umov Feb 11, 2011 11:25 AM (in response to ashwaja)try this:
<f:facet name="header">
<h:panelGroup>
LineOne <br/> LineTwo
</h:panelGroup>
</f:facet>
Or this:
<h:outputText escape="true" value="LineOne <br/> LineTwo"/>
-
2. Display Multiple Lines in Rich:Column ?
ashwaja Feb 11, 2011 11:43 AM (in response to ilya40umov)Hi,
When i tried this:-
<h:outputText escape="true" value="LineOne <br /> LineTwo" />
i get the below error on console
The value of attribute "value" associated with an element type "h:outputText" must not contain the '<' character.
Thanks,
Harish.
-
3. Display Multiple Lines in Rich:Column ?
ilya40umov Feb 11, 2011 1:36 PM (in response to ashwaja)Well. Obvouisly you can't use escape="true" just by setting value on the page. But if you will try value="#{someBean.value}"(from jsf bean) or value="#{msg.message}"(from resource boundle) it should allow you to use html tags in value.
-
4. Display Multiple Lines in Rich:Column ?
nbelaevski Feb 11, 2011 2:38 PM (in response to ashwaja)Harish,
Do not use h:outputText, wrap just HTML markup into h:panelGroup and place in facet.
-
5. Display Multiple Lines in Rich:Column ?
abhilashkollipara Feb 12, 2011 3:16 AM (in response to ashwaja)try this:
<rich:column width="10%" sortBy="#{list.headerOne}">
<f:facet name="header">
<h:outputText value="LineOne </br> LineTwo" escape="false"/>
</f:facet>
<h:outputText value="#{list.headerValue}" />
</rich:column>
this should display header as:
LineOne
LineTwo
-
6. Display Multiple Lines in Rich:Column ?
ashwaja Feb 14, 2011 3:26 AM (in response to abhilashkollipara)Hi,
Thank you all for your ideas.
I got this solved by using the below answer.
<f:facet name="header">
<h:panelGroup>
LineOne <br/> LineTwo
</h:panelGroup>
</f:facet>
Thanks,
Harish.