0 Replies Latest reply on Jun 26, 2006 7:39 AM by Elenh Tsigka

    Datatable presentation problem

    Elenh Tsigka Newbie

      Hi,
      I'm new to seam and I'm facing a problem with the caption tag in the datatable element.
      I need to produce a caption for a table, but the caption facet in the datatable element doesn't produce anything.
      The code I use is:

      <h:dataTable value="..." var="hot" rendered="..." styleClass="dataTable"
      border="1" cellpadding="0" cellspacing="0">

      <f:facet name="caption">Results sorted by Rating</f:facet>
      <h:column>
      <f:facet name="header">Name</f:facet>
      ...
      </h:column>


      I would also like to produce a different "id" attribute for each th element and use this id's value for a "headers" attribute in each td relatively.

      Can anyone help me with the above problems?

      Thanx.