You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Oliver Kuhl <ol...@gmail.com> on 2006/05/23 14:33:22 UTC

Tobago and duplicate id's

Hi,

I'm new to MyFaces and Tobago. In my first test application I created
a menubar, toolbar and a sheet filled with data from a database. The
first request always works fine an the page gets rendered. A simple
reload leads into an error:

java.lang.IllegalStateException: Client-id : _id6 is duplicated in the
faces tree.

This always happens every second request - one works, the next one
does not. I read about several problems with id's regarding plain JSF.
Should this happen with Facelets and Tobago, too? Is there any other
option than giving each component an id manually?

Regards,
    Ollie.

Re: Tobago and duplicate id's

Posted by Bernd Bohmann <be...@atanion.com>.
Hello Oliver,

there is a known problem with tc:menuRadio and tc:menuCheck.

Please use in 1.0.8-SNAPSHOT:

for menuRadio:

<tc:menuItem action="#{clientConfigController.submit}">
   <f:facet name="items">
      <tc:selectOneRadio value="#{clientConfigController.theme}" >
        <f:selectItems value="#{clientConfigController.themeItems}" />
      </tc:selectOneRadio>
   </f:facet>
</tc:menuItem>

for menuCheckbox:

<tc:menuItem label="#{overviewBundle.toolbar_linkClickme}" >
   <f:facet name="items">
     <tc:selectBooleanCheckbox value="#{demo.bool[0]}" />
   </f:facet>
</tc:menuItem>


A tx alternative tag isn't finished for facelets.

You can download 1.0.8-SNAPSHOT at:

http://people.apache.org/builds/myfaces/nightly/

If you are not using tc:menuRadio or tc:menuCheckbox please send your page.


Regards

Bernd

Oliver Kuhl schrieb:
> Hi,
> 
> I'm new to MyFaces and Tobago. In my first test application I created
> a menubar, toolbar and a sheet filled with data from a database. The
> first request always works fine an the page gets rendered. A simple
> reload leads into an error:
> 
> java.lang.IllegalStateException: Client-id : _id6 is duplicated in the
> faces tree.
> 
> This always happens every second request - one works, the next one
> does not. I read about several problems with id's regarding plain JSF.
> Should this happen with Facelets and Tobago, too? Is there any other
> option than giving each component an id manually?
> 
> Regards,
>    Ollie.
> 

-- 
Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development
Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com
phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333