Francesco,

I changed the code and removed a few <f:subviews>, but I still get the same exception thrown with PanelNavigation_2:

javax.servlet.ServletException: Client-id : _id1 is duplicated in the faces tree.
 javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)
 org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

Interestingly, when the page is first loaded, the JBoss concole window shows a warning for every component on the page:

12:30:37,482 INFO  [[/app]] WARNING: Component _id1 just got an automatic id, be cause there was no id assigned yet. If this component was created dynamically (i.e. not by a JSP tag) you should assign it an explicit static id or assign it the id you get from the createUniqueId from the current UIViewRoot component right after creation!

The thrown exception comes when I click one of the links...

 

Anyone have an idea of what this might be?

Regards,

Gabor


From:  Francesco Consumi <[EMAIL PROTECTED]>
Reply-To:  "MyFaces Discussion" <[email protected]>
To:  [email protected]
Subject:  RE: <jsp:include> messes up my JSF
Date:  Thu, 17 Nov 2005 10:57:05 +0100
>
>>   As far as I can see, I am doing everything according to the
>>book, but it still doesn't work. For PanelNavigation_1, the CSS
>>styles are gone, and for PanelNavigation_2, I get a thrown
>>exception: "javax.servlet.ServletException: Client-id : _id1 is
>>duplicated in the faces tree". I have tried (re)moving <f:subviews>
>>back and forth and changing to <%@ include file%>, but that didn't
>>work either...
>>
>maybe there are too much subviews....
>
>in this form, for me, works:
>
>           <f:subview id="header">
>             <jsp:include page="/inc/page_header.jsp" />
>           </f:subview>
>
>and in page_header.jsp:
>
><%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
><%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
><%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
>
><h:panelGrid id="header_group1" columns="2"
>styleClass="pageHeader1">
>   <h:outputText value="#{initParam.titProg}"/>
></h:panelGrid>
><h:panelGrid id="header_group2" columns="1" styleClass="pageHeader2"
>columnClasses="pageHeader2col1"  >
>   <t:jscookMenu layout="hbr" theme="ThemeOffice" >
>......
>   </t:jscookMenu>
></h:panelGrid>
>
>
>
>
>
>
>--
>Francesco Consumi
>Ufficio Sistemi informativi
>Istituto degli Innocenti
>Piazza SS.Annunziata, 12
>50122 Firenze
>consumi at istitutodeglinnocenti.it
>Tel. +39 055 2037320
>ICQ# 12516133
>
>

Reply via email to