cancel
Showing results for 
Search instead for 
Did you mean: 

Add a new column in browse.jsp

karinemazet
Champ in-the-making
Champ in-the-making
Hi,

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"/>
</f:facet>
<h:selectBooleanCheckbox id="selection-check" title="selection" value="#{r['via:selection']}" />
<h:outputText id="selection-txt" value="#{r['via:selection']}" />
</a:column>

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" />
</f:facet>
<h:outputText id="numero-txt" value="#{r['via:numero']}" />
</a:column>

Do you have an idea ?

Thanks
2 REPLIES 2

cbosdonnat
Champ in-the-making
Champ in-the-making
Hi Karine,

You should try to put the checkbox readonly like this:
<h:selectBooleanCheckbox id="selection-check" title="selection" value="#{r['custom:selection']}" readonly="true"/>

In this case I doesn't have the problem. The problem appears after having changed the box value and submitted the page form… If the box is readonly there is no more problem.

HTH

balaji1_1
Champ in-the-making
Champ in-the-making
Hi there,
I am in the process of customizing the browse.jsp. Can you let me know what are all the other files that needs to be modified to have the [size=150]custom[/size] modified (browse.jsp) page to get rendered rather than the out of the box one.
In short , are there any files in the extensions directory other than this jsp.

Thanks in advance..
Balaji