Duplicated Client-ID if use a DataScroller in Portlet
-----------------------------------------------------
Key: TOMAHAWK-775
URL: http://issues.apache.org/jira/browse/TOMAHAWK-775
Project: MyFaces Tomahawk
Issue Type: Bug
Components: Data Scroller
Affects Versions: 1.1.5-SNAPSHOT
Environment: Windows XP, WebSphere Portalserver 5.1
Reporter: Martin Baschnagel
Priority: Critical
Fix For: 1.1.5-SNAPSHOT
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>
...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira