Re: why is getHomePage called multiple times?
Just now I tried to use Wicket 6.9.0 instead of 6.8.0 and things looks be working now. Now it looks to be working out for me :) But now I have two new problems 1) On the HomePage the AJAX is not working. In the Chrome browser console I can see /Uncaught TypeError: Cannot read property 'offsetWidth' of undefined/ and on firefox it's giving me /TypeError: a[0] is undefined/ it look likes to be some jquery error but unfortunately I am not able to resolve it. NOTE: AJAX is working fine for few other pages of the same application Second is I can see ?0 on my home page which I don't want for the home page. How can I go way with it I really appreciate your support! -- Dev -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/why-is-getHomePage-called-multiple-times-tp1881852p4660187.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: why is getHomePage called multiple times?
On Wed, Jul 10, 2013 at 4:00 PM, dev your@gmail.com wrote: Just now I tried to use Wicket 6.9.0 instead of 6.8.0 and things looks be working now. Now it looks to be working out for me :) But now I have two new problems 1) On the HomePage the AJAX is not working. In the Chrome browser console I can see /Uncaught TypeError: Cannot read property 'offsetWidth' of undefined/ and on firefox it's giving me /TypeError: a[0] is undefined/ it look likes to be some jquery error but unfortunately I am not able to resolve it. NOTE: AJAX is working fine for few other pages of the same application Wicket 6.9.0 comes with jQuery 1.10.1. It seems you use some jQuery plugin which doesn't work with 1.10.1. The easiest way is to set custom jQuery version: application.getJavaScriptLibrarySettings().setJQueryReference(...) Second is I can see ?0 on my home page which I don't want for the home page. How can I go way with it Your page is stateful and that's why it is there. Maybe you use Ajax components in your home page. I really appreciate your support! -- Dev -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/why-is-getHomePage-called-multiple-times-tp1881852p4660187.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: why is getHomePage called multiple times?
Hi I am also facing similar issue, I have an application which was developed in wicket 1.4.18 and sometime back we decided to upgrade the Wicket version to 6.8.0. After making the making and fixing the error I found that for some reasons my HomePage is getting instantiated again and again. I tried to debug the problem but couldn't find any reason behind this. NOTE: The 1.4.18 application is working working and it has no such problem. Please suggest what I should try to fix the problem. -- Dev -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/why-is-getHomePage-called-multiple-times-tp1881852p4660152.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: why is getHomePage called multiple times?
Hi, Put a breakpoint in MyHomePage's constructor and see the stacktrace(s). Paste them here if you are not sure how to read interpret them. On Mon, Jul 8, 2013 at 4:29 PM, dev your@gmail.com wrote: Hi I am also facing similar issue, I have an application which was developed in wicket 1.4.18 and sometime back we decided to upgrade the Wicket version to 6.8.0. After making the making and fixing the error I found that for some reasons my HomePage is getting instantiated again and again. I tried to debug the problem but couldn't find any reason behind this. NOTE: The 1.4.18 application is working working and it has no such problem. Please suggest what I should try to fix the problem. -- Dev -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/why-is-getHomePage-called-multiple-times-tp1881852p4660152.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: why is getHomePage called multiple times?
=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()] 2013-07-08 20:44:50,156 INFO - RequestListenerInterface - registered listener interface [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] 2013-07-08 20:44:50,159 INFO - RequestListenerInterface - registered listener interface [RequestListenerInterface name=IOnChangeListener, method=public abstract void org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()] 2013-07-08 20:44:50,160 INFO - RequestListenerInterface - registered listener interface [RequestListenerInterface name=IRedirectListener, method=public abstract void org.apache.wicket.IRedirectListener.onRedirect()] 2013-07-08 20:44:50,162 INFO - RequestListenerInterface - registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()] 2013-07-08 20:44:50,163 INFO - Application- [wicket.seeker] init: Wicket extensions initializer 2013-07-08 20:44:50,257 INFO - Application- [wicket.seeker] init: org.apache.wicket.velocity.Initializer@5443563e 2013-07-08 20:44:50,631 INFO - Initializer- Initialized Velocity successfully 2013-07-08 20:44:52,411 INFO - WebApplication - [wicket.seeker] Started Wicket version 6.8.0 in DEVELOPMENT mode *** WARNING: Wicket is running in DEVELOPMENT mode. *** *** ^^^*** *** Do NOT deploy to your live server(s) without changing this. *** *** See Application#getConfigurationType() for more information. *** Jul 8, 2013 8:44:54 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring FrameworkServlet 'remoting' Jul 8, 2013 8:46:44 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8080 Jul 8, 2013 8:46:44 PM org.apache.coyote.http11.Http11Protocol start INFO: Starting Coyote HTTP/1.1 on http-8443 Jul 8, 2013 8:46:45 PM org.apache.jk.common.ChannelSocket init INFO: JK: ajp13 listening on /0.0.0.0:8009 Jul 8, 2013 8:46:45 PM org.apache.jk.server.JkMain start INFO: Jk running ID=0 time=0/98 config=null Jul 8, 2013 8:46:45 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 155639 ms HomePage constructor called! 2013-07-08 20:49:38,028 INFO - PropertiesFactory - Loading properties files from jar:file:/D:/workspace_wicketUpgrade/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/seeker/WEB-INF/lib/app-util-1.0-SNAPSHOT.jar!/com/americasjobexchange/wicket-package.properties with loader org.apache.wicket.resource.IsoPropertiesFilePropertiesLoader@71ebd825 2013-07-08 20:49:38,451 INFO - PropertiesFactory - Loading properties files from jar:file:/D:/workspace_wicketUpgrade/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/seeker/WEB-INF/lib/wicket-core-6.8.0.jar!/org/apache/wicket/Application.properties with loader org.apache.wicket.resource.IsoPropertiesFilePropertiesLoader@71ebd825 HomePage constructor called! HomePage constructor called! HomePage constructor called! HomePage constructor called! HomePage constructor called! HomePage constructor called! P.S. I am able to access the HomePage in the browser..but 'coz Tomcat never starts completely..it gives me failure error after sometime. Also I can see a this javascript error Uncaught TypeError: Cannot read property 'offsetWidth' of undefined -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/why-is-getHomePage-called-multiple-times-tp1881852p4660158.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: why is getHomePage called multiple times?
Hey there, That's not a stack trace, that's your console output. Try using Eclipse and then configure your Tomcat for hot-deployment. Start Tomcat in debug mode so that you can set your breakpoint and then extract the stack trace. Alternately, throw a runtime exception from that method and analyze the stack trace that way. However, since that method can be called from different places in the code, you might want to set a break point and analyze the different stack traces it produces. For a brief tutorial on how to configure Eclipse WTP for Tomcat see (or browse the web): http://blog.redfin.com/devblog/2009/09/how_to_set_up_hot_code_replacement_wi th_tomcat_and_eclipse.html http://ducquoc.wordpress.com/2010/11/06/eclipse-wtp-tomcat-hot-deploy/ ~ Thank you, Paul Bors -Original Message- From: dev [mailto:your@gmail.com] Sent: Monday, July 08, 2013 11:38 AM To: users@wicket.apache.org Subject: Re: why is getHomePage called multiple times? Hi, here is the stacktrace.. Jul 8, 2013 8:44:07 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_31\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Wi ndows;C:\Program Files\Java\jdk1.6.0_31\jre\bin;C:\Windows\system32;C:\Windows;C:\Windows\sys tem32\wbem;C:\Program Files\Dell\DW WLAN Card;;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\2.0\bin\x64;C:\Program Files\WIDCOMM\Bluetooth Software;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\Java\jdk1.6.0_31\bin;D:\apache-maven-3.0.4\bin;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\Program Files\TortoiseSVN\bin;D:\apache-ant-1.8.4\bin;C:\Program Files (x86)\QuickTime\QTSystem\;. Jul 8, 2013 8:44:07 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:dataprovider-app' did not find a matching property. Jul 8, 2013 8:44:07 PM org.apache.tomcat.util.digester.SetPropertiesRule begin WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:seeker' did not find a matching property. Jul 8, 2013 8:44:08 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 Jul 8, 2013 8:44:09 PM org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on http-8443 Jul 8, 2013 8:44:09 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 3609 ms Jul 8, 2013 8:44:09 PM org.apache.catalina.core.StandardService start INFO: Starting service Catalina Jul 8, 2013 8:44:09 PM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/6.0.35 SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/D:/apache-tomcat-6.0.35-wicketUpgrade/webapps/cas/WEB-INF/lib/slf 4j-log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/D:/apache-tomcat-6.0.35-wicketUpgrade/webapps/cas/WEB-INF/lib/slf 4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. Jul 8, 2013 8:44:13 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext 2013-07-08 20:44:22,650 INFO [org.jasig.cas.services.DefaultServicesManagerImpl] - Loaded 0 services. 2013-07-08 20:44:28,245 INFO [org.jasig.cas.util.AutowiringSchedulerFactoryBean] - Starting Quartz Scheduler now Jul 8, 2013 8:44:28 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring FrameworkServlet 'cas' Jul 8, 2013 8:44:31 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring FrameworkServlet 'restlet' 2013-07-08 20:44:32,383 WARN [org.springframework.beans.GenericTypeAwarePropertyDescriptor] - Invalid JavaBean property 'attachments' being accessed! Ambiguous write methods found next to actually used [public void org.restlet.ext.spring.SpringRouter.setAttachments(java.util.Map)]: [public static void org.restlet.ext.spring.SpringRouter.setAttachments(org.restlet.Router,java.u til.Map)] Jul 8, 2013 8:44:34 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext 2013-07-08 20:44:42,187 INFO [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - Beginning ticket cleanup. 2013-07-08 20:44:42,191 INFO [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - 0 tickets found to be removed. 2013-07-08 20:44:42,192 INFO [org.jasig.cas.ticket.registry.support.DefaultTicketRegistryCleaner] - Finished ticket cleanup. Jul 8, 2013 8:44:49 PM org.apache.catalina.core.ApplicationContext log INFO: Set web app
RE: why is getHomePage called multiple times?
Hi sorry for the confusion...here is the stack Daemon Thread [http-8080-5] (Suspended (breakpoint at line 81 in HomePage)) HomePage.init(PageParameters) line: 81 NativeConstructorAccessorImpl.newInstance0(Constructor, Object[]) line: not available [native method] NativeConstructorAccessorImpl.newInstance(Object[]) line: 39 DelegatingConstructorAccessorImpl.newInstance(Object[]) line: 27 ConstructorT.newInstance(Object...) line: 513 DefaultPageFactory.newPage(ConstructorC, PageParameters) line: 170 DefaultPageFactory.newPage(ClassC) line: 75 DefaultMapperContext.newPageInstance(ClassIRequestablePage, PageParameters) line: 133 PageProvider.resolvePageInstance(Integer, ClassIRequestablePage, PageParameters, Integer) line: 268 PageProvider.getPageInstance() line: 166 WebPageRenderer(PageRenderer).getPage() line: 78 WebPageRenderer.respond(RequestCycle) line: 244 RenderPageRequestHandler.respond(IRequestCycle) line: 165 RequestCycle$HandlerExecutor.respond(IRequestHandler) line: 861 RequestCycle$HandlerExecutor(RequestHandlerStack).execute(IRequestHandler) line: 64 RequestCycle.execute(IRequestHandler) line: 261 RequestCycle.processRequest() line: 218 RequestCycle.processRequestAndDetach() line: 289 WicketFilter.processRequestCycle(RequestCycle, WebResponse, HttpServletRequest, HttpServletResponse, FilterChain) line: 259 WicketFilter.processRequest(ServletRequest, ServletResponse, FilterChain) line: 201 WicketFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 282 ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 235 ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 206 WicketSessionFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 159 ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 235 ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 206 FilterChainProxy$VirtualFilterChain.doFilter(ServletRequest, ServletResponse) line: 311 J2eePreAuthenticatedProcessingFilter(AbstractPreAuthenticatedProcessingFilter).doFilter(ServletRequest, ServletResponse, FilterChain) line: 88 FilterChainProxy$VirtualFilterChain.doFilter(ServletRequest, ServletResponse) line: 323 HttpServletRequestWrapperFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 62 FilterChainProxy$VirtualFilterChain.doFilter(ServletRequest, ServletResponse) line: 323 Cas20ProxyReceivingTicketValidationFilter(AbstractTicketValidationFilter).doFilter(ServletRequest, ServletResponse, FilterChain) line: 196 FilterChainProxy$VirtualFilterChain.doFilter(ServletRequest, ServletResponse) line: 323 SecurityContextPersistenceFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 87 FilterChainProxy$VirtualFilterChain.doFilter(ServletRequest, ServletResponse) line: 323 FilterChainProxy.doFilter(ServletRequest, ServletResponse, FilterChain) line: 173 DelegatingFilterProxy.invokeDelegate(Filter, ServletRequest, ServletResponse, FilterChain) line: 346 DelegatingFilterProxy.doFilter(ServletRequest, ServletResponse, FilterChain) line: 259 ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 235 ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 206 StandardWrapperValve.invoke(Request, Response) line: 233 StandardContextValve.invoke(Request, Response) line: 191 StandardHostValve.invoke(Request, Response) line: 127 ErrorReportValve.invoke(Request, Response) line: 102 SingleSignOn.invoke(Request, Response) line: 394 StandardEngineValve.invoke(Request, Response) line: 109 CoyoteAdapter.service(Request, Response) line: 293 Http11Processor.process(Socket) line: 859 Http11Protocol$Http11ConnectionHandler.process(Socket) line: 602 JIoEndpoint$Worker.run() line: 489 Thread.run() line: 662 -- Dev -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/why-is-getHomePage-called-multiple-times-tp1881852p4660160.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: why is getHomePage called multiple times?
You could also print stacktrace of all invocations of the constructor by adding this line: new Exception().printStackTrace(); br, Edvard -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/why-is-getHomePage-called-multiple-times-tp1881852p4660161.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: why is getHomePage called multiple times?
Hi, There is nothing wrong here. Are all invocations of your Home page constructor with the same stack traces ? On Mon, Jul 8, 2013 at 8:05 PM, dev your@gmail.com wrote: Hi sorry for the confusion...here is the stack Daemon Thread [http-8080-5] (Suspended (breakpoint at line 81 in HomePage)) HomePage.init(PageParameters) line: 81 NativeConstructorAccessorImpl.newInstance0(Constructor, Object[]) line: not available [native method] NativeConstructorAccessorImpl.newInstance(Object[]) line: 39 DelegatingConstructorAccessorImpl.newInstance(Object[]) line: 27 ConstructorT.newInstance(Object...) line: 513 DefaultPageFactory.newPage(ConstructorC, PageParameters) line: 170 DefaultPageFactory.newPage(ClassC) line: 75 DefaultMapperContext.newPageInstance(ClassIRequestablePage, PageParameters) line: 133 PageProvider.resolvePageInstance(Integer, ClassIRequestablePage, PageParameters, Integer) line: 268 PageProvider.getPageInstance() line: 166 WebPageRenderer(PageRenderer).getPage() line: 78 WebPageRenderer.respond(RequestCycle) line: 244 RenderPageRequestHandler.respond(IRequestCycle) line: 165 RequestCycle$HandlerExecutor.respond(IRequestHandler) line: 861 RequestCycle$HandlerExecutor(RequestHandlerStack).execute(IRequestHandler) line: 64 RequestCycle.execute(IRequestHandler) line: 261 RequestCycle.processRequest() line: 218 RequestCycle.processRequestAndDetach() line: 289 WicketFilter.processRequestCycle(RequestCycle, WebResponse, HttpServletRequest, HttpServletResponse, FilterChain) line: 259 WicketFilter.processRequest(ServletRequest, ServletResponse, FilterChain) line: 201 WicketFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 282 ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 235 ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 206 WicketSessionFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 159 ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 235 ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 206 FilterChainProxy$VirtualFilterChain.doFilter(ServletRequest, ServletResponse) line: 311 J2eePreAuthenticatedProcessingFilter(AbstractPreAuthenticatedProcessingFilter).doFilter(ServletRequest, ServletResponse, FilterChain) line: 88 FilterChainProxy$VirtualFilterChain.doFilter(ServletRequest, ServletResponse) line: 323 HttpServletRequestWrapperFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 62 FilterChainProxy$VirtualFilterChain.doFilter(ServletRequest, ServletResponse) line: 323 Cas20ProxyReceivingTicketValidationFilter(AbstractTicketValidationFilter).doFilter(ServletRequest, ServletResponse, FilterChain) line: 196 FilterChainProxy$VirtualFilterChain.doFilter(ServletRequest, ServletResponse) line: 323 SecurityContextPersistenceFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 87 FilterChainProxy$VirtualFilterChain.doFilter(ServletRequest, ServletResponse) line: 323 FilterChainProxy.doFilter(ServletRequest, ServletResponse, FilterChain) line: 173 DelegatingFilterProxy.invokeDelegate(Filter, ServletRequest, ServletResponse, FilterChain) line: 346 DelegatingFilterProxy.doFilter(ServletRequest, ServletResponse, FilterChain) line: 259 ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 235 ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 206 StandardWrapperValve.invoke(Request, Response) line: 233 StandardContextValve.invoke(Request, Response) line: 191 StandardHostValve.invoke(Request, Response) line: 127 ErrorReportValve.invoke(Request, Response) line: 102 SingleSignOn.invoke(Request, Response) line: 394 StandardEngineValve.invoke(Request, Response) line: 109 CoyoteAdapter.service(Request, Response) line: 293 Http11Processor.process(Socket) line: 859 Http11Protocol$Http11ConnectionHandler.process(Socket) line: 602 JIoEndpoint$Worker.run() line: 489 Thread.run() line: 662 -- Dev -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/why-is-getHomePage-called-multiple-times-tp1881852p4660160.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: why is getHomePage called multiple times?
Jason, the method getHomePage#MyWicketApplication only return the Class of your application home page, an call from Wicket to it's method, doesn't means that an instance of HomePage will to be generated. This is a code from WebRequestCodingStrategy for example: if (!application.getHomePage().equals(pageClass) || !.equals(pageMapName) || (application.getHomePage().equals(pageClass) requestTarget instanceof BookmarkableListenerInterfaceRequestTarget)) 2 calls to getHomePage and none instance was made from home page class On Tue, Sep 1, 2009 at 1:29 AM, Jason Novotny jason.novo...@gmail.comwrote: Hi Nick, I tried with the simplest page: html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket= http://www.w3.org/1999/xhtml; head /head body hello wicket /body /html The good news is that it only happens after loading the app for the first time-- after an additional request is made to the home page, it's instantiated only once. Cheers, Jason Nick Heudecker wrote: Any chance you have empty image src attributes in your home page? On Mon, Aug 31, 2009 at 9:19 PM, Jason Novotny jason.novo...@gmail.com wrote: Hi, My home page takes longer to load than expected and after placing a log line in getHomePage#MyWicketApplication I see that it's being called 3 times: Connected to server gethome page called me! gethome page called me! gethome page called me! Is there sort of a LoadableDetachableModel equivalent for pages, so they are just instantiated one per request cycle? Thanks, Jason - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
why is getHomePage called multiple times?
Hi, My home page takes longer to load than expected and after placing a log line in getHomePage#MyWicketApplication I see that it's being called 3 times: Connected to server gethome page called me! gethome page called me! gethome page called me! Is there sort of a LoadableDetachableModel equivalent for pages, so they are just instantiated one per request cycle? Thanks, Jason - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: why is getHomePage called multiple times?
Any chance you have empty image src attributes in your home page? On Mon, Aug 31, 2009 at 9:19 PM, Jason Novotny jason.novo...@gmail.comwrote: Hi, My home page takes longer to load than expected and after placing a log line in getHomePage#MyWicketApplication I see that it's being called 3 times: Connected to server gethome page called me! gethome page called me! gethome page called me! Is there sort of a LoadableDetachableModel equivalent for pages, so they are just instantiated one per request cycle? Thanks, Jason - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Nick Heudecker Professional Wicket Training Consulting http://www.systemmobile.com
Re: why is getHomePage called multiple times?
Hi Nick, I tried with the simplest page: html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://www.w3.org/1999/xhtml; head /head body hello wicket /body /html The good news is that it only happens after loading the app for the first time-- after an additional request is made to the home page, it's instantiated only once. Cheers, Jason Nick Heudecker wrote: Any chance you have empty image src attributes in your home page? On Mon, Aug 31, 2009 at 9:19 PM, Jason Novotny jason.novo...@gmail.comwrote: Hi, My home page takes longer to load than expected and after placing a log line in getHomePage#MyWicketApplication I see that it's being called 3 times: Connected to server gethome page called me! gethome page called me! gethome page called me! Is there sort of a LoadableDetachableModel equivalent for pages, so they are just instantiated one per request cycle? Thanks, Jason - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: why is getHomePage called multiple times?
name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()] 2009-09-01 13:04:52,024 INFO [RequestListenerInterface] registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()] 2009-09-01 13:04:52,024 INFO [RequestListenerInterface] registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()] 2009-09-01 13:04:52,024 INFO [RequestListenerInterface] registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()] 2009-09-01 13:04:52,024 INFO [RequestListenerInterface] registered listener interface [RequestListenerInterface name=IActivePageBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] 2009-09-01 13:04:52,024 INFO [RequestListenerInterface] registered listener interface [RequestListenerInterface name=IActivePageBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] 2009-09-01 13:04:52,024 INFO [RequestListenerInterface] registered listener interface [RequestListenerInterface name=IActivePageBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] 2009-09-01 13:04:52,024 INFO [RequestListenerInterface] registered listener interface [RequestListenerInterface name=IActivePageBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] 2009-09-01 13:04:52,024 INFO [Application] [HelloWorldApplication] init: Wicket extensions initializer 2009-09-01 13:04:52,024 INFO [Application] [HelloWorldApplication] init: Wicket extensions initializer 2009-09-01 13:04:52,134 INFO [WebApplication] [HelloWorldApplication] Started Wicket version 1.4.1 in development mode 2009-09-01 13:04:52,134 INFO [WebApplication] [HelloWorldApplication] Started Wicket version 1.4.1 in development mode *** WARNING: Wicket is running in DEVELOPMENT mode. *** *** ^^^*** *** Do NOT deploy to your live server(s) without changing this. *** *** See Application#getConfigurationType() for more information. *** -- View this message in context: http://www.nabble.com/why-is-getHomePage-called-multiple-times--tp25234096p25234411.html Sent from the Wicket - User mailing list archive at Nabble.com.