cancel
Showing results for 
Search instead for 
Did you mean: 

Add 'Category' as custom column for detail/list-vi

schneika
Champ in-the-making
Champ in-the-making
I have modified browse.jsp with an additional column for the category (aspect) of the documents:

<%– Category column for all view modes –%>
<a:column id="col19" style="text-align:left">
<f:facet name="header">
<a:sortLink id="col19-sort" label="#{msg.category}" value="category" styleClass="header"/>
</f:facet>
<outputText id="col19-txt" value="#{r.category}" />
</a:column>

The column "Category" will be displayed in detail/list-view, but not the related value of the category, the column is empty… how can i get the value of the category-aspect?
2 REPLIES 2

schneika
Champ in-the-making
Champ in-the-making
With the upper code i get the following alfresco.log-Errors:

15:58:30,508 INFO  [org.alfresco.web.data.IDataContainer] Unable to get return type class for RichList column: category. Suggest set java type directly in sort component tag.
15:58:30,509 WARN  [org.alfresco.web.data.IDataContainer] Unsupported sort data type: class java.lang.Object defaulting to .toString()
15:58:33,575 INFO  [org.alfresco.web.data.IDataContainer] Unable to get return type class for RichList column: category. Suggest set java type directly in sort component tag.
15:58:33,576 WARN  [org.alfresco.web.data.IDataContainer] Unsupported sort data type: class java.lang.Object defaulting to .toString()

The result is, that i have a column "Category" but without any content

gavinc
Champ in-the-making
Champ in-the-making