myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruno Aranda (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (MYFACES-487) Sometimes Submit button has problems ...
Date Tue, 15 Nov 2005 22:57:28 GMT
    [ 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


Mime
View raw message