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

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  [] Unable to get return type class for RichList column: urgent. Suggest set java type directly in sort component tag.
18:33:31,238 WARN  [] Unsupported sort data type: class java.lang.Object defaulting to .toString()

caused by class

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.['{}urgent']" styleClass="header" />
   <h:outputText id="col15-txt" value="#{r.['{}urgent'] ? 'Oui' : 'Non'}" />

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