AnsweredAssumed Answered

Add action link to navigator

Question asked by ribz33 on Dec 7, 2007
Latest reply on Jan 3, 2008 by kevinr
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 :(

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

Thx in advance.

Outcomes