You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org> on 2009/12/31 14:59:29 UTC

[jira] Commented: (MYFACES-2470) Relocatable Resources (via outputStylesheet) cause IllegalStateException ( Client-id : xyz is duplicated in the faces tree.)

    [ https://issues.apache.org/jira/browse/MYFACES-2470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12795601#action_12795601 ] 

Matthias Weßendorf commented on MYFACES-2470:
---------------------------------------------

commenting out the above "outputStylesheet", the problem is gone.

==> looks like the relocation of the outputStylesheet resources is going nuts

> Relocatable Resources (via outputStylesheet) cause IllegalStateException ( Client-id : xyz is duplicated in the faces tree.)
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-2470
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2470
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.0.0-alpha, 2.0.0-alpha-2
>            Reporter: Matthias Weßendorf
>
> When having a very simple page, like this:
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:ui="http://java.sun.com/jsf/facelets">
> <h:head id="kopf">
> <h:outputStylesheet id="cssDude" name="matze.css" />
> <h:outputScript id="jsDude" name="jsf.js" library="javax.faces" />
> </h:head>
> <h:body id="body">
> <h:form prependId="false">
>   <h:inputText value="#{sessionScope['hackSimple']}" id="tipper">
>     <f:ajax event="keyup" render="output1" />
>   </h:inputText>
>        
>   <p><h:outputText id="output1" value="#{sessionScope['hackSimple']}" /></p>
> </h:form>
> </h:body>
> </html>
> You are getting an IllegalStateException:
> java.lang.IllegalStateException: Client-id : cssDude is duplicated in the faces tree. Component : cssDude, path: {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /s_ajax.xhtml][Class: javax.faces.component.html.HtmlHead,Id: kopf][Class: javax.faces.component.UIOutput,Id: cssDude]}
> 	at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:515)
> 	at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:530)
> 	at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:530)
> 	at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:468)
> 	at javax.faces.application.StateManager.saveView(StateManager.java:114)
> 	at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveView(JspStateManagerImpl.java:460)
> 	at org.apache.myfaces.view.facelets.FaceletViewDeclarationLanguage.renderView(FaceletViewDeclarationLanguage.java:862)
> 	at org.apache.myfaces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:222)
> 	at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:59)
> 	at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:73)
> 	at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:201)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.