cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Property Access in richList

howejr77
Champ in-the-making
Champ in-the-making
Hello,

I'm trying to customize the browse-sandbox.jsp page so that when it displays the list of files in a folder, I'd like to add a column which will display a "sort-priority" property we have added to the content via attaching an aspect.

The following is an example of the size column that gets printed out:

<%– Size column –%>
<a:column id="col15" style="text-align:left">
<f:facet name="header">
<a:sortLink id="col15-sort" label="#{msg.size}" value="size" styleClass="header"/>
</f:facet>
<h:outputText id="col15-txt" value="#{r.size}">
<a:convertSize />
</h:outputText>
</a:column>

Is there some simple way to change the value parameter of the <hSmiley SurprisedutputText> tag to print out my property instead? If I change it to value="#{r}" it prints out the whole node and I can see that my property is on the node but I can't find the syntax to print out the property itself.

Would really appreciate any help.

Thanks
Ryan
1 REPLY 1

howejr77
Champ in-the-making
Champ in-the-making
I knew if I put a post out there, I'd figure it out shortly afterwards Smiley Happy


<h:outputText id="col117-txt" value="#{r['{http://www.mymodel.com/model/myCustomModel}sortPriority']}" />