[jboss-user] [JBoss Seam] - duplicate id error using ICE data paginator - need help
henrik.lindberg
do-not-reply at jboss.com
Wed Feb 14 16:05:22 EST 2007
I have a problem with getting duplicate id error messages when trying to use an ice data paginator. I know that this is probably not caused by seam, but I am hoping that somone has come across this or something similar and can give me some hints.
I get the following error:
|
| java.lang.IllegalStateException: Client-id : _id45last is duplicated in the faces tree. Component : _id35:_id36:_id45last, path: {Component-Path : [Class: javax
| .faces.component.UIViewRoot,ViewId: /settings.xhtml][Class: com.icesoft.faces.component.UIXhtmlComponent,Id: _id1][Class: com.icesoft.faces.component.UIXhtmlCom
| ponent,Id: _id10][Class: com.icesoft.faces.component.UIXhtmlComponent,Id: _id24][Class: javax.faces.component.html.HtmlPanelGroup,Id: _id34][Class: com.icesoft.
| faces.component.ext.HtmlForm,Id: _id35][Class: com.icesoft.faces.component.paneltabset.PanelTabSet,Id: _id36][Class: com.icesoft.faces.component.paneltabset.Pan
| elTab,Id: _id37][Class: com.icesoft.faces.component.UIXhtmlComponent,Id: _id44][Class: com.icesoft.faces.component.datapaginator.DataPaginator,Id: _id45][Class:
| com.icesoft.faces.component.ext.HtmlCommandLink,Id: _id45last]}
|
when I try to use a dataPaginator that looks like this:
| <ice:dataPaginator for="space_list"
| paginator="true" fastStep="3" paginatorMaxPages="12">
| <f:facet name="first" >
| <ice:graphicImage url="./xmlhttp/css/xp/css-images/arrow-first.gif" style="border:none;" title="First Page" />
| </f:facet>
| <f:facet name="xprevious">
| <ice:graphicImage url="./xmlhttp/css/xp/css-images/arrow-previous.gif" style="border:none;" title="Previous Page" />
| </f:facet>
| <f:facet name="xnext">
| <ice:graphicImage url="./xmlhttp/css/xp/css-images/arrow-next.gif" style="border:none;" title="Next Page" />
| </f:facet>
| <f:facet name="last" >
| <ice:graphicImage url="./xmlhttp/css/xp/css-images/arrow-last.gif" style="border:none;" title="Last Page" />
| </f:facet>
| </ice:dataPaginator>
|
|
Note that I called two facets with a leading "x" to exclude them. If I also exclude the "last" facet - I do not get an error and the code works.
In fact, after trying some configurations I believe that the error occurs when adding a second facet to the dataPaginator - it does not matter in which order I add "first" "last" etc. the second facet will be reported as having a duplicate id.
I am using seam 1.1.6 and ICEFaces 1.5.3 - if that makes a difference.
Greatful for any hints.
Will post the entire facelet in a separate post.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016631#4016631
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016631
More information about the jboss-user
mailing list