Re: ComponentNotFoundException when replace a fragment
TestParent.java TestParent.html TestChild.java TestChild.html Output: -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ComponentNotFoundException-when-replace-a-fragment-with-ajax-tp4650898p4650909.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ComponentNotFoundException when replace a fragment
Sorry. In the wicket user forum the stack trace is shown (perhaps the RAW-TAG). I use wicket 6.0.0-beta3 trace: Last cause: Could not find component 'mainContentFragmens:eagrPanel' on page 'class com.vipco.spracherweiterung.CurrentDisplayPage org.apache.wicket.core.request.handler.ComponentNotFoundException: Could not find component 'mainContentFragmens:eagrPanel' on page 'class com.vipco.spracherweiterung.CurrentDisplayPage at org.apache.wicket.core.request.handler.PageAndComponentProvider.getComponent(PageAndComponentProvider.java:182) at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.getComponent(ListenerInterfaceRequestHandler.java:90) at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:231) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:814) at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:253) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:210) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:281) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:188) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:245) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1326) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:479) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:520) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:940) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:409) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:874) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110) at org.eclipse.jetty.server.Server.handle(Server.java:349) at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:441) at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:904) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:565) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:217) at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:50) at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:245) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:598) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:533) at java.lang.Thread.run(Thread.java:722) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ComponentNotFoundException-when-replace-a-fragment-with-ajax-tp4650898p4650902.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
ComponentNotFoundException when replace a fragment
Hey, I have some issues when I replace a fragment in an ajax calback function. There is a parent class and a child class. The parent create an AbstractAjaxTimerBehavior and call in it the fragment with the child class. In the child class there is also an AbstractAjaxTimerBehavior to process some data to show. When I replace in the parent class ajax callback function the fragment, I get the follow exception "ComponentNotFoundException". I think the child ajax request search for the right component, but the component is replaced. How can I tell wicket that the component is no more valid or something else. My stack trace: Best regards Alex -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ComponentNotFoundException-when-replace-a-fragment-tp4650898.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket: Ajax callback onTimer() method not called
Francois Meillet wrote > > It works perfectly with Wicket 6 > > Francois > I migrate my project from wicket 1.5.X to 6.0.0-beta3. I can confirm, the bug is lost =) Thanks for all Alex -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-callback-onTimer-method-not-called-tp4650851p4650868.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket: Ajax callback onTimer() method not called
Hey Francois, thanks for your answer. Wicket 6 is a beta version. Is it stable? I think the problem is, when I call in an ajax callback function like "onTimer()" a panel or something else with also an ajax callback function, the child header javascript for the ajax request is not set in the parent. When I reload the page manually, the child javaScript is add to the parent and everything work fine. But nobody want to reaload the page manually after load it. My current workaround is to call: If it necessary. But the whole page is reload. Greetings alex -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-callback-onTimer-method-not-called-tp4650851p4650864.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket: Ajax callback onTimer() method not called
I use wicket 1.5 to develop a webapplication. I have three webpages, the homePage, the ParentWebpage and a Panel. When I setup an AbstractAjaxTimerBehavior in the ParentWebpage and call in the callback function onTimer() the Panel, every thing is alright.But in the panel is also an AbstractAjaxTimerBehavior and the callback function onTimer is never called, but why?? Here my example: HomePage.java BookmarkablePageLink bookmarkablePageLink = new BookmarkablePageLink("linkToCurrentDiagnosePage", TestParent.class); bookmarkablePageLink.add("label"); item.add(bookmarkablePageLink); --> now I can navigate to the TestParent class TestParent.java public class TestParent extends WebPage { /** The Constant logger. */ private static final Logger LOGGER = Logger.getLogger(TestParent.class); boolean isSet = false; public TestParent() { LOGGER.error("Parent -> Cstr"); Fragment fragment = new Fragment("fragments", "fragment1", TestParent.this); fragment.setOutputMarkupId(true); add(fragment); add(new AbstractAjaxTimerBehavior(Duration.seconds(1)) { @Override protected void onTimer(AjaxRequestTarget target) { LOGGER.error("Parent -> I'am here"); if(isSet == false){ LOGGER.error("Parent -> I set the panel"); isSet = true; Fragment fragment = new Fragment("fragments", "fragment2", TestParent.this); fragment.setOutputMarkupId(true); fragment.add(new TestChild("panel")); TestParent.this.replace(fragment); target.add(fragment); } } }); } } TestParent.html http://www.w3.org/TR/html4/loose.dtd";> Insert title here FILL TEXT [message] TestChild.java public class TestChild extends Panel { private static final Logger LOGGER = Logger.getLogger(TestChild.class); public TestChild(String id) { super(id); LOGGER.error("Child -> Cstr"); add(new AbstractAjaxTimerBehavior(Duration.seconds(1)) { @Override protected void onTimer(AjaxRequestTarget target) { LOGGER.error("CHILD --> I'am here"); } }); } } TestChild.html http://www.w3.org/TR/html4/loose.dtd";> Insert title here OUTPUT: ERROR - TestParent - Parent -> Cstr ERROR - TestParent - Parent -> I'am here ERROR - TestParent - Parent -> I set the panel ERROR - TestChild - Child -> Cstr ERROR - TestParent - Parent -> I'am here ERROR - TestParent - Parent -> I'am here ERROR - TestParent - Parent -> I'am here ERROR - TestParent - Parent -> I'am here -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Ajax-callback-onTimer-method-not-called-tp4650851.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org