AnsweredAssumed Answered

SortLink tag in browse.jsp doesn't work

Question asked by zomurn on Nov 19, 2008
Latest reply on Nov 30, 2009 by boucher64
Hello,

I'am displaying my own metadata in my customized browse.jsp.
But I don't manage to sort according to MY custom metadata (it doesn't sort).
The error message is :

18:33:31,238 INFO  [web.data.IDataContainer] Unable to get return type class for RichList column: urgent. Suggest set java type directly in sort component tag.
18:33:31,238 WARN  [web.data.IDataContainer] Unsupported sort data type: class java.lang.Object defaulting to .toString()

caused by class org.alfresco.web.data.Sort

My custom code in browse.jsp :

<a:column id="col15" style="text-align:left" rendered="#{BrowseBean.browseViewMode == 'details'}">
    <f:facet name="header">
      <a:sortLink id="col15-sort" label="Urgent" value="#{r.['{http://www.msc-assurance.fr/model/msc/1.0}urgent']" styleClass="header" />
    </f:facet>
   <h:outputText id="col15-txt" value="#{r.['{http://www.msc-assurance.fr/model/msc/1.0}urgent'] ? 'Oui' : 'Non'}" />
</a:column>

The display works , but not the sort on the column (a d:boolean).
It would be very nice if someone could help me !  :)

Outcomes