Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-775

Duplicated Client-ID if use a DataScroller in Portlet

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 1.1.5-SNAPSHOT
    • None
    • Data Scroller
    • None
    • Windows XP, WebSphere Portalserver 5.1

    Description

      I know there is an alike Issue-Report (596), but I have the specify problem, that the DataScroller-ID it selfs is duplicated in the faces tree.
      The DataScroller is normaly binded in JSP and is successfully dispayed. If Iclick a paginator-link the first time it functions nice,
      but the second times there will occur follow error:

      Caused by: java.lang.IllegalStateException: Client-id : _idJsp8first is duplicated in the faces tree. Component : _idJsp1:_idJsp8first, path:

      {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /View.jsp][Class: javax.faces.component.html.HtmlForm,Id: _idJsp1][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp7][Class: org.apache.myfaces.custom.datascroller.HtmlDataScroller,Id: _idJsp8][Class: javax.faces.component.html.HtmlCommandLink,Id: _idJsp8first]}

      at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:326)
      at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:338)
      at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:338)
      at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:335)
      at org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java:338)
      at org.apache.myfaces.application.jsp.JspStateManagerImpl.saveSerializedView(JspStateManagerImpl.java:283)
      at org.apache.myfaces.taglib.core.ViewTag.doAfterBody(ViewTag.java:122)
      at org.apache.jsp._View._jspService(_View.java:849)

      The strange thing is, when I'm not logged in on the portal the datascroller functions without a problem. Perhaps it is my wrong understanding but I don't know what i would make false.

      Thanks
      Martin

      Bellow the JSP-Part with the DataScroller:
      ...
      <h:panelGrid columns="1" styleClass="scrollerTable2" columnClasses="standardTable_ColumnCentered" >
      <t:dataScroller for="data"
      fastStep="10"
      pageCountVar="pageCount"
      pageIndexVar="pageIndex"
      styleClass="scroller"
      paginator="true"
      paginatorMaxPages="9"
      paginatorTableClass="paginator"
      paginatorActiveColumnStyle="font-weight:bold;"
      immediate="false">
      <f:facet name="first" >
      <t:graphicImage url="images/arrow-first.gif" border="1" />
      </f:facet>
      <f:facet name="last">
      <t:graphicImage url="images/arrow-last.gif" border="1" />
      </f:facet>
      <f:facet name="previous">
      <t:graphicImage url="images/arrow-previous.gif" border="1" />
      </f:facet>
      <f:facet name="next">
      <t:graphicImage url="images/arrow-next.gif" border="1" />
      </f:facet>
      <f:facet name="fastforward">
      <t:graphicImage url="images/arrow-ff.gif" border="1" />
      </f:facet>
      <f:facet name="fastrewind">
      <t:graphicImage url="images/arrow-fr.gif" border="1" />
      </f:facet>
      </t:dataScroller>
      </h:panelGrid>
      ...

      Attachments

        Issue Links

          Activity

            People

              lu4242 Leonardo Uribe
              buschi Martin Baschnagel
              Votes:
              5 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: