Hi All,

I've got a problem with embedding the same component into multiple pages that might be a bug. The situation is as follows:

Component C has a form in it that contains a Suggest component. An EventListener is attached to that suggest field (on the onblur event). I found out that I needed to specify the submitForm parameter for this event listener to actually get the form data submitted.

C is embedded in pages A and B. As long as I turn off caching everything works fine. As soon as I turn on caching and access only page A everything's fine as well, but as soon as I access page B after page A has been accessed (also if not triggering the event) I get the following Exception (also happens if accessing A after B so I exclude a problem with this particular page):

No component found in tree for EventListener binding with a matching component id of A/$component...C.

The whole stacktrace follows below. I've searched the archives and found some references that this behavior might be solved if I use an explicit component specification (instead of using annotations) - so I tried that but it didn't make a difference.

What I think is strange is that it searches a component on Page B which has actually its component id prefixed by the name of Page A - this sounds a bit like some variables not getting recalculated correctly when borrowing the component from the pool.

Any ideas or workarounds would be really appreciated.

Thanks
Daniel


No component found in tree for EventListener binding with a matching component id of ValidateEmail/$CPublicBorder. $CRegistration.registrationForm.

Stack Trace:

* org.apache.tapestry.pageload.EventConnectionVisitor.wireElementFormEvent s(EventConnectionVisitor.java:114) * org.apache.tapestry.pageload.EventConnectionVisitor.visitComponent (EventConnectionVisitor.java:86) * $IComponentVisitor_1144d16ac97.visitComponent ($IComponentVisitor_1144d16ac97.java) * $IComponentVisitor_1144d16ac98.visitComponent ($IComponentVisitor_1144d16ac98.java) * org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree (ComponentTreeWalker.java:45) * org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree (ComponentTreeWalker.java:57) * org.apache.tapestry.pageload.ComponentTreeWalker.walkComponentTree (ComponentTreeWalker.java:57) * org.apache.tapestry.pageload.PageLoader.loadPage (PageLoader.java:655)
    * $IPageLoader_1144d16ac85.loadPage($IPageLoader_1144d16ac85.java)
    * $IPageLoader_1144d16ac86.loadPage($IPageLoader_1144d16ac86.java)
* org.apache.tapestry.pageload.PageSource.makeObject (PageSource.java:153) * org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject (GenericKeyedObjectPool.java:797) * org.apache.tapestry.pageload.PageSource.getPage (PageSource.java:177)
    * $IPageSource_1144d16abe2.getPage($IPageSource_1144d16abe2.java)
* org.apache.tapestry.engine.RequestCycle.loadPage (RequestCycle.java:239) * org.apache.tapestry.engine.RequestCycle.getPage (RequestCycle.java:226) * org.apache.tapestry.engine.RequestCycle.activate (RequestCycle.java:559) * org.apache.tapestry.engine.PageService.service (PageService.java:66) * $IEngineService_1144d16ac6c.service ($IEngineService_1144d16ac6c.java) * org.apache.tapestry.services.impl.EngineServiceOuterProxy.service (EngineServiceOuterProxy.java:72) * org.apache.tapestry.engine.AbstractEngine.service (AbstractEngine.java:237) * org.apache.tapestry.services.impl.InvokeEngineTerminator.service (InvokeEngineTerminator.java:54) * $WebRequestServicer_1144d16ac48.service ($WebRequestServicer_1144d16ac48.java) * $WebRequestServicer_1144d16ac44.service ($WebRequestServicer_1144d16ac44.java) * org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.servi ce(WebRequestServicerPipelineBridge.java:61) * $ServletRequestServicer_1144d16ac2a.service ($ServletRequestServicer_1144d16ac2a.java) * org.apache.tapestry.request.DecodedRequestInjector.service (DecodedRequestInjector.java:55) * $ServletRequestServicerFilter_1144d16ac26.service ($ServletRequestServicerFilter_1144d16ac26.java) * $ServletRequestServicer_1144d16ac2c.service ($ServletRequestServicer_1144d16ac2c.java) * org.apache.tapestry.multipart.MultipartDecoderFilter.service (MultipartDecoderFilter.java:52) * $ServletRequestServicerFilter_1144d16ac24.service ($ServletRequestServicerFilter_1144d16ac24.java) * $ServletRequestServicer_1144d16ac2c.service ($ServletRequestServicer_1144d16ac2c.java) * org.apache.tapestry.services.impl.SetupRequestEncoding.service (SetupRequestEncoding.java:53) * $ServletRequestServicerFilter_1144d16ac28.service ($ServletRequestServicerFilter_1144d16ac28.java) * $ServletRequestServicer_1144d16ac2c.service ($ServletRequestServicer_1144d16ac2c.java) * $ServletRequestServicer_1144d16ac1e.service ($ServletRequestServicer_1144d16ac1e.java) * org.apache.tapestry.ApplicationServlet.doService (ApplicationServlet.java:126) * org.apache.tapestry.ApplicationServlet.doGet (ApplicationServlet.java:103)
    * javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    * javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
* org.mortbay.jetty.servlet.ServletHolder.handle (ServletHolder.java:491) * org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1074)
    * com.dkaedv.util.HibernateFilter.doFilter(HibernateFilter.java:33)
* org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1065) * org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:365) * org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:185) * org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) * org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:689) * org.mortbay.jetty.webapp.WebAppContext.handle (WebAppContext.java:391) * org.mortbay.jetty.handler.ContextHandlerCollection.handle (ContextHandlerCollection.java:146) * org.mortbay.jetty.handler.HandlerCollection.handle (HandlerCollection.java:114) * org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139)
    * org.mortbay.jetty.Server.handle(Server.java:285)
* org.mortbay.jetty.HttpConnection.handleRequest (HttpConnection.java:457) * org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete (HttpConnection.java:751)
    * org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
    * org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
    * org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
* org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:329) * org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:475)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to