AnsweredAssumed Answered

Add a new column in browse.jsp

Question asked by karinemazet on May 13, 2008
Latest reply on Feb 3, 2010 by balaji1_1

I have add a new column in browse.jsp to display a custom aspect  "via:selection" (boolean).

The code is :

<%– Colonne selection–%>
<a:column id="selection" style="text-align:center">
<f:facet name="header">
<a:sortLink id="selection-sort" label="Selection" value="via:selection" styleClass="header"/>
<h:selectBooleanCheckbox id="selection-check" title="selection" value="#{r['via:selection']}" />
<h:outputText id="selection-txt" value="#{r['via:selection']}" />

I have an error message :  "Base r is null".

I have created another columns to display others custom aspects which type is text  and it works very well .
In this case the code is :

<%– Colonne numero –%>
<a:column id="numero" style="text-align:center" rendered="#{BrowseBean.browseViewMode == 'details' || BrowseBean.browseViewMode == 'icons'}">
<f:facet name="header">
<a:sortLink id="numero-sort" label="Numero" value="via:numero" styleClass="header" />
<h:outputText id="numero-txt" value="#{r['via:numero']}" />

Do you have an idea ?