Re: [Wicket-user] DatePicker with SimpleDateFormat
That way it is only used to format the string to the screen.The dateformatter is used to get the format out and _javascript_ dateformat is generated based on thatThat dateformatter should also be used by the textfield itself to handle the formatting both ways. So override the getConverter() of the exp textfield and return als your converter (that has to work 2 ways then!)johanOn 8/11/06, kurt heston [EMAIL PROTECTED] wrote: I'm trying to create a field that allows filling in of a credit cardexpiration date using 1.2.What did I miss?Code:TextField exp = new RequiredTextField(expiration);DatePicker picker = new DatePicker(expirationDatePicker, exp); DateConverter conv = new DateConverter();conv.setDateFormat(Locale.getDefault(),newSimpleDateFormat(MM/));picker.setDateConverter(conv);add(exp);add(picker); Exception:wicket.util.convert.ConversionException: Cannot parse '03/2006'using format [EMAIL PROTECTED] atwicket.util.convert.converters.AbstractConverter.newConversionException (AbstractConverter.java:72) ...-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Link and Input
The input elements look like this: div class=formDiv input class=button type=image src=img/button_spara.gif wicket:id=save value=Spara title=Spara/ input class=button type=image src=img/button_avbryt.gif wicket:id=cancel value=Avbryt title=Avbryt/ input class=button type=image src=img/button_ta_bort.gif wicket:id=delete value=Ta bort title=Ta bort/ /div - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ListViews vs repeaters (was: Form + pull modelListView + FormValidators)
Hi, I never had any problem using the ListViews and i use it extensively in my project. So i would say no no for any API breakages. If repeaters are better solutions i am for promoting that. thanks Dipu - Original Message - From: "Eelco Hillenius" [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Thursday, August 10, 2006 9:55 PM Subject: [Wicket-user] ListViews vs repeaters (was: Form + pull modelListView + FormValidators) Ok, regardless of this case then... I'd be interested to hear what people think in general about ListViews vs repeaters (package wicket.extensions.markup.html.repeater and kids)? Are repeaters a better solution in general/ only for certain cases (database) or just different? I'm asking this because if enough people think repeaters do provide a better alternative, we should soft-deprecate ListView and start promoting the repeaters more. Now would be a good time, specifically because 2.0 is still open for changes and I would use them in favor of ListViews in Wicket In Action. Speak up please, everyone :) Eelco On 8/10/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i dont think this is a problem with listview. i think joni misunderstood what setreuseitems() did and that even with pull models it makes sense. in this particular case dataview would suffer the exact same problems as the listview save one - you will not forget to override getlistitemmodel() because it is part of the idataprovider interface. but even with a dataview you would have to set an item reuse strategy which is equivalent to calling setreuseitems(true) on the listview. in dataview, same as the listview, the items would be recreated, etc - thats just the nature of repeaters in wicket. -Igor On 8/10/06, Eelco Hillenius [EMAIL PROTECTED] wrote: I'm gradually getting to a conclusion that ListView sucks, and should be replaced with something more robust. It does suck that about 25% of the problems people have with Wicket seems to come from the ListView. What do you think about the repeater packages? I'm still using ListViews myself mostly; they do the job for me. But Igor created them out of frustration with ListViews (and that was a long time ago). If more people think repeaters are a better solution than ListViews, maybe we should consider putting ListView more in the background (e.g. red rid of them in examples and more specifically Wicket In Action), and getting some repeaters over to the core project for Wicket 2.0. If there was ever a time to 'fix' this, it's now. Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Performance/Scalability tips
* Eelco Hillenius: It's an optimization. So you confirm that PageLink is not optimized for stateless webapps. Reading the PageLink code, I wonder why setResponsePage(Page) is used instead of setResponsePage(Class): public void onClick() { // Set page source's page as response page setResponsePage(pageLink.getPage()); } Why not writing: public void onClick() { // Set page source's page as response page setResponsePage(pageLink.getPageIdentity()); } I intend to write the result of our discussion on the Wiki page, to give concrete examples: http://www.wicket-wiki.org.uk/wiki/index.php/Stateless_pages -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Link and Input
ahh see the code: // Don't touch any wicket:id component if (tag.getId() != null) { return tag; }So in that case you have to do it yourself.Maybe we could make this configurable or something johanOn 8/11/06, Mats Norén [EMAIL PROTECTED] wrote: The input elements look like this:div class=formDivinput class=button type=imagesrc="" wicket:id=save value=Spara title=Spara/input class=button type=imagesrc="" wicket:id=cancel value=Avbryttitle=Avbryt/ input class=button type=imagesrc="" wicket:id=delete value=Ta borttitle=Ta bort//div -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] How to change servlet location
Hi there, Recently, I bought a web space from JavaServletHosting and tring to deploy my wicket application to my web space. However, after deploying my application, it didn't work well. The problem is although the context root of my application is something like http://my_web_space/;, the JavaServletHosting maps all of the servlet class to a virtual path http://my_web_space/servlet/;, hence, all my web pages can not work properly. I wonder to know if it is possible to tell wicket to read all of the class from http://my_web_space/servlet/; instead of http://my_web_space/;. Regards, Chih-liang Chang -- View this message in context: http://www.nabble.com/How-to-change-servlet-location-tf2089331.html#a5758587 Sent from the Wicket - User forum at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] A Reorderer component
No, I don't depend on any external libs, but some polishing is definatelly needed. The .js is well done (not tested in Safari yet, would be grateful if someone can try it), but I think the wicket code can be done better (although I don't have an idea how). I was hoping that any of you guys can take a look and give me some hints, before contributing. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Performance/Scalability tips
We could change that a bit.But only if the pagelink was not created with an page instance alreadyBecause if you use the contructor:new PageLink(xx, myPageInstance)then we really need to serve that page instance.. Maybe if we added a method to IPageLink so that we can ask what it really has (the class or the page)then we can decide what to do.For example you can also give your own IPageLink instance in the constuctor. But all this doesn't really help the stateless nature of the page.it doesn't help the page where the PageLink is onAnd it doesn't help the page that is set as response page (except the redirect that can the page make statefull) johanOn 8/11/06, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote: * Eelco Hillenius: It's an optimization.So you confirm that PageLink is not optimized for statelesswebapps.Reading the PageLink code, I wonder why setResponsePage(Page) is used insteadof setResponsePage(Class): public void onClick(){// Set page source's page as response pagesetResponsePage(pageLink.getPage());}Why not writing:public void onClick() {// Set page source's page as response pagesetResponsePage(pageLink.getPageIdentity());}I intend to write the result of our discussion on the Wiki page, to give concrete examples:http://www.wicket-wiki.org.uk/wiki/index.php/Stateless_pages-- Jean-Baptiste QuenotakaJohn Banana Qwerty http://caraldi.com/jbq/-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to change servlet location
read the classes from /servlet? what does that mean?But what do you see in the browser? not the /servlet ?You can configure the context root in your application.. see IApplicationSetings.setContextPath() johanOn 8/11/06, itsliang [EMAIL PROTECTED] wrote: Hi there,Recently, I bought a web space from JavaServletHosting and tring to deploymy wicket application to my web space. However, after deploying myapplication, it didn't work well. The problem is although the context root of my application is something like http://my_web_space/, theJavaServletHosting maps all of the servlet class to a virtual path http://my_web_space/servlet/, hence, all my web pages can not workproperly.I wonder to know if it is possible to tell wicket to read all of the classfrom http://my_web_space/servlet/ instead of http://my_web_space/.Regards,Chih-liang Chang--View this message in context: http://www.nabble.com/How-to-change-servlet-location-tf2089331.html#a5758587Sent from the Wicket - User forum at Nabble.com.- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Performance/Scalability tips
What about this: Index: wicket/src/java/wicket/markup/html/link/PageLink.java === --- wicket/src/java/wicket/markup/html/link/PageLink.java (revision 6861) +++ wicket/src/java/wicket/markup/html/link/PageLink.java (working copy) @@ -64,7 +64,7 @@ public Page getPage() { // Create page using page factory - return PageLink.this.getPage().getPageFactory().newPage(c); + return null; } public Class getPageIdentity() @@ -143,6 +143,9 @@ public void onClick() { // Set page source's page as response page - setResponsePage(pageLink.getPage()); + if (pageLink.getPage() != null) + setResponsePage(pageLink.getPage()); + else + setResponsePage(pageLink.getPageIdentity()); } } With this patch I've got a failing test in wicket.markup.html.header.testing3.HeaderTest however. -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Link and Input
On 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote: ahh see the code: // Don't touch any wicket:id component if (tag.getId() != null) { return tag; } So in that case you have to do it yourself. That explains it! Thanks. So how does it normally work to use a Button with type image? /Mats - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Pretty URL for login page ?
All, This small problem annoys us very long time:When I first reach http://mycompany.com, with normal configuration, wecheck if user login or not and throw RestartResponseAtInterceptPageException( IndexPage.class)to redirect user to Login page.This work perfectly but the URL become unstable link like: http://mycompany.com/app?wicket:interface=:1 ::Normally user want to bookmark login page, but in this case such URL does not work at all.Is there any way to fix this 'problem' ? It would be better I could redirect to root context like http://mycompany.com/ or http://mycompany.com/appThanks in advance!-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Pretty URL for login page ?
I haven't tried it, but I wonder if something like mountBookmarkablePage(/login, LoginPage.class); in your Application instance would give what you want? Note, it's probably a bad idea to try duplicate 'real' pages/folders such as / or /app! Having said that though, I'd have thought youd be better off just telling the users to bookmark the IndexPage when they get there? That way, if they go back to the URL after just having been logged in, they get there, whereas if they've not been there for a while, they'll get sent to the login page anyway. /Gwyn On 11/08/06, Ingram Chen [EMAIL PROTECTED] wrote: All, This small problem annoys us very long time: When I first reach http://mycompany.com, with normal configuration, we check if user login or not and throw RestartResponseAtInterceptPageException( IndexPage.class) to redirect user to Login page. This work perfectly but the URL become unstable link like: http://mycompany.com/app?wicket:interface=:1 :: Normally user want to bookmark login page, but in this case such URL does not work at all. Is there any way to fix this 'problem' ? It would be better I could redirect to root context like http://mycompany.com/ or http://mycompany.com/app -- Download Wicket 1.2.1 now! - http://wicketframework.org - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ListViews vs repeaters (was: Form + pull model ListView + FormValidators)
Well, I'm using the wicket.extensions.markup.html.repeater.data.table packages and wicket.extensions.markup.html.repeater.data.DataView but that's because I got familiar with them via phonebook I'm getting the data I'm showing from a DB, whereas I've not done very much at all with ListViews, so it's no help in deciding between them! /Gwyn On 10/08/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Ok, regardless of this case then... I'd be interested to hear what people think in general about ListViews vs repeaters (package wicket.extensions.markup.html.repeater and kids)? Are repeaters a better solution in general/ only for certain cases (database) or just different? I'm asking this because if enough people think repeaters do provide a better alternative, we should soft-deprecate ListView and start promoting the repeaters more. Now would be a good time, specifically because 2.0 is still open for changes and I would use them in favor of ListViews in Wicket In Action. Speak up please, everyone :) Eelco On 8/10/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i dont think this is a problem with listview. i think joni misunderstood what setreuseitems() did and that even with pull models it makes sense. in this particular case dataview would suffer the exact same problems as the listview save one - you will not forget to override getlistitemmodel() because it is part of the idataprovider interface. but even with a dataview you would have to set an item reuse strategy which is equivalent to calling setreuseitems(true) on the listview. in dataview, same as the listview, the items would be recreated, etc - thats just the nature of repeaters in wicket. -Igor On 8/10/06, Eelco Hillenius [EMAIL PROTECTED] wrote: I'm gradually getting to a conclusion that ListView sucks, and should be replaced with something more robust. It does suck that about 25% of the problems people have with Wicket seems to come from the ListView. What do you think about the repeater packages? I'm still using ListViews myself mostly; they do the job for me. But Igor created them out of frustration with ListViews (and that was a long time ago). If more people think repeaters are a better solution than ListViews, maybe we should consider putting ListView more in the background (e.g. red rid of them in examples and more specifically Wicket In Action), and getting some repeaters over to the core project for Wicket 2.0. If there was ever a time to 'fix' this, it's now. Eelco -- Download Wicket 1.2.1 now! - http://wicketframework.org - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] problem with PopupCloseLink - wicket 1.2.1
Hi Elco, Problem was with the PopupSettings This is how i haddefined the the PopupSettings PopupSettings popupsettings = new PopupSettings(); popupSettings.setHeight(500); popupSettings.setWidth(500); popupSettings.setWindowName("name"); Changed it to PopupSettings popupSettings = new PopupSettings(PageMap.forName("name")); popupSettings.setHeight(500); popupSettings.setWidth(500); and now it works fine. many thanks for the reply. Regards Dipu - Original Message - From: "Eelco Hillenius" [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Thursday, August 10, 2006 7:52 PM Subject: Re: [Wicket-user] problem with PopupCloseLink - wicket 1.2.1 Hi Dipu, I can't reproduce this with the current 1.2 svn version. Does the linkomatic example have the same behavior for you? Can you send in a test project that reproduces this problem? And/ or test against the svn version and see if the problem is still there? Eelco On 8/9/06, Dipu [EMAIL PROTECTED] wrote: Hi All, I have migrated my application from the earlier version of wicket to the version 1.2.1. I am having bit of a problem with the popup pages and pop up close links. If i open a popup page and close it by clicking on the PopupCloseLink. The next attempt to open the pop up page loads the home page in my pop up page. At the same time if i uses the browsers close button it opens the correct pop up page in the subsequent attempts. Has any one come across this problem with the version 1.2.1. I wonder if the line // Remove the popup's page map from the session getPage().getPageMap().remove(); in the onClick() method of PopupCloseLink has got some thing to do with this. Kind Regards Dipu - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Pretty URL for login page ?
Mounting like Gwyn proposed doesn't work either.The problem is that we always redirect to an instance because of the pagemap method: final void redirectToInterceptPage(final Page page) { // Get the request cycle final RequestCycle cycle = RequestCycle.get(); // The intercept continuation URL should be saved exactly as the // original request specified. interceptContinuationURL = cycle.getRequest ().getURL(); // Page map is dirty session.dirtyPageMap(this); // Redirect to the page cycle.setRedirect(true); cycle.setResponsePage(page); }Maybe we should also make redirecting to a class: final void redirectToInterceptPage(final Class pageClass) { // Get the request cycle final RequestCycle cycle = RequestCycle.get(); // The intercept continuation URL should be saved exactly as the // original request specified. interceptContinuationURL = cycle.getRequest().getURL(); // Page map is dirty session.dirtyPageMap(this); // Redirect to the page cycle.setRedirect(true); cycle.setResponsePage(pageClass); }then you will get a bookmarkable url or a mount url.johanOn 8/11/06, Ingram Chen [EMAIL PROTECTED] wrote: All, This small problem annoys us very long time:When I first reach http://mycompany.com, with normal configuration, we check if user login or not and throw RestartResponseAtInterceptPageException( IndexPage.class)to redirect user to Login page.This work perfectly but the URL become unstable link like: http://mycompany.com/app?wicket:interface=:1 ::Normally user want to bookmark login page, but in this case such URL does not work at all.Is there any way to fix this 'problem' ? It would be better I could redirect to root context like http://mycompany.com/ or http://mycompany.com/appThanks in advance!-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Link and Input
you can use i guess public final void appendMarkupFilter(final IMarkupFilter filter) of MarkupParserBut juergen just changes some of that code i believe so maybe he can tell you the best solution now.johan On 8/11/06, Mats Norén [EMAIL PROTECTED] wrote: On 8/11/06, Mats Norén [EMAIL PROTECTED] wrote: On 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote: ahh see the code: // Don't touch any wicket:id component if (tag.getId() != null) { return tag; } So in that case you have to do it yourself. So I want to add my own version of a PrependContextPathHandler and addit to my application.Do I have to supply my own MarkupParser somehow or how do I add myIMarkupFilter to the application?/Mats -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Link and Input
In 2.0 it looks like Settings.java public IMarkupParserFactory getMarkupParserFactory() { if (this.markupParserFactory == null) { this.markupParserFactory = new MarkupParserFactory(application) { public MarkupParser newMarkupParser(final MarkupResourceStream resource) { MarkupParser parser = super.newMarkupParser(resource); parser.registerMarkupFilter(new MyHandler()); } } } return markupParserFactory; In 1.2 it looks like Settings.java public IMarkupParserFactory getMarkupParserFactory() { if (this.markupParserFactory == null) { this.markupParserFactory = new MarkupParserFactory(application) { public MarkupParser newMarkupParser() { final MarkupParser parser = new MarkupParser(new XmlPullParser()) { public void initFilterChain() { appendMarkupFilter(new MyFilter()); } } } } }; return parser; } } } return markupParserFactory; Juergen On 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote: you can use i guess public final void appendMarkupFilter(final IMarkupFilter filter) of MarkupParser But juergen just changes some of that code i believe so maybe he can tell you the best solution now. johan On 8/11/06, Mats Norén [EMAIL PROTECTED] wrote: On 8/11/06, Mats Norén [EMAIL PROTECTED] wrote: On 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote: ahh see the code: // Don't touch any wicket:id component if (tag.getId() != null) { return tag; } So in that case you have to do it yourself. So I want to add my own version of a PrependContextPathHandler and add it to my application. Do I have to supply my own MarkupParser somehow or how do I add my IMarkupFilter to the application? /Mats - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Form + pull model ListView + FormValidators
ok, i think I got i now. If using pull models with a dynamic ListView within a form, we have to override getListItemModel() and return a slightly more sophisticated model. This makes sense. But could it be possible to consolidate these a bit then. What if ListView would have a new constructor new ListView(String id, IDataProvider dataProvider) ? The DataView could be deprecated. Joni On Thu, 2006-08-10 at 13:28 -0700, Igor Vaynberg wrote: i dont think this is a problem with listview. i think joni misunderstood what setreuseitems() did and that even with pull models it makes sense. in this particular case dataview would suffer the exact same problems as the listview save one - you will not forget to override getlistitemmodel() because it is part of the idataprovider interface. but even with a dataview you would have to set an item reuse strategy which is equivalent to calling setreuseitems(true) on the listview. in dataview, same as the listview, the items would be recreated, etc - thats just the nature of repeaters in wicket. -Igor On 8/10/06, Eelco Hillenius [EMAIL PROTECTED] wrote: I'm gradually getting to a conclusion that ListView sucks, and should be replaced with something more robust. It does suck that about 25% of the problems people have with Wicket seems to come from the ListView. What do you think about the repeater packages? I'm still using ListViews myself mostly; they do the job for me. But Igor created them out of frustration with ListViews (and that was a long time ago). If more people think repeaters are a better solution than ListViews, maybe we should consider putting ListView more in the background (e.g. red rid of them in examples and more specifically Wicket In Action), and getting some repeaters over to the core project for Wicket 2.0. If there was ever a time to 'fix' this, it's now. Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Form + pull model ListView + FormValidators
This would be very good too. Joni On Thu, 2006-08-10 at 23:39 +0200, Johan Compagner wrote: it does work really differnet then wat we do now. And with a panel it looks maybe nice. But it is a but more blown up code. Personally i like this then better: IFormValidator { validate(Form) } MyPanel implements IFormValidator { validate() { validate the panel. } } and the Form searches for IFormValidator implementors in its tree (besides the normal onces it already has) and takes those also into account. Much cleaner and not so verbose in code if you ask me.. johan On 8/10/06, Igor Vaynberg [EMAIL PROTECTED] wrote: personally i like the visitor joni proposed - it doesnt need to be part of core but it solves the problem elegantly. i recently factored out form.validateFormValidator(IFormValidator v) that maeks the usecase even simpler to implement. -Igor - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Link and Input
Stupid question, but how do override the settings.java? On 8/11/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: In 2.0 it looks like Settings.java public IMarkupParserFactory getMarkupParserFactory() { if (this.markupParserFactory == null) { this.markupParserFactory = new MarkupParserFactory(application) { public MarkupParser newMarkupParser(final MarkupResourceStream resource) { MarkupParser parser = super.newMarkupParser(resource); parser.registerMarkupFilter(new MyHandler()); } } } return markupParserFactory; In 1.2 it looks like Settings.java public IMarkupParserFactory getMarkupParserFactory() { if (this.markupParserFactory == null) { this.markupParserFactory = new MarkupParserFactory(application) { public MarkupParser newMarkupParser() { final MarkupParser parser = new MarkupParser(new XmlPullParser()) { public void initFilterChain() { appendMarkupFilter(new MyFilter()); } } } } }; return parser; } } } return markupParserFactory; Juergen On 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote: you can use i guess public final void appendMarkupFilter(final IMarkupFilter filter) of MarkupParser But juergen just changes some of that code i believe so maybe he can tell you the best solution now. johan On 8/11/06, Mats Norén [EMAIL PROTECTED] wrote: On 8/11/06, Mats Norén [EMAIL PROTECTED] wrote: On 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote: ahh see the code: // Don't touch any wicket:id component if (tag.getId() != null) { return tag; } So in that case you have to do it yourself. So I want to add my own version of a PrependContextPathHandler and add it to my application. Do I have to supply my own MarkupParser somehow or how do I add my IMarkupFilter to the application? /Mats - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] Form + pull model ListView + FormValidators
And probably more elegant that providing automatic cleaning of old IFormValidators. Joni On Fri, 2006-08-11 at 15:13 +0300, Joni Freeman wrote: This would be very good too. Joni On Thu, 2006-08-10 at 23:39 +0200, Johan Compagner wrote: it does work really differnet then wat we do now. And with a panel it looks maybe nice. But it is a but more blown up code. Personally i like this then better: IFormValidator { validate(Form) } MyPanel implements IFormValidator { validate() { validate the panel. } } and the Form searches for IFormValidator implementors in its tree (besides the normal onces it already has) and takes those also into account. Much cleaner and not so verbose in code if you ask me.. johan On 8/10/06, Igor Vaynberg [EMAIL PROTECTED] wrote: personally i like the visitor joni proposed - it doesnt need to be part of core but it solves the problem elegantly. i recently factored out form.validateFormValidator(IFormValidator v) that maeks the usecase even simpler to implement. -Igor - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Pretty URL for login page ?
Thanks for fast reply!If this is feasible I will create a RFE for this change. hope we'll have this feature next release :-)On 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote: Mounting like Gwyn proposed doesn't work either.The problem is that we always redirect to an instance because of the pagemap method: final void redirectToInterceptPage(final Page page) { // Get the request cycle final RequestCycle cycle = RequestCycle.get(); // The intercept continuation URL should be saved exactly as the // original request specified. interceptContinuationURL = cycle.getRequest ().getURL(); // Page map is dirty session.dirtyPageMap(this); // Redirect to the page cycle.setRedirect(true); cycle.setResponsePage(page); }Maybe we should also make redirecting to a class: final void redirectToInterceptPage(final Class pageClass) { // Get the request cycle final RequestCycle cycle = RequestCycle.get(); // The intercept continuation URL should be saved exactly as the // original request specified. interceptContinuationURL = cycle.getRequest().getURL(); // Page map is dirty session.dirtyPageMap(this); // Redirect to the page cycle.setRedirect(true); cycle.setResponsePage(pageClass); }then you will get a bookmarkable url or a mount url.johan On 8/11/06, Ingram Chen [EMAIL PROTECTED] wrote: All, This small problem annoys us very long time:When I first reach http://mycompany.com, with normal configuration, we check if user login or not and throw RestartResponseAtInterceptPageException( IndexPage.class)to redirect user to Login page.This work perfectly but the URL become unstable link like: http://mycompany.com/app?wicket:interface=:1 ::Normally user want to bookmark login page, but in this case such URL does not work at all.Is there any way to fix this 'problem' ? It would be better I could redirect to root context like http://mycompany.com/ or http://mycompany.com/appThanks in advance!-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Link and Input
Disregard my last post. :) /Mats - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Link and Input
MyApplication.java private Settings getSettings() { if (!settingsAccessible) { throw new WicketRuntimeException( Use Application.init() method for configuring your application object); } if (settings == null) { settings = new MySettings(this); } return settings; } On 8/11/06, Mats Norén [EMAIL PROTECTED] wrote: Stupid question, but how do override the settings.java? On 8/11/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: In 2.0 it looks like Settings.java public IMarkupParserFactory getMarkupParserFactory() { if (this.markupParserFactory == null) { this.markupParserFactory = new MarkupParserFactory(application) { public MarkupParser newMarkupParser(final MarkupResourceStream resource) { MarkupParser parser = super.newMarkupParser(resource); parser.registerMarkupFilter(new MyHandler()); } } } return markupParserFactory; In 1.2 it looks like Settings.java public IMarkupParserFactory getMarkupParserFactory() { if (this.markupParserFactory == null) { this.markupParserFactory = new MarkupParserFactory(application) { public MarkupParser newMarkupParser() { final MarkupParser parser = new MarkupParser(new XmlPullParser()) { public void initFilterChain() { appendMarkupFilter(new MyFilter()); } } } } }; return parser; } } } return markupParserFactory; Juergen On 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote: you can use i guess public final void appendMarkupFilter(final IMarkupFilter filter) of MarkupParser But juergen just changes some of that code i believe so maybe he can tell you the best solution now. johan On 8/11/06, Mats Norén [EMAIL PROTECTED] wrote: On 8/11/06, Mats Norén [EMAIL PROTECTED] wrote: On 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote: ahh see the code: // Don't touch any wicket:id component if (tag.getId() != null) { return tag; } So in that case you have to do it yourself. So I want to add my own version of a PrependContextPathHandler and add it to my application. Do I have to supply my own MarkupParser somehow or how do I add my IMarkupFilter to the application? /Mats - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
Re: [Wicket-user] Link and Input
Hmm..didn't work out as I expected. Isn't Settings.java final in 1.2.1? - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)
I finally find what caused the problem: I knew that for the example to work as standalone, one must call setOutputMarkup(true) on the ListView container. What I did not know is that if the example is embeded in an Ajax TabbedPanel, the Form used to update the ListView must also have setOutputMarkup(true) called on it. If not, the form id use colons as separators instead of undersores, and the Javascript function receives a null form. Pierre-Yves Igor Vaynberg a écrit : if there is nothing in the ajax debug window then a request is never made so the javascript doesnt execute. are there javascript errors? is the update performed by a self updating timer behavior? if so it will not be executed if the listview itself is shown as a result of ajax update unless you use a version of wicket after 1.2.1 like 1.2.2 or trunk from WICKET_1_2 branch. -Igor On 8/10/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I am sorry, I just hit reply and although sometimes it goes to the list, sometimes not :-( I tried to use the enclosing tab as the target, as well as the panel that was used in the standalone version. In either case, absolutely nothing happens. And nothing is displayed in the Ajax Debug Windows. Is there a way to track what is happening ? Pierre-Yves Igor Vaynberg a écrit : a tab is by istelf a panel, set the ajax target to the panel itself. and please do continue this on the list so that others can also benefit from the discussion. -Igor On 8/10/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Attaching the markup container to the table tag instead of the tbody works in both Firefox and IE. Now, what I need it to use the ListView as a component of a tab in a tabbed panel. The tabbed panel is using ajax to switch tabs. The tabbed panel works fine. The ListView now works fine too as a standalone example. But when I put the ListView in the tab, it don't work anymore. I tried to put it in the first tab (the one which is displayed by default, not using ajax) but it don't work neither. Should I continue searching or is this impossible ? Should I use the whole tab as a target ? Or is it possible to use the same markup container attached to the table html tag ? Pierre-Yves Igor Vaynberg a écrit : you cannot update listview directly because a) listview itself has no markup - it lets the children use its markup b) you cannot update tr/tbody/etc tags via outerhtml which is what we do and when you try you get the very helpful runtime error you have to create a markupcontainer around the listview that is preferrably attached to the table tag and update that instead. -Igor On 8/10/06, * Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I eventually could not reproduce the problem in a test case. However, I have been able (??) to produce another problem of the same kind, ie something that does not work the same in IE6 and Firefox. In fact, it works fine in FireFox and produces an error in IE6. The example is a ListView that is updated through Ajax. No problem in Firefox. In IE6, the Ajax Debug Windows displays : ERROR: error while processing response: [object Error].Erreur d'exécution inconnue INFO: invoking failure handler... (The part which is in french means unknown runtime error) Do you want me to send the test case ? If you do, can you tell me what to send exactly ? A self contained working archive of the quickstart project is about 3Mb. Is that OK ? Pierre-Yves Johan Compagner a écrit : do you have a simple test case in a quickstart project? On 8/10/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
Re: [Wicket-user] Link and Input
I'm sorry if I come across as a little bit stupid here but the way I understood it was that getSettings() in Application is deprecated and shouldn't be used? And from what class should I derive MySettings? I mean since Settings is final. I thought I would supply my own IMarkupSettings but since the only class implementing it is Settings I'm back at square one. Or have I missed something? btw, thanks for your help. /Mats ps. I'm using wicket 1.2.1 ds. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Component created 18 times in IE versus twice in Firefox
Hi, I was curious to see how many instance of components were created, so I just added a counter to a panel. I appears that when I load the page for the first time in Firefox, the panel component is created twice. (I would have guess once...) In IE6, in the same situation (server restarted), the same component is created 18 times. This seems really much! Each subsequent reloading of the page creates one more instance in Firefox and 2 more instances in IE6. Any idea about the reason for such a difference ? And could it eventually be a problem when in production ? Pierre-Yves - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Pretty URL for login page ?
* Johan Compagner: Maybe we should also make redirecting to a class: final void redirectToInterceptPage(final Class pageClass) { // Get the request cycle final RequestCycle cycle = RequestCycle.get(); // The intercept continuation URL should be saved exactly as the // original request specified. interceptContinuationURL = cycle.getRequest().getURL(); // Page map is dirty session.dirtyPageMap(this); Do you think it is really necessary to update the session's PageMap? I think if we use a Class, there is no need for marking the session dirty. -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox
I'm not sure I understand what's going on. Could you provide a test-case or a quick start application? -Matej Pierre-Yves Saumont wrote: Hi, I was curious to see how many instance of components were created, so I just added a counter to a panel. I appears that when I load the page for the first time in Firefox, the panel component is created twice. (I would have guess once...) In IE6, in the same situation (server restarted), the same component is created 18 times. This seems really much! Each subsequent reloading of the page creates one more instance in Firefox and 2 more instances in IE6. Any idea about the reason for such a difference ? And could it eventually be a problem when in production ? Pierre-Yves - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Change in handling non serializable-objects in 1.2.1?
Has there been any changes between 1.2 and 1.2.1 when it comes to handling objects that are not serializable? In my migration from 1.2 to 1.2.1 I suddenly got this exception: WicketMessage: Internal error cloning object. Make sure all dependent objects implement Serializable. Class: se.curalia.plan.web.page.detailedplan.ShowDetailedPlanPage Root cause: java.io.NotSerializableException: se.curalia.plan.dao.jcr.Document at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291) at wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:57) at wicket.Session.setAttribute(Session.java:926) at wicket.PageMap.put(PageMap.java:526) at wicket.Session.touch(Session.java:714) at wicket.Page.renderPage(Page.java:422) at wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:226) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:852) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:879) at wicket.RequestCycle.step(RequestCycle.java:960) at wicket.RequestCycle.steps(RequestCycle.java:1034) at wicket.RequestCycle.request(RequestCycle.java:453) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:215) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at
Re: [Wicket-user] Change in handling non serializable-objects in 1.2.1?
Are you sure ShowDetailedPlanPage is Serializable? Juergen On 8/11/06, Mats Norén [EMAIL PROTECTED] wrote: Has there been any changes between 1.2 and 1.2.1 when it comes to handling objects that are not serializable? In my migration from 1.2 to 1.2.1 I suddenly got this exception: WicketMessage: Internal error cloning object. Make sure all dependent objects implement Serializable. Class: se.curalia.plan.web.page.detailedplan.ShowDetailedPlanPage Root cause: java.io.NotSerializableException: se.curalia.plan.dao.jcr.Document at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1245) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1069) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291) at wicket.protocol.http.HttpSessionStore.setAttribute(HttpSessionStore.java:57) at wicket.Session.setAttribute(Session.java:926) at wicket.PageMap.put(PageMap.java:526) at wicket.Session.touch(Session.java:714) at wicket.Page.renderPage(Page.java:422) at wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:226) at wicket.request.compound.DefaultResponseStrategy.respond(DefaultResponseStrategy.java:49) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:852) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:879) at wicket.RequestCycle.step(RequestCycle.java:960) at wicket.RequestCycle.steps(RequestCycle.java:1034) at wicket.RequestCycle.request(RequestCycle.java:453) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:215) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at
Re: [Wicket-user] ssl, roles and authorization
Solution found. Within the newRequestCycleProcessor() method of the MyAuthenticatedWebApplication class I caught the exception thrown by the IRequestTarget respond method. protected IRequestCycleProcessor newRequestCycleProcessor() { return new DefaultWebRequestCycleProcessor() { protected IResponseStrategy newResponseStrategy() { return new IResponseStrategy() { public void respond(RequestCycle requestCycle) { IRequestTarget requestTarget = requestCycle.getRequestTarget(); if(requestTarget != null) { Application.get().logResponseTarget(requestTarget); WebRequest webRequest = (WebRequest)requestCycle.getRequest(); WebResponse webResponse = (WebResponse)requestCycle.getResponse(); HttpServletRequest httpServletRequest = webRequest.getHttpServletRequest(); Class pageClass = null; if(requestTarget instanceof IPageRequestTarget) { IPageRequestTarget pageTarget = (IPageRequestTarget)requestTarget; pageClass = pageTarget.getPage().getClass(); } else if(requestTarget instanceof IBookmarkablePageRequestTarget) { IBookmarkablePageRequestTarget bookmarkableTarget = (IBookmarkablePageRequestTarget)requestTarget; pageClass = bookmarkableTarget.getPageClass(); } if(pageClass != null !httpServletRequest.isSecure() pageClass.isAnnotationPresent(RequiredSSL.class)) { StringBuffer url = new StringBuffer((new StringBuilder()).append(https://;).append(httpServletRequest.getServerName()).toString()); url.append(:8443); String q = RequestCycle.get().urlFor(requestTarget).toString(); url.append(q); webResponse.redirect(url.toString()); } else if(pageClass != null httpServletRequest.isSecure() !pageClass.isAnnotationPresent(RequiredSSL.class)) { StringBuffer url = new StringBuffer((new StringBuilder()).append(http://;).append(httpServletRequest.getServerName()).toString()); String q = RequestCycle.get().urlFor(requestTarget).toString(); url.append(q); webResponse.redirect(url.toString()); } try{ requestTarget.respond(requestCycle); }catch(Exception e){ logger.debug(Error caught: +e); } } } }; } }; } } It's more of a hack than an elegant solution. It would be nice for the designers to release a robust example of SSL working with roles and authorization. wired wrote: Hi I'm trying to mix authentication using annotations and SSL, but I'm having problems. I am simply using the code found in the auth-roles-examples (1.2.1) and I have made some changes using the Switch to SSL example (http://www.wicket-wiki.org.uk/wiki/index.php/Switch_to_SSL_mode) If I try to access a page that requires me to sign in, and I am redirected to the MySignInPage to which I have added the annotation @RequiredSSL, an exception is thrown which is caused by: wicket.WicketRuntimeException: Already redirecting to 'https://localhost:8443/wirap/authentication?wicket:interface=:1::'. Cannot redirect more than once Now I have verified that the @RequiredSSL annotation works. It only fails when I try to access a page that requires authorization and I'm redirected to the login page over SSL. Does anyone have any solutions? Many thanks in advance! -- View this message in context: http://www.nabble.com/ssl%2C-roles-and-authorization-tf2087198.html#a5762945 Sent from the Wicket - User forum at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___
Re: [Wicket-user] Change in handling non serializable-objects in 1.2.1?
Well, I guess it isn't but it worked under 1.2 prior to the release. The only change in my application is that I've switched from 1.2 SVN (don't know the exact repository version) to 1.2.1. Is 1.2 more lenient? /Mats - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Change in handling non serializable-objects in 1.2.1?
1.2.1 only has bug fixes. May be you the check the mail archive. I remember this problem has been discussed before. Juergen On 8/11/06, Mats Norén [EMAIL PROTECTED] wrote: Well, I guess it isn't but it worked under 1.2 prior to the release. The only change in my application is that I've switched from 1.2 SVN (don't know the exact repository version) to 1.2.1. Is 1.2 more lenient? /Mats - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox
I tried to make a simple test case, but it does not show this problem. My first guess is that it has something to do with caching, since my apps loads many elements from various places (images, css, scipts, images from css, images from scripts and even an html file loaded from within a script !) I'll see if I can strip down the application and isolate what is causing the problem. Pierre-Yves Matej Knopp a écrit : I'm not sure I understand what's going on. Could you provide a test-case or a quick start application? -Matej Pierre-Yves Saumont wrote: Hi, I was curious to see how many instance of components were created, so I just added a counter to a panel. I appears that when I load the page for the first time in Firefox, the panel component is created twice. (I would have guess once...) In IE6, in the same situation (server restarted), the same component is created 18 times. This seems really much! Each subsequent reloading of the page creates one more instance in Firefox and 2 more instances in IE6. Any idea about the reason for such a difference ? And could it eventually be a problem when in production ? Pierre-Yves - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox
IE usually uses many more concurrent connections to grab details and if you map the servlet to /* it could be this... -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Pierre-Yves Saumont Gesendet: Freitag, 11. August 2006 16:46 An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox I tried to make a simple test case, but it does not show this problem. My first guess is that it has something to do with caching, since my apps loads many elements from various places (images, css, scipts, images from css, images from scripts and even an html file loaded from within a script !) I'll see if I can strip down the application and isolate what is causing the problem. Pierre-Yves Matej Knopp a écrit : I'm not sure I understand what's going on. Could you provide a test-case or a quick start application? -Matej Pierre-Yves Saumont wrote: Hi, I was curious to see how many instance of components were created, so I just added a counter to a panel. I appears that when I load the page for the first time in Firefox, the panel component is created twice. (I would have guess once...) In IE6, in the same situation (server restarted), the same component is created 18 times. This seems really much! Each subsequent reloading of the page creates one more instance in Firefox and 2 more instances in IE6. Any idea about the reason for such a difference ? And could it eventually be a problem when in production ? Pierre-Yves - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121 642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057; dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Change in handling non serializable-objects in 1.2.1?
in application.init() call getDebugSettings().setSerializeSessionAttributes(false);this feature defaults to on in devel mode and off in prod mode - before it was triggered by having your logger set to debug on a certain package which was a bit too ugly. -IgorOn 8/11/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: 1.2.1 only has bug fixes. May be you the check the mail archive. Iremember this problem has been discussed before.JuergenOn 8/11/06, Mats Norén [EMAIL PROTECTED] wrote: Well, I guess it isn't but it worked under 1.2 prior to the release. The only change in my application is that I've switched from 1.2 SVN (don't know the exact repository version) to 1.2.1. Is 1.2 more lenient? /Mats - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Change in handling non serializable-objects in 1.2.1?
I think you didn't enable the logging debug property or somethingIf you didn't have that in 1.2 then we didn't test itnow the check property: if (Application.get().getDebugSettings().getSerializeSessionAttributes()) and i think that property is default true in development mode.But you just should have that to true and check your page.johanOn 8/11/06, Mats Norén [EMAIL PROTECTED] wrote: Well, I guess it isn't but it worked under 1.2 prior to the release.The only change in my application is that I've switched from 1.2 SVN(don't know the exact repository version) to 1.2.1.Is 1.2 more lenient? /Mats-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Change in handling non serializable-objects in 1.2.1?
Is the page detached when we do that???the call comes from Session.touch(Page) (i have the same problem now in 2.0 with the second level cache)Because the page is detached only as the last thing when the RequestTarget.detach is called.But touch is called much earlier...johanOn 8/11/06, Igor Vaynberg [EMAIL PROTECTED] wrote:in application.init() call getDebugSettings().setSerializeSessionAttributes(false); this feature defaults to on in devel mode and off in prod mode - before it was triggered by having your logger set to debug on a certain package which was a bit too ugly. -IgorOn 8/11/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: 1.2.1 only has bug fixes. May be you the check the mail archive. Iremember this problem has been discussed before.JuergenOn 8/11/06, Mats Norén [EMAIL PROTECTED] wrote: Well, I guess it isn't but it worked under 1.2 prior to the release. The only change in my application is that I've switched from 1.2 SVN (don't know the exact repository version) to 1.2.1. Is 1.2 more lenient? /Mats - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Pretty URL for login page ?
No we are marking the PageMap as dirtyand that is the case:interceptContinuationURL = cycle.getRequest().getURL();that field of pagemap is updated...johan On 8/11/06, Jean-Baptiste Quenot [EMAIL PROTECTED] wrote: * Johan Compagner: Maybe we should also make redirecting to a class:final void redirectToInterceptPage(final Class pageClass){// Get the request cyclefinal RequestCycle cycle = RequestCycle.get();// The intercept continuation URL should be saved exactly as the// original request specified.interceptContinuationURL = cycle.getRequest().getURL(); // Page map is dirtysession.dirtyPageMap(this);Do you think it is really necessary to update the session'sPageMap?I think if we use a Class, there is no need for marking the session dirty.-- Jean-Baptiste QuenotakaJohn Banana Qwertyhttp://caraldi.com/jbq/- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Best practice to clear a form ?
Form.clearInput clears the Raw data that all formcomponents have.But not the model data. So yes you need to update the model data of your form.Easiest way to me looks like having a shared (compound) model in the form that is shared for all the form componentsand if you want to clear it. set a new clean model in the form.johanOn 8/11/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote:Hello,I have a form submiting through Ajax. I want the form not to retain the input values after submitting. I tried to put form.clearInput() in theonSubmit handler, but it does not do the job. However, the following works :form.myTextfield.setModelValue();form.myCheckbox.setModelValue (false);form.myDropDown.setModelObject(null);Is this a correct way to clear the form ?BTW, the form is included in the ListView Container that is the targetof the Ajax handler and, without the three lines above, the XML received by the browser includes the form data.Pierre-Yves-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Form + pull model ListView + FormValidators
Please add a RFE if you can.johanOn 8/11/06, Joni Freeman [EMAIL PROTECTED] wrote: This would be very good too.JoniOn Thu, 2006-08-10 at 23:39 +0200, Johan Compagner wrote: it does work really differnet then wat we do now. And with a panel it looks maybe nice. But it is a but more blown up code. Personally i like this then better: IFormValidator { validate(Form) } MyPanel implements IFormValidator { validate() { validate the panel. } } and the Form searches for IFormValidator implementors in its tree (besides the normal onces it already has) and takes those also into account. Much cleaner and not so verbose in code if you ask me.. johan On 8/10/06, Igor Vaynberg [EMAIL PROTECTED] wrote: personally i like the visitor joni proposed - it doesnt need to be part of core but it solves the problem elegantly. i recently factored out form.validateFormValidator (IFormValidator v) that maeks the usecase even simpler to implement. -Igor - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)
can wicket do something to improve this?On 8/11/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: I finally find what caused the problem: I knew that for the example towork as standalone, one must call setOutputMarkup(true) on the ListViewcontainer. What I did not know is that if the example is embeded in an Ajax TabbedPanel, the Form used to update the ListView must also havesetOutputMarkup(true) called on it. If not, the form id use colons asseparators instead of undersores, and the _javascript_ function receives a null form. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox
Doesn't somehow a redirect happen? which version are you using? Does the url change in FF ?(does a thing like wicket-0 appear in the url)johanOn 8/11/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Hi,I was curious to see how many instance of components were created, so Ijust added a counter to a panel. I appears that when I load the page forthe first time in Firefox, the panel component is created twice. (I would have guess once...)In IE6, in the same situation (server restarted), the same component iscreated 18 times. This seems really much!Each subsequent reloading of the page creates one more instance in Firefox and 2 more instances in IE6.Any idea about the reason for such a difference ? And could iteventually be a problem when in production ?Pierre-Yves- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Change in handling non serializable-objects in 1.2.1?
i dont know, i just replaced the logging level check with a setting.-IgorOn 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote:Is the page detached when we do that??? the call comes from Session.touch(Page) (i have the same problem now in 2.0 with the second level cache)Because the page is detached only as the last thing when the RequestTarget.detach is called.But touch is called much earlier...johanOn 8/11/06, Igor Vaynberg [EMAIL PROTECTED] wrote:in application.init() call getDebugSettings().setSerializeSessionAttributes(false); this feature defaults to on in devel mode and off in prod mode - before it was triggered by having your logger set to debug on a certain package which was a bit too ugly. -IgorOn 8/11/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: 1.2.1 only has bug fixes. May be you the check the mail archive. Iremember this problem has been discussed before.JuergenOn 8/11/06, Mats Norén [EMAIL PROTECTED] wrote: Well, I guess it isn't but it worked under 1.2 prior to the release. The only change in my application is that I've switched from 1.2 SVN (don't know the exact repository version) to 1.2.1. Is 1.2 more lenient? /Mats - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Form + pull model ListView + FormValidators
ah, so when i propose it it sucks : http://www.nabble.com/form.onsubmit-vs-button.onsubmit-tf1977859.html#a5426708but when you do it its a please add an rfe? :) -IgorOn 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote: Please add a RFE if you can.johanOn 8/11/06, Joni Freeman [EMAIL PROTECTED] wrote: This would be very good too.JoniOn Thu, 2006-08-10 at 23:39 +0200, Johan Compagner wrote: it does work really differnet then wat we do now. And with a panel it looks maybe nice. But it is a but more blown up code. Personally i like this then better: IFormValidator { validate(Form) } MyPanel implements IFormValidator { validate() { validate the panel. } } and the Form searches for IFormValidator implementors in its tree (besides the normal onces it already has) and takes those also into account. Much cleaner and not so verbose in code if you ask me.. johan On 8/10/06, Igor Vaynberg [EMAIL PROTECTED] wrote: personally i like the visitor joni proposed - it doesnt need to be part of core but it solves the problem elegantly. i recently factored out form.validateFormValidator (IFormValidator v) that maeks the usecase even simpler to implement. -Igor - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)
yes, we can ditch : as the default separator and use something else like an underscore.-IgorOn 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote:can wicket do something to improve this? On 8/11/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: I finally find what caused the problem: I knew that for the example towork as standalone, one must call setOutputMarkup(true) on the ListViewcontainer. What I did not know is that if the example is embeded in an Ajax TabbedPanel, the Form used to update the ListView must also havesetOutputMarkup(true) called on it. If not, the form id use colons asseparators instead of undersores, and the _javascript_ function receives a null form. -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Best practice to clear a form ?
Do you mean that the form values should not be processed? In this case you should use a CancelButton: See http://www.wicket-wiki.org.uk/wiki/index.php/Multiple_submit_buttons_in_form -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Pretty URL for login page ?
* Johan Compagner: Please make a RFE I created a patch because I need it too: See http://sourceforge.net/tracker/index.php?func=detailaid=1538810group_id=119783atid=684977 -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Best practice to clear a form ?
No, I mean that after submiting the form, a component in the same page is updated through Ajax. The form itself is updated from the XML data received as a response to the Ajax call. So I want to clear the form data so that the form is automatically reset. Pierre-Yves Jean-Baptiste Quenot a écrit : Do you mean that the form values should not be processed? In this case you should use a CancelButton: See http://www.wicket-wiki.org.uk/wiki/index.php/Multiple_submit_buttons_in_form - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox
After searching the documentation, I realized I should not have called super() in my page constructor. By removing this, I made things a little better : In Firefox, it works smoothly. One instance is created on the first access. One instance is created again each time I relaod the page (using the reload button of the browser). The url is consistently : http://localhost:8080/ceagrap/app In IE6, it's another story. On first load, it looks the same as in Firefox. But if I reload the page, the url becomes : http://localhost:8080/ceagrap/app?wicket:bookmarkablePage=wicket-0:com.volgadev.cea.pages.PageReponses On each reload, the number in the url is incremented by 1 and two instances are created ! Pierre-Yves Pierre-Yves Saumont a écrit : no, it is mapped to /app/* The url displayed in the browser is: http://localhost:8080/ceagrap/app?wicket:bookmarkablePage=wicket-18:com.volgadev.cea.pages.PageReponses When I load the page for the first time, the url above is displayed and the number in wicket:bookmarkablePage=wicket-18 increases slowly from 0 to 18. Only then is teh page displayed. I just tried different versions of the application that I saved every last day. The result varies randomly. For example, in a version from 3 days ago, it was 10 in Firefox and 5 in IE6 ! Version is 1.2.1rc Pierre-Yves Korbinian Bachl a écrit : IE usually uses many more concurrent connections to grab details and if you map the servlet to /* it could be this... -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Pierre-Yves Saumont Gesendet: Freitag, 11. August 2006 16:46 An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox I tried to make a simple test case, but it does not show this problem. My first guess is that it has something to do with caching, since my apps loads many elements from various places (images, css, scipts, images from css, images from scripts and even an html file loaded from within a script !) I'll see if I can strip down the application and isolate what is causing the problem. Pierre-Yves Matej Knopp a écrit : I'm not sure I understand what's going on. Could you provide a test-case or a quick start application? -Matej Pierre-Yves Saumont wrote: Hi, I was curious to see how many instance of components were created, so I just added a counter to a panel. I appears that when I load the page for the first time in Firefox, the panel component is created twice. (I would have guess once...) In IE6, in the same situation (server restarted), the same component is created 18 times. This seems really much! Each subsequent reloading of the page creates one more instance in Firefox and 2 more instances in IE6. Any idea about the reason for such a difference ? And could it eventually be a problem when in production ? Pierre-Yves - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121 642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057; dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox
try the latest code from WICKET_1_2 branch-IgorOn 8/11/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: After searching the documentation, I realized I should not have calledsuper() in my page constructor. By removing this, I made things a little better :In Firefox, it works smoothly. One instance is created on the firstaccess. One instance is created again each time I relaod the page (usingthe reload button of the browser). The url is consistently : http://localhost:8080/ceagrap/appIn IE6, it's another story. On first load, it looks the same as inFirefox. But if I reload the page, the url becomes : http://localhost:8080/ceagrap/app?wicket:bookmarkablePage=wicket-0:com.volgadev.cea.pages.PageReponses On each reload, the number in the url is incremented by 1 and twoinstances are created !Pierre-YvesPierre-Yves Saumont a écrit : no, it is mapped to /app/* The url displayed in the browser is: http://localhost:8080/ceagrap/app?wicket:bookmarkablePage=wicket-18:com.volgadev.cea.pages.PageReponses When I load the page for the first time, the url above is displayed and the number in wicket:bookmarkablePage=wicket-18 increases slowly from 0 to 18. Only then is teh page displayed. I just tried different versions of the application that I saved every last day. The result varies randomly. For example, in a version from 3 days ago, it was 10 in Firefox and 5 in IE6 ! Version is 1.2.1rc Pierre-Yves Korbinian Bachl a écrit : IE usually uses many more concurrent connections to grab details and if you map the servlet to /* it could be this... -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]] Im Auftrag von Pierre-Yves Saumont Gesendet: Freitag, 11. August 2006 16:46 An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox I tried to make a simple test case, but it does not show this problem. My first guess is that it has something to do with caching, since my apps loads many elements from various places (images, css, scipts, images from css, images from scripts and even an html file loaded from within a script !) I'll see if I can strip down the application and isolate what is causing the problem. Pierre-Yves Matej Knopp a écrit : I'm not sure I understand what's going on. Could you provide a test-case or a quick start application? -Matej Pierre-Yves Saumont wrote: Hi, I was curious to see how many instance of components were created, so I just added a counter to a panel. I appears that when I load the page for the first time in Firefox, the panel component is created twice. (I would have guess once...) In IE6, in the same situation (server restarted), the same component is created 18 times. This seems really much! Each subsequent reloading of the page creates one more instance in Firefox and 2 more instances in IE6. Any idea about the reason for such a difference ? And could it eventually be a problem when in production ? Pierre-Yves - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121 642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057 dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox
Ah, that's the problem. It's wicket multi window support that causes you trouble. First, i guess you are using 1.2, or am I wrong? 1.2.1 should fix the continuous parameters wicket-x increasing (e.g from wicket-1 to wicket-18. However, you can still experience creating page twice, e.g. if you open page in new window, it will redirect and clone the page. -Matej Pierre-Yves Saumont wrote: After searching the documentation, I realized I should not have called super() in my page constructor. By removing this, I made things a little better : In Firefox, it works smoothly. One instance is created on the first access. One instance is created again each time I relaod the page (using the reload button of the browser). The url is consistently : http://localhost:8080/ceagrap/app In IE6, it's another story. On first load, it looks the same as in Firefox. But if I reload the page, the url becomes : http://localhost:8080/ceagrap/app?wicket:bookmarkablePage=wicket-0:com.volgadev.cea.pages.PageReponses On each reload, the number in the url is incremented by 1 and two instances are created ! Pierre-Yves Pierre-Yves Saumont a écrit : no, it is mapped to /app/* The url displayed in the browser is: http://localhost:8080/ceagrap/app?wicket:bookmarkablePage=wicket-18:com.volgadev.cea.pages.PageReponses When I load the page for the first time, the url above is displayed and the number in wicket:bookmarkablePage=wicket-18 increases slowly from 0 to 18. Only then is teh page displayed. I just tried different versions of the application that I saved every last day. The result varies randomly. For example, in a version from 3 days ago, it was 10 in Firefox and 5 in IE6 ! Version is 1.2.1rc Pierre-Yves Korbinian Bachl a écrit : IE usually uses many more concurrent connections to grab details and if you map the servlet to /* it could be this... -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Pierre-Yves Saumont Gesendet: Freitag, 11. August 2006 16:46 An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox I tried to make a simple test case, but it does not show this problem. My first guess is that it has something to do with caching, since my apps loads many elements from various places (images, css, scipts, images from css, images from scripts and even an html file loaded from within a script !) I'll see if I can strip down the application and isolate what is causing the problem. Pierre-Yves Matej Knopp a écrit : I'm not sure I understand what's going on. Could you provide a test-case or a quick start application? -Matej Pierre-Yves Saumont wrote: Hi, I was curious to see how many instance of components were created, so I just added a counter to a panel. I appears that when I load the page for the first time in Firefox, the panel component is created twice. (I would have guess once...) In IE6, in the same situation (server restarted), the same component is created 18 times. This seems really much! Each subsequent reloading of the page creates one more instance in Firefox and 2 more instances in IE6. Any idea about the reason for such a difference ? And could it eventually be a problem when in production ? Pierre-Yves - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121 642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057; dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list
Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox
I am using 1.2.1. Igor suggested to use the latest code from WICKET_1_2 branch and I will try that. Anyway, although I do not yet understand exactly how things work, I realize I was trying to do something quite stupid, as the page I tested was the first of the application. By inserting a home page before this one, I can separate concerns and everything is going much better. I still do not understand the IE specificity, but things now work. Thanks to all for your support. Pierre-Yves Matej Knopp a écrit : Ah, that's the problem. It's wicket multi window support that causes you trouble. First, i guess you are using 1.2, or am I wrong? 1.2.1 should fix the continuous parameters wicket-x increasing (e.g from wicket-1 to wicket-18. However, you can still experience creating page twice, e.g. if you open page in new window, it will redirect and clone the page. -Matej Pierre-Yves Saumont wrote: After searching the documentation, I realized I should not have called super() in my page constructor. By removing this, I made things a little better : In Firefox, it works smoothly. One instance is created on the first access. One instance is created again each time I relaod the page (using the reload button of the browser). The url is consistently : http://localhost:8080/ceagrap/app In IE6, it's another story. On first load, it looks the same as in Firefox. But if I reload the page, the url becomes : http://localhost:8080/ceagrap/app?wicket:bookmarkablePage=wicket-0:com.volgadev.cea.pages.PageReponses On each reload, the number in the url is incremented by 1 and two instances are created ! Pierre-Yves Pierre-Yves Saumont a écrit : no, it is mapped to /app/* The url displayed in the browser is: http://localhost:8080/ceagrap/app?wicket:bookmarkablePage=wicket-18:com.volgadev.cea.pages.PageReponses When I load the page for the first time, the url above is displayed and the number in wicket:bookmarkablePage=wicket-18 increases slowly from 0 to 18. Only then is teh page displayed. I just tried different versions of the application that I saved every last day. The result varies randomly. For example, in a version from 3 days ago, it was 10 in Firefox and 5 in IE6 ! Version is 1.2.1rc Pierre-Yves Korbinian Bachl a écrit : IE usually uses many more concurrent connections to grab details and if you map the servlet to /* it could be this... -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Pierre-Yves Saumont Gesendet: Freitag, 11. August 2006 16:46 An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox I tried to make a simple test case, but it does not show this problem. My first guess is that it has something to do with caching, since my apps loads many elements from various places (images, css, scipts, images from css, images from scripts and even an html file loaded from within a script !) I'll see if I can strip down the application and isolate what is causing the problem. Pierre-Yves Matej Knopp a écrit : I'm not sure I understand what's going on. Could you provide a test-case or a quick start application? -Matej Pierre-Yves Saumont wrote: Hi, I was curious to see how many instance of components were created, so I just added a counter to a panel. I appears that when I load the page for the first time in Firefox, the panel component is created twice. (I would have guess once...) In IE6, in the same situation (server restarted), the same component is created 18 times. This seems really much! Each subsequent reloading of the page creates one more instance in Firefox and 2 more instances in IE6. Any idea about the reason for such a difference ? And could it eventually be a problem when in production ? Pierre-Yves - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121 642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057; dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] Wicket + GIS
Yes, I have build an application which will (someday) be released in production on www.nlgis.nl, I'm waiting for the customer to set up a meeting for deployment with the hosting party (currently it is accessible through it's test-environment on http://ip042.niwi.knaw.nl:9099/hgin/app, you can checkout the Demo-link in the navigation menu -- just ignore the Dutch ;-) ). I have build the user interface with Wicket, basically to define the SLD for the the map in the user session. I use Community Mapbuilder as client to show the map in the web browser. GeoServer is on the back end. Wiring between GeoServer, Community Mapbuilder and my application is done with some plain old servlets and a HttpSessionListener. But that was mainly necessary because the user can define (and upload) his own FeatureTypes (also a custom DataStore was needed for this to let GeoServer access the data in the user session). There were no specific issues using Wicket, but then again, I did not build a WMS-client. If you plan on building a WMS-client yourself, I think this can be done with Wicket, but it will be a lot of work (as with any other framework). Best regards, Dave Mats Norén wrote: Hi, has anyone on the list any experience with Wicket and GIS-backends like Geoserver? I'm trying to figure out the best approach for interfacing Wicket with GeoServer but I'm interested in other frameworks as well. /Mats - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] problem with PopupCloseLink - wicket 1.2.1
Hrm, yes. Thanks Dipu for finding that. I made some improvements to PopupSettings to guard for such problems. Probably not fire proof, but better. Cheers, Eelco On 8/11/06, Dipu [EMAIL PROTECTED] wrote: Hi Elco, Problem was with the PopupSettings This is how i had defined the the PopupSettings PopupSettings popupsettings = new PopupSettings(); popupSettings.setHeight(500); popupSettings.setWidth(500); popupSettings.setWindowName(name); Changed it to PopupSettings popupSettings = new PopupSettings(PageMap.forName(name)); popupSettings.setHeight(500); popupSettings.setWidth(500); and now it works fine. many thanks for the reply. Regards Dipu - Original Message - From: Eelco Hillenius [EMAIL PROTECTED] To: wicket-user@lists.sourceforge.net Sent: Thursday, August 10, 2006 7:52 PM Subject: Re: [Wicket-user] problem with PopupCloseLink - wicket 1.2.1 Hi Dipu, I can't reproduce this with the current 1.2 svn version. Does the linkomatic example have the same behavior for you? Can you send in a test project that reproduces this problem? And/ or test against the svn version and see if the problem is still there? Eelco On 8/9/06, Dipu [EMAIL PROTECTED] wrote: Hi All, I have migrated my application from the earlier version of wicket to the version 1.2.1. I am having bit of a problem with the popup pages and pop up close links. If i open a popup page and close it by clicking on the PopupCloseLink. The next attempt to open the pop up page loads the home page in my pop up page. At the same time if i uses the browsers close button it opens the correct pop up page in the subsequent attempts. Has any one come across this problem with the version 1.2.1. I wonder if the line // Remove the popup's page map from the session getPage().getPageMap().remove(); in the onClick() method of PopupCloseLink has got some thing to do with this. Kind Regards Dipu - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket + GIS
Funny to see that map without Flevoland (the province where I partially grew up). Is that due to the fact that that land exists for only some 50 years? Eelco On 8/11/06, Dave Schoorl [EMAIL PROTECTED] wrote: Yes, I have build an application which will (someday) be released in production on www.nlgis.nl, I'm waiting for the customer to set up a meeting for deployment with the hosting party (currently it is accessible through it's test-environment on http://ip042.niwi.knaw.nl:9099/hgin/app, you can checkout the Demo-link in the navigation menu -- just ignore the Dutch ;-) ). I have build the user interface with Wicket, basically to define the SLD for the the map in the user session. I use Community Mapbuilder as client to show the map in the web browser. GeoServer is on the back end. Wiring between GeoServer, Community Mapbuilder and my application is done with some plain old servlets and a HttpSessionListener. But that was mainly necessary because the user can define (and upload) his own FeatureTypes (also a custom DataStore was needed for this to let GeoServer access the data in the user session). There were no specific issues using Wicket, but then again, I did not build a WMS-client. If you plan on building a WMS-client yourself, I think this can be done with Wicket, but it will be a lot of work (as with any other framework). Best regards, Dave Mats Norén wrote: Hi, has anyone on the list any experience with Wicket and GIS-backends like Geoserver? I'm trying to figure out the best approach for interfacing Wicket with GeoServer but I'm interested in other frameworks as well. /Mats - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Customizing AjaxSubmitButton
Hello, I am trying to customize an AjaxSubmitButton. If a certain condition is detected in the onSubmit handler, it should trigger my own Javascript function. I have tried to do this : onSubmit(AjaxRequestTarget target, Form form) { if (condition) { getAjaxCallDecorator().decorateOnSuccessScript(myFunction('a string')); } The problem is that getAjaxCallDecorator() is always returning null. So how is it possible to decorate the onSucess script ? Thanks, Pierre-Yves - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Customizing AjaxSubmitButton
you are using that api completely inside out. you override getajaxcalldecorator() and make it return one that decorates the script.if you want some _javascript_ to execute after the ajax response you can also add it into the target target.appendjavascript(foo)-IgorOn 8/11/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Hello,I am trying to customize an AjaxSubmitButton. If a certain condition isdetected in the onSubmit handler, it should trigger my own _javascript_ function. I have tried to do this :onSubmit(AjaxRequestTarget target, Form form) { if (condition) { getAjaxCallDecorator().decorateOnSuccessScript(myFunction('astring')); } The problem is that getAjaxCallDecorator() is always returning null.So how is it possible to decorate the onSucess script ?Thanks,Pierre-Yves- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket + GIS
Yes, the demo map and data are from 1899, so no Flevoland yet. But in 1899 however, Flevoland was already born in the minds of some engineers (http://www.pagowirense.nl/wr-ges6a.asp -- sorry guys, webpage is in Dutch). Groetjes, Dave Eelco Hillenius wrote: Funny to see that map without Flevoland (the province where I partially grew up). Is that due to the fact that that land exists for only some 50 years? Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox
well... if you are using 1.2.1 and the page keeps redirecting, something is wrong. Maybe window.name doesn't always work as expected? -Matej Pierre-Yves Saumont wrote: I am using 1.2.1. Igor suggested to use the latest code from WICKET_1_2 branch and I will try that. Anyway, although I do not yet understand exactly how things work, I realize I was trying to do something quite stupid, as the page I tested was the first of the application. By inserting a home page before this one, I can separate concerns and everything is going much better. I still do not understand the IE specificity, but things now work. Thanks to all for your support. Pierre-Yves Matej Knopp a écrit : Ah, that's the problem. It's wicket multi window support that causes you trouble. First, i guess you are using 1.2, or am I wrong? 1.2.1 should fix the continuous parameters wicket-x increasing (e.g from wicket-1 to wicket-18. However, you can still experience creating page twice, e.g. if you open page in new window, it will redirect and clone the page. -Matej Pierre-Yves Saumont wrote: After searching the documentation, I realized I should not have called super() in my page constructor. By removing this, I made things a little better : In Firefox, it works smoothly. One instance is created on the first access. One instance is created again each time I relaod the page (using the reload button of the browser). The url is consistently : http://localhost:8080/ceagrap/app In IE6, it's another story. On first load, it looks the same as in Firefox. But if I reload the page, the url becomes : http://localhost:8080/ceagrap/app?wicket:bookmarkablePage=wicket-0:com.volgadev.cea.pages.PageReponses On each reload, the number in the url is incremented by 1 and two instances are created ! Pierre-Yves Pierre-Yves Saumont a écrit : no, it is mapped to /app/* The url displayed in the browser is: http://localhost:8080/ceagrap/app?wicket:bookmarkablePage=wicket-18:com.volgadev.cea.pages.PageReponses When I load the page for the first time, the url above is displayed and the number in wicket:bookmarkablePage=wicket-18 increases slowly from 0 to 18. Only then is teh page displayed. I just tried different versions of the application that I saved every last day. The result varies randomly. For example, in a version from 3 days ago, it was 10 in Firefox and 5 in IE6 ! Version is 1.2.1rc Pierre-Yves Korbinian Bachl a écrit : IE usually uses many more concurrent connections to grab details and if you map the servlet to /* it could be this... -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Pierre-Yves Saumont Gesendet: Freitag, 11. August 2006 16:46 An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox I tried to make a simple test case, but it does not show this problem. My first guess is that it has something to do with caching, since my apps loads many elements from various places (images, css, scipts, images from css, images from scripts and even an html file loaded from within a script !) I'll see if I can strip down the application and isolate what is causing the problem. Pierre-Yves Matej Knopp a écrit : I'm not sure I understand what's going on. Could you provide a test-case or a quick start application? -Matej Pierre-Yves Saumont wrote: Hi, I was curious to see how many instance of components were created, so I just added a counter to a panel. I appears that when I load the page for the first time in Firefox, the panel component is created twice. (I would have guess once...) In IE6, in the same situation (server restarted), the same component is created 18 times. This seems really much! Each subsequent reloading of the page creates one more instance in Firefox and 2 more instances in IE6. Any idea about the reason for such a difference ? And could it eventually be a problem when in production ? Pierre-Yves - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121 642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
Re: [Wicket-user] Customizing AjaxSubmitButton
Thanks Igor ! Igor Vaynberg a écrit : you are using that api completely inside out. you override getajaxcalldecorator() and make it return one that decorates the script. if you want some javascript to execute after the ajax response you can also add it into the target target.appendjavascript(foo) -Igor On 8/11/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello, I am trying to customize an AjaxSubmitButton. If a certain condition is detected in the onSubmit handler, it should trigger my own Javascript function. I have tried to do this : onSubmit(AjaxRequestTarget target, Form form) { if (condition) { getAjaxCallDecorator().decorateOnSuccessScript(myFunction('a string')); } The problem is that getAjaxCallDecorator() is always returning null. So how is it possible to decorate the onSucess script ? Thanks, Pierre-Yves - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox
no dont say that! ive got big plans for window.name thing!-IgorOn 8/11/06, Matej Knopp [EMAIL PROTECTED] wrote:well... if you are using 1.2.1 and the page keeps redirecting, something is wrong. Maybe window.name doesn't always work as expected?-MatejPierre-Yves Saumont wrote: I am using 1.2.1. Igor suggested to use the latest code from WICKET_1_2 branch and I will try that. Anyway, although I do not yet understand exactly how things work, I realize I was trying to do something quite stupid, as the page I tested was the first of the application. By inserting a home page before this one, I can separate concerns and everything is going much better. I still do not understand the IE specificity, but things now work. Thanks to all for your support. Pierre-Yves Matej Knopp a écrit : Ah, that's the problem. It's wicket multi window support that causes you trouble. First, i guess you are using 1.2, or am I wrong? 1.2.1 should fix the continuous parameters wicket-x increasing (e.g from wicket-1 to wicket-18. However, you can still experience creating page twice, e.g. if you open page in new window, it will redirect and clone the page. -Matej Pierre-Yves Saumont wrote: After searching the documentation, I realized I should not have called super() in my page constructor. By removing this, I made things a little better : In Firefox, it works smoothly. One instance is created on the first access. One instance is created again each time I relaod the page (using the reload button of the browser). The url is consistently : http://localhost:8080/ceagrap/app In IE6, it's another story. On first load, it looks the same as in Firefox. But if I reload the page, the url becomes : http://localhost:8080/ceagrap/app?wicket:bookmarkablePage=wicket-0:com.volgadev.cea.pages.PageReponses On each reload, the number in the url is incremented by 1 and two instances are created ! Pierre-Yves Pierre-Yves Saumont a écrit : no, it is mapped to /app/* The url displayed in the browser is: http://localhost:8080/ceagrap/app?wicket:bookmarkablePage=wicket-18:com.volgadev.cea.pages.PageReponses When I load the page for the first time, the url above is displayed and the number in wicket:bookmarkablePage=wicket-18 increases slowly from 0 to 18. Only then is teh page displayed. I just tried different versions of the application that I saved every last day. The result varies randomly. For example, in a version from 3 days ago, it was 10 in Firefox and 5 in IE6 ! Version is 1.2.1rc Pierre-Yves Korbinian Bachl a écrit : IE usually uses many more concurrent connections to grab details and if you map the servlet to /* it could be this... -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Im Auftrag von Pierre-Yves Saumont Gesendet: Freitag, 11. August 2006 16:46 An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox I tried to make a simple test case, but it does not show this problem. My first guess is that it has something to do with caching, since my apps loads many elements from various places (images, css, scipts, images from css, images from scripts and even an html file loaded from within a script !) I'll see if I can strip down the application and isolate what is causing the problem. Pierre-Yves Matej Knopp a écrit : I'm not sure I understand what's going on. Could you provide a test-case or a quick start application? -Matej Pierre-Yves Saumont wrote: Hi, I was curious to see how many instance of components were created, so I just added a counter to a panel. I appears that when I load the page for the first time in Firefox, the panel component is created twice. (I would have guess once...) In IE6, in the same situation (server restarted), the same component is created 18 times. This seems really much! Each subsequent reloading of the page creates one more instance in Firefox and 2 more instances in IE6. Any idea about the reason for such a difference ? And could it eventually be a problem when in production ? Pierre-Yves - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121 642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057 dat=121642
[Wicket-user] phonebook application detail
Hi, I've downloaded the phonebook example app and noticed that when you add a contact it does not refresh the unique last names list, this is because the ListContacts page is saved in a EditPage instance so one can go back to this page. How can this be fixed?Thanks,Jaime.P.S. The application is great in showing how to integrate wicket with Spring and a ORM framework. I'm trying to use JDO with it. Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Palette AjaxFormComponentUpdatingBehavior
I could not make this work. I tried to override protected Component newSelectionComponent() and did: new AjaxFormComponentUpdatingBehavior(onsubtreemodified){..} I tried a few variations and none of my effort was able to invoke any kind of event when the palette's content changed. Any ideas? igor.vaynberg wrote: its because pallette is not a field it is a compound component. you have to attach the behavior to one of palette's internal components. the palette has factory methods for all its internal components so you probably have to add it to one of those...i havent looked at it so its just a guess. -Igor On 8/8/06, Samyem Tuladhar [EMAIL PROTECTED] wrote: How do I use AjaxFormComponentUpdatingBehavior with Palette ? There seem to be no effect using it the same way as with other text form fields. Thanks, - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Palette-AjaxFormComponentUpdatingBehavior-tf2075278.html#a5770553 Sent from the Wicket - User forum at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Form + pull model ListView + FormValidators
is that the same??We are here just talking about IFormValidators that can be in the hierachy of the Formthat will be looked up when a submit happens.. or am i missing something?johan On 8/11/06, Igor Vaynberg [EMAIL PROTECTED] wrote: ah, so when i propose it it sucks : http://www.nabble.com/form.onsubmit-vs-button.onsubmit-tf1977859.html#a5426708 but when you do it its a please add an rfe? :) -IgorOn 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote: Please add a RFE if you can.johanOn 8/11/06, Joni Freeman [EMAIL PROTECTED] wrote: This would be very good too.JoniOn Thu, 2006-08-10 at 23:39 +0200, Johan Compagner wrote: it does work really differnet then wat we do now. And with a panel it looks maybe nice. But it is a but more blown up code. Personally i like this then better: IFormValidator { validate(Form) } MyPanel implements IFormValidator { validate() { validate the panel. } } and the Form searches for IFormValidator implementors in its tree (besides the normal onces it already has) and takes those also into account. Much cleaner and not so verbose in code if you ask me.. johan On 8/10/06, Igor Vaynberg [EMAIL PROTECTED] wrote: personally i like the visitor joni proposed - it doesnt need to be part of core but it solves the problem elegantly. i recently factored out form.validateFormValidator (IFormValidator v) that maeks the usecase even simpler to implement. -Igor - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Form + pull model ListView + FormValidators
well, i mentioned so we can additionally have IFormValidationAware { void onValidate(); } that works just like the IFormSubmitAware i proposed which is identical to what we are talking about here :) -IgorOn 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote: is that the same??We are here just talking about IFormValidators that can be in the hierachy of the Formthat will be looked up when a submit happens.. or am i missing something? johan On 8/11/06, Igor Vaynberg [EMAIL PROTECTED] wrote: ah, so when i propose it it sucks : http://www.nabble.com/form.onsubmit-vs-button.onsubmit-tf1977859.html#a5426708 but when you do it its a please add an rfe? :) -IgorOn 8/11/06, Johan Compagner [EMAIL PROTECTED] wrote: Please add a RFE if you can.johanOn 8/11/06, Joni Freeman [EMAIL PROTECTED] wrote: This would be very good too.JoniOn Thu, 2006-08-10 at 23:39 +0200, Johan Compagner wrote: it does work really differnet then wat we do now. And with a panel it looks maybe nice. But it is a but more blown up code. Personally i like this then better: IFormValidator { validate(Form) } MyPanel implements IFormValidator { validate() { validate the panel. } } and the Form searches for IFormValidator implementors in its tree (besides the normal onces it already has) and takes those also into account. Much cleaner and not so verbose in code if you ask me.. johan On 8/10/06, Igor Vaynberg [EMAIL PROTECTED] wrote: personally i like the visitor joni proposed - it doesnt need to be part of core but it solves the problem elegantly. i recently factored out form.validateFormValidator (IFormValidator v) that maeks the usecase even simpler to implement. -Igor - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] AjaxEventBehavior + TR element + IE6
Hi, I was trying to create a DataTable that allowed row selection, by adding a AjaxEventBehavior to the Item of a DataTable.This works fine with Firefox 1.5, but I'm having problems with IE6. The onEvent() method gets called when the user clicks a row in the table, but calling AjaxRequestTarget.addComponent(item); does not cause the table item to be updated to indicate that it has been selected in IE6. Similarly as a test calling AjaxRequestTarget.addJavascript(alert(\This is a javascript Alert\)); Does not get executed in IE6. This only seems to apply to the table Item or TR element, in IE6. I can add a AjaxEventBehavior to the table itself, and the table gets updated when addComponent() is called, and the addJavascript() gets executed as expected even in IE6. Does anybody know if this is a limitation with IE6? A crude example of what I'm trying do is shown below. Thanks for any help you can provide. int selected_row = -1; DataTable table = new DataTable(..., ..., ..., ...) { protected Item newRowItem(String id, final int index, IModel model) { final Item item = super.newRowItem(id, index, model); item.add(new AjaxEventBehavior(onclick) { protected void onEvent(AjaxRequestTarget target) { selected_row = index; target.addComponent(item); } }; item.add(new SimpleAttributeModifier(class, selected) { public boolean isEnabled() { return index == selected_index; } }; } }; -Lorin - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxEventBehavior + TR element + IE6
I had similar problem too. In my application, both TR and TD tags do not work properly in IE with ajax. though I didn't have time to investigate this problem at that time...On 8/12/06, Lorin Metzger [EMAIL PROTECTED] wrote: Hi,I was trying to create a DataTable that allowed row selection, by addinga AjaxEventBehavior to the Item of a DataTable.This works fine withFirefox 1.5, but I'm having problems with IE6. The onEvent() method gets called when the user clicks a row in the table, but callingAjaxRequestTarget.addComponent(item); does not cause the table item tobe updated to indicate that it has been selected in IE6. Similarly as a test calling AjaxRequestTarget.addJavascript(alert(\This is a_javascript_ Alert\)); Does not get executed in IE6.This only seems to apply to the table Item or TR element, in IE6.I can add a AjaxEventBehavior to the table itself, and the table getsupdated when addComponent() is called, and the addJavascript() getsexecuted as expected even in IE6.Does anybody know if this is a limitation with IE6? A crude example of what I'm trying do is shown below.Thanks for any help you can provide.int selected_row = -1;DataTable table = new DataTable(..., ..., ..., ...){protected Item newRowItem(String id, final int index, IModel model) { final Item item = super.newRowItem(id, index, model); item.add(new AjaxEventBehavior(onclick) {protected void onEvent(AjaxRequestTarget target) { selected_row = index; target.addComponent(item); } }; item.add(new SimpleAttributeModifier(class, selected) {public boolean isEnabled(){ return index == selected_index;} }; }};-Lorin- Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] stop AjaxSelfUpdatingTimerBehavior programmatically ?
Hi all, Is there any way to stop AjaxSelfUpdatingTimerBehavior programmatically ?I am writting a small chat app and require to stop self updating to reduce server load when user is idle. I check AbstractAjaxTimerBehavior but both updateInterval and response(target) are final... Is it possible to do ?Thanks in advance.-- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] A problem with BookmarkablePageLink
Hi there, I've got a problem when I using BookmarkablePageLink. I wrote a very simple example to try out BookmarkablePageLink. In exmaple, you can find three web pages. In each web page, there are two links that can be used to link to the other two pages. And I only mount my second page as a BookmarkablePage. When I deploy the example to the root of my tomcat 5.5 (by extracting the war file to $TOMCAT$/webapps/ROOT/), which means I can access my app from http://localhost:8080/, the link in my second web page didn't work properly. However, if I not deploy the example to the root of my tomcat, let's say http://localhost:8080/TestBookmarkable/ for example, then everything works well without any problem. Is this a bug of wicket? or did I implement my example in the wrong way? The war file and source code of my example can be found here: http://www.nabble.com/user-files/280/TestBookmarkable.war TestBookmarkable.war http://www.nabble.com/user-files/281/TestBookmarkable.zip TestBookmarkable.zip Best regards, Chih-liang Chang For people who don't want to download these files, here is the source code: TestApplication.java package test; import test.page.FirstPage; import test.page.SecondPage; import wicket.protocol.http.WebApplication; public class TestApplication extends WebApplication { @Override public Class getHomePage() { return FirstPage.class; } @Override protected void init() { super.mountBookmarkablePage(/second, SecondPage.class); super.getMarkupSettings().setStripWicketTags(true); super.getMarkupSettings().setStripXmlDeclarationFromOutput(true); super.init(); } } FirstPage.java package test.page; import wicket.markup.html.WebPage; import wicket.markup.html.link.BookmarkablePageLink; import wicket.markup.html.link.PageLink; public class FirstPage extends WebPage { private static final long serialVersionUID = 1L; public FirstPage() { super.add(new BookmarkablePageLink(second, SecondPage.class)); super.add(new PageLink(third, ThirdPage.class)); } } SecondPage.java package test.page; import wicket.markup.html.WebPage; import wicket.markup.html.link.PageLink; public class SecondPage extends WebPage { private static final long serialVersionUID = 1L; public SecondPage() { super.add(new PageLink(first, FirstPage.class)); super.add(new PageLink(third, ThirdPage.class)); } } ThirdPage.java package test.page; import wicket.markup.html.WebPage; import wicket.markup.html.link.BookmarkablePageLink; import wicket.markup.html.link.PageLink; public class ThirdPage extends WebPage { private static final long serialVersionUID = 1L; public ThirdPage() { super.add(new PageLink(first, FirstPage.class)); super.add(new BookmarkablePageLink(second, SecondPage.class)); } } FirstPage.html ?xml version=1.0 encoding=BIG5 ? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://wicket.sourceforge.net; head meta http-equiv=Content-Type content=text/html; charset=BIG5 / titleInsert title here/title /head body pThis is the font size=+3first page/font./p p # second page /p p # third page /p /body /html SecondPage.html ?xml version=1.0 encoding=BIG5 ? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://wicket.sourceforge.net; head meta http-equiv=Content-Type content=text/html; charset=BIG5 / titleInsert title here/title /head body pThis is the font size=+3second page/font./p p # first page /p p # third page /p /body /html ThirdPage.html ?xml version=1.0 encoding=BIG5 ? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket=http://wicket.sourceforge.net; head meta http-equiv=Content-Type content=text/html; charset=BIG5 / titleInsert title here/title /head body pThis is the font size=+3third page/font./p p # first page /p p # second page /p /body /html -- View this