You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Paul Klaer <pk...@infeurope.lu> on 2005/12/07 14:12:41 UTC
Re: Subview in tiles throws Exception (duplicate id)
Hi,
I found the problem and attached a patch for this issue. Can someone check
the code, test the application again and commit this? Or has anyone other
suggestions for this bug?
We tested this on our application and it works for us.
http://issues.apache.org/jira/browse/MYFACES-857
Regards,
Paul
On Tue, 22 Nov 2005 17:41:51 +0100, Dennis Byrne <de...@dbyrne.net> wrote:
> There's a lot of noise in JIRAs ;-) I'm simply suggesting
> that you may want to give an issue 24 hours on a mailling
> list before you go and create an issue.
>
> ---- Original message ----
>> Date: Tue, 22 Nov 2005 08:09:04 +0100
>> From: "Juergen Melzer" <my...@hotmail.de>
>> Subject: Re: Subview in tiles throws Exception (duplicate
> id)
>> To: users@myfaces.apache.org
>>
>> I don't know what to discuss.
>> I have written a possible solution in the bug entry.
>>
>> I tried now since 2 months to make a good architecture in my
> new company. I
>> use Hibernate (works good), Spring (works great), and
> MyFaces :-( ....
>>
>>
>>> From: Dennis Byrne <de...@dbyrne.net>
>>> Reply-To: "MyFaces Discussion" <us...@myfaces.apache.org>
>>> To: MyFaces Discussion <us...@myfaces.apache.org>,
>>> juergen.melzer@mbb-gelma.de
>>> Subject: Re: Subview in tiles throws Exception (duplicate
> id)
>>> Date: Mon, 21 Nov 2005 22:04:57 -0900
>>>
>>> Hey, whoah ... ;) Get a little discussion going first.
>>>
>>> ---- Original message ----
>>> >Date: Tue, 22 Nov 2005 08:02:20 +0100
>>> >From: "Juergen Melzer" <my...@hotmail.de>
>>> >Subject: Re: Subview in tiles throws Exception (duplicate
>>> id)
>>> >To: users@myfaces.apache.org
>>> >
>>> >Possible solution. But I think this is a bug in myFaces.
> The
>>> restoreview
>>> >doesn't restore the uniqueid counter.....
>>> >I will create a bug entry
>>> >
>>> >
>>> >>From: Dennis Byrne <de...@dbyrne.net>
>>> >>Reply-To: "MyFaces Discussion" <us...@myfaces.apache.org>
>>> >>To: MyFaces Discussion <us...@myfaces.apache.org>,
>>> >>juergen.melzer@mbb-gelma.de
>>> >>Subject: Re: Subview in tiles throws Exception (duplicate
>>> id)
>>> >>Date: Mon, 21 Nov 2005 21:52:46 -0900
>>> >>
>>> >>I noticed this when I started using lots of subviews. It
>>> >>only went away after explictly giving everything an id.
>>> >>
>>> >>---- Original message ----
>>> >> >Date: Tue, 22 Nov 2005 07:49:36 +0100
>>> >> >From: "Juergen Melzer" <my...@hotmail.de>
>>> >> >Subject: Subview in tiles throws Exception (duplicate
> id)
>>> >> >To: users@myfaces.apache.org
>>> >> >
>>> >> >Hi all,
>>> >> >
>>> >> >we use tiles and the myfaces integration. But we get an
>>> >>exception:
>>> >> >javax.faces.FacesException: cannot add component with
>>> >>id '_id13' and path :
>>> >> >{Component-Path : [Class:
>>> >>javax.faces.component.html.HtmlPanelGrid,Id:
>>> >> >_id13]} to its parent component. This might be a
> problem
>>> due
>>> >>to duplicate
>>> >> >ids.
>>> >> > at javax.faces.webapp.UIComponentTag.findComponent
>>> >>(UIComponentTag.java:401)
>>> >> > at javax.faces.webapp.UIComponentTag.doStartTag
>>> >>(UIComponentTag.java:219)
>>> >> >
>>> >> >
>>> >> >I think the problem is that the id is generated after
> the
>>> >> >JspStateManagerImp.restoreTreeStructure is called. But
>>> >>inside the view there
>>> >> >is still the id above.
>>> >> >
>>> >> >Can anyone help?
>>> >> >
>>> >> >Juergen
>>> >> >
>>> >>
>>>
>> _____________________________________________________________
>>> >>____
>>> >> >Haben Spinnen Ohren? Finden Sie es heraus – mit
> dem MSN
>>> >>Suche Superquiz via
>>> >> >http://www.msn-superquiz.de Jetzt mitmachen und
> gewinnen!
>>> >> >
>>> >>
>>> >>Dennis Byrne
>>> >
>>>
>> _____________________________________________________________
>>> ____
>>> >Die neue MSN Suche Toolbar mit Windows-Desktopsuche.
> Suchen
>>> Sie gleichzeitig
>>> >im Web, Ihren E-Mails und auf Ihrem PC! Jetzt neu!
>>> http://desktop.msn.de/
>>> >Jetzt gratis downloaden!
>>> >
>>>
>>> Dennis Byrne
>>
>> _____________________________________________________________
> ____
>> Die neue MSN Suche Toolbar mit Windows-Desktopsuche. Suchen
> Sie gleichzeitig
>> im Web, Ihren E-Mails und auf Ihrem PC! Jetzt neu!
> http://desktop.msn.de/
>> Jetzt gratis downloaden!
>>
>
> Dennis Byrne