Hi Guy!

Would you not need to put 'sortable="true"' in the column tag? Also, when you use the commandSortHeader tag then why not put the sort property name there instead (in the propertyName attribute)?

Simplified to show what I mean:

<t:column sortable="true">
    <f:facet name="header">
<t:commandSortHeader columnName="Campaign name" propertyName="campaign.campaignName" arrow="false">
            <t:outputText value="Campaign name"/>
        </t:commandSortHeader>
    </f:facet>
    <h:outputText value="#{campaign.campaignName}"/>
</t:column>

Was this of any help?

Best regards
Torger Kielland


On 16.09.2009 09:11, Guy Bashan wrote:

Anyone about this issue?
A way of override it?

On Tue, Sep 15, 2009 at 5:14 PM, Guy Bashan <[email protected] <mailto:[email protected]>> wrote:

    Hi,

    I have this column:
    <t:column headerstyle="text-align:left;" style="text-align:left;"
    id="name" sortPropertyName="campaign.campaignName">
      <f:facet name="header">
        <t:commandSortHeader columnName="campaignName" arrow="false"
    immediate="false" styleClass="link_headtb"
                             style="#{sortedColumn ?
    'text-decoration:none;' : ''}">
          <f:facet name="ascending">
            <t:graphicImage value="images/general/arrow_sorting_asc.gif"
    rendered="true" alt="Sort"/>
          </f:facet>
          <f:facet name="descending">
            <t:graphicImage
    value="images/general/arrow_sorting_desc.gif" rendered="true"
    alt="Sort"/>
          </f:facet>
          <h:outputText value="#{bundle['cmp_campaigns.table.title.name
    <http://cmp_campaigns.table.title.name>']} "/>
        </t:commandSortHeader>
      </f:facet>
        <h:outputLink value="cmp_campaign_summary.jspx"
    styleClass="linkBlack">
          <f:param name="campaignId" value="#{campaign.campaignId}"/>
          <h:outputText value="#{campaign.campaignName}"/>
        </h:outputLink>
    </t:column>

    I am trying to make the property: "sortPropertyName" work with no luck.
    I tried:
    - sortPropertyName="campaign.campaignName"
    - sortPropertyName="campaignName"
    - sortPropertyName="#{campaign.campaignName}"

    Nothing works.

    Any idea?

Reply via email to