Re: Using relative path with HeaderContributor
So now things are actually working as they should. Forget this thread, I am an idiot. Thanks and keep up the good work. - Juha Juha Alatalo wrote: Now browser does never find my css-file. What is the "trick" to make things work again? James Carman wrote: This is not a bug. The $up$ stuff was put in there to "trick" the browser into not trying to automatically resolve the ".." for you. This is necessary for resources. On Mon, Jun 16, 2008 at 7:02 AM, Juha Alatalo <[EMAIL PROTECTED]> wrote: Hi, We started to use 1.3.X because https://issues.apache.org/jira/browse/WICKET-1667 will be probably fixed soon in 1.3.X. There seems to be some changes in public static String resourceKey(final String path, final Locale locale, final String style) in SharedResources. We have been using following reference to a css-file public static final CompressedResourceReference MES_CSS = new CompressedResourceReference(MesFunc.class, "../../../somePath/main.css"); public MeasurementDataPage() { super(); add(HeaderContributor.forCss( MES_CSS )); } In 1.3.3 source looked like this: href="resources/syncrontech.paroc.mes.common.MesFunc/../../../syncrontech/paroc/mes/themes/main.css" /> Now in 1.3.X it looks like this: href="resources/syncrontech.paroc.mes.common.MesFunc/$up$/$up$/$up$/syncrontech/paroc/mes/themes/main.css" /> Is this a bug or do I have to move all my css files to a such location where .. is not needed? - Juha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using relative path with HeaderContributor
Now browser does never find my css-file. What is the "trick" to make things work again? James Carman wrote: This is not a bug. The $up$ stuff was put in there to "trick" the browser into not trying to automatically resolve the ".." for you. This is necessary for resources. On Mon, Jun 16, 2008 at 7:02 AM, Juha Alatalo <[EMAIL PROTECTED]> wrote: Hi, We started to use 1.3.X because https://issues.apache.org/jira/browse/WICKET-1667 will be probably fixed soon in 1.3.X. There seems to be some changes in public static String resourceKey(final String path, final Locale locale, final String style) in SharedResources. We have been using following reference to a css-file public static final CompressedResourceReference MES_CSS = new CompressedResourceReference(MesFunc.class, "../../../somePath/main.css"); public MeasurementDataPage() { super(); add(HeaderContributor.forCss( MES_CSS )); } In 1.3.3 source looked like this: Now in 1.3.X it looks like this: Is this a bug or do I have to move all my css files to a such location where .. is not needed? - Juha - 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]
Using relative path with HeaderContributor
Hi, We started to use 1.3.X because https://issues.apache.org/jira/browse/WICKET-1667 will be probably fixed soon in 1.3.X. There seems to be some changes in public static String resourceKey(final String path, final Locale locale, final String style) in SharedResources. We have been using following reference to a css-file public static final CompressedResourceReference MES_CSS = new CompressedResourceReference(MesFunc.class, "../../../somePath/main.css"); public MeasurementDataPage() { super(); add(HeaderContributor.forCss( MES_CSS )); } In 1.3.3 source looked like this: href="resources/syncrontech.paroc.mes.common.MesFunc/../../../syncrontech/paroc/mes/themes/main.css" /> Now in 1.3.X it looks like this: href="resources/syncrontech.paroc.mes.common.MesFunc/$up$/$up$/$up$/syncrontech/paroc/mes/themes/main.css" /> Is this a bug or do I have to move all my css files to a such location where .. is not needed? - Juha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Localizer cache with 150.000+ entries causing OutOfMemory
Hi, we have been using this patched version now in a production environment few days. Seems to be working nicely. Memory problems disappeared. - Juha Igor Vaynberg wrote: if someone can confirm that the patch works in a production env i will be happy to commit it. i just havent had the time to test it myself yet. -igor On Tue, Jun 10, 2008 at 7:09 AM, Juha Alatalo <[EMAIL PROTECTED]> wrote: Hi All, I run our profiling tests (version 1.3.3) using Application.java and Localizer.java patched by Stefan. Patch seems to be solving our memory problems. Is this patch coming to 1.3.4 and do you have any idea when 1.3.4 will be released? Best Regards - Juha Stefan Fußenegger wrote: Hi Daniel, I didn't put the patch into production yet, but I am quite confident, that it will help. As you can see in the example I attached to the JIRA issue (just attached a new version), the unpatched Localizer had 200 entries in his cache, the patched Localizer only four - which is a Good Thing (tm), as there are only 4 different cached values! Regards, Stefan Daniel Frisk wrote: So the patch did help? I too have observed this problem but it was at the moment less of a problem than other heap eaters, now this is next in line. We have added a script which automatically restarts the server when repeated OOME occurs and are down to a couple of times per week without the patch. But still, who wouldn't want to see months of uptime... // Daniel jalbum.net On 2008-06-10, at 11:29, Stefan Fußenegger wrote: Hi Igor, Thanks for your quick reply and the patch, sorry for not searching the mailinglist only but not JIRA. Your patch was for 1.4, I applied it to 1.3.3, created a quickstart including JUnit test and attached it to the JIRA issue. Hope this fix gets into the next maintenance release. I am to lazy to create a properly patched jar and a MVN repo for my team right now ;) Regards, Stefan igor.vaynberg wrote: try applying this patch and see if it helps https://issues.apache.org/jira/browse/WICKET-1667 -igor On Mon, Jun 9, 2008 at 8:11 AM, Stefan Fußenegger <[EMAIL PROTECTED]> wrote: I am just analysing a heap dump (god bless the -XX:+HeapDumpOnOutOfMemoryError flag) of a recent application cache due to an OutOfMemoryError ("GC overhead limit exceeded" to be precise). Using jhat, the "175456 instances of class org.apache.wicket.util.concurrent.ConcurrentHashMap$Entry" immediately got my attention. While looking through the 107 instance of ConcurrentHashMap, I found one *really* big one: Localizer.cache has a hash table length of 262144, each of its 32 segments with about 5300 entries, where a hash key is a string, sometimes longer than 500 charactes, similar to (see Localizer.getCacheKey(String,Component)): fooTitle.bar- org.apache.wicket.markup.html.link.BookmarkablePageLink:fooLink- org.apache.wicket.markup.html.panel.Fragment:track- org.apache.wicket.markup.html.list.ListItem:14- my.company.FooListPanel$1:fooList-my.company.FooListPanel:foos- org.apache.wicket.markup.html.list.ListItem:0- my.company.BarListPanel$1:bars-my.company.FooListPanel:panel- my.company.boxes.BodyBox:2- org.apache.wicket.markup.repeater.RepeatingView:body- my.company.layout.Border:border-my.company.pages.music.FoobarPage: 43-de-null Those numbers pretty much convinced me: The localizer cache has blown away my application. Looking at this hash keys, I suspect the following problem: those strings are constructed from the "position" of a localized String on a page, which is quite a bad thing if you use nested list views or repeating views to construct your page. For instance, I have a panel with a long (pageable) list of entries, might be > 5000 entries which might appear on various positions in a repeating view I use as a container for most of my pages. Let's say there are 5 possible positions, this would cause 2500 thousand cached entries, each with a key of 300+ characters plus some more characters for the cached message - feel free to do the maths. From a quick estimate I'd say: No wonder, this has blown away my app. As a quick fix, I'd suggest to regularly clear the localizer cache, use a more sophisticated cache (that expires old entries once in a while!!) or to disable the cache completely. However, don't try to overwrite Localizer.newCache() and clear the cache regularly: clearCache() will replace your cache with a ConcurrentHashMap (not using Localizer.newCache()). However, quite unlikely, that this will happen as newCache() is private anyway ;) I am going to add some code to clear the cache regularly. Best regards, Stefan PS: I'll also create a JIRA issue, but I am really short on time right now. - --- Stefan Fußenegger http://talk-on-tech.blogspot.com // looking for a nicer domain ;) -- View this message in context: http://www.nabble.com/Localizer-cache-with-150.000%2B-entries-causing-OutOfMem
Re: Localizer cache with 150.000+ entries causing OutOfMemory
We are now using patched version of 1.3.X in a production environment and usage of memory seems to be much more stable. Is there still some bug in PageWindowManager? Seems that size of idToWindowIndices increases every time WebPage is opened in a browser. I run jmeter test during last night. It was simulating 50 users which opens a page once in a 0 - 60 seconds. Jprofiler was showing as many IntHashMap$Entry instances as there were samples in jmeter. - Juha Igor Vaynberg wrote: if someone can confirm that the patch works in a production env i will be happy to commit it. i just havent had the time to test it myself yet. -igor On Tue, Jun 10, 2008 at 7:09 AM, Juha Alatalo <[EMAIL PROTECTED]> wrote: Hi All, I run our profiling tests (version 1.3.3) using Application.java and Localizer.java patched by Stefan. Patch seems to be solving our memory problems. Is this patch coming to 1.3.4 and do you have any idea when 1.3.4 will be released? Best Regards - Juha Stefan Fußenegger wrote: Hi Daniel, I didn't put the patch into production yet, but I am quite confident, that it will help. As you can see in the example I attached to the JIRA issue (just attached a new version), the unpatched Localizer had 200 entries in his cache, the patched Localizer only four - which is a Good Thing (tm), as there are only 4 different cached values! Regards, Stefan Daniel Frisk wrote: So the patch did help? I too have observed this problem but it was at the moment less of a problem than other heap eaters, now this is next in line. We have added a script which automatically restarts the server when repeated OOME occurs and are down to a couple of times per week without the patch. But still, who wouldn't want to see months of uptime... // Daniel jalbum.net On 2008-06-10, at 11:29, Stefan Fußenegger wrote: Hi Igor, Thanks for your quick reply and the patch, sorry for not searching the mailinglist only but not JIRA. Your patch was for 1.4, I applied it to 1.3.3, created a quickstart including JUnit test and attached it to the JIRA issue. Hope this fix gets into the next maintenance release. I am to lazy to create a properly patched jar and a MVN repo for my team right now ;) Regards, Stefan igor.vaynberg wrote: try applying this patch and see if it helps https://issues.apache.org/jira/browse/WICKET-1667 -igor On Mon, Jun 9, 2008 at 8:11 AM, Stefan Fußenegger <[EMAIL PROTECTED]> wrote: I am just analysing a heap dump (god bless the -XX:+HeapDumpOnOutOfMemoryError flag) of a recent application cache due to an OutOfMemoryError ("GC overhead limit exceeded" to be precise). Using jhat, the "175456 instances of class org.apache.wicket.util.concurrent.ConcurrentHashMap$Entry" immediately got my attention. While looking through the 107 instance of ConcurrentHashMap, I found one *really* big one: Localizer.cache has a hash table length of 262144, each of its 32 segments with about 5300 entries, where a hash key is a string, sometimes longer than 500 charactes, similar to (see Localizer.getCacheKey(String,Component)): fooTitle.bar- org.apache.wicket.markup.html.link.BookmarkablePageLink:fooLink- org.apache.wicket.markup.html.panel.Fragment:track- org.apache.wicket.markup.html.list.ListItem:14- my.company.FooListPanel$1:fooList-my.company.FooListPanel:foos- org.apache.wicket.markup.html.list.ListItem:0- my.company.BarListPanel$1:bars-my.company.FooListPanel:panel- my.company.boxes.BodyBox:2- org.apache.wicket.markup.repeater.RepeatingView:body- my.company.layout.Border:border-my.company.pages.music.FoobarPage: 43-de-null Those numbers pretty much convinced me: The localizer cache has blown away my application. Looking at this hash keys, I suspect the following problem: those strings are constructed from the "position" of a localized String on a page, which is quite a bad thing if you use nested list views or repeating views to construct your page. For instance, I have a panel with a long (pageable) list of entries, might be > 5000 entries which might appear on various positions in a repeating view I use as a container for most of my pages. Let's say there are 5 possible positions, this would cause 2500 thousand cached entries, each with a key of 300+ characters plus some more characters for the cached message - feel free to do the maths. From a quick estimate I'd say: No wonder, this has blown away my app. As a quick fix, I'd suggest to regularly clear the localizer cache, use a more sophisticated cache (that expires old entries once in a while!!) or to disable the cache completely. However, don't try to overwrite Localizer.newCache() and clear the cache regularly: clearCache() will replace your cache with a ConcurrentHashMap (not using Localizer.newCache()). However, quite unlikely, that this will happen as newCache() is private anyway ;) I am going to add some code to clear the cache regularly. Bes
Re: Localizer cache with 150.000+ entries causing OutOfMemory
Hi All, I run our profiling tests (version 1.3.3) using Application.java and Localizer.java patched by Stefan. Patch seems to be solving our memory problems. Is this patch coming to 1.3.4 and do you have any idea when 1.3.4 will be released? Best Regards - Juha Stefan Fußenegger wrote: Hi Daniel, I didn't put the patch into production yet, but I am quite confident, that it will help. As you can see in the example I attached to the JIRA issue (just attached a new version), the unpatched Localizer had 200 entries in his cache, the patched Localizer only four - which is a Good Thing (tm), as there are only 4 different cached values! Regards, Stefan Daniel Frisk wrote: So the patch did help? I too have observed this problem but it was at the moment less of a problem than other heap eaters, now this is next in line. We have added a script which automatically restarts the server when repeated OOME occurs and are down to a couple of times per week without the patch. But still, who wouldn't want to see months of uptime... // Daniel jalbum.net On 2008-06-10, at 11:29, Stefan Fußenegger wrote: Hi Igor, Thanks for your quick reply and the patch, sorry for not searching the mailinglist only but not JIRA. Your patch was for 1.4, I applied it to 1.3.3, created a quickstart including JUnit test and attached it to the JIRA issue. Hope this fix gets into the next maintenance release. I am to lazy to create a properly patched jar and a MVN repo for my team right now ;) Regards, Stefan igor.vaynberg wrote: try applying this patch and see if it helps https://issues.apache.org/jira/browse/WICKET-1667 -igor On Mon, Jun 9, 2008 at 8:11 AM, Stefan Fußenegger <[EMAIL PROTECTED]> wrote: I am just analysing a heap dump (god bless the -XX:+HeapDumpOnOutOfMemoryError flag) of a recent application cache due to an OutOfMemoryError ("GC overhead limit exceeded" to be precise). Using jhat, the "175456 instances of class org.apache.wicket.util.concurrent.ConcurrentHashMap$Entry" immediately got my attention. While looking through the 107 instance of ConcurrentHashMap, I found one *really* big one: Localizer.cache has a hash table length of 262144, each of its 32 segments with about 5300 entries, where a hash key is a string, sometimes longer than 500 charactes, similar to (see Localizer.getCacheKey(String,Component)): fooTitle.bar- org.apache.wicket.markup.html.link.BookmarkablePageLink:fooLink- org.apache.wicket.markup.html.panel.Fragment:track- org.apache.wicket.markup.html.list.ListItem:14- my.company.FooListPanel$1:fooList-my.company.FooListPanel:foos- org.apache.wicket.markup.html.list.ListItem:0- my.company.BarListPanel$1:bars-my.company.FooListPanel:panel- my.company.boxes.BodyBox:2- org.apache.wicket.markup.repeater.RepeatingView:body- my.company.layout.Border:border-my.company.pages.music.FoobarPage: 43-de-null Those numbers pretty much convinced me: The localizer cache has blown away my application. Looking at this hash keys, I suspect the following problem: those strings are constructed from the "position" of a localized String on a page, which is quite a bad thing if you use nested list views or repeating views to construct your page. For instance, I have a panel with a long (pageable) list of entries, might be > 5000 entries which might appear on various positions in a repeating view I use as a container for most of my pages. Let's say there are 5 possible positions, this would cause 2500 thousand cached entries, each with a key of 300+ characters plus some more characters for the cached message - feel free to do the maths. From a quick estimate I'd say: No wonder, this has blown away my app. As a quick fix, I'd suggest to regularly clear the localizer cache, use a more sophisticated cache (that expires old entries once in a while!!) or to disable the cache completely. However, don't try to overwrite Localizer.newCache() and clear the cache regularly: clearCache() will replace your cache with a ConcurrentHashMap (not using Localizer.newCache()). However, quite unlikely, that this will happen as newCache() is private anyway ;) I am going to add some code to clear the cache regularly. Best regards, Stefan PS: I'll also create a JIRA issue, but I am really short on time right now. - --- Stefan Fußenegger http://talk-on-tech.blogspot.com // looking for a nicer domain ;) -- View this message in context: http://www.nabble.com/Localizer-cache-with-150.000%2B-entries-causing-OutOfMemory-tp17734931p17734931.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: Wicket:enclosure isn't working with ajax?
Ok. That's the answer I was afraid of. - Juha Igor Vaynberg wrote: enclosures dont really work with ajax. you would have to update some container that the enclosure is in -igor On Mon, Mar 31, 2008 at 10:22 AM, Juha Alatalo <[EMAIL PROTECTED]> wrote: Hi, is there any way to set a component, which is surrounded by wicket:enclosure, visible via ajax? setOutputMarkupPlaceholderTag(true); doesn't seem to be working when component is surrounded by wicket:enclosure. I made a simple example: http://download.syncrontech.com/public/EnclosureTest.zip Ajax debug: INFO: focus set on ajaxLinkb8 INFO: INFO: Initiating Ajax GET request on ?wicket:interface=:3:ajaxLink::IBehaviorListener:0:&random=0.6930893807323287 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (160 characters) INFO: INFO: Response parsed. Now invoking steps... ERROR: Component with id [[containerb9]] a was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update. INFO: Response processed successfully. INFO: Invoking post-call handler(s)... INFO: Calling focus on ajaxLinkb8 INFO: focus removed from ajaxLinkb8 Should this example be working == Should I create a JIRA issue? - Juha - 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]
Wicket:enclosure isn't working with ajax?
Hi, is there any way to set a component, which is surrounded by wicket:enclosure, visible via ajax? setOutputMarkupPlaceholderTag(true); doesn't seem to be working when component is surrounded by wicket:enclosure. I made a simple example: http://download.syncrontech.com/public/EnclosureTest.zip Ajax debug: INFO: focus set on ajaxLinkb8 INFO: INFO: Initiating Ajax GET request on ?wicket:interface=:3:ajaxLink::IBehaviorListener:0:&random=0.6930893807323287 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (160 characters) INFO: id="containerb9" > INFO: Response parsed. Now invoking steps... ERROR: Component with id [[containerb9]] a was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update. INFO: Response processed successfully. INFO: Invoking post-call handler(s)... INFO: Calling focus on ajaxLinkb8 INFO: focus removed from ajaxLinkb8 Should this example be working == Should I create a JIRA issue? - Juha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [vote] Release 1.4 with only generics and stop support for 1.3
[x] +1, Wicket 1.4 is 1.3 + generics, drop support for 1.3 - Juha Martijn Dashorst wrote: This thread is for voting only. Use the [discuss] thread for voicing your opinion or asking questions. This makes counting the votes much easier. The discussion on our development list makes it clear that a lot of folks are anxious for generified models. Most users if not all wish us to release a quick release which is 1.3 + generics. The consequence is that the core team will stop to support 1.3, and that everybody that wishes updates will have to migrate to 1.4, and upgrade to Java 5. Everybody is invited to vote! Please use [ ] +1, Wicket 1.4 is 1.3 + generics, drop support for 1.3 [ ] -1, I need a supported version running on Java 1.4 Let your voices be heard! Martijn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Adding javascript in html
Hi, we just started using version 1.3.2 and noticed that references to js-files without wicket:id doesn't work any more. They were working in 1.3.1. code: src="/syncrontech/common/gate/component/GateConfirm.js"> log: 192.168.2.155 - st [13/Mar/2008:09:29:03 +] "GET /wicket//syncrontech/common/gate/component/GateConfirm.js? HTTP/1.1" 404 1123 I know that we can (and probably should) start using for example CompressedResourceReference new CompressedResourceReference(GateConfirmPanel.class, "GateConfirm.js"); + add(HeaderContributor.forJavaScript(GATE_CONFIRM_JS)); However is this a bug in 1.3.2? - Juha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Russian localization
Frank Bille wrote: On Thu, Mar 6, 2008 at 3:16 PM, Juha Alatalo <[EMAIL PROTECTED]> wrote: Hi, Russian language supports seems to be broken. Calling getString() causes class cast exception (stack trace in the end of the mail). Removing file org\apache\wicket\Application_ru.xml seems to be fixing the provlem. Should I create a jire issue for that? Yes please. I don't think the solution is to remove the file but instead fix the problem itself. :-) Yes :) Created an issue with simple test case: https://issues.apache.org/jira/browse/WICKET-1407 - Juha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Russian localization
Hi, Russian language supports seems to be broken. Calling getString() causes class cast exception (stack trace in the end of the mail). Removing file org\apache\wicket\Application_ru.xml seems to be fixing the provlem. Should I create a jire issue for that? - Juha java.lang.ClassCastException: org.apache.xerces.dom.DeferredDocumentTypeImpl cannot be cast to org.w3c.dom.Element at org.apache.wicket.util.io.Streams.loadFromXml(Streams.java:154) at org.apache.wicket.resource.PropertiesFactory.loadPropertiesFile(PropertiesFactory.java:193) at org.apache.wicket.resource.PropertiesFactory.loadPropertiesFileAndWatchForChanges(PropertiesFactory.java:283) at org.apache.wicket.resource.PropertiesFactory.load(PropertiesFactory.java:124) at org.apache.wicket.resource.loader.ComponentStringResourceLoader.loadStringResource(ComponentStringResourceLoader.java:148) at org.apache.wicket.resource.loader.ClassStringResourceLoader.loadStringResource(ClassStringResourceLoader.java:64) at org.apache.wicket.resource.loader.ComponentStringResourceLoader.loadStringResource(ComponentStringResourceLoader.java:225) at org.apache.wicket.resource.loader.ClassStringResourceLoader.loadStringResource(ClassStringResourceLoader.java:78) at org.apache.wicket.Localizer.getString(Localizer.java:221) at org.apache.wicket.Component.getString(Component.java:1802) at syncrontech.common.gate.GateDateRange.(GateDateRange.java:47) at syncrontech.common.gate.AutoQueryPanel.(AutoQueryPanel.java:39) at syncrontech.common.gate.GateWebPage.getQueryPanel(GateWebPage.java:245) at syncrontech.common.gate.GateUiPanel.(GateUiPanel.java:19) at syncrontech.common.gate.GateWebPage.addUiPanel(GateWebPage.java:589) at syncrontech.common.gate.GateWebPage.(GateWebPage.java:40) at syncrontech.menu.AboutPage.(AboutPage.java:11) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:58) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:262) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:283) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:210) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:90) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1166) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1241) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1316) at org.apache.wicket.RequestCycle.request(RequestCycle.java:493) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:354) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:194) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at syncrontech.common.storage.TxnServletFilter.doFilter(TxnServletFilter.java:65) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:482) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:834) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286) at java.lang.Thread.run(Unknown Source) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxFormSubmitBehavior and setDefaultFormProcessing(false)?
https://issues.apache.org/jira/browse/WICKET-1394 Igor Vaynberg wrote: ok, enter a jira rfe -igor On Fri, Feb 22, 2008 at 2:41 AM, Juha Alatalo <[EMAIL PROTECTED]> wrote: In this case I have to visit different page when browse is chosen. When I come back form is cleared, isn't it? - Juha Igor Vaynberg wrote: > if you are opening everything via ajax why do you need to submit the > entire form? the values are all still there in the browser window... > so dont use ajaxformsubmitbehavor but a regular ajax behavior > > -igor > > > On Thu, Feb 21, 2008 at 3:57 AM, Juha Alatalo > <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I have created a dropDownChoice component where the last option is >> "browse" == opens new page where user can make queries. (Similar to >> "look in" field in search panel of Windows XP, where user can select >> some default folders or can choose browse to give an exact folder) >> >> Because there is also other fields, form hast to be posted when opening >> new page from browse ==> AjaxFromSubmitBehavior("onchange"). Only >> problem is that I can't call setDefaultFormProcessing(false) in >> ajaxFormSubmitBehavior like I can do with Buttons. I would like to do >> validation only when user presses save button, not when he chooses to >> browse information for one field. >> >> Is there some way to solve this problem? >> >> - Juha >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxFormSubmitBehavior and setDefaultFormProcessing(false)?
Of course I could, but I would like to create dropDownChoice I was describing. - Juha Maurice Marrink wrote: Can't you use an AjaxSubmitLink? Maurice On Thu, Feb 21, 2008 at 12:57 PM, Juha Alatalo <[EMAIL PROTECTED]> wrote: Hi, I have created a dropDownChoice component where the last option is "browse" == opens new page where user can make queries. (Similar to "look in" field in search panel of Windows XP, where user can select some default folders or can choose browse to give an exact folder) Because there is also other fields, form hast to be posted when opening new page from browse ==> AjaxFromSubmitBehavior("onchange"). Only problem is that I can't call setDefaultFormProcessing(false) in ajaxFormSubmitBehavior like I can do with Buttons. I would like to do validation only when user presses save button, not when he chooses to browse information for one field. Is there some way to solve this problem? - Juha - 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]
Re: AjaxFormSubmitBehavior and setDefaultFormProcessing(false)?
In this case I have to visit different page when browse is chosen. When I come back form is cleared, isn't it? - Juha Igor Vaynberg wrote: if you are opening everything via ajax why do you need to submit the entire form? the values are all still there in the browser window... so dont use ajaxformsubmitbehavor but a regular ajax behavior -igor On Thu, Feb 21, 2008 at 3:57 AM, Juha Alatalo <[EMAIL PROTECTED]> wrote: Hi, I have created a dropDownChoice component where the last option is "browse" == opens new page where user can make queries. (Similar to "look in" field in search panel of Windows XP, where user can select some default folders or can choose browse to give an exact folder) Because there is also other fields, form hast to be posted when opening new page from browse ==> AjaxFromSubmitBehavior("onchange"). Only problem is that I can't call setDefaultFormProcessing(false) in ajaxFormSubmitBehavior like I can do with Buttons. I would like to do validation only when user presses save button, not when he chooses to browse information for one field. Is there some way to solve this problem? - Juha - 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]
AjaxFormSubmitBehavior and setDefaultFormProcessing(false)?
Hi, I have created a dropDownChoice component where the last option is "browse" == opens new page where user can make queries. (Similar to "look in" field in search panel of Windows XP, where user can select some default folders or can choose browse to give an exact folder) Because there is also other fields, form hast to be posted when opening new page from browse ==> AjaxFromSubmitBehavior("onchange"). Only problem is that I can't call setDefaultFormProcessing(false) in ajaxFormSubmitBehavior like I can do with Buttons. I would like to do validation only when user presses save button, not when he chooses to browse information for one field. Is there some way to solve this problem? - Juha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket-contrib-datepicker
Silence means that you don't care? Juha Alatalo wrote: Hi, could it be possible to fix old DatePicker in 1.2 and 1.X? At least Scandinavian letters like ä and ö is replaced with rubbish like ö or ?. I can sen fixed Finnish and Swedish versions but I also need languages like Polish. This problem was fixed year ago but now it occurs again. - Juha - 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-contrib-datepicker
Hi, could it be possible to fix old DatePicker in 1.2 and 1.X? At least Scandinavian letters like ä and ö is replaced with rubbish like ö or ?. I can sen fixed Finnish and Swedish versions but I also need languages like Polish. This problem was fixed year ago but now it occurs again. - Juha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IndicatingAjaxSubmitLink missing?
That is the case with AjaxSubmitButton and AjaxButton not with the links, is it?. AjaxSubmitLink submits a form AjaxLink does not. - Juha Gerolf Seitz wrote: iirc, AjaxSubmitLink has been marked deprecated in favor of AjaxLink. Gerolf On 10/22/07, Juha Alatalo <[EMAIL PROTECTED]> wrote: Hi, there is AjaxSubmitLink and IndicatingAjaxLink but not IndicatingAjaxSubmitLink. Are you planning to create one? - Juha - 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]
IndicatingAjaxSubmitLink missing?
Hi, there is AjaxSubmitLink and IndicatingAjaxLink but not IndicatingAjaxSubmitLink. Are you planning to create one? - Juha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: VisitChildren + IComponentResolver broken in beta 4?
Great! Thanks a lot Matej. When this fix is coming? - Juha Matej Knopp wrote: Well, I believe we can keep the component instance until the end of request and then clean it up in detach, would this help you? (it still wouldn't be the same as before the fix, as the instance was (supposed to be) cleaned during the next request, but this means keeping additional state for no good reason. -Matej On 10/17/07, Ari Suutari <[EMAIL PROTECTED]> wrote: Hi, I'm afraid you dont' really get what IComponentResolver is for. The purpose is to allow creating components from markup for a very short span of time - basically while the components are rendered and they should be removed immediate afterwards. So if you call visitChildren from another component, the resolved component will not be available. Well. We have been using this from very early days of wicket without a problem. Also, there is no mention about this "very short" time in javadoc. Actually, if the autoAdded component was there previously for longer time and is now removed immediately this is a quite big change of behaviour if looking it from the application. What changed in beta 4 is that we now remove the component immediately after it's rendered (inside the autoAdd call) because otherwise It caused us a nasty memory leak. We have some rather large sites running with wicket 1.2 using autoAdd stuff, haven't noticed any huge leaks there. Couldn't you consider any other alternatives for fixing that leak instead of insisting that we are doing something so wrong ? I really like all these IWhateverNiceInterface -things in wicket. Usually, when there is a need in application architecture, wicket has had a nice interface to support it. But it seems that it is very easy to get yourself burnt when using them, since they tend to get either rewritten or their behaviour changes Which is not a problem for someone who writes a smaller web applications with just a couple of pages. But for someone who does larger ones, it's not so nice. Ari S. On 10/17/07, Ari Suutari <[EMAIL PROTECTED]> wrote: Hi, But it looks like that in this case the visitChilder is performed during render, and it still won't find stuff added by autoAdd. It is not a very robust design if the behaviour of autoAdd/visitChilder would require some kind of component-hierarchy fine-tuning. This kind of approach might work with static-kind-of applications, but at least for us, the content in applications is very dynamic and interface like IComponentResolver has been very handy. Just a wild guess here - maybe the processing of IComponentResolver stuff was done earlier in beta3 than in beta4. Not getting this fixed can be pretty annoying for us - we have a couple of hundreds of pages done with wicket which rely on this. We could of course try to step back in time with svn to see which change has broken this, but I don't know how much sense it will make unless developers are not going to admit that this is a problem. Ari S. - Original Message - From: "Matej Knopp" <[EMAIL PROTECTED]> To: Sent: Wednesday, October 17, 2007 2:15 PM Subject: Re: VisitChildren + IComponentResolver broken in beta 4? It depends on when you call the visitChildren method. The idea is that resolved components are on page only during page render. Otherwise they are removed from page. -Matej On 10/17/07, Juha Alatalo <[EMAIL PROTECTED]> wrote: In the JIRA issue following was commented: "This doesn't seem to be a bug in Wicket. In fact, the bug was that it worked before. ..." This new "fix" is kind of a show stopper for us. What actually is the idea of the componentResolver? Functions like visitChildren works for normally added component. Shouldn't those functions work also for components that are added using IComponentResolver as long as those are visible? - Juha Juha Alatalo wrote: https://issues.apache.org/jira/browse/WICKET-1077 - Juha Matej Knopp wrote: Please create a JIRA entry and assign the example to it. Thanks. -Matej On 10/15/07, Juha Alatalo <[EMAIL PROTECTED]> wrote: Hi, If the components are added on the page using ComponentResolver, visitChildren() method seems to be working incorrectly. Created following example which works in beta 3 but not in beta 4. http://download.syncrontech.com/public/VisitChildrenExample.zip - Juha - 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]
Re: VisitChildren + IComponentResolver broken in beta 4?
In the JIRA issue following was commented: "This doesn't seem to be a bug in Wicket. In fact, the bug was that it worked before. ..." This new "fix" is kind of a show stopper for us. What actually is the idea of the componentResolver? Functions like visitChildren works for normally added component. Shouldn't those functions work also for components that are added using IComponentResolver as long as those are visible? - Juha Juha Alatalo wrote: https://issues.apache.org/jira/browse/WICKET-1077 - Juha Matej Knopp wrote: Please create a JIRA entry and assign the example to it. Thanks. -Matej On 10/15/07, Juha Alatalo <[EMAIL PROTECTED]> wrote: Hi, If the components are added on the page using ComponentResolver, visitChildren() method seems to be working incorrectly. Created following example which works in beta 3 but not in beta 4. http://download.syncrontech.com/public/VisitChildrenExample.zip - Juha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: VisitChildren + IComponentResolver broken in beta 4?
https://issues.apache.org/jira/browse/WICKET-1077 - Juha Matej Knopp wrote: Please create a JIRA entry and assign the example to it. Thanks. -Matej On 10/15/07, Juha Alatalo <[EMAIL PROTECTED]> wrote: Hi, If the components are added on the page using ComponentResolver, visitChildren() method seems to be working incorrectly. Created following example which works in beta 3 but not in beta 4. http://download.syncrontech.com/public/VisitChildrenExample.zip - Juha - 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]
VisitChildren + IComponentResolver broken in beta 4?
Hi, If the components are added on the page using ComponentResolver, visitChildren() method seems to be working incorrectly. Created following example which works in beta 3 but not in beta 4. http://download.syncrontech.com/public/VisitChildrenExample.zip - Juha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PopupDatePicker + AjaxButton + IE 7 + visibility
https://issues.apache.org/jira/browse/WICKET-1058 - Juha Matej Knopp wrote: Looks like there's a problem with header contribution? Please create a JIRA entry and attach the example to it. -Matej On 10/10/07, Juha Alatalo <[EMAIL PROTECTED]> wrote: Hi, we are still using old DatePicker (PopupDatePicker in wicket-contrib-datepicker) and found an error in following situation. - Panel is invisible - AjaxButton sets panel visible - DatePicker (in that panel) doens't work when using IE 7 I created a simple example: http://download.syncrontech.com/public/PopupDatePickerExample.zip which contains two errors when using IE 7 Expected ';' (when pressing AjaxButton) 'Calendar._TT.DEF_DATE_FORMAT' is null or not an object (when pressing PopupDatePicker link) - Juha - 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]
PopupDatePicker + AjaxButton + IE 7 + visibility
Hi, we are still using old DatePicker (PopupDatePicker in wicket-contrib-datepicker) and found an error in following situation. - Panel is invisible - AjaxButton sets panel visible - DatePicker (in that panel) doens't work when using IE 7 I created a simple example: http://download.syncrontech.com/public/PopupDatePickerExample.zip which contains two errors when using IE 7 Expected ';' (when pressing AjaxButton) 'Calendar._TT.DEF_DATE_FORMAT' is null or not an object (when pressing PopupDatePicker link) - Juha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]