AnsweredAssumed Answered

problem trying to display location

Question asked by stk137 on Sep 25, 2007
Latest reply on Sep 27, 2007 by stk137
so I want to display the location

So I added

<a:panel id="location-header" rendered="#{(NavigationBean.searchContext == null)}">
<div class="mainSubText" style="font-weight:normal;"><h:outputText value="#{msg.location}" />: <r:nodePath value="#{NavigationBean.currentNode.nodeRef}" breadcrumb="true" showLeaf="true" actionListener="#{BrowseBean.clickSpacePath}" /></div>
</a:panel>

Which does display the location except when there's a search which is what I want.  However, if you browse after a search it throws the error below about a duplicate in the faces tree. If I take it out the render condition and let it render with search results, it doesn't happen.

What do I need to do to keep this error from occuring when not showing the location with search results?

javax.faces.FacesException: Client-id : _idJsp19 is duplicated in the faces tree. Component : browse:_idJsp19, path: {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /jsp/browse/browse.jsp][Class: javax.faces.component.html.HtmlForm,Id: browse][Class: org.alfresco.web.ui.common.component.UIPanel,Id: spaces-panel][Class: org.alfresco.web.ui.common.component.data.UIRichList,Id: spacesList][Class: org.alfresco.web.ui.common.component.data.UIColumn,Id: col1][Class: org.alfresco.web.ui.common.component.UIActionLink,Id: col1-act2][Class: javax.faces.component.UIParameter,Id: _idJsp19]}

Outcomes