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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] Reply-To: MyFaces Discussion users@myfaces.apache.org To: MyFaces Discussion users@myfaces.apache.org, [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] Reply-To: MyFaces Discussion users@myfaces.apache.org To: MyFaces Discussion users@myfaces.apache.org, [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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
Re: Subview in tiles throws Exception (duplicate id)
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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] Reply-To: MyFaces Discussion users@myfaces.apache.org To: MyFaces Discussion users@myfaces.apache.org, [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] Reply-To: MyFaces Discussion users@myfaces.apache.org To: MyFaces Discussion users@myfaces.apache.org, [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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
Subview in tiles throws Exception (duplicate id)
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!
Re: Subview in tiles throws Exception (duplicate id)
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 [EMAIL PROTECTED] 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
Re: Subview in tiles throws Exception (duplicate id)
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 [EMAIL PROTECTED] Reply-To: MyFaces Discussion users@myfaces.apache.org To: MyFaces Discussion users@myfaces.apache.org, [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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!
Re: Subview in tiles throws Exception (duplicate id)
Hey, whoah ... ;) Get a little discussion going first. Original message Date: Tue, 22 Nov 2005 08:02:20 +0100 From: Juergen Melzer [EMAIL PROTECTED] 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 [EMAIL PROTECTED] Reply-To: MyFaces Discussion users@myfaces.apache.org To: MyFaces Discussion users@myfaces.apache.org, [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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
Re: Subview in tiles throws Exception (duplicate id)
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 [EMAIL PROTECTED] Reply-To: MyFaces Discussion users@myfaces.apache.org To: MyFaces Discussion users@myfaces.apache.org, [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] Reply-To: MyFaces Discussion users@myfaces.apache.org To: MyFaces Discussion users@myfaces.apache.org, [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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!