oh, and cut off all the catalina* frames please, they make it a bit too noisy for email reading
-igor On Mon, Apr 21, 2008 at 8:58 PM, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > ok, can you move newexception().printstacktrace() into load() itself, > also override ondetach() and put the same there with a call to > super.ondetach(). lets see where the model detaches... > > -igor > > > > > On Mon, Apr 21, 2008 at 8:50 PM, Warren <[EMAIL PROTECTED]> wrote: > > I created a one page app trying to isolate this problem. Here are the stack > > traces from new Exception().printStackTrace(). This is one Ajax request > from > > a AjaxFormSubmitBehavior("onkeypress"). The code for the class Load is at > > the bottom. > > > > java.lang.Exception > > at load.Load$LoadForm$1.isVisible(Load.java:46) > > at > org.apache.wicket.Component.internalBeforeRender(Component.java:990) > > at org.apache.wicket.Component.beforeRender(Component.java:1027) > > at > > > org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.jav > > a:1513) > > at org.apache.wicket.Component.onBeforeRender(Component.java:3657) > > at > org.apache.wicket.Component.internalBeforeRender(Component.java:995) > > at org.apache.wicket.Component.beforeRender(Component.java:1027) > > at > org.apache.wicket.Component.prepareForRender(Component.java:2139) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget. > > java:698) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget > > .java:605) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:520) > > at > > > org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequ > > estCycleProcessor.java:103) > > at > > > org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:117 > > 2) > > at org.apache.wicket.RequestCycle.step(RequestCycle.java:1241) > > at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1316) > > at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) > > at > > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354) > > at > > > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194) > > at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > > FilterChain.java:186) > > at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > > ain.java:157) > > at > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja > > va:214) > > at > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja > > va:178) > > at > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 > > ) > > at > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 > > ) > > at > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java > > :107) > > at > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > > at > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) > > at > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne > > ction(Http11Protocol.java:731) > > at > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav > > a:524) > > at > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo > > rkerThread.java:80) > > at > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav > > a:684) > > at java.lang.Thread.run(Thread.java:595) > > > > > > ##### load() was first called here > > > > > > java.lang.Exception > > at load.Load$LoadForm$1.isVisible(Load.java:46) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget$3.component(AjaxRequestTarget.java: > > 937) > > at > > org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:821) > > at > > org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:861) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respondHeaderContribution(AjaxReque > > stTarget.java:933) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget. > > java:701) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget > > .java:605) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:520) > > at > > > org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequ > > estCycleProcessor.java:103) > > at > > > org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:117 > > 2) > > at org.apache.wicket.RequestCycle.step(RequestCycle.java:1241) > > at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1316) > > at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) > > at > > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354) > > at > > > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194) > > at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > > FilterChain.java:186) > > at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > > ain.java:157) > > at > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja > > va:214) > > at > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja > > va:178) > > at > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 > > ) > > at > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 > > ) > > at > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java > > :107) > > at > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > > at > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) > > at > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne > > ction(Http11Protocol.java:731) > > at > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav > > a:524) > > at > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo > > rkerThread.java:80) > > at > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav > > a:684) > > at java.lang.Thread.run(Thread.java:595) > > java.lang.Exception > > at load.Load$LoadForm$1.isVisible(Load.java:46) > > at org.apache.wicket.Component.renderHead(Component.java:2528) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget$3.component(AjaxRequestTarget.java: > > 939) > > at > > org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:821) > > at > > org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:861) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respondHeaderContribution(AjaxReque > > stTarget.java:933) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget. > > java:701) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget > > .java:605) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:520) > > at > > > org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequ > > estCycleProcessor.java:103) > > at > > > org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:117 > > 2) > > at org.apache.wicket.RequestCycle.step(RequestCycle.java:1241) > > at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1316) > > at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) > > at > > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354) > > at > > > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194) > > at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > > FilterChain.java:186) > > at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > > ain.java:157) > > at > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja > > va:214) > > at > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja > > va:178) > > at > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 > > ) > > at > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 > > ) > > at > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java > > :107) > > at > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > > at > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) > > at > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne > > ction(Http11Protocol.java:731) > > at > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav > > a:524) > > at > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo > > rkerThread.java:80) > > at > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav > > a:684) > > at java.lang.Thread.run(Thread.java:595) > > java.lang.Exception > > at load.Load$LoadForm$1.isVisible(Load.java:46) > > at org.apache.wicket.Component.render(Component.java:2277) > > at > org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1240) > > at > > > org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.jav > > a:1407) > > at > > > org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:13 > > 44) > > at > > org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1648) > > at org.apache.wicket.Component.renderComponent(Component.java:2459) > > at > org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1354) > > at org.apache.wicket.markup.html.form.Form.onRender(Form.java:1687) > > at org.apache.wicket.Component.render(Component.java:2296) > > at org.apache.wicket.Component.renderComponent(Component.java:2399) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget. > > java:703) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget > > .java:605) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:520) > > at > > > org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequ > > estCycleProcessor.java:103) > > at > > > org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:117 > > 2) > > at org.apache.wicket.RequestCycle.step(RequestCycle.java:1241) > > at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1316) > > at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) > > at > > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354) > > at > > > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194) > > at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > > FilterChain.java:186) > > at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > > ain.java:157) > > at > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja > > va:214) > > at > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja > > va:178) > > at > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 > > ) > > at > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 > > ) > > at > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java > > :107) > > at > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > > at > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) > > at > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne > > ction(Http11Protocol.java:731) > > at > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav > > a:524) > > at > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo > > rkerThread.java:80) > > at > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav > > a:684) > > at java.lang.Thread.run(Thread.java:595) > > java.lang.Exception > > at load.Load$LoadForm$1.isVisible(Load.java:46) > > at org.apache.wicket.Component.toString(Component.java:3048) > > at org.apache.wicket.Component.toString(Component.java:3027) > > at java.lang.String.valueOf(String.java:2577) > > at java.lang.StringBuffer.append(StringBuffer.java:220) > > at org.apache.wicket.Component.render(Component.java:2284) > > at > org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1240) > > at > > > org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.jav > > a:1407) > > at > > > org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:13 > > 44) > > at > > org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1648) > > at org.apache.wicket.Component.renderComponent(Component.java:2459) > > at > org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1354) > > at org.apache.wicket.markup.html.form.Form.onRender(Form.java:1687) > > at org.apache.wicket.Component.render(Component.java:2296) > > at org.apache.wicket.Component.renderComponent(Component.java:2399) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget. > > java:703) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget > > .java:605) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:520) > > at > > > org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequ > > estCycleProcessor.java:103) > > at > > > org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:117 > > 2) > > at org.apache.wicket.RequestCycle.step(RequestCycle.java:1241) > > at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1316) > > at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) > > at > > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354) > > at > > > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194) > > at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > > FilterChain.java:186) > > at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > > ain.java:157) > > at > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja > > va:214) > > at > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja > > va:178) > > at > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 > > ) > > at > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 > > ) > > at > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java > > :107) > > at > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > > at > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) > > at > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne > > ction(Http11Protocol.java:731) > > at > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav > > a:524) > > at > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo > > rkerThread.java:80) > > at > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav > > a:684) > > at java.lang.Thread.run(Thread.java:595) > > java.lang.Exception > > at load.Load$LoadForm$1.isVisible(Load.java:46) > > at org.apache.wicket.Component.toString(Component.java:3048) > > at org.apache.wicket.Component.toString(Component.java:3027) > > at java.lang.String.valueOf(String.java:2577) > > at java.lang.StringBuffer.append(StringBuffer.java:220) > > at org.apache.wicket.Page.componentRendered(Page.java:387) > > at org.apache.wicket.Component.rendered(Component.java:2512) > > at org.apache.wicket.Component.render(Component.java:2302) > > at > org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1240) > > at > > > org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.jav > > a:1407) > > at > > > org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:13 > > 44) > > at > > org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1648) > > at org.apache.wicket.Component.renderComponent(Component.java:2459) > > at > org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1354) > > at org.apache.wicket.markup.html.form.Form.onRender(Form.java:1687) > > at org.apache.wicket.Component.render(Component.java:2296) > > at org.apache.wicket.Component.renderComponent(Component.java:2399) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget. > > java:703) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget > > .java:605) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:520) > > at > > > org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequ > > estCycleProcessor.java:103) > > at > > > org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:117 > > 2) > > at org.apache.wicket.RequestCycle.step(RequestCycle.java:1241) > > at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1316) > > at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) > > at > > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354) > > at > > > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194) > > at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > > FilterChain.java:186) > > at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > > ain.java:157) > > at > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja > > va:214) > > at > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja > > va:178) > > at > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 > > ) > > at > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 > > ) > > at > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java > > :107) > > at > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > > at > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) > > at > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne > > ction(Http11Protocol.java:731) > > at > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav > > a:524) > > at > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo > > rkerThread.java:80) > > at > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav > > a:684) > > at java.lang.Thread.run(Thread.java:595) > > java.lang.Exception > > at load.Load$LoadForm$1.isVisible(Load.java:46) > > at org.apache.wicket.Component.toString(Component.java:3048) > > at org.apache.wicket.Component.toString(Component.java:3027) > > at java.lang.String.valueOf(String.java:2577) > > at java.lang.StringBuffer.append(StringBuffer.java:220) > > at org.apache.wicket.Component.render(Component.java:2334) > > at > org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1240) > > at > > > org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.jav > > a:1407) > > at > > > org.apache.wicket.MarkupContainer.onComponentTagBody(MarkupContainer.java:13 > > 44) > > at > > org.apache.wicket.markup.html.form.Form.onComponentTagBody(Form.java:1648) > > at org.apache.wicket.Component.renderComponent(Component.java:2459) > > at > org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1354) > > at org.apache.wicket.markup.html.form.Form.onRender(Form.java:1687) > > at org.apache.wicket.Component.render(Component.java:2296) > > at org.apache.wicket.Component.renderComponent(Component.java:2399) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget. > > java:703) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget > > .java:605) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:520) > > at > > > org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequ > > estCycleProcessor.java:103) > > at > > > org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:117 > > 2) > > at org.apache.wicket.RequestCycle.step(RequestCycle.java:1241) > > at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1316) > > at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) > > at > > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354) > > at > > > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194) > > at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > > FilterChain.java:186) > > at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > > ain.java:157) > > at > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja > > va:214) > > at > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja > > va:178) > > at > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 > > ) > > at > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 > > ) > > at > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java > > :107) > > at > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > > at > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) > > at > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne > > ction(Http11Protocol.java:731) > > at > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav > > a:524) > > at > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo > > rkerThread.java:80) > > at > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav > > a:684) > > at java.lang.Thread.run(Thread.java:595) > > java.lang.Exception > > at load.Load$LoadForm$1.isVisible(Load.java:46) > > at org.apache.wicket.Component.renderHead(Component.java:2528) > > at > org.apache.wicket.markup.html.WebPage$1.component(WebPage.java:432) > > at > > org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:821) > > at > > org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:836) > > at > > org.apache.wicket.MarkupContainer.visitChildren(MarkupContainer.java:861) > > at org.apache.wicket.markup.html.WebPage.onDetach(WebPage.java:425) > > at org.apache.wicket.Component.detach(Component.java:1075) > > at > > > org.apache.wicket.ajax.AjaxRequestTarget.detach(AjaxRequestTarget.java:437) > > at org.apache.wicket.RequestCycle.detach(RequestCycle.java:1046) > > at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1334) > > at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) > > at > > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354) > > at > > > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194) > > at > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application > > FilterChain.java:186) > > at > > > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh > > ain.java:157) > > at > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja > > va:214) > > at > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja > > va:178) > > at > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126 > > ) > > at > > > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105 > > ) > > at > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java > > :107) > > at > > > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > > at > > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) > > at > > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne > > ction(Http11Protocol.java:731) > > at > > > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav > > a:524) > > at > > > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo > > rkerThread.java:80) > > at > > > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav > > a:684) > > at java.lang.Thread.run(Thread.java:595) > > > > > > ##### load() was called the second time here > > > > > > public class Load extends WebPage > > { > > public Load() > > { > > super(); > > IModel receiveModel = new LoadableDetachableModel() > > { > > private int load = 1; > > protected Object load() > > { > > load++; > > System.out.println("##### load() called=" > + load); > > return new Dummy(); > > } > > }; > > add(new LoadForm("loadForm", new > CompoundPropertyModel(receiveModel))); > > } > > > > public final class LoadForm extends Form > > { > > public LoadForm(final String id, final IModel model) > > { > > super(id, model); > > setOutputMarkupId(true); > > Label firstName = new Label("firstName") > > { > > @Override > > public boolean isVisible() > > { > > new Exception().printStackTrace(); > > return > !super.getModelObjectAsString().equals(""); > > } > > }; > > firstName.setOutputMarkupId(true); > > firstName.setOutputMarkupPlaceholderTag(true); > > add(firstName); > > Label lastName = new Label("lastName"); > > lastName.setOutputMarkupId(true); > > add(lastName); > > TextField testTextField = new > TextField("textTest", new Model()); > > testTextField.setOutputMarkupId(true); > > testTextField.add(new > AjaxFormSubmitBehavior("onkeypress") > > { > > protected void onSubmit(AjaxRequestTarget > target) > > { > > target.addComponent(LoadForm.this); > > } > > protected void onError(AjaxRequestTarget > target) > > { > > } > > protected IAjaxCallDecorator > getAjaxCallDecorator() > > { > > return new AjaxCallDecorator() > > { > > public CharSequence > decorateScript(CharSequence script) > > { > > return > "if(window.event.keyCode == 13){" + script + "};return > > false;"; > > } > > }; > > } > > }); > > add(testTextField); > > } > > } > > > > public final class Dummy > > { > > private String firstName = "First Name"; > > private String lastName = "Last Name"; > > > > public String getFirstName() > > { > > return firstName; > > } > > public void setFirstName(String firstName) > > { > > this.firstName = firstName; > > } > > public String getLastName() > > { > > return lastName; > > } > > public void setLastName(String lastName) > > { > > this.lastName = lastName; > > > > } > > } > > } > > > > > -----Original Message----- > > > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > > > > > > > Sent: Monday, April 21, 2008 8:09 PM > > > To: users@wicket.apache.org > > > Subject: Re: isVisible() with surrounding Markup and > > > LoadableDetachableModel > > > > > > > > > are you sure it is the same request and there is no redirect in > > > between? do new Exception().printStackTrace() inside your isvisible to > > > see where it is being called from > > > > > > -igor > > > > > > > > > On Mon, Apr 21, 2008 at 7:15 PM, Warren > > > <[EMAIL PROTECTED]> wrote: > > > > I did this in isVisible() and load was called twice. > > > > > > > > public boolean isVisible() > > > > { > > > > return !super.getModelObjectAsString().equals(""); > > > > > > > > > > > > } > > > > > > > > > -----Original Message----- > > > > > From: Igor Vaynberg [mailto:[EMAIL PROTECTED] > > > > > Sent: Monday, April 21, 2008 7:08 PM > > > > > To: users@wicket.apache.org > > > > > Subject: Re: isVisible() with surrounding Markup and > > > > > LoadableDetachableModel > > > > > > > > > > > > > > > loadable detachable model caches the value for the request, so even > > > > > though getobject() is called multiple times, load() is only called > > > > > once. > > > > > > > > > > -igor > > > > > > > > > > > > > > > On Mon, Apr 21, 2008 at 6:59 PM, Warren > > > > > <[EMAIL PROTECTED]> wrote: > > > > > > I have a form that has a lot of labels with surrounding markup > > > > > that needs to > > > > > > be visible based on whether their is a value or empty string. > > > > > The form uses > > > > > > a CompoundPropertyModel based on a LoadableDetachableModel. > > > > > How do I check > > > > > > the model value of a Label in isVisible() without having load() > of > > > > > > LoadableDetachableModel being called twice. > > > > > > > > > > > > > > > > > > <wicket:enclosure > child="lineItem.item.department.departmentName"> > > > > > > <br>Dept: <span > > > > > > > > > wicket:id="lineItem.item.department.departmentName">Supplements</span> > > > > > > </wicket:enclosure> > > > > > > > > > > > > > > > > > > Label departmentName = new > > > > > Label("lineItem.item.department.departmentName") > > > > > > { > > > > > > public boolean isVisible() > > > > > > { > > > > > > // How do I check value without load() being > > > > > called again > > > > > > } > > > > > > }; > > > > > > > > > > > > > > > > > > Thanks, > > > > > > > > > > > > Warren Bell > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]