Re: Web statistics tools, analysis
Google Analytics? Mathias P.W Nilsson a écrit : Hi! I was wondering what sort of analysis and statistics tools there are for integration with Wicket/Spring? Unique users and browser checking. What do you use? Any suggestions? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FileUpload - need to set a model to get updateModel working?
I have a form with a CompoundPropertyModel. One of the fields inside this model is a FileUpload. Why do I need to pass a dummy model, (or the current model) through to the FileUploadField - is this an oversight? I cannot find details surrounding the private hasExplicitModel boolean in FileUploadField. Other fields - eg, TextField automatically use and update their parent CPM. Rgds Ned -- View this message in context: http://www.nabble.com/FileUpload---need-to-set-a-model-to-get-updateModel-working--tp19283571p19283571.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tracking logged in users / SessionStore questions
Thanks a lot, Martijn. -- View this message in context: http://www.nabble.com/Tracking-logged-in-users---SessionStore-questions-tp19273568p19283896.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Web statistics tools, analysis
Typical http log analyzers don't work well with wicket applications because you can't get any idea which page is ?wicket:interface:3. We use the request logger to give us statistics about the performance of pages. From those logged requests we can track users, browsers, sessions, requests, durations, request page, response page, number of sessions, concurrent requests, etc. Martijn On Wed, Sep 3, 2008 at 2:48 AM, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Hi! I was wondering what sort of analysis and statistics tools there are for integration with Wicket/Spring? Unique users and browser checking. What do you use? Any suggestions? -- View this message in context: http://www.nabble.com/Web-statistics-tools%2C-analysis-tp19280977p19280977.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Google Chrome Wicke
Can you try that with latest trunk? -Matej On Wed, Sep 3, 2008 at 1:51 AM, cstein1206 [EMAIL PROTECTED] wrote: That's weird since I don't get anything (examples are from 1.4-m3). For me it seems like Chrome is handling the AJAX responses differently as it's always reporting 0 characters in the response. Here's the full debug output of the modal window from Chrome when clicking on Show modal dialog with a page: INFO: Using XMLHttpRequest transport INFO: INFO: Initiating Ajax GET request on ?wicket:interface=:1:showModal1::IBehaviorListener:0:random=0.8373860055580735 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (0 characters) INFO: ERROR: Error while parsing response: Could not find root ajax-response element INFO: Invoking post-call handler(s)... INFO: Invoking failure handler(s)... HTH -Chris Matej Knopp-2 wrote: Modal window seems to work fine for me, except that events are not propagated when mouse is over iframe. Tabbed panel works fine, so does editable label and clock example. (tested with latest 1.4 examples) -Matej On Tue, Sep 2, 2008 at 11:53 PM, cstein1206 [EMAIL PROTECTED] wrote: I have installed Google Chrome as well and found several Wicket extensions not working, namely - modal window - tabbed panels - editable label - clock example Maybe it's a bit too early for Chrome... -- View this message in context: http://www.nabble.com/Google-Chrome---Wicket-tp19277005p19279190.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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] -- View this message in context: http://www.nabble.com/Google-Chrome---Wicket-tp19277005p19280602.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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]
Re: Web statistics tools, analysis
Hi, Google Analytics? I have my problems with this, actually. There are privacy-policy-issues with Google Analytics, especially in germany. You have no control to remove log information after a certain time or remove tracks if user demand it. As nice as Google Analytics looks, it's actually against German laws to just give 'personal' user data to a third party without the user having agreed to it. And IP's are considered personal data. Google and other companies are started to be questioned about this service and how they comply to German laws on this matter ([1], [2]) - and I for one find the questions valid. All other log statistics are mostly based on nice URLs (e.g. awstats), so the question remains I suppose. Best regards, --- Jan. [1] http://www.heise.de/newsticker/Datenschutzbeauftragte-kritisieren-Google-Analytics--/meldung/110603 [2] https://www.datenschutzzentrum.de/tracking/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PageExpiredException on production
Hello again, does someone have any more ideas about our problem? It is very problematic to work in production when the users are thrown out with exception each hour... thanks Rebecca rivkash1 wrote: hello all, We are working with Wicket (1.3.4) on production for a couple of months. It runs within jetty 6.1.7. For some weeks, we are experiencing a strange PageExpiredException which happens only on production env. It mostly happens on 2 main Pages in which the users submit the same form in a rolling manner (i.e. fill the form fields, submit the form, the user is redirected to the same page with a clean form and fills the form with new data and so on repeatedly). It isn't a problem of session expiration because our session timeout is set to 10 hours, this is the setting in our web.xml file: session-config session-timeout600/session-timeout /session-config We changed the logging level of Wicket to DEBUG, I'm attaching only a little fraction from our log file, you can see the whole exception in the file attached to this post: This message is printed in level of warning, yet it is just for tracing: invoked resolve! RequestParameters: [RequestParameters componentPath=4:registrationManagementForm pageMapName=null versionNumber=0 interfaceName=IActivePageBehav iorListener componentId=null behaviorId=1 urlDepth=-1 parameters={random=0.14328683405517095,amp;wicket:ignoreIfNotActive=true } onlyProcessIfPathActive=false] - 2008-09-01 15:18:47,372 [WARN ] security.authentication.NiteWebRequestCycleProcessor - = ENTER == == This message is printed in level of warning, yet it is just for tracing: invoked resolveRenderedPage! RequestParameters: [RequestParameters componentPath=4:registrationManagementForm pageMapName=null versionNumber=0 interfaceName=IActivePageBehav iorListener componentId=null behaviorId=1 urlDepth=-1 parameters={random=0.14328683405517095,amp;wicket:ignoreIfNotActive=true } onlyProcessIfPathActive=false] - 2008-09-01 15:18:47,372 [DEBUG] apache.wicket.Session - Getting page [path = 4:registrationManagementForm, versionNumber = 0] 2008-09-01 15:18:47,376 [WARN ] security.authentication.NiteWebRequestCycleProcessor - - completed resolveRenderedPage! EXIT = 2008-09-01 15:18:47,377 [WARN ] security.authentication.NiteWebRequestCycleProcessor - = ENTER == == This message is printed in level of warning, yet it is just for tracing: invoked respond(RuntimeException e, RequestCycle requestCycle)! - 2008-09-01 15:18:47,377 [WARN ] security.authentication.NiteWebRequestCycleProcessor - = ENTER == == This message is printed in level of warning, yet it is just for tracing: invoked onRuntimeException! - 2008-09-01 15:18:47,377 [ERROR] security.authentication.NiteWebRequestCycleProcessor - onRuntimeException stack: org.apache.wicket.protocol.http.PageExpiredException: Cannot find the rendered page in session [pagemap=null,componentPath=4:r egistrationManagementForm,versionNumber=0] at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:181) at il.org.nite.frm.security.authentication.NiteWebRequestCycleProcessor.resolve http://www.nabble.com/file/p19265678/prod_log.txt prod_log.txt :-((:-((:-((:-((:-(( -- View this message in context: http://www.nabble.com/PageExpiredException-on-production-tp19265678p19285008.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PageExpiredException on production
Sounds like a bug in your NiteWebRequestCycleProcessor Martijn On Wed, Sep 3, 2008 at 10:29 AM, rivkash1 [EMAIL PROTECTED] wrote: Hello again, does someone have any more ideas about our problem? It is very problematic to work in production when the users are thrown out with exception each hour... thanks Rebecca rivkash1 wrote: hello all, We are working with Wicket (1.3.4) on production for a couple of months. It runs within jetty 6.1.7. For some weeks, we are experiencing a strange PageExpiredException which happens only on production env. It mostly happens on 2 main Pages in which the users submit the same form in a rolling manner (i.e. fill the form fields, submit the form, the user is redirected to the same page with a clean form and fills the form with new data and so on repeatedly). It isn't a problem of session expiration because our session timeout is set to 10 hours, this is the setting in our web.xml file: session-config session-timeout600/session-timeout /session-config We changed the logging level of Wicket to DEBUG, I'm attaching only a little fraction from our log file, you can see the whole exception in the file attached to this post: This message is printed in level of warning, yet it is just for tracing: invoked resolve! RequestParameters: [RequestParameters componentPath=4:registrationManagementForm pageMapName=null versionNumber=0 interfaceName=IActivePageBehav iorListener componentId=null behaviorId=1 urlDepth=-1 parameters={random=0.14328683405517095,amp;wicket:ignoreIfNotActive=true } onlyProcessIfPathActive=false] - 2008-09-01 15:18:47,372 [WARN ] security.authentication.NiteWebRequestCycleProcessor - = ENTER == == This message is printed in level of warning, yet it is just for tracing: invoked resolveRenderedPage! RequestParameters: [RequestParameters componentPath=4:registrationManagementForm pageMapName=null versionNumber=0 interfaceName=IActivePageBehav iorListener componentId=null behaviorId=1 urlDepth=-1 parameters={random=0.14328683405517095,amp;wicket:ignoreIfNotActive=true } onlyProcessIfPathActive=false] - 2008-09-01 15:18:47,372 [DEBUG] apache.wicket.Session - Getting page [path = 4:registrationManagementForm, versionNumber = 0] 2008-09-01 15:18:47,376 [WARN ] security.authentication.NiteWebRequestCycleProcessor - - completed resolveRenderedPage! EXIT = 2008-09-01 15:18:47,377 [WARN ] security.authentication.NiteWebRequestCycleProcessor - = ENTER == == This message is printed in level of warning, yet it is just for tracing: invoked respond(RuntimeException e, RequestCycle requestCycle)! - 2008-09-01 15:18:47,377 [WARN ] security.authentication.NiteWebRequestCycleProcessor - = ENTER == == This message is printed in level of warning, yet it is just for tracing: invoked onRuntimeException! - 2008-09-01 15:18:47,377 [ERROR] security.authentication.NiteWebRequestCycleProcessor - onRuntimeException stack: org.apache.wicket.protocol.http.PageExpiredException: Cannot find the rendered page in session [pagemap=null,componentPath=4:r egistrationManagementForm,versionNumber=0] at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:181) at il.org.nite.frm.security.authentication.NiteWebRequestCycleProcessor.resolve http://www.nabble.com/file/p19265678/prod_log.txt prod_log.txt :-((:-((:-((:-((:-(( -- View this message in context: http://www.nabble.com/PageExpiredException-on-production-tp19265678p19285008.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PageExpiredException on production
Hi Martijn NiteWebRequestCycleProcessor is a Class we added to the application 2 days ago. It extends Wicket's WebRequestCycleProcessor and adds some messages to the log to get more information about the problem. The PageExpiredException is a problem that we have on production for a couple of weeks - long before the NiteWebRequestCycleProcessor class was created in the application. thanks Rebecca Martijn Dashorst wrote: Sounds like a bug in your NiteWebRequestCycleProcessor Martijn On Wed, Sep 3, 2008 at 10:29 AM, rivkash1 [EMAIL PROTECTED] wrote: Hello again, does someone have any more ideas about our problem? It is very problematic to work in production when the users are thrown out with exception each hour... thanks Rebecca rivkash1 wrote: hello all, We are working with Wicket (1.3.4) on production for a couple of months. It runs within jetty 6.1.7. For some weeks, we are experiencing a strange PageExpiredException which happens only on production env. It mostly happens on 2 main Pages in which the users submit the same form in a rolling manner (i.e. fill the form fields, submit the form, the user is redirected to the same page with a clean form and fills the form with new data and so on repeatedly). It isn't a problem of session expiration because our session timeout is set to 10 hours, this is the setting in our web.xml file: session-config session-timeout600/session-timeout /session-config We changed the logging level of Wicket to DEBUG, I'm attaching only a little fraction from our log file, you can see the whole exception in the file attached to this post: This message is printed in level of warning, yet it is just for tracing: invoked resolve! RequestParameters: [RequestParameters componentPath=4:registrationManagementForm pageMapName=null versionNumber=0 interfaceName=IActivePageBehav iorListener componentId=null behaviorId=1 urlDepth=-1 parameters={random=0.14328683405517095,amp;wicket:ignoreIfNotActive=true } onlyProcessIfPathActive=false] - 2008-09-01 15:18:47,372 [WARN ] security.authentication.NiteWebRequestCycleProcessor - = ENTER == == This message is printed in level of warning, yet it is just for tracing: invoked resolveRenderedPage! RequestParameters: [RequestParameters componentPath=4:registrationManagementForm pageMapName=null versionNumber=0 interfaceName=IActivePageBehav iorListener componentId=null behaviorId=1 urlDepth=-1 parameters={random=0.14328683405517095,amp;wicket:ignoreIfNotActive=true } onlyProcessIfPathActive=false] - 2008-09-01 15:18:47,372 [DEBUG] apache.wicket.Session - Getting page [path = 4:registrationManagementForm, versionNumber = 0] 2008-09-01 15:18:47,376 [WARN ] security.authentication.NiteWebRequestCycleProcessor - - completed resolveRenderedPage! EXIT = 2008-09-01 15:18:47,377 [WARN ] security.authentication.NiteWebRequestCycleProcessor - = ENTER == == This message is printed in level of warning, yet it is just for tracing: invoked respond(RuntimeException e, RequestCycle requestCycle)! - 2008-09-01 15:18:47,377 [WARN ] security.authentication.NiteWebRequestCycleProcessor - = ENTER == == This message is printed in level of warning, yet it is just for tracing: invoked onRuntimeException! - 2008-09-01 15:18:47,377 [ERROR] security.authentication.NiteWebRequestCycleProcessor - onRuntimeException stack: org.apache.wicket.protocol.http.PageExpiredException: Cannot find the rendered page in session [pagemap=null,componentPath=4:r egistrationManagementForm,versionNumber=0] at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:181) at il.org.nite.frm.security.authentication.NiteWebRequestCycleProcessor.resolve http://www.nabble.com/file/p19265678/prod_log.txt prod_log.txt :-((:-((:-((:-((:-(( -- View this message in context: http://www.nabble.com/PageExpiredException-on-production-tp19265678p19285008.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL
Re: PageExpiredException on production
Check your logs for non-serializable errors (or test your application locally with development mode on, and make sure the serializer check is not turned off). This is the most common case for page expired errors. Martijn On Wed, Sep 3, 2008 at 10:45 AM, rivkash1 [EMAIL PROTECTED] wrote: Hi Martijn NiteWebRequestCycleProcessor is a Class we added to the application 2 days ago. It extends Wicket's WebRequestCycleProcessor and adds some messages to the log to get more information about the problem. The PageExpiredException is a problem that we have on production for a couple of weeks - long before the NiteWebRequestCycleProcessor class was created in the application. thanks Rebecca Martijn Dashorst wrote: Sounds like a bug in your NiteWebRequestCycleProcessor Martijn On Wed, Sep 3, 2008 at 10:29 AM, rivkash1 [EMAIL PROTECTED] wrote: Hello again, does someone have any more ideas about our problem? It is very problematic to work in production when the users are thrown out with exception each hour... thanks Rebecca rivkash1 wrote: hello all, We are working with Wicket (1.3.4) on production for a couple of months. It runs within jetty 6.1.7. For some weeks, we are experiencing a strange PageExpiredException which happens only on production env. It mostly happens on 2 main Pages in which the users submit the same form in a rolling manner (i.e. fill the form fields, submit the form, the user is redirected to the same page with a clean form and fills the form with new data and so on repeatedly). It isn't a problem of session expiration because our session timeout is set to 10 hours, this is the setting in our web.xml file: session-config session-timeout600/session-timeout /session-config We changed the logging level of Wicket to DEBUG, I'm attaching only a little fraction from our log file, you can see the whole exception in the file attached to this post: This message is printed in level of warning, yet it is just for tracing: invoked resolve! RequestParameters: [RequestParameters componentPath=4:registrationManagementForm pageMapName=null versionNumber=0 interfaceName=IActivePageBehav iorListener componentId=null behaviorId=1 urlDepth=-1 parameters={random=0.14328683405517095,amp;wicket:ignoreIfNotActive=true } onlyProcessIfPathActive=false] - 2008-09-01 15:18:47,372 [WARN ] security.authentication.NiteWebRequestCycleProcessor - = ENTER == == This message is printed in level of warning, yet it is just for tracing: invoked resolveRenderedPage! RequestParameters: [RequestParameters componentPath=4:registrationManagementForm pageMapName=null versionNumber=0 interfaceName=IActivePageBehav iorListener componentId=null behaviorId=1 urlDepth=-1 parameters={random=0.14328683405517095,amp;wicket:ignoreIfNotActive=true } onlyProcessIfPathActive=false] - 2008-09-01 15:18:47,372 [DEBUG] apache.wicket.Session - Getting page [path = 4:registrationManagementForm, versionNumber = 0] 2008-09-01 15:18:47,376 [WARN ] security.authentication.NiteWebRequestCycleProcessor - - completed resolveRenderedPage! EXIT = 2008-09-01 15:18:47,377 [WARN ] security.authentication.NiteWebRequestCycleProcessor - = ENTER == == This message is printed in level of warning, yet it is just for tracing: invoked respond(RuntimeException e, RequestCycle requestCycle)! - 2008-09-01 15:18:47,377 [WARN ] security.authentication.NiteWebRequestCycleProcessor - = ENTER == == This message is printed in level of warning, yet it is just for tracing: invoked onRuntimeException! - 2008-09-01 15:18:47,377 [ERROR] security.authentication.NiteWebRequestCycleProcessor - onRuntimeException stack: org.apache.wicket.protocol.http.PageExpiredException: Cannot find the rendered page in session [pagemap=null,componentPath=4:r egistrationManagementForm,versionNumber=0] at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:181) at il.org.nite.frm.security.authentication.NiteWebRequestCycleProcessor.resolve http://www.nabble.com/file/p19265678/prod_log.txt prod_log.txt :-((:-((:-((:-((:-(( -- View this message in context: http://www.nabble.com/PageExpiredException-on-production-tp19265678p19285008.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL
Re: Google Chrome Wicket
I was trying to follow Matej's suggestion and build the latest version from trunk. When running Maven with mvn package, I was getting test errors. The Auth Roles doesn't complete the tests due to an incorrect Apache License header in /wicket-auth-roles/src/main/java/org/apache/wicket/authentication/panel/SignInPanel_ja.html (see output below). Am I the only one getting this error? After fixing this, everything builds fine. But when I tried to deploy the wicket-examples.war, I was getting startup errors (due to java.lang.IllegalArgumentException: Class [org.springframework.jms.config.JmsNamespaceHandler] does not implement the NamespaceHandler interface, see output below). I'm stuck. I'm running JDK build 1.6.0_07 and Tomcat 6.0.16. --Chris =TOMCAT STARTUP ERROR LOG= 03.09.2008 12:18:44 org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive wicket-examples.war 03.09.2008 12:18:45 org.apache.catalina.core.StandardContext addApplicationListe ner INFO: The listener org.springframework.web.context.ContextLoaderListener is al ready configured for this context. The duplicate definition has been ignored. INFO - ContextLoader - Root WebApplicationContext: initialization started INFO - CollectionFactory - JDK 1.4+ collections available INFO - CollectionFactory - Commons Collections 3.x available INFO - XmlBeanDefinitionReader- Loading XML bean definitions from class pat h resource [applicationContext.xml] ERROR - ContextLoader - Context initialization failed org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected excep tion parsing XML document from class path resource [applicationContext.xml]; nes ted exception is java.lang.IllegalArgumentException: Class [org.springframework. jms.config.JmsNamespaceHandler] does not implement the NamespaceHandler interfac e Caused by: java.lang.IllegalArgumentException: Class [org.springframework.jms.config.JmsNam espaceHandler] does not implement the NamespaceHandler interface at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver ..initHandlerMappings(DefaultNamespaceHandlerResolver.java:119) at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver ..init(DefaultNamespaceHandlerResolver.java:96) at org.springframework.beans.factory.xml.DefaultNamespaceHandlerResolver ..init(DefaultNamespaceHandlerResolver.java:82) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createD efaultNamespaceHandlerResolver(XmlBeanDefinitionReader.java:530) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.createR eaderContext(XmlBeanDefinitionReader.java:519) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registe rBeanDefinitions(XmlBeanDefinitionReader.java:499) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadB eanDefinitions(XmlBeanDefinitionReader.java:407) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea nDefinitions(XmlBeanDefinitionReader.java:357) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBea nDefinitions(XmlBeanDefinitionReader.java:334) at org.springframework.beans.factory.support.AbstractBeanDefinitionReade r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126) at org.springframework.beans.factory.support.AbstractBeanDefinitionReade r.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142) at org.springframework.web.context.support.XmlWebApplicationContext.load BeanDefinitions(XmlWebApplicationContext.java:123) at org.springframework.web.context.support.XmlWebApplicationContext.load BeanDefinitions(XmlWebApplicationContext.java:91) at org.springframework.context.support.AbstractRefreshableApplicationCon text.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94) at org.springframework.context.support.AbstractApplicationContext.refres h(AbstractApplicationContext.java:294) at org.springframework.web.context.support.AbstractRefreshableWebApplica tionContext.refresh(AbstractRefreshableWebApplicationContext.java:156) at org.springframework.web.context.ContextLoader.createWebApplicationCon text(ContextLoader.java:246) at org.springframework.web.context.ContextLoader.initWebApplicationConte xt(ContextLoader.java:184) =MAVEN BUILD ERROR LOG= [INFO] [INFO] Building Wicket Auth Roles [INFO]task-segment: [install] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 16 source files to /temp/wicket-trunk/wicket-auth-roles/target/classes [INFO] [bundle:manifest {execution: bundle-manifest}] [INFO]
Re: PageExpiredException on production
we set Wicket's logging level on production to DEBUG I don't see any non-serializable errors. How do i turn on the serializer check? thanks Rebecca Martijn Dashorst wrote: Check your logs for non-serializable errors (or test your application locally with development mode on, and make sure the serializer check is not turned off). This is the most common case for page expired errors. Martijn On Wed, Sep 3, 2008 at 10:45 AM, rivkash1 [EMAIL PROTECTED] wrote: Hi Martijn NiteWebRequestCycleProcessor is a Class we added to the application 2 days ago. It extends Wicket's WebRequestCycleProcessor and adds some messages to the log to get more information about the problem. The PageExpiredException is a problem that we have on production for a couple of weeks - long before the NiteWebRequestCycleProcessor class was created in the application. thanks Rebecca Martijn Dashorst wrote: Sounds like a bug in your NiteWebRequestCycleProcessor Martijn On Wed, Sep 3, 2008 at 10:29 AM, rivkash1 [EMAIL PROTECTED] wrote: Hello again, does someone have any more ideas about our problem? It is very problematic to work in production when the users are thrown out with exception each hour... thanks Rebecca rivkash1 wrote: hello all, We are working with Wicket (1.3.4) on production for a couple of months. It runs within jetty 6.1.7. For some weeks, we are experiencing a strange PageExpiredException which happens only on production env. It mostly happens on 2 main Pages in which the users submit the same form in a rolling manner (i.e. fill the form fields, submit the form, the user is redirected to the same page with a clean form and fills the form with new data and so on repeatedly). It isn't a problem of session expiration because our session timeout is set to 10 hours, this is the setting in our web.xml file: session-config session-timeout600/session-timeout /session-config We changed the logging level of Wicket to DEBUG, I'm attaching only a little fraction from our log file, you can see the whole exception in the file attached to this post: This message is printed in level of warning, yet it is just for tracing: invoked resolve! RequestParameters: [RequestParameters componentPath=4:registrationManagementForm pageMapName=null versionNumber=0 interfaceName=IActivePageBehav iorListener componentId=null behaviorId=1 urlDepth=-1 parameters={random=0.14328683405517095,amp;wicket:ignoreIfNotActive=true } onlyProcessIfPathActive=false] - 2008-09-01 15:18:47,372 [WARN ] security.authentication.NiteWebRequestCycleProcessor - = ENTER == == This message is printed in level of warning, yet it is just for tracing: invoked resolveRenderedPage! RequestParameters: [RequestParameters componentPath=4:registrationManagementForm pageMapName=null versionNumber=0 interfaceName=IActivePageBehav iorListener componentId=null behaviorId=1 urlDepth=-1 parameters={random=0.14328683405517095,amp;wicket:ignoreIfNotActive=true } onlyProcessIfPathActive=false] - 2008-09-01 15:18:47,372 [DEBUG] apache.wicket.Session - Getting page [path = 4:registrationManagementForm, versionNumber = 0] 2008-09-01 15:18:47,376 [WARN ] security.authentication.NiteWebRequestCycleProcessor - - completed resolveRenderedPage! EXIT = 2008-09-01 15:18:47,377 [WARN ] security.authentication.NiteWebRequestCycleProcessor - = ENTER == == This message is printed in level of warning, yet it is just for tracing: invoked respond(RuntimeException e, RequestCycle requestCycle)! - 2008-09-01 15:18:47,377 [WARN ] security.authentication.NiteWebRequestCycleProcessor - = ENTER == == This message is printed in level of warning, yet it is just for tracing: invoked onRuntimeException! - 2008-09-01 15:18:47,377 [ERROR] security.authentication.NiteWebRequestCycleProcessor - onRuntimeException stack: org.apache.wicket.protocol.http.PageExpiredException: Cannot find the rendered page in session [pagemap=null,componentPath=4:r egistrationManagementForm,versionNumber=0] at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:181) at il.org.nite.frm.security.authentication.NiteWebRequestCycleProcessor.resolve http://www.nabble.com/file/p19265678/prod_log.txt prod_log.txt :-((:-((:-((:-((:-(( -- View this message in context: http://www.nabble.com/PageExpiredException-on-production-tp19265678p19285008.html Sent from the Wicket - User
page expired warning
I have read many posts about page expired, but I still can't get what's the problem in my case. We have three page: 1) login page 2) navigation page 3) function page. All three pages are mounted by using HybridUrlCodingStrategy in webapplication init(). The flow is: after authenticate the user in 1), the page is redirected to 2). Page 2 has a pagelink which links to 3). So click the link in page 2 and page is redirected 3). But if you use back button of browser in 3), page can't be redirected to 2) directly. There is a warning message Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you. To resubmit your information and view this Web page, click the Refresh button. Try click refresh, the page is then redirect to 2) where user's session is still there. I also tested in firefox, then comes a popup window To display this page, the application must send information that will repeat any action (such as a search or order confirmation) that was performed earlier. I use wicket 1.3.1. Any help how can I void this page expired warning? -- View this message in context: http://www.nabble.com/page-expired-warning-tp19288551p19288551.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[announce] Wicketstuff Iolite 0.3
A new version of Iolite archetype are out lot's of cleaning has been done. Changes: * Builds on wicket 1.4 * Simpler JPA/domain configuration with James Carmans domdrides (http://sourceforge.net/projects/domdrides/) * Now a real archetype using the new archetype-metadata.xml If you dont know about iolite heres what it are: A maven archetype that generates a two module project with spring and JPA-hibernate setup much like the wicket quickstart. This means that you can run a maven command and get you running in no time with wicket, please see more here: http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Iolite I'll do a screen cast later this week.. -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PageExpiredException on production
Did you actively turn serializer check off? rivkash1 wrote: we set Wicket's logging level on production to DEBUG I don't see any non-serializable errors. How do i turn on the serializer check? thanks Rebecca Martijn Dashorst wrote: Check your logs for non-serializable errors (or test your application locally with development mode on, and make sure the serializer check is not turned off). This is the most common case for page expired errors. Martijn On Wed, Sep 3, 2008 at 10:45 AM, rivkash1 [EMAIL PROTECTED] wrote: Hi Martijn NiteWebRequestCycleProcessor is a Class we added to the application 2 days ago. It extends Wicket's WebRequestCycleProcessor and adds some messages to the log to get more information about the problem. The PageExpiredException is a problem that we have on production for a couple of weeks - long before the NiteWebRequestCycleProcessor class was created in the application. thanks Rebecca Martijn Dashorst wrote: Sounds like a bug in your NiteWebRequestCycleProcessor Martijn On Wed, Sep 3, 2008 at 10:29 AM, rivkash1 [EMAIL PROTECTED] wrote: Hello again, does someone have any more ideas about our problem? It is very problematic to work in production when the users are thrown out with exception each hour... thanks Rebecca rivkash1 wrote: hello all, We are working with Wicket (1.3.4) on production for a couple of months. It runs within jetty 6.1.7. For some weeks, we are experiencing a strange PageExpiredException which happens only on production env. It mostly happens on 2 main Pages in which the users submit the same form in a rolling manner (i.e. fill the form fields, submit the form, the user is redirected to the same page with a clean form and fills the form with new data and so on repeatedly). It isn't a problem of session expiration because our session timeout is set to 10 hours, this is the setting in our web.xml file: session-config session-timeout600/session-timeout /session-config We changed the logging level of Wicket to DEBUG, I'm attaching only a little fraction from our log file, you can see the whole exception in the file attached to this post: This message is printed in level of warning, yet it is just for tracing: invoked resolve! RequestParameters: [RequestParameters componentPath=4:registrationManagementForm pageMapName=null versionNumber=0 interfaceName=IActivePageBehav iorListener componentId=null behaviorId=1 urlDepth=-1 parameters={random=0.14328683405517095,amp;wicket:ignoreIfNotActive=true } onlyProcessIfPathActive=false] - 2008-09-01 15:18:47,372 [WARN ] security.authentication.NiteWebRequestCycleProcessor - = ENTER == == This message is printed in level of warning, yet it is just for tracing: invoked resolveRenderedPage! RequestParameters: [RequestParameters componentPath=4:registrationManagementForm pageMapName=null versionNumber=0 interfaceName=IActivePageBehav iorListener componentId=null behaviorId=1 urlDepth=-1 parameters={random=0.14328683405517095,amp;wicket:ignoreIfNotActive=true } onlyProcessIfPathActive=false] - 2008-09-01 15:18:47,372 [DEBUG] apache.wicket.Session - Getting page [path = 4:registrationManagementForm, versionNumber = 0] 2008-09-01 15:18:47,376 [WARN ] security.authentication.NiteWebRequestCycleProcessor - - completed resolveRenderedPage! EXIT = 2008-09-01 15:18:47,377 [WARN ] security.authentication.NiteWebRequestCycleProcessor - = ENTER == == This message is printed in level of warning, yet it is just for tracing: invoked respond(RuntimeException e, RequestCycle requestCycle)! - 2008-09-01 15:18:47,377 [WARN ] security.authentication.NiteWebRequestCycleProcessor - = ENTER == == This message is printed in level of warning, yet it is just for tracing: invoked onRuntimeException! - 2008-09-01 15:18:47,377 [ERROR] security.authentication.NiteWebRequestCycleProcessor - onRuntimeException stack: org.apache.wicket.protocol.http.PageExpiredException: Cannot find the rendered page in session [pagemap=null,componentPath=4:r egistrationManagementForm,versionNumber=0] at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:181) at il.org.nite.frm.security.authentication.NiteWebRequestCycleProcessor.resolve http://www.nabble.com/file/p19265678/prod_log.txt prod_log.txt :-((:-((:-((:-((:-(( -- View this message in context: http://www.nabble.com/PageExpiredException-on-production-tp19265678p19285008.html Sent from the Wicket - User mailing
Re: page expired warning
Hi Sound's really wierd, like you are trying to post some stuff or something.. Could you show us some code..? And you should really upgrade to 1.3.4 since there were a lot of bug fixing going on from 1.3.1 to 1.3.4 wenm wrote: I have read many posts about page expired, but I still can't get what's the problem in my case. We have three page: 1) login page 2) navigation page 3) function page. All three pages are mounted by using HybridUrlCodingStrategy in webapplication init(). The flow is: after authenticate the user in 1), the page is redirected to 2). Page 2 has a pagelink which links to 3). So click the link in page 2 and page is redirected 3). But if you use back button of browser in 3), page can't be redirected to 2) directly. There is a warning message Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you. To resubmit your information and view this Web page, click the Refresh button. Try click refresh, the page is then redirect to 2) where user's session is still there. I also tested in firefox, then comes a popup window To display this page, the application must send information that will repeat any action (such as a search or order confirmation) that was performed earlier. I use wicket 1.3.1. Any help how can I void this page expired warning? -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PageExpiredException on production
How do i check if the serializer is on/off? What's the defualt? Nino.Martinez wrote: Did you actively turn serializer check off? rivkash1 wrote: we set Wicket's logging level on production to DEBUG I don't see any non-serializable errors. How do i turn on the serializer check? thanks Rebecca Martijn Dashorst wrote: Check your logs for non-serializable errors (or test your application locally with development mode on, and make sure the serializer check is not turned off). This is the most common case for page expired errors. Martijn On Wed, Sep 3, 2008 at 10:45 AM, rivkash1 [EMAIL PROTECTED] wrote: Hi Martijn NiteWebRequestCycleProcessor is a Class we added to the application 2 days ago. It extends Wicket's WebRequestCycleProcessor and adds some messages to the log to get more information about the problem. The PageExpiredException is a problem that we have on production for a couple of weeks - long before the NiteWebRequestCycleProcessor class was created in the application. thanks Rebecca Martijn Dashorst wrote: Sounds like a bug in your NiteWebRequestCycleProcessor Martijn On Wed, Sep 3, 2008 at 10:29 AM, rivkash1 [EMAIL PROTECTED] wrote: Hello again, does someone have any more ideas about our problem? It is very problematic to work in production when the users are thrown out with exception each hour... thanks Rebecca rivkash1 wrote: hello all, We are working with Wicket (1.3.4) on production for a couple of months. It runs within jetty 6.1.7. For some weeks, we are experiencing a strange PageExpiredException which happens only on production env. It mostly happens on 2 main Pages in which the users submit the same form in a rolling manner (i.e. fill the form fields, submit the form, the user is redirected to the same page with a clean form and fills the form with new data and so on repeatedly). It isn't a problem of session expiration because our session timeout is set to 10 hours, this is the setting in our web.xml file: session-config session-timeout600/session-timeout /session-config We changed the logging level of Wicket to DEBUG, I'm attaching only a little fraction from our log file, you can see the whole exception in the file attached to this post: This message is printed in level of warning, yet it is just for tracing: invoked resolve! RequestParameters: [RequestParameters componentPath=4:registrationManagementForm pageMapName=null versionNumber=0 interfaceName=IActivePageBehav iorListener componentId=null behaviorId=1 urlDepth=-1 parameters={random=0.14328683405517095,amp;wicket:ignoreIfNotActive=true } onlyProcessIfPathActive=false] - 2008-09-01 15:18:47,372 [WARN ] security.authentication.NiteWebRequestCycleProcessor - = ENTER == == This message is printed in level of warning, yet it is just for tracing: invoked resolveRenderedPage! RequestParameters: [RequestParameters componentPath=4:registrationManagementForm pageMapName=null versionNumber=0 interfaceName=IActivePageBehav iorListener componentId=null behaviorId=1 urlDepth=-1 parameters={random=0.14328683405517095,amp;wicket:ignoreIfNotActive=true } onlyProcessIfPathActive=false] - 2008-09-01 15:18:47,372 [DEBUG] apache.wicket.Session - Getting page [path = 4:registrationManagementForm, versionNumber = 0] 2008-09-01 15:18:47,376 [WARN ] security.authentication.NiteWebRequestCycleProcessor - - completed resolveRenderedPage! EXIT = 2008-09-01 15:18:47,377 [WARN ] security.authentication.NiteWebRequestCycleProcessor - = ENTER == == This message is printed in level of warning, yet it is just for tracing: invoked respond(RuntimeException e, RequestCycle requestCycle)! - 2008-09-01 15:18:47,377 [WARN ] security.authentication.NiteWebRequestCycleProcessor - = ENTER == == This message is printed in level of warning, yet it is just for tracing: invoked onRuntimeException! - 2008-09-01 15:18:47,377 [ERROR] security.authentication.NiteWebRequestCycleProcessor - onRuntimeException stack: org.apache.wicket.protocol.http.PageExpiredException: Cannot find the rendered page in session [pagemap=null,componentPath=4:r egistrationManagementForm,versionNumber=0] at org.apache.wicket.protocol.http.WebRequestCycleProcessor.resolve(WebRequestCycleProcessor.java:181) at il.org.nite.frm.security.authentication.NiteWebRequestCycleProcessor.resolve
Re: Discussion on Wicket Interface Speed-Up
im not sure we could help in the cases where you have dynamic header contributors, like you say you would either have to specify them up front (ie add them into the page not the panel, breaking encapsulation) or just serve via the normal header contributor. But i dont see how this would result in many many large files. you would have a single file for the static stuff, and then each dynamic one would have its own file (assuming not specified up front). This would still bring down the total number. eg a page has 6 static js and 2 dynamic js which would get turned into 1 static js and the same 2 dynamic js. cases where a component and resulting header contributers are added via ajax wouldnt be important for the initial page load speed anyway, as they are added after the page has loaded. Richard igor.vaynberg wrote: problem with this is that pages can have dynamic components which dynamic header contributions. so either you have to somehow collect all possible header contributions from all possible component combinations - breaking encapsulation in the process, or you have to do what you do - ending up with many many possible and big javascript files to serve to the user. -igor On Tue, Sep 2, 2008 at 2:57 PM, richardwilko [EMAIL PROTECTED] wrote: The problem of breaking encapsulation: I did some work on this problem on my own a few months ago, my solution was to use a header contrib manager, and instead of adding files with a header contributer i add them to the manager, then get a single contributer per page from the manger. for example in a panel you would do @Override protected void onBeforeRender() { super.onBeforeRender(); ResourceReference rr = new ResourceReference(getClass(), test.js); WicketApplication.get().getHcm().add(rr, getPage().getClass()); } See how it uses getPage().getClass(), so the manager knows which class the panel is being added into then in the main page class @Override protected void onBeforeRender() { super.onBeforeRender(); add(WicketApplication.get().getHcm().getHeaderContributor(getClass())); } since the manager knows all of the resources added for the page at this point, it is easy to compress them all together and serve a single file, and you dont have to list the files up front. What do you think of this idea? My code is here: http://www.nabble.com/file/p19279269/HeaderContribManagerTest.zip HeaderContribManagerTest.zip It still has bugs etc in it, and doesnt really work cos ive messed up the registerResource method, but you should be able to get the idea from it Richard - http://www.richard-wilkinson.co.uk My blog: http://www.richard-wilkinson.co.uk -- View this message in context: http://www.nabble.com/Discussion-on-%22Wicket-Interface-Speed-Up%22-tp19197540p19279269.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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] - http://www.richard-wilkinson.co.uk My blog: http://www.richard-wilkinson.co.uk -- View this message in context: http://www.nabble.com/Discussion-on-%22Wicket-Interface-Speed-Up%22-tp19197540p19289766.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: page expired warning
Hi I have tried to upgrade to 1.3.4, but it doesn't help. WebApplication protected void init() { super.init(); getRequestCycleSettings().setResponseRequestEncoding(ISO-8859-1); getResourceSettings().setThrowExceptionOnMissingResource(false); mount(new HybridUrlCodingStrategy(/payment, Payment.class)); mount(new HybridUrlCodingStrategy(/login, Login.class)); mount(new HybridUrlCodingStrategy(/menu, Menu.class)); } 1)Login Class class LoginForm extends Form { public LoginForm(String id) { super(id); } public void onSubmit() { String userId = getUsername(); String password = getPassword(); if (!session.authenticate(userId, password)) { // authenticate fail Login returnLogin = new Login(); returnLogin.setErrorMsg(session.getLoginResponse().getReturnMessage()); int errorCode = session.getLoginResponse().getReturnCode(); String errorKey = session.getLoginResponse().getReturnKey(); setResponsePage(returnLogin); } else { // authenticate success setResponsePage(Menu.class); } } } 2)Menu Class add(new BookmarkablePageLink(payment-link, Payment.class)); 3)Payment Class Hi Sound's really wierd, like you are trying to post some stuff or something.. Could you show us some code..? And you should really upgrade to 1.3.4 since there were a lot of bug fixing going on from 1.3.1 to 1.3.4 -- View this message in context: http://www.nabble.com/page-expired-warning-tp19288551p19289794.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Discussion on Wicket Interface Speed-Up
It's not the pages that have these files. Let's say I have a page that uses jquery and a textfield with a button that toggles tinymce. If we do what you say then there are two possible files: jquery and jquery+tinymce. Than let's say I add Ajax to the page, now there are 6 possibilities depending on which components are currently on the page. IMHO much cheaper to just cache jquery, tinymce, wicket-Ajax individually. -Igor On 9/3/08, richardwilko [EMAIL PROTECTED] wrote: im not sure we could help in the cases where you have dynamic header contributors, like you say you would either have to specify them up front (ie add them into the page not the panel, breaking encapsulation) or just serve via the normal header contributor. But i dont see how this would result in many many large files. you would have a single file for the static stuff, and then each dynamic one would have its own file (assuming not specified up front). This would still bring down the total number. eg a page has 6 static js and 2 dynamic js which would get turned into 1 static js and the same 2 dynamic js. cases where a component and resulting header contributers are added via ajax wouldnt be important for the initial page load speed anyway, as they are added after the page has loaded. Richard igor.vaynberg wrote: problem with this is that pages can have dynamic components which dynamic header contributions. so either you have to somehow collect all possible header contributions from all possible component combinations - breaking encapsulation in the process, or you have to do what you do - ending up with many many possible and big javascript files to serve to the user. -igor On Tue, Sep 2, 2008 at 2:57 PM, richardwilko [EMAIL PROTECTED] wrote: The problem of breaking encapsulation: I did some work on this problem on my own a few months ago, my solution was to use a header contrib manager, and instead of adding files with a header contributer i add them to the manager, then get a single contributer per page from the manger. for example in a panel you would do @Override protected void onBeforeRender() { super.onBeforeRender(); ResourceReference rr = new ResourceReference(getClass(), test.js); WicketApplication.get().getHcm().add(rr, getPage().getClass()); } See how it uses getPage().getClass(), so the manager knows which class the panel is being added into then in the main page class @Override protected void onBeforeRender() { super.onBeforeRender(); add(WicketApplication.get().getHcm().getHeaderContributor(getClass())); } since the manager knows all of the resources added for the page at this point, it is easy to compress them all together and serve a single file, and you dont have to list the files up front. What do you think of this idea? My code is here: http://www.nabble.com/file/p19279269/HeaderContribManagerTest.zip HeaderContribManagerTest.zip It still has bugs etc in it, and doesnt really work cos ive messed up the registerResource method, but you should be able to get the idea from it Richard - http://www.richard-wilkinson.co.uk My blog: http://www.richard-wilkinson.co.uk -- View this message in context: http://www.nabble.com/Discussion-on-%22Wicket-Interface-Speed-Up%22-tp19197540p19279269.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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] - http://www.richard-wilkinson.co.uk My blog: http://www.richard-wilkinson.co.uk -- View this message in context: http://www.nabble.com/Discussion-on-%22Wicket-Interface-Speed-Up%22-tp19197540p19289766.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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]
Re: Discussion on Wicket Interface Speed-Up
There is yet another thing to consider. Iphone doesn't cache resources bigger than 25kb (after unzipping). So instead of grouping files together sometimes it even might be appropriate to split them... -Matej On Wed, Sep 3, 2008 at 4:11 PM, [EMAIL PROTECTED] wrote: It's not the pages that have these files. Let's say I have a page that uses jquery and a textfield with a button that toggles tinymce. If we do what you say then there are two possible files: jquery and jquery+tinymce. Than let's say I add Ajax to the page, now there are 6 possibilities depending on which components are currently on the page. IMHO much cheaper to just cache jquery, tinymce, wicket-Ajax individually. -Igor On 9/3/08, richardwilko [EMAIL PROTECTED] wrote: im not sure we could help in the cases where you have dynamic header contributors, like you say you would either have to specify them up front (ie add them into the page not the panel, breaking encapsulation) or just serve via the normal header contributor. But i dont see how this would result in many many large files. you would have a single file for the static stuff, and then each dynamic one would have its own file (assuming not specified up front). This would still bring down the total number. eg a page has 6 static js and 2 dynamic js which would get turned into 1 static js and the same 2 dynamic js. cases where a component and resulting header contributers are added via ajax wouldnt be important for the initial page load speed anyway, as they are added after the page has loaded. Richard igor.vaynberg wrote: problem with this is that pages can have dynamic components which dynamic header contributions. so either you have to somehow collect all possible header contributions from all possible component combinations - breaking encapsulation in the process, or you have to do what you do - ending up with many many possible and big javascript files to serve to the user. -igor On Tue, Sep 2, 2008 at 2:57 PM, richardwilko [EMAIL PROTECTED] wrote: The problem of breaking encapsulation: I did some work on this problem on my own a few months ago, my solution was to use a header contrib manager, and instead of adding files with a header contributer i add them to the manager, then get a single contributer per page from the manger. for example in a panel you would do @Override protected void onBeforeRender() { super.onBeforeRender(); ResourceReference rr = new ResourceReference(getClass(), test.js); WicketApplication.get().getHcm().add(rr, getPage().getClass()); } See how it uses getPage().getClass(), so the manager knows which class the panel is being added into then in the main page class @Override protected void onBeforeRender() { super.onBeforeRender(); add(WicketApplication.get().getHcm().getHeaderContributor(getClass())); } since the manager knows all of the resources added for the page at this point, it is easy to compress them all together and serve a single file, and you dont have to list the files up front. What do you think of this idea? My code is here: http://www.nabble.com/file/p19279269/HeaderContribManagerTest.zip HeaderContribManagerTest.zip It still has bugs etc in it, and doesnt really work cos ive messed up the registerResource method, but you should be able to get the idea from it Richard - http://www.richard-wilkinson.co.uk My blog: http://www.richard-wilkinson.co.uk -- View this message in context: http://www.nabble.com/Discussion-on-%22Wicket-Interface-Speed-Up%22-tp19197540p19279269.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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] - http://www.richard-wilkinson.co.uk My blog: http://www.richard-wilkinson.co.uk -- View this message in context: http://www.nabble.com/Discussion-on-%22Wicket-Interface-Speed-Up%22-tp19197540p19289766.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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]
Show/hide WebMarkupContainer
I am having trouble understanding how to achieve the following: Similar to Xing or Google Mail, I want to show a form with AJAX when the user clicks a link on the same page. I first thought that I can achieve this with the AjaxLazyLoadPanel. By now I got the gist that I need to play with an empty WebMarkupContainer in order to achieve this. However, I seem unable to figure out how this is actually going to work. Can somebody please give me a head start on this? Sorry if this might be a stupid question and thanks a lot for your help! --Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Show/hide WebMarkupContainer
Add the form and set it invisible, after the user clicks the ajax link set the form visible and add it to the response target.addComponent(form); make sure the form has a placeholder form.setOutputMarkupPlaceholderTag(true); On Wed, Sep 3, 2008 at 4:27 PM, Chris Stein [EMAIL PROTECTED] wrote: I am having trouble understanding how to achieve the following: Similar to Xing or Google Mail, I want to show a form with AJAX when the user clicks a link on the same page. I first thought that I can achieve this with the AjaxLazyLoadPanel. By now I got the gist that I need to play with an empty WebMarkupContainer in order to achieve this. However, I seem unable to figure out how this is actually going to work. Can somebody please give me a head start on this? Sorry if this might be a stupid question and thanks a lot for your help! --Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.somatik.be Microsoft gives you windows, Linux gives you the whole house. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Discussion on Wicket Interface Speed-Up
I see your point, essentially we have 1 (relativity large) bundle file per page, and if you have 5 pages which use jquery, tinymce and ajax then you are worse off, since the normal way you would have already cached the 3 individual files (this is what you meant right?) Maybe there is some way to automatically work out the best bundles to create depending on usage, so dont create bundles based on page, but based on contents? I think the real answer is that everyones usage is different and what is good for one system isn't good for another. igor.vaynberg wrote: It's not the pages that have these files. Let's say I have a page that uses jquery and a textfield with a button that toggles tinymce. If we do what you say then there are two possible files: jquery and jquery+tinymce. Than let's say I add Ajax to the page, now there are 6 possibilities depending on which components are currently on the page. IMHO much cheaper to just cache jquery, tinymce, wicket-Ajax individually. -Igor On 9/3/08, richardwilko [EMAIL PROTECTED] wrote: im not sure we could help in the cases where you have dynamic header contributors, like you say you would either have to specify them up front (ie add them into the page not the panel, breaking encapsulation) or just serve via the normal header contributor. But i dont see how this would result in many many large files. you would have a single file for the static stuff, and then each dynamic one would have its own file (assuming not specified up front). This would still bring down the total number. eg a page has 6 static js and 2 dynamic js which would get turned into 1 static js and the same 2 dynamic js. cases where a component and resulting header contributers are added via ajax wouldnt be important for the initial page load speed anyway, as they are added after the page has loaded. Richard igor.vaynberg wrote: problem with this is that pages can have dynamic components which dynamic header contributions. so either you have to somehow collect all possible header contributions from all possible component combinations - breaking encapsulation in the process, or you have to do what you do - ending up with many many possible and big javascript files to serve to the user. -igor On Tue, Sep 2, 2008 at 2:57 PM, richardwilko [EMAIL PROTECTED] wrote: The problem of breaking encapsulation: I did some work on this problem on my own a few months ago, my solution was to use a header contrib manager, and instead of adding files with a header contributer i add them to the manager, then get a single contributer per page from the manger. for example in a panel you would do @Override protected void onBeforeRender() { super.onBeforeRender(); ResourceReference rr = new ResourceReference(getClass(), test.js); WicketApplication.get().getHcm().add(rr, getPage().getClass()); } See how it uses getPage().getClass(), so the manager knows which class the panel is being added into then in the main page class @Override protected void onBeforeRender() { super.onBeforeRender(); add(WicketApplication.get().getHcm().getHeaderContributor(getClass())); } since the manager knows all of the resources added for the page at this point, it is easy to compress them all together and serve a single file, and you dont have to list the files up front. What do you think of this idea? My code is here: http://www.nabble.com/file/p19279269/HeaderContribManagerTest.zip HeaderContribManagerTest.zip It still has bugs etc in it, and doesnt really work cos ive messed up the registerResource method, but you should be able to get the idea from it Richard - http://www.richard-wilkinson.co.uk My blog: http://www.richard-wilkinson.co.uk -- View this message in context: http://www.nabble.com/Discussion-on-%22Wicket-Interface-Speed-Up%22-tp19197540p19279269.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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] - http://www.richard-wilkinson.co.uk My blog: http://www.richard-wilkinson.co.uk -- View this message in context: http://www.nabble.com/Discussion-on-%22Wicket-Interface-Speed-Up%22-tp19197540p19289766.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re: Google Chrome Wicket
On Wed, 03 Sep 2008, Chris Stein wrote: I was trying to follow Matej's suggestion and build the latest version from trunk. To just try it out, it's easier to use the readymade snapshot jars from the snapshot maven repository hosted at wicketstuff.org. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Discussion on Wicket Interface Speed-Up
Hmmm. As you say, there's no easy one-size-fits-all. There is an obvious improvement you could make, though. All JS/CSS contributions initially rendered on the home page could be batched up. This will typically provide the biggest improvement anyway. You could then keep a reference to this batch, and use it instead of individually including any of these constituent contributions elsewhere. This would also give fairly intuitive behaviour - if you want to pre-load your JS/CSS in a single batch, just add the headercontributors to your home page, and Wicket will figure it out. I've long hated having to specify the component class in header contributors, as 99% of the time the resources live in the same package (or in a subpackage) as the component they belong to. I'd even go so far as to remove the need for HeaderContributor code entirely in 80% of the cases. Wicket could automatically pick up css and js files that are named the same as your component. MyComponent.java MyComponent.html MyComponent.properties So why not: MyComponent.css MyComponent.js ? Heck, you could even include i18n for dealing with language-specific layout issues: MyComponent_jp.css Regards, Al 2008/9/3 richardwilko [EMAIL PROTECTED] I see your point, essentially we have 1 (relativity large) bundle file per page, and if you have 5 pages which use jquery, tinymce and ajax then you are worse off, since the normal way you would have already cached the 3 individual files (this is what you meant right?) Maybe there is some way to automatically work out the best bundles to create depending on usage, so dont create bundles based on page, but based on contents? I think the real answer is that everyones usage is different and what is good for one system isn't good for another. igor.vaynberg wrote: It's not the pages that have these files. Let's say I have a page that uses jquery and a textfield with a button that toggles tinymce. If we do what you say then there are two possible files: jquery and jquery+tinymce. Than let's say I add Ajax to the page, now there are 6 possibilities depending on which components are currently on the page. IMHO much cheaper to just cache jquery, tinymce, wicket-Ajax individually. -Igor On 9/3/08, richardwilko [EMAIL PROTECTED] wrote: im not sure we could help in the cases where you have dynamic header contributors, like you say you would either have to specify them up front (ie add them into the page not the panel, breaking encapsulation) or just serve via the normal header contributor. But i dont see how this would result in many many large files. you would have a single file for the static stuff, and then each dynamic one would have its own file (assuming not specified up front). This would still bring down the total number. eg a page has 6 static js and 2 dynamic js which would get turned into 1 static js and the same 2 dynamic js. cases where a component and resulting header contributers are added via ajax wouldnt be important for the initial page load speed anyway, as they are added after the page has loaded. Richard igor.vaynberg wrote: problem with this is that pages can have dynamic components which dynamic header contributions. so either you have to somehow collect all possible header contributions from all possible component combinations - breaking encapsulation in the process, or you have to do what you do - ending up with many many possible and big javascript files to serve to the user. -igor On Tue, Sep 2, 2008 at 2:57 PM, richardwilko [EMAIL PROTECTED] wrote: The problem of breaking encapsulation: I did some work on this problem on my own a few months ago, my solution was to use a header contrib manager, and instead of adding files with a header contributer i add them to the manager, then get a single contributer per page from the manger. for example in a panel you would do @Override protected void onBeforeRender() { super.onBeforeRender(); ResourceReference rr = new ResourceReference(getClass(), test.js); WicketApplication.get().getHcm().add(rr, getPage().getClass()); } See how it uses getPage().getClass(), so the manager knows which class the panel is being added into then in the main page class @Override protected void onBeforeRender() { super.onBeforeRender(); add(WicketApplication.get().getHcm().getHeaderContributor(getClass())); } since the manager knows all of the resources added for the page at this point, it is easy to compress them all together and serve a single file, and you dont have to list the files up front. What do you think of this idea? My code is here: http://www.nabble.com/file/p19279269/HeaderContribManagerTest.zip HeaderContribManagerTest.zip It still has bugs etc
Re: Discussion on Wicket Interface Speed-Up
On Wed, Sep 03, 2008 at 04:34:34PM +0100, Al Maw wrote: I'd even go so far as to remove the need for HeaderContributor code entirely in 80% of the cases. Wicket could automatically pick up css and js files that are named the same as your component. MyComponent.java MyComponent.html MyComponent.properties So why not: MyComponent.css MyComponent.js ? Heck, you could even include i18n for dealing with language-specific layout issues: MyComponent_jp.css Regards, Al +1. I even tried this once since it seemed like such an intuitive thing. jk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Discussion on Wicket Interface Speed-Up
in html: html head wicket:head wicket:link link href=MyComponent.css rel=stylesheet / script src=MyComponent.js type=text/javascript /script /wicket:link /wicket:head /head body wicket:panel some foo /wicket:panel /body /html Which has the added bonus of being previewable. Martijn On Wed, Sep 3, 2008 at 5:34 PM, Al Maw [EMAIL PROTECTED] wrote: Hmmm. As you say, there's no easy one-size-fits-all. There is an obvious improvement you could make, though. All JS/CSS contributions initially rendered on the home page could be batched up. This will typically provide the biggest improvement anyway. You could then keep a reference to this batch, and use it instead of individually including any of these constituent contributions elsewhere. This would also give fairly intuitive behaviour - if you want to pre-load your JS/CSS in a single batch, just add the headercontributors to your home page, and Wicket will figure it out. I've long hated having to specify the component class in header contributors, as 99% of the time the resources live in the same package (or in a subpackage) as the component they belong to. I'd even go so far as to remove the need for HeaderContributor code entirely in 80% of the cases. Wicket could automatically pick up css and js files that are named the same as your component. MyComponent.java MyComponent.html MyComponent.properties So why not: MyComponent.css MyComponent.js ? Heck, you could even include i18n for dealing with language-specific layout issues: MyComponent_jp.css Regards, Al 2008/9/3 richardwilko [EMAIL PROTECTED] I see your point, essentially we have 1 (relativity large) bundle file per page, and if you have 5 pages which use jquery, tinymce and ajax then you are worse off, since the normal way you would have already cached the 3 individual files (this is what you meant right?) Maybe there is some way to automatically work out the best bundles to create depending on usage, so dont create bundles based on page, but based on contents? I think the real answer is that everyones usage is different and what is good for one system isn't good for another. igor.vaynberg wrote: It's not the pages that have these files. Let's say I have a page that uses jquery and a textfield with a button that toggles tinymce. If we do what you say then there are two possible files: jquery and jquery+tinymce. Than let's say I add Ajax to the page, now there are 6 possibilities depending on which components are currently on the page. IMHO much cheaper to just cache jquery, tinymce, wicket-Ajax individually. -Igor On 9/3/08, richardwilko [EMAIL PROTECTED] wrote: im not sure we could help in the cases where you have dynamic header contributors, like you say you would either have to specify them up front (ie add them into the page not the panel, breaking encapsulation) or just serve via the normal header contributor. But i dont see how this would result in many many large files. you would have a single file for the static stuff, and then each dynamic one would have its own file (assuming not specified up front). This would still bring down the total number. eg a page has 6 static js and 2 dynamic js which would get turned into 1 static js and the same 2 dynamic js. cases where a component and resulting header contributers are added via ajax wouldnt be important for the initial page load speed anyway, as they are added after the page has loaded. Richard igor.vaynberg wrote: problem with this is that pages can have dynamic components which dynamic header contributions. so either you have to somehow collect all possible header contributions from all possible component combinations - breaking encapsulation in the process, or you have to do what you do - ending up with many many possible and big javascript files to serve to the user. -igor On Tue, Sep 2, 2008 at 2:57 PM, richardwilko [EMAIL PROTECTED] wrote: The problem of breaking encapsulation: I did some work on this problem on my own a few months ago, my solution was to use a header contrib manager, and instead of adding files with a header contributer i add them to the manager, then get a single contributer per page from the manger. for example in a panel you would do @Override protected void onBeforeRender() { super.onBeforeRender(); ResourceReference rr = new ResourceReference(getClass(), test.js); WicketApplication.get().getHcm().add(rr, getPage().getClass()); } See how it uses getPage().getClass(), so the manager knows which class the panel is being added into then in the main page class @Override protected void onBeforeRender() { super.onBeforeRender(); add(WicketApplication.get().getHcm().getHeaderContributor(getClass())); }
RadioGroup to select DataTable rows, any example?
Hello, I am still fairly new to Wicket and currently trying to create a table with a still unknown number of entries from which one row can be selected. I created a table using the DefaultDataTable class, was able to fill it using PropertyColumn for data columns and AbstractColum for links (e.g. to entry-specific edit or view pages) and the table looks fine. However I am still unable to add radio box inputs to one of the table's columns. I read the wiki article in [1] and two older threads in this list which seemed to help the original posters, but as it seems my understanding of Wicket's concepts is still too limited for this to help me, so that I would like to ask if anyone has a working code example (Java code and HTML snippet) and would be so kind to post it here? Cheers, Martin [1] http://cwiki.apache.org/WICKET/using-radiogroups.html -- --- / http://herbert.the-little-red-haired-girl.org / - =+= Steht ein Bratscher vor 'ner Kneipe. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RadioGroup to select DataTable rows, any example?
there is an example in wicket-phonebook -igor On Wed, Sep 3, 2008 at 10:32 AM, Martin Dietze [EMAIL PROTECTED] wrote: Hello, I am still fairly new to Wicket and currently trying to create a table with a still unknown number of entries from which one row can be selected. I created a table using the DefaultDataTable class, was able to fill it using PropertyColumn for data columns and AbstractColum for links (e.g. to entry-specific edit or view pages) and the table looks fine. However I am still unable to add radio box inputs to one of the table's columns. I read the wiki article in [1] and two older threads in this list which seemed to help the original posters, but as it seems my understanding of Wicket's concepts is still too limited for this to help me, so that I would like to ask if anyone has a working code example (Java code and HTML snippet) and would be so kind to post it here? Cheers, Martin [1] http://cwiki.apache.org/WICKET/using-radiogroups.html -- --- / http://herbert.the-little-red-haired-girl.org / - =+= Steht ein Bratscher vor 'ner Kneipe. - 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]
Re: page expired warning
General how do you intercept pages when unauthorized? I saw that you mounted payment.class which only should be reachable when logged in right? Nothing here stands out btw, a simple quickstart would be nice.. And if it's something in a hurry since I live in dk(copenhagen area) and are consultant I could come by and assist you if wanted? replying inline for some of your stuff. wenm wrote: Hi I have tried to upgrade to 1.3.4, but it doesn't help. WebApplication protected void init() { super.init(); getRequestCycleSettings().setResponseRequestEncoding(ISO-8859-1); getResourceSettings().setThrowExceptionOnMissingResource(false); mount(new HybridUrlCodingStrategy(/payment, Payment.class)); mount(new HybridUrlCodingStrategy(/login, Login.class)); mount(new HybridUrlCodingStrategy(/menu, Menu.class)); } Above looks fine...Although I think the resource and request stuff are default, cant remember. 1)Login Class class LoginForm extends Form { public LoginForm(String id) { super(id); } public void onSubmit() { String userId = getUsername(); String password = getPassword(); if (!session.authenticate(userId, password)) { // authenticate fail Login returnLogin = new Login(); returnLogin.setErrorMsg(session.getLoginResponse().getReturnMessage()); int errorCode = session.getLoginResponse().getReturnCode(); String errorKey = session.getLoginResponse().getReturnKey(); setResponsePage(returnLogin); im not sure why you do above? I guess an error(not authenticated) should do? } else { // authenticate success setResponsePage(Menu.class); } } } 2)Menu Class add(new BookmarkablePageLink(payment-link, Payment.class)); 3)Payment Class Hi Sound's really wierd, like you are trying to post some stuff or something.. Could you show us some code..? And you should really upgrade to 1.3.4 since there were a lot of bug fixing going on from 1.3.1 to 1.3.4 -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do you use wicket Link to redirect you to FTP?
thanks for your help, I tried the code you checked in, but it doesn't work, it still redirects me to the app relative http url.. this is because in the RedirectRequestTarget line 93: response.redirect(redirectUrl); the response object is of type webResponse, which will not allow you to go to a non http url (with the exception being if it's https). I'll see if maybe I can look deeper into this problem, or maybe there is another way around it? thanks, Aaron igor.vaynberg wrote: this was a bug, fixed.get a snapshot, build yourself from svn, or wait for the next release. -igor On Tue, Sep 2, 2008 at 4:51 PM, groffhibbitz [EMAIL PROTECTED] wrote: Hi, I'm using a wicket link component in one of my pages and when the user clicks on the link i want it to check if they are logged in, and then redirect them to this FTP url: ftp://myftpaddress.com and I tried adding a RedirectToURLException(ftp://myftpaddress.com;); to the onclick of the link, but that just tries to send me to /app/ftp://myftpaddress.com that is.. relative to the root of my web application... If I use the ExternalLink class instead of the regular Link class, I can't add any logic to the onClick method (as there is no such method in an external link). Any thoughts on how to solve this problem? thanks in advance -- View this message in context: http://www.nabble.com/How-do-you-use-wicket-Link-to-redirect-you-to-FTP--tp19280608p19280608.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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] -- View this message in context: http://www.nabble.com/How-do-you-use-wicket-Link-to-redirect-you-to-FTP--tp19280608p19294906.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do you use wicket Link to redirect you to FTP?
all we do in webresponse is call httpServletResponse.sendRedirect(url); which should work fine. so if webresponse.redirect is getting the correct url (ftp://foo) but still redirects to a relative url it might be a bug in the servlet container... can you verify what url is passed into webresponse.redirect() ? -igor On Wed, Sep 3, 2008 at 11:17 AM, groffhibbitz [EMAIL PROTECTED] wrote: thanks for your help, I tried the code you checked in, but it doesn't work, it still redirects me to the app relative http url.. this is because in the RedirectRequestTarget line 93: response.redirect(redirectUrl); the response object is of type webResponse, which will not allow you to go to a non http url (with the exception being if it's https). I'll see if maybe I can look deeper into this problem, or maybe there is another way around it? thanks, Aaron igor.vaynberg wrote: this was a bug, fixed.get a snapshot, build yourself from svn, or wait for the next release. -igor On Tue, Sep 2, 2008 at 4:51 PM, groffhibbitz [EMAIL PROTECTED] wrote: Hi, I'm using a wicket link component in one of my pages and when the user clicks on the link i want it to check if they are logged in, and then redirect them to this FTP url: ftp://myftpaddress.com and I tried adding a RedirectToURLException(ftp://myftpaddress.com;); to the onclick of the link, but that just tries to send me to /app/ftp://myftpaddress.com that is.. relative to the root of my web application... If I use the ExternalLink class instead of the regular Link class, I can't add any logic to the onClick method (as there is no such method in an external link). Any thoughts on how to solve this problem? thanks in advance -- View this message in context: http://www.nabble.com/How-do-you-use-wicket-Link-to-redirect-you-to-FTP--tp19280608p19280608.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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] -- View this message in context: http://www.nabble.com/How-do-you-use-wicket-Link-to-redirect-you-to-FTP--tp19280608p19294906.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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]
Add a javascript window to a Link when text input not saved
Hi, I'm trying to figure out the following, any help will be apreciated. I have a form with 3 TextFields , a DropDownChoice and a save button , and a BookmarkablePageLink in the page. I need to add a javascript confirm window to the Link whenever any input changed without save (submit). and remove the confirm window when the change is saved. public aPage() { form = new Form(form); DropDownChoicequestion questions = new DropDownChoice(question, ...); form.add(questions); TextField answer1 = new RequiredTextField(answer1); TextField answer2 = new RequiredTextField(answer2); TextField answer3 = new RequiredTextField(answer3); form.add(answer1); form.add(answer2); form.add(answer3); form.add(new Button(save) { @Override public void onSubmit() { saveChanges(); //remove the confirm window } } add(form); BookmarkablePageLink alink = new BookmarkablePageLink(alink, LinkPage.class)); add(alink); } -- View this message in context: http://www.nabble.com/Add-a-javascript-window-to-a-Link-when-text-input-not-saved-tp19295365p19295365.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Discussion on Wicket Interface Speed-Up
Ignoring the iPhone - not everyone has that as a target platform - the bruteforce method of packaging everything into one file isn't that bad. The initial bandwidth hit is outweighed be reducing requests to one (or two, one js, one css file). That means the first page loads a bit longer, which is normal in most cases anyway, while all other pages loaded afterwards need no additional css/js at all, therefore being potentially lightning fast. Putting all page specific scripts into one file isn't trivial. I've found that its very easy to handle by starting each script to check if a certain dom element, selected via ID, exists. In my case, using jQuery, something like this: Subpage.js jQuery(function($) { if ($(#somePageSpecificId).length) { // Subpage is active, do something } }); ID selectors should have no performance impact at all, as long as there aren't thousands of them, which is very unlikely in this scenario. The same applies to CSS, where page specific styles are namespaces with parent ids - same concept, easier to write. If you *are* targeting the iPhone, you proably shouldn't load a full library and tinymce and what not anyway... Jörn On Wed, Sep 3, 2008 at 4:21 PM, Matej Knopp [EMAIL PROTECTED] wrote: There is yet another thing to consider. Iphone doesn't cache resources bigger than 25kb (after unzipping). So instead of grouping files together sometimes it even might be appropriate to split them... -Matej On Wed, Sep 3, 2008 at 4:11 PM, [EMAIL PROTECTED] wrote: It's not the pages that have these files. Let's say I have a page that uses jquery and a textfield with a button that toggles tinymce. If we do what you say then there are two possible files: jquery and jquery+tinymce. Than let's say I add Ajax to the page, now there are 6 possibilities depending on which components are currently on the page. IMHO much cheaper to just cache jquery, tinymce, wicket-Ajax individually. -Igor On 9/3/08, richardwilko [EMAIL PROTECTED] wrote: im not sure we could help in the cases where you have dynamic header contributors, like you say you would either have to specify them up front (ie add them into the page not the panel, breaking encapsulation) or just serve via the normal header contributor. But i dont see how this would result in many many large files. you would have a single file for the static stuff, and then each dynamic one would have its own file (assuming not specified up front). This would still bring down the total number. eg a page has 6 static js and 2 dynamic js which would get turned into 1 static js and the same 2 dynamic js. cases where a component and resulting header contributers are added via ajax wouldnt be important for the initial page load speed anyway, as they are added after the page has loaded. Richard igor.vaynberg wrote: problem with this is that pages can have dynamic components which dynamic header contributions. so either you have to somehow collect all possible header contributions from all possible component combinations - breaking encapsulation in the process, or you have to do what you do - ending up with many many possible and big javascript files to serve to the user. -igor On Tue, Sep 2, 2008 at 2:57 PM, richardwilko [EMAIL PROTECTED] wrote: The problem of breaking encapsulation: I did some work on this problem on my own a few months ago, my solution was to use a header contrib manager, and instead of adding files with a header contributer i add them to the manager, then get a single contributer per page from the manger. for example in a panel you would do @Override protected void onBeforeRender() { super.onBeforeRender(); ResourceReference rr = new ResourceReference(getClass(), test.js); WicketApplication.get().getHcm().add(rr, getPage().getClass()); } See how it uses getPage().getClass(), so the manager knows which class the panel is being added into then in the main page class @Override protected void onBeforeRender() { super.onBeforeRender(); add(WicketApplication.get().getHcm().getHeaderContributor(getClass())); } since the manager knows all of the resources added for the page at this point, it is easy to compress them all together and serve a single file, and you dont have to list the files up front. What do you think of this idea? My code is here: http://www.nabble.com/file/p19279269/HeaderContribManagerTest.zip HeaderContribManagerTest.zip It still has bugs etc in it, and doesnt really work cos ive messed up the registerResource method, but you should be able to get the idea from it Richard - http://www.richard-wilkinson.co.uk My blog: http://www.richard-wilkinson.co.uk -- View this message in context: http://www.nabble.com/Discussion-on-%22Wicket-Interface-Speed-Up%22-tp19197540p19279269.html Sent from the Wicket - User mailing list archive at
FREE Online Test at www.yfrindia.com
http://www.yfrindia.com/ Take FREE online TEST, read FREE articles, download FREE presentation, use FREE source code, useful links, competition updates, free ONLINE TEST TESTS, http://www.yfrindia.com/resources/Tests free APTITUDE TEST, English Test, Computer Test, Mechanical Test, Electronics Test, Electrical Test, GATE preparation, CAT preparation, Job preparation, resume. http://www.yfrindia.com/ -- View this message in context: http://www.nabble.com/FREE-Online-Test-at-www.yfrindia.com-tp19295866p19295866.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FileUpload - need to set a model to get updateModel working?
if you do not give it a model explicitly then it will try to stick the inputstream into the cpm, thats how cpms work... if you set hasexcplicitmodel(false) then the model will not be updated, instead you will have to call getfileupload() yourself. what exactly are you trying to do? -igor On Tue, Sep 2, 2008 at 11:22 PM, Ned Collyer [EMAIL PROTECTED] wrote: I have a form with a CompoundPropertyModel. One of the fields inside this model is a FileUpload. Why do I need to pass a dummy model, (or the current model) through to the FileUploadField - is this an oversight? I cannot find details surrounding the private hasExplicitModel boolean in FileUploadField. Other fields - eg, TextField automatically use and update their parent CPM. Rgds Ned -- View this message in context: http://www.nabble.com/FileUpload---need-to-set-a-model-to-get-updateModel-working--tp19283571p19283571.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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]
Wicket Modal Window - IFrame
I'm currently running into an issue with the wicket modal window. My situation is this. Wicket App A contains an IFrame sourcing Wicket App B. B has an Wicket IFrame modal window on one of it's pages. When Wicket.Window.create in modal.js is called from B, the Wicket.Window is pulled from window.parent.Wicket.Window which has been created in A. Now the remaining functions called on Wicket.Window are referencing functions from A modal.js This becomes a problem when the createDOM in modal.js is called. The div tag containing the modal html from B is created in A's document. The iframes src is relative so the content for the modal is not found. One solution is to have Wicket App B use WebRequestCodingStrategy and encode all it's url's from relative to absolute. This is not an optimal solution as I have no control over the multiple wicket apps that will be sourced in Wicket App A's iframe. Is there anyway to essentially namespace the Wicket.Window so B does not pick up A's objects? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket Modal Window - IFrame
On Wed, Sep 3, 2008 at 10:13 PM, Shaun Thompson [EMAIL PROTECTED] wrote: I'm currently running into an issue with the wicket modal window. My situation is this. Wicket App A contains an IFrame sourcing Wicket App B. B has an Wicket IFrame modal window on one of it's pages. When Wicket.Window.create in modal.js is called from B, the Wicket.Window is pulled from window.parent.Wicket.Window which has been created in A. Now the remaining functions called on Wicket.Window are referencing functions from A modal.js This becomes a problem when the createDOM in modal.js is called. The div tag containing the modal html from B is created in A's document. The iframes src is relative so the content for the modal is not found. One solution is to have Wicket App B use WebRequestCodingStrategy and encode all it's url's from relative to absolute. This is not an optimal solution as I have no control over the multiple wicket apps that will be sourced in Wicket App A's iframe. Is there anyway to essentially namespace the Wicket.Window so B does not pick up A's objects? I don't think so. And the modal window wasn't really meant to be able to contain different/multiple applications. -Matej Thanks - 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]
Re: Google Chrome Wicket
I'm getting the same Received ajax response (0 characters) / Error while parsing response: Could not find root ajax-response element message in the ajax debug window. We're using 1.3.4. Our application is totally inoperable in Chrome. I'm not worrying too much, though, since Chrome is still beta, but am curious how this works out... LBB -- View this message in context: http://www.nabble.com/Google-Chrome---Wicket-tp19277005p19298676.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Show/hide WebMarkupContainer
I got it now! Thanks a ton, guys!!! -- View this message in context: http://www.nabble.com/Show-hide-WebMarkupContainer-tp19290460p19298794.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do you use wicket Link to redirect you to FTP?
I verified the url getting passed in to response.redirect() by implementing my own IRequestTarget class which logs what the URL is right before response.redirect() is called... then I get this result in my browser: The resource you requested could not be found. /app/ftp://location/testing%20to%20see%20wat it seems maybe httpServletResponse.sendRedirect(url); cannot redirect to non http? igor.vaynberg wrote: all we do in webresponse is call httpServletResponse.sendRedirect(url); which should work fine. so if webresponse.redirect is getting the correct url (ftp://foo) but still redirects to a relative url it might be a bug in the servlet container... can you verify what url is passed into webresponse.redirect() ? -igor On Wed, Sep 3, 2008 at 11:17 AM, groffhibbitz [EMAIL PROTECTED] wrote: thanks for your help, I tried the code you checked in, but it doesn't work, it still redirects me to the app relative http url.. this is because in the RedirectRequestTarget line 93: response.redirect(redirectUrl); the response object is of type webResponse, which will not allow you to go to a non http url (with the exception being if it's https). I'll see if maybe I can look deeper into this problem, or maybe there is another way around it? thanks, Aaron igor.vaynberg wrote: this was a bug, fixed.get a snapshot, build yourself from svn, or wait for the next release. -igor On Tue, Sep 2, 2008 at 4:51 PM, groffhibbitz [EMAIL PROTECTED] wrote: Hi, I'm using a wicket link component in one of my pages and when the user clicks on the link i want it to check if they are logged in, and then redirect them to this FTP url: ftp://myftpaddress.com and I tried adding a RedirectToURLException(ftp://myftpaddress.com;); to the onclick of the link, but that just tries to send me to /app/ftp://myftpaddress.com that is.. relative to the root of my web application... If I use the ExternalLink class instead of the regular Link class, I can't add any logic to the onClick method (as there is no such method in an external link). Any thoughts on how to solve this problem? thanks in advance -- View this message in context: http://www.nabble.com/How-do-you-use-wicket-Link-to-redirect-you-to-FTP--tp19280608p19280608.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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] -- View this message in context: http://www.nabble.com/How-do-you-use-wicket-Link-to-redirect-you-to-FTP--tp19280608p19294906.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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] -- View this message in context: http://www.nabble.com/How-do-you-use-wicket-Link-to-redirect-you-to-FTP--tp19280608p19299104.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do you use wicket Link to redirect you to FTP?
I worked around the problem by doing setResponsePage(new RedirectPage(ftp://whatever)); setRedirect(true); inside my links onClick method. Thanks for your help! groffhibbitz wrote: I verified the url getting passed in to response.redirect() by implementing my own IRequestTarget class which logs what the URL is right before response.redirect() is called... then I get this result in my browser: The resource you requested could not be found. /app/ftp://location/testing%20to%20see%20wat it seems maybe httpServletResponse.sendRedirect(url); cannot redirect to non http? igor.vaynberg wrote: all we do in webresponse is call httpServletResponse.sendRedirect(url); which should work fine. so if webresponse.redirect is getting the correct url (ftp://foo) but still redirects to a relative url it might be a bug in the servlet container... can you verify what url is passed into webresponse.redirect() ? -igor On Wed, Sep 3, 2008 at 11:17 AM, groffhibbitz [EMAIL PROTECTED] wrote: thanks for your help, I tried the code you checked in, but it doesn't work, it still redirects me to the app relative http url.. this is because in the RedirectRequestTarget line 93: response.redirect(redirectUrl); the response object is of type webResponse, which will not allow you to go to a non http url (with the exception being if it's https). I'll see if maybe I can look deeper into this problem, or maybe there is another way around it? thanks, Aaron igor.vaynberg wrote: this was a bug, fixed.get a snapshot, build yourself from svn, or wait for the next release. -igor On Tue, Sep 2, 2008 at 4:51 PM, groffhibbitz [EMAIL PROTECTED] wrote: Hi, I'm using a wicket link component in one of my pages and when the user clicks on the link i want it to check if they are logged in, and then redirect them to this FTP url: ftp://myftpaddress.com and I tried adding a RedirectToURLException(ftp://myftpaddress.com;); to the onclick of the link, but that just tries to send me to /app/ftp://myftpaddress.com that is.. relative to the root of my web application... If I use the ExternalLink class instead of the regular Link class, I can't add any logic to the onClick method (as there is no such method in an external link). Any thoughts on how to solve this problem? thanks in advance -- View this message in context: http://www.nabble.com/How-do-you-use-wicket-Link-to-redirect-you-to-FTP--tp19280608p19280608.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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] -- View this message in context: http://www.nabble.com/How-do-you-use-wicket-Link-to-redirect-you-to-FTP--tp19280608p19294906.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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] -- View this message in context: http://www.nabble.com/How-do-you-use-wicket-Link-to-redirect-you-to-FTP--tp19280608p19299342.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FileUpload - need to set a model to get updateModel working?
class MyObj { transient FileUpload fileUpload; String description; } Form form = new Form(form, new CompoundPropertyModel(new MyObj)); form.add(new TextField(description)); -- this works form.add(new FileUploadField(fileUpload)); -- this doesnt form.add(new FileUploadField(fileUpload), getModel()); -- this works form.add(new FileUploadField(fileUpload), null); -- havent tried this - assume it may work. hasexcplicitmodel is private, so the only way to toggle it is by calling one of the methods on FileUpload. The method in FileUploadField @Override public void updateModel() { // Only update the model if one was passed in if (hasExplicitModel) { setModelObject(getFileUpload()); } } I'm using wicket 1.4-m1 at the moment. igor.vaynberg wrote: if you do not give it a model explicitly then it will try to stick the inputstream into the cpm, thats how cpms work... if you set hasexcplicitmodel(false) then the model will not be updated, instead you will have to call getfileupload() yourself. what exactly are you trying to do? -igor On Tue, Sep 2, 2008 at 11:22 PM, Ned Collyer [EMAIL PROTECTED] wrote: I have a form with a CompoundPropertyModel. One of the fields inside this model is a FileUpload. Why do I need to pass a dummy model, (or the current model) through to the FileUploadField - is this an oversight? I cannot find details surrounding the private hasExplicitModel boolean in FileUploadField. Other fields - eg, TextField automatically use and update their parent CPM. Rgds Ned -- View this message in context: http://www.nabble.com/FileUpload---need-to-set-a-model-to-get-updateModel-working--tp19283571p19283571.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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] -- View this message in context: http://www.nabble.com/FileUpload---need-to-set-a-model-to-get-updateModel-working--tp19283571p19299551.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Google Chrome Wicke
I tried the browser on our own production code, and it doesn't work on pages that use wicket ajax heavily. I actually tried it on http://wicketstuff.org/wicket13/ajax/modal-window and it doesn't work their either. Even if does work on 1.4, I think depending on when this thing releases, 1.3 has to support it. Now It may be that Google has to fix their browser as I heard that even salesforce.com is not working with Chrome. Matej Knopp-2 wrote: Can you try that with latest trunk? -Matej On Wed, Sep 3, 2008 at 1:51 AM, cstein1206 [EMAIL PROTECTED] wrote: That's weird since I don't get anything (examples are from 1.4-m3). For me it seems like Chrome is handling the AJAX responses differently as it's always reporting 0 characters in the response. Here's the full debug output of the modal window from Chrome when clicking on Show modal dialog with a page: INFO: Using XMLHttpRequest transport INFO: INFO: Initiating Ajax GET request on ?wicket:interface=:1:showModal1::IBehaviorListener:0:random=0.8373860055580735 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (0 characters) INFO: ERROR: Error while parsing response: Could not find root ajax-response element INFO: Invoking post-call handler(s)... INFO: Invoking failure handler(s)... HTH -Chris Matej Knopp-2 wrote: Modal window seems to work fine for me, except that events are not propagated when mouse is over iframe. Tabbed panel works fine, so does editable label and clock example. (tested with latest 1.4 examples) -Matej On Tue, Sep 2, 2008 at 11:53 PM, cstein1206 [EMAIL PROTECTED] wrote: I have installed Google Chrome as well and found several Wicket extensions not working, namely - modal window - tabbed panels - editable label - clock example Maybe it's a bit too early for Chrome... -- View this message in context: http://www.nabble.com/Google-Chrome---Wicket-tp19277005p19279190.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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] -- View this message in context: http://www.nabble.com/Google-Chrome---Wicket-tp19277005p19280602.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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] -- View this message in context: http://www.nabble.com/Google-Chrome---Wicket-tp19277005p19299760.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket-like framework to complement wicket?
without bells and whistles, i'd like to announce the availability of gluw, a utility library to glue wicket together with a persistence stack (guice+salve+warp+neodatis odb). http://code.google.com/p/gluw/ the idea is to allow for rapid prototype development in a DDD fashion, because after setup you should be able to get going really fast. i tested it in two or three of my projects and it seems to work fine (also with wicket quickstart - no probs so far). if you're willing to give it a shot let me know your impressions. i must say that it is quite experimental for the moment -- mainly because of neodatis object database integration. nino, do you still think we could make this fit in wicket-iolite or some other sort of maven archetype? (btw, sorry guys, i'll be mavenizing the project soon; there are perhaps too many libraries to handle manually). francisco On Fri, Aug 22, 2008 at 1:32 PM, francisco treacy [EMAIL PROTECTED] wrote: i opened up a googlecode account, where i'll be hosting the project. i need to write some more tests, sort out a configuration issue and polish it up. then i will do the first commit. btw i chose a random name: gluw (pronunced 'glue' and meaning sth like glue for wicket) because it's all about that :) http://code.google.com/p/gluw/ , there's no code available yet though. i'll keep you updated. cheers, francisco On Fri, Aug 22, 2008 at 8:48 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Great:) No great names pop to my mind now:( francisco treacy wrote: sure! when i'm finished with neodatis integration, i'll open source the whole thing (really small though). we could then create a wicket-iolite archetype. i'll check if all the dependencies are available in public maven repos. i'll keep you updated. i'm looking for a name for this thing... have already 2 or 3 but suggestions are welcome :) francisco On Thu, Aug 21, 2008 at 1:54 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Really great, now we just need it to get packed with Wicket iolite:) francisco treacy wrote: hi guys, i started to work on a little utility to glue some libraries that i already use with wicket. they became a standard stack when i develop applications: these are guice, salve, warp-persist and neodatis odb. this utility is meant to work with wicket, so i thought it would be nice to add some wicket-specific functionality like databinder does, for example. just a simple library to bootstrap with wicket, providing out-of-the-box dependency injection, transactions and persistence to your domain classes. i imagine neodatis could be easily replaced with any other database, thanks to warp-persist's pluggable persistence strategies. perhaps somebody else is using the same technologies and finds this idea worthwhile. more here: http://blog.zoptio.net/2008/08/21/wicket-like-framework-to-complement-wicket/ let me know what you think -- even if it's complete nonsense :) thanks! francisco - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - 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] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - 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]
Newbie Tries Out Wicket Threads
http://www.nabble.com/file/p19300742/wicket.jpg -- View this message in context: http://www.nabble.com/Newbie-Tries-Out-Wicket-Threads-tp19300742p19300742.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How do you use wicket Link to redirect you to FTP?
hmm now i have a new problem, when I click on my link, after it loads the ftp link, the browswer is left on a blank wicket page of the url: http://localhost/app/?wicket:interface=:2 how can I get the browser to stay on the original page? groffhibbitz wrote: I worked around the problem by doing setResponsePage(new RedirectPage(ftp://whatever)); setRedirect(true); inside my links onClick method. Thanks for your help! groffhibbitz wrote: I verified the url getting passed in to response.redirect() by implementing my own IRequestTarget class which logs what the URL is right before response.redirect() is called... then I get this result in my browser: The resource you requested could not be found. /app/ftp://location/testing%20to%20see%20wat it seems maybe httpServletResponse.sendRedirect(url); cannot redirect to non http? igor.vaynberg wrote: all we do in webresponse is call httpServletResponse.sendRedirect(url); which should work fine. so if webresponse.redirect is getting the correct url (ftp://foo) but still redirects to a relative url it might be a bug in the servlet container... can you verify what url is passed into webresponse.redirect() ? -igor On Wed, Sep 3, 2008 at 11:17 AM, groffhibbitz [EMAIL PROTECTED] wrote: thanks for your help, I tried the code you checked in, but it doesn't work, it still redirects me to the app relative http url.. this is because in the RedirectRequestTarget line 93: response.redirect(redirectUrl); the response object is of type webResponse, which will not allow you to go to a non http url (with the exception being if it's https). I'll see if maybe I can look deeper into this problem, or maybe there is another way around it? thanks, Aaron igor.vaynberg wrote: this was a bug, fixed.get a snapshot, build yourself from svn, or wait for the next release. -igor On Tue, Sep 2, 2008 at 4:51 PM, groffhibbitz [EMAIL PROTECTED] wrote: Hi, I'm using a wicket link component in one of my pages and when the user clicks on the link i want it to check if they are logged in, and then redirect them to this FTP url: ftp://myftpaddress.com and I tried adding a RedirectToURLException(ftp://myftpaddress.com;); to the onclick of the link, but that just tries to send me to /app/ftp://myftpaddress.com that is.. relative to the root of my web application... If I use the ExternalLink class instead of the regular Link class, I can't add any logic to the onClick method (as there is no such method in an external link). Any thoughts on how to solve this problem? thanks in advance -- View this message in context: http://www.nabble.com/How-do-you-use-wicket-Link-to-redirect-you-to-FTP--tp19280608p19280608.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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] -- View this message in context: http://www.nabble.com/How-do-you-use-wicket-Link-to-redirect-you-to-FTP--tp19280608p19294906.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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] -- View this message in context: http://www.nabble.com/How-do-you-use-wicket-Link-to-redirect-you-to-FTP--tp19280608p19300753.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Google Chrome Wicket
They said that they prioritize which sites they test Chrome with based on google searches. So, everyone google for Wicket examples! On Wed, Sep 3, 2008 at 5:34 PM, lesterburlap [EMAIL PROTECTED] wrote: I'm getting the same Received ajax response (0 characters) / Error while parsing response: Could not find root ajax-response element message in the ajax debug window. We're using 1.3.4. Our application is totally inoperable in Chrome. I'm not worrying too much, though, since Chrome is still beta, but am curious how this works out... LBB -- View this message in context: http://www.nabble.com/Google-Chrome---Wicket-tp19277005p19298676.html Sent from the Wicket - User mailing list archive at Nabble.com. - 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]
Re: How do you use wicket Link to redirect you to FTP?
well so now i'm thoroughly confused I created a new http servlet extending HttpServletBean and inside it i call response.sendRedirect and it redirects me to a non http url just fine...i wonder why the same call in wickets webResponse class doesn't seem to work...hrm...maybe it isn't really getting called as i thought it was... groffhibbitz wrote: Hi, I'm using a wicket link component in one of my pages and when the user clicks on the link i want it to check if they are logged in, and then redirect them to this FTP url: ftp://myftpaddress.com and I tried adding a RedirectToURLException(ftp://myftpaddress.com;); to the onclick of the link, but that just tries to send me to /app/ftp://myftpaddress.com that is.. relative to the root of my web application... If I use the ExternalLink class instead of the regular Link class, I can't add any logic to the onClick method (as there is no such method in an external link). Any thoughts on how to solve this problem? thanks in advance -- View this message in context: http://www.nabble.com/How-do-you-use-wicket-Link-to-redirect-you-to-FTP--tp19280608p19301356.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket Modal Window - IFrame
Matej, Just to be clear - it's not that a modal window in Wicket App A is sourcing content from Wicket App B. It's that in this scenario Wicket App A has an generic iframe - not wicket produced - who's src is Wicket App B. The code here when run from B on modal creation pulls the Wicket.Window from A which I don't want. I want all modal content to be created in the iframe document that Wicket App B is sourced in. Wicket.Window.create = function(settings) { var win; if (typeof(settings.src) != undefined Wicket.Browser.isKHTML() == false) { try { win = window.parent.Wicket.Window; } catch (ignore) { } } Matej Knopp-2 wrote: On Wed, Sep 3, 2008 at 10:13 PM, Shaun Thompson [EMAIL PROTECTED] wrote: I'm currently running into an issue with the wicket modal window. My situation is this. Wicket App A contains an IFrame sourcing Wicket App B. B has an Wicket IFrame modal window on one of it's pages. When Wicket.Window.create in modal.js is called from B, the Wicket.Window is pulled from window.parent.Wicket.Window which has been created in A. Now the remaining functions called on Wicket.Window are referencing functions from A modal.js This becomes a problem when the createDOM in modal.js is called. The div tag containing the modal html from B is created in A's document. The iframes src is relative so the content for the modal is not found. One solution is to have Wicket App B use WebRequestCodingStrategy and encode all it's url's from relative to absolute. This is not an optimal solution as I have no control over the multiple wicket apps that will be sourced in Wicket App A's iframe. Is there anyway to essentially namespace the Wicket.Window so B does not pick up A's objects? I don't think so. And the modal window wasn't really meant to be able to contain different/multiple applications. -Matej Thanks - 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] -- View this message in context: http://www.nabble.com/Wicket-Modal-Window---IFrame-tp19297181p19301522.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]