-
1. Re: extendedDataTable text wrap
ilya_shaikovsky Jun 15, 2010 7:41 AM (in response to njtom)you could wrap the text incolumn with div with wrapping css applied and sizes set.
-
2. Re: extendedDataTable text wrap
okianl Jun 15, 2010 11:14 AM (in response to ilya_shaikovsky)Try this:
1. define this style sheet
.hardBreak
{
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}2. in you extendedDataTable:
<rich:column sortable="false" sortBy="#{mptv.description}" width="200px"
label="Description">
<f:facet name="header">
<h:outputText value="Description"/>
</f:facet>
<s:div styleClass="hardBreak">
<h:outputText value="#{mptv.description}" title="#{mptv.description}"/>
</s:div></rich:column>
I hope this helps.
Lucian
-
3. Re: extendedDataTable text wrap
njtom Jun 18, 2010 2:08 PM (in response to okianl)Thanks, but it didn't work.
The row has to be dynamically resized as with a regular data table, since the description text can vary in length. Unless I can get the same functionality, I can't use the extended table.