cancel
Showing results for 
Search instead for 
Did you mean: 

Add action link to navigator

ribz33
Champ on-the-rise
Champ on-the-rise
Hi,

i want to add a link in navigator.

I did this code :

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="/WEB-INF/alfresco.tld" prefix="a" %>
<%@ taglib uri="/WEB-INF/repo.tld" prefix="r" %>

<%– load a bundle of properties with I18N strings –%>
<f:loadBundle basename="alfresco.messages.webclient" var="msg"/>

<r:navigator id="custom-navigator" activeArea="#{NavigationBean.toolbarLocation}">
<f:verbatim>
<div id="browse-cat-div" class="sidebarButton" style="background-image: url(<%=request.getContextPath()%>/images/parts/navigator_grey_gradient_bg.gif)">
</f:verbatim>
<f:view >
<a:actionLink value="#{msg.my_action}" action="dialog:mydialog" style="font-size: 12px;" id="custom-mydialog" />
</f:view>
<f:verbatim>
</div>
</f:verbatim>
</r:navigator>

All works well except when i switch to shelf and come back to navigator this make an error : Duplicate id in faces tree

Problem come from <f:verbatim> tag.
Only actionLink tag works well except that i have no style on my link Smiley Sad

Have you an idea to display style on my tag without verbatim ?

Thx in advance.
1 REPLY 1

kevinr
Star Contributor
Star Contributor
Just add an explicit ID to the a:actionLink tag i.e.

<a:actionLink id="act-myaction"

Thanks,

Kevin