Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 75223 invoked from network); 15 Nov 2005 22:57:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Nov 2005 22:57:52 -0000 Received: (qmail 51811 invoked by uid 500); 15 Nov 2005 22:57:50 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 51773 invoked by uid 500); 15 Nov 2005 22:57:50 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 51755 invoked by uid 99); 15 Nov 2005 22:57:50 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2005 14:57:49 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id B669D126 for ; Tue, 15 Nov 2005 23:57:28 +0100 (CET) Message-ID: <1575230923.1132095448745.JavaMail.jira@ajax.apache.org> Date: Tue, 15 Nov 2005 23:57:28 +0100 (CET) From: "Bruno Aranda (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Commented: (MYFACES-487) Sometimes Submit button has problems ... In-Reply-To: <1050193549.1125837690399.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/MYFACES-487?page=comments#action_12357737 ] Bruno Aranda commented on MYFACES-487: -------------------------------------- Could you post some snippets of your code?. It would help to undersant the problem... > Sometimes Submit button has problems ... > ---------------------------------------- > > Key: MYFACES-487 > URL: http://issues.apache.org/jira/browse/MYFACES-487 > Project: MyFaces > Type: Bug > Components: Tomahawk > Versions: 1.1.0 > Environment: Linux 2.6.11 Debian. Tomcat5.0 > Reporter: Michael Jenik > > I have two forms . > Each one with a submit button. > Each one inside a tagfile. > The tag is called by my jsp twice. > Each one insida a IDed subview inside an aliasbean declaration. > Each aliasbean makes alias to bean declared inside a bean like memebers: > Thsi is : I have a manages bean which has two memebes in it's declaration .java class. > Theese memers are the beans I'm mekeing alias. > The managed bean (which contains the two bean has the getters and setters for tose beans). > Everything works almost fine. > But sometimes the submit boutton of one of the forms cause error. > Another problem is that the validation of a field of a one of the forms makes apear the validation message in all the forms which have valid input fields. > Here is the error trace for the submit button problem. > StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception > javax.faces.FacesException: cannot add component with id 'submit' and path : {Component-Path : [Class: javax.faces.component.html.HtmlCommandButton,Id: submit]} to its parent component. This might be a problem due to duplicate ids. > at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:411) > at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:280) > at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300) > at javax.faces.webapp.FacesServlet.service(FacesServlet.java:110) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) > at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) > at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) > at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) > at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) > at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) > at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) > at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) > at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > at java.lang.Thread.run(Thread.java:595) > Caused by: org.apache.jasper.JasperException: cannot add component with id 'submit' and path : {Component-Path : [Class: javax.faces.component.html.HtmlCommandButton,Id: submit]} to its parent component. This might be a problem due to duplicate ids. > at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372) > at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:696) > at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:474) > at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:409) > at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312) > at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:405) > ... 30 more > Regards > Thanks in advance. > MichaelJ -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira