t:commandSortHeader没有被设置样式

时间:2010-06-17 18:21:56

标签: java jsf tomahawk

我有以下JSF:

<t:column styleClass="cb-status-column">
    <f:facet name="header"> 
        <t:commandSortHeader columnName="externalStatus" styleClass="cb-status-column">
            Status
        </t:commandSortHeader>
    </f:facet>
    <h:outputText value="#{tx.externalStatus}" title="#{tx.externalStatus}"/>
</t:column>

不幸的是,它呈现如下:

<th>
  <a href="#" onclick="return oamSubmitForm('transactionsTableForm','cb-activity-table:j_id131');" id="cb-activity-table:j_id131">
    Status
  </a>
</th>

如何让它看起来像这样:

<th class="cb-status-column">
  <a href="#" onclick="return oamSubmitForm('transactionsTableForm','cb-activity-table:j_id131');" id="cb-activity-table:j_id131">
    Status
  </a>
</th>

1 个答案:

答案 0 :(得分:1)

你试过了吗?

<t:column styleClass="cb-status-column" headerstyleClass="cb-status-column">