3 Replies Latest reply on Mar 10, 2011 3:18 AM by nbelaevski

    How to format column in <rich:dataTable>?

    zhangmmu

      Hi All,

       

      I have a question about formatting a column in <rich:dataTable>. I have a column data looks like this

      Q1 (.001)

       

      At first I tried to format, but .001 is not red (because I don't know how to format the extension).

      <rich:column>

      #{answerData.qName}

      <f:verbatim><font color="red"> (</font></f:verbatim>

      #{answerData.extension}

      <f:verbatim><font color="red">)</font></f:verbatim>

      </rich:column>

       

      The second I tried to format data in the model level with <font> tag, the data is not shown in the browser.

      <rich:column>

      <f:verbatim>#{answerData.formattedQNameExtension}</f:verbatim>

      </rich:column>

       

      If anyone can tell me a solution, I really appreciated it.

       

      Ji