0 Replies Latest reply on Jul 3, 2008 1:34 PM by Anne Chou

    Extra column header in rich:dataTable with upgrade to RichFa

    Anne Chou Newbie

      In both IE7 and Firefox, the following rich:dataTable rendered correctly with RichFaces 3.1.4.GA. Upgrading to RichFaces 3.2.1.GA resulted in an extra blank column on the right side of the table. Upon inspecting the source using FireBug, it seems that an extra blank column header is created which in turn results in the entire extra column in the table. Any reason why this would behave differently in 3.2.1.GA?

      <rich:dataTable id="logHistory"
      rendered="#{!empty(logManager.searchLogs.logList)}"
      value="#{logManager.searchLogs.logList}" var="item"
      cellpadding="0" cellspacing="0" border="1"
      rowKeyVar="row" width="950px" columns="15"
      rowClasses="metadata, logText"
      >

      <f:facet name="header">Log History</f:facet>
      <rich:column>
      <f:facet name="header">
      <h:outputText value="Id" />
      </f:facet>
      <h:outputText value="#{item.id}"/>
      </rich:column>
      <rich:column>
      <f:facet name="header">
      <h:outputText value="Title" />
      </f:facet>
      <h:outputText value="#{item.title}"/>
      </rich:column>
      <rich:column>
      <f:facet name="header">
      <h:outputText value="Test Name" />
      </f:facet>
      <h:outputText value="#{item.testName}" />
      </rich:column>

      <rich:column>
      <f:facet name="header">
      <h:outputText value="Test Bed" />
      </f:facet>
      <h:outputText value="#{item.testBed}" />
      </rich:column>
      <rich:column>
      <f:facet name="header">
      <h:outputText value="PCN #" />
      </f:facet>
      <h:outputText value="#{item.pcn}" />
      </rich:column>
      <rich:column>
      <f:facet name="header">
      <h:outputText value="Run #" />
      </f:facet>
      <h:outputText value="#{item.run}" />
      </rich:column>
      <rich:column>
      <f:facet name="header">
      <h:outputText value="Mission" />
      </f:facet>
      <h:outputText value="#{item.mission}" />
      </rich:column>
      <rich:column>
      <f:facet name="header">
      <h:outputText value="Lab" />
      </f:facet>
      <h:outputText value="#{item.lab}" />
      </rich:column>
      <rich:column>
      <f:facet name="header">
      <h:outputText value="Creator" />
      </f:facet>
      <h:outputText value="#{item.adminRecord.creator}" />
      </rich:column>
      <rich:column>
      <f:facet name="header">
      <h:outputText value="Create Date" />
      </f:facet>
      <h:outputText value="#{item.adminRecord.creationDate}" >
      <f:convertDateTime pattern="yyyy-MM-dd HH:mm"/>
      </h:outputText>
      </rich:column>
      <rich:column>
      <f:facet name="header">
      <h:outputText value="User Last Updated" />
      </f:facet>
      <h:outputText value="#{item.adminRecord.modifier}" />
      </rich:column>
      <rich:column>
      <f:facet name="header">
      <h:outputText value="Date Last Updated" />
      </f:facet>
      <h:outputText value="#{item.adminRecord.modificationDate}" >
      <f:convertDateTime pattern="yyyy-MM-dd HH:mm"/>
      </h:outputText>
      </rich:column>
      <rich:column>
      <f:facet name="header">
      <h:outputText value="Entry Type" />
      </f:facet>
      <h:outputText id="entryTypeTip" value="#{item.entryType}" />
      </rich:column>
      <rich:column id="editCol">
      <f:facet name="header">Edit</f:facet>
      <s:link value="Edit"
      action="#{logManager.findById}">
      <f:param name="entryId" value="#{item.id}" />
      </s:link>
      </rich:column>
      <rich:column id="deleteCol">
      <f:facet name="header">Delete</f:facet>
      <s:link value="Delete"
      action="#{logManager.remove}"
      rendered="#{identity.username==item.adminRecord.creator}">
      <f:param name="entryId" value="#{item.id}" />
      </s:link>
      </rich:column>
      <rich:column breakBefore="true" colspan="15">
      <h:outputText value="#{item.entry}"/>
      </rich:column>
      </rich:dataTable>