You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by SJ...@SperianProtection.com on 2007/10/19 18:17:56 UTC
Tomhawk DataScroller
Hi All
Have any one used Tomhawk DataScroller ? I am getting duplicate id error
, even tough there is no duplicate id.
thrown : java.lang.IllegalStateException: Client-id :
trade_show_paginatorfirst is duplicated in the faces tree. Component :
TradeShowViewForm:trade_show_pag
inatorfirst, path: {Component-Path : [Class:
org.apache.shale.view.faces.ShaleViewRoot,ViewId:
/jsp/tradeshow/TradeShowView.jsp][Class: javax.faces.component.
html.HtmlForm,Id: TradeShowViewForm][Class:
org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id:
_idJsp49PC_7_TTRSDFH2008J502LOF8MRP30I3_][Class: org.apach
e.myfaces.custom.datascroller.HtmlDataScroller,Id:
trade_show_paginator][Class:
javax.faces.component.html.HtmlCommandLink,Id: trade_show_paginatorfirst]}
at
org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java(Compiled
Code))
at
org.apache.myfaces.application.jsp.JspStateManagerImpl.checkForDuplicateIds(JspStateManagerImpl.java(Compiled
Code))
The tomhawk version we are using is 1.1.5 . In portal application. The
jsp looks like
<t:dataScroller id="trade_show_paginator"
for="trade_show"
fastStep="10"
pageCountVar="pageCount"
pageIndexVar="pageIndex"
styleClass="scroller"
paginator="true"
paginatorMaxPages="10"
paginatorTableClass="paginator"
paginatorActiveColumnStyle="font-weight:bold;"
immediate="true"
actionListener="#{TradeShowListForm.scrollerAction}"
>
<f:facet name="first" >
<t:graphicImage id="tr_first" url="/images/arrow-first.gif"
border="1" />
</f:facet>
<f:facet name="last">
<t:graphicImage id="tr_last" url="/images/arrow-last.gif" border
="1" />
</f:facet>
<f:facet name="previous">
<t:graphicImage id="tr_previous" url=
"/images/arrow-previous.gif" border="1" />
</f:facet>
<f:facet name="next">
<t:graphicImage id="tr_next" url="/images/arrow-next.gif" border
="1" />
</f:facet>
<f:facet name="fastforward">
<t:graphicImage id="tr_fastforward" url="/images/arrow-ff.gif"
border="1" />
</f:facet>
<f:facet name="fastrewind">
<t:graphicImage id="tr_fastrewind" url="/images/arrow-fr.gif"
border="1" />
</f:facet>
</t:dataScroller>
Shipra Jain
Lead System Software Engineer
Sperian
900 Douglas Pike
Smithfield, RI 02917
401-757-2332
http://www.sperianprotection.com
Re: Tomhawk DataScroller
Posted by simon <si...@chello.at>.
The other cause might be using component-bindings that point to beans
that are not request-scoped, particularly as you say that it happens
when you revisit the view. I suggest you check for "binding" attributes
in your pages.
On Fri, 2007-10-19 at 13:55 -0400, SJain@SperianProtection.com wrote:
>
> No , we are using pure JSF , there are no loops .
>
> For the first time the page works fine with the datascroller . error
> come when you go to another page & come back to the page with the
> DataScroller .
> I am using MyFaces 1.1.5 & Tomhawk 1.1.5 . What version are you
> using ?
>
> Shipra Jain
>
>
>
> simon <si...@chello.at>
>
> 10/19/2007 01:23 PM
> Please respond to
> "MyFaces Discussion"
> <us...@myfaces.apache.org>
>
>
>
>
> To
> MyFaces
> Discussion
> <us...@myfaces.apache.org>
> cc
>
> Subject
> Re: Tomhawk
> DataScroller
>
>
>
>
>
>
>
>
> On Fri, 2007-10-19 at 12:17 -0400, SJain@SperianProtection.com wrote:
> >
> > Hi All
> >
> > Have any one used Tomhawk DataScroller ? I am getting duplicate id
> > error , even tough there is no duplicate id.
>
> Yes, I'm using it and have no problem.
>
> Are you perhaps using JSF1.1 + jsp, and using c:if or c:forEach
> somewhere (not necessarily wrapping this component)? That is the
> primary
> cause of duplicated ids I believe.
>
> Regards,
>
> Simon
>
>
>
Re: Tomhawk DataScroller
Posted by SJ...@SperianProtection.com.
No , we are using pure JSF , there are no loops .
For the first time the page works fine with the datascroller . error come
when you go to another page & come back to the page with the DataScroller
.
I am using MyFaces 1.1.5 & Tomhawk 1.1.5 . What version are you using ?
Shipra Jain
simon <si...@chello.at>
10/19/2007 01:23 PM
Please respond to
"MyFaces Discussion" <us...@myfaces.apache.org>
To
MyFaces Discussion <us...@myfaces.apache.org>
cc
Subject
Re: Tomhawk DataScroller
On Fri, 2007-10-19 at 12:17 -0400, SJain@SperianProtection.com wrote:
>
> Hi All
>
> Have any one used Tomhawk DataScroller ? I am getting duplicate id
> error , even tough there is no duplicate id.
Yes, I'm using it and have no problem.
Are you perhaps using JSF1.1 + jsp, and using c:if or c:forEach
somewhere (not necessarily wrapping this component)? That is the primary
cause of duplicated ids I believe.
Regards,
Simon
Re: Tomhawk DataScroller
Posted by simon <si...@chello.at>.
On Fri, 2007-10-19 at 12:17 -0400, SJain@SperianProtection.com wrote:
>
> Hi All
>
> Have any one used Tomhawk DataScroller ? I am getting duplicate id
> error , even tough there is no duplicate id.
Yes, I'm using it and have no problem.
Are you perhaps using JSF1.1 + jsp, and using c:if or c:forEach
somewhere (not necessarily wrapping this component)? That is the primary
cause of duplicated ids I believe.
Regards,
Simon