0 Replies Latest reply on May 28, 2008 10:50 AM by Guillaume Jeudy

    rich:inplaceInput rendered attribute broken

    Guillaume Jeudy Master

      Hi,

      I am using Seam 2.0.1GA with richfaces 3.2.0GA. I'm using the rich:inplaceInput control which is great by the way. Here's how it is being used:

      <h:outputText id="description" value="#{domInstance.description}" rendered="#{!editable}" />
      <rich:inplaceInput id="description" value="#{domInstance.description}" showControls="true" rendered="#{editable}"/>


      As you see editable el expression is mutually exclusive, therefore 1 and only 1 description control should be rendered. However the inplaceInput doesnt take rendered attribute into account renders anyways.

      When #{editable} evaluates to false I get a facelet exception duplicate Id for a component.

      java.lang.IllegalStateException: duplicate Id for a component domainInstancesForm:j_id52:138:description
       at org.ajax4jsf.application.TreeStrutureNode.apply(TreeStrutureNode.java:50)
       at org.ajax4jsf.application.TreeStrutureNode.apply(TreeStrutureNode.java:72)
       at org.ajax4jsf.application.TreeStrutureNode.apply(TreeStrutureNode.java:72)
       at org.ajax4jsf.application.TreeStrutureNode.apply(TreeStrutureNode.java:72)
       at org.ajax4jsf.application.TreeStrutureNode.apply(TreeStrutureNode.java:72)
       at org.ajax4jsf.application.TreeStrutureNode.apply(TreeStrutureNode.java:72)
       at org.ajax4jsf.application.TreeStrutureNode.apply(TreeStrutureNode.java:72)
       at org.ajax4jsf.application.TreeStrutureNode.apply(TreeStrutureNode.java:72)
       at org.ajax4jsf.application.TreeStrutureNode.apply(TreeStrutureNode.java:72)
       at org.ajax4jsf.application.AjaxStateManager.getTreeStructureToSave(AjaxStateManager.java:161)
       at org.ajax4jsf.application.AjaxStateManager.buildSerializedView(AjaxStateManager.java:270)
       at org.ajax4jsf.application.AjaxStateManager$SeamStateManagerWrapper.saveSerializedView(AjaxStateManager.java:79)
       at org.jboss.seam.jsf.SeamStateManager.saveSerializedView(SeamStateManager.java:64)
       at org.ajax4jsf.application.AjaxStateManager.saveSerializedView(AjaxStateManager.java:257)
       at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:615)
       at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
       at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:189)
       at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
       at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
       at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:276)
       at org.ajax4jsf.Filter.doFilter(Filter.java:175)
       at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:118)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
       at java.lang.Thread.run(Thread.java:595)
      


      Please confirm this is really a bug, alternatively is it possible to render rich:inplaceInput in read-only mode ?

      Thanks,
      -Guillaume