AnsweredAssumed Answered

display aspect property in search results

Question asked by boneill on Jul 15, 2009
Hi all,

I am applying an aspect to the iamges with properties for width, height, image category etc.  I have configured advanced search to allow searching using these custom properties. 

How do I get the search results to include these custom properties in seperate columns. 

So far I have customised the browse.jsp to have the following (eg for image category):


<%– custom image category for details/icons view modes  BON MOD!–%>
<a:column id="col155" style="text-align:left" rendered="#{BrowseBean.browseViewMode == 'details' || BrowseBean.browseViewMode == 'icons'}">
<f:facet name="header">
<a:sortLink id="col155-sort" label="Image Category" value="[b]#{r.properties[\"sim:category\"]}[/b]" styleClass="header"/>
</f:facet>
<h:outputText id="col155-txt" value="[b]#{r.properties[\"sim:category\"]}[/b]">
</h:outputText>
</a:column>



It is showing a column for image category but no values.  Am I missing something, for example will the resultset include custom attributes and is #{r.properties[\"sim:category\"]} this the correect way to reference a custom attribute in an aspect.

Regards

Brian

Outcomes