5 Replies Latest reply on Dec 5, 2007 12:34 PM by Florian Marwede

    how to wrap text in h:outputText or similar RF tag?

    Arbi Sookazian Master

      In the following xhtml snippet, noteText can be up to 1000 characters long (defined as varchar(1000) in db table). What is the best way to handle that so it doesn't get cut off (i.e. how to wrap a cell?) I was thinking of something like replacing h:outputText with h:outputTextArea (if it existed)...

      <h:form id="noteLogList1">
       <rich:dataTable value="#{noteAction.getNoteLogList()}" var="myRow">
       <rich:column width="400">
       <f:facet name="header">NoteText</f:facet>
       <h:outputText value="#{myRow.noteText}"/>
       </rich:column>
      
       <rich:column>
       <f:facet name="header">TimeStamp</f:facet>
       <h:outputText value="#{myRow.timeStamp}"/>
       </rich:column>
       </rich:dataTable>
       </h:form>