Re: [Wicket-user] Problem with empty markupId
Thank you Frank and Igor, this is where wicket differs from a lot of other frameworks and sometimes its hard to wrap your mind around it: the components are persistent across requests, they keep their state. Yes, it is somewhat hard ! In fact, I started from an example I found that used a final ListView constructed exactly as you describe, but it appears I broke it ! Thank you for pointing me once again in the right direction ! Pierre-Yves Igor Vaynberg a écrit : but why even create a new listview? the old one should just refresh and show new data, if it doesnt you need to use a detachable model. this is where wicket differs from a lot of other frameworks and sometimes its hard to wrap your mind around it: the components are persistent across requests, they keep their state. so really what you should do is something like this: IModel listModel=new LoadableDetachableModel() { Object load() { return DataObjectsFactory.getMyList(); } } final ListView mylistview; add(mylistview=new ListView(id, listModel) { populateitem() {} IModel getListItemModel(...) { ... } }.setOutputMarkupId(true)); and then in the ajax handler all you have to do is to add the listview to the target so it is queued for repainting : target.add(mylistview); -Igor On 8/8/06, *Frank Bille* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 8/9/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: myList = DataObjectsFactory.getMyList(); myListView = new MyListView(id, myList); myListView.setOutputMarkupId(true); target.addComponent(myListView); It doesn't look like you add/replace that myListView to a parent. OutputMarkupId can't be calculated when it's not attached to a parent. And what more you still need to keep the component hierachy on the server. So basically you would just replace your old listview with this new one. Frank - 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 - 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] Performance/Scalability tips
Hi all!We're starting a new project that will be quite big (1-2 million users) so now I'm choosing a web framework to use. It seems that Wicket is a very good framework but what worries me is the performance and scalability. I installed wicket-examples on my machine and stress-tested them a bit, just for curiosity, and always got OutOfMemory error which didn't look very promising. Then I read about detached models and created a project using them and it didn't crash anymore, but still, memory was quite high. Now I searched thru wiki and didn't find any other tips about performance etc.So, do you have any tips for me, on design level or maybe links to other docs, whatever really :)Thank you, Sebastjan - 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] Coding Authentification, Databinding and Role-related application behaviour
Any chance you'd have time to add a V2.0 update to that effect here - http://www.wicket-wiki.org.uk/wiki/index.php/Spring :-) /Gwyn On 09/08/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i have recently deprecated springannotwebapp so this no longer should be a problem. now to get spring injection going you do this: class myapplication extends webapplication { init() { addComponentInstantiationListener(new SpringComponentInjector(this)); } } thats it, no need for extending any spring related application object. -Igor On 7/21/06, Mats Norén [EMAIL PROTECTED] wrote: Has there been any progress in merging AuthenticatedWebApplication and the spring-stuff lately or is there a best praktice out there somewhere? Best regards Mats On 6/8/06, Martijn Dashorst [EMAIL PROTECTED] wrote: The problem is that the wicket-auth-roles package assumes you subclass AuthenticatedWebApplication as your application class. If you want to reuse that, you'll have to subclass the AuthenticatedWebApplication and the AuthenticatedSession. No spring can fix that. Martijn On 6/8/06, Mark Derricutt [EMAIL PROTECTED] wrote: On 6/7/06, Martijn Dashorst [EMAIL PROTECTED] wrote: I suggest (tried and tested at my company) to use the Auth application as your base class and merge the spring related stuff into your subclass. The spring integration is agnostic for sessions and such, so you'll be up and running much quicker. Personally I'm using the wicket.spring.SpringWebApplicationFactory mentioned in web.xml then and nice and cleanly inject my authentication strategy into my Application via normal spring IoC: bean id=wicketApplication class=com.theoryinpractice.timetrackr.TimeTrackrApplication property name=timeTrackrAuthorizationStrategy ref=authorizationStrategy/ /bean bean id=authorizationStrategy class=com.theoryinpractice.timetrackr.TimeTrackrAuthorizationStrategy property name=userManager ref=userManager/ /bean The authorization strategy also has injected into it my hibernate DAO's so have full access to everything they need, cleanly and springy, without touching any of those odd little convience classes (actually I never knew they existed either). Doing spring+wicket this way is much much nicer I find. - 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
There's this on the subject that Martijn posted a little while ago, http://www.nabble.com/Re%3A-Wicket-in-large-scale-production-scenarios--p5374359.html but maybe someone on the list might have more comments. The main technical issues are to ensure that you use detatched models to try be careful that you're not inadvertantly holding references to instances of things that might themselves hold large amounts of data in your pages. Of course, it's often not obvious that that's the case. I've not tried it myself for a long time, but maybe running the app under a profiler would help to with checking this particular issue - must try when I get some spare time... /Gwyn On 09/08/06, Sebastjan Trepca [EMAIL PROTECTED] wrote: Hi all! We're starting a new project that will be quite big (1-2 million users) so now I'm choosing a web framework to use. It seems that Wicket is a very good framework but what worries me is the performance and scalability. I installed wicket-examples on my machine and stress-tested them a bit, just for curiosity, and always got OutOfMemory error which didn't look very promising. Then I read about detached models and created a project using them and it didn't crash anymore, but still, memory was quite high. Now I searched thru wiki and didn't find any other tips about performance etc. So, do you have any tips for me, on design level or maybe links to other docs, whatever really :) Thank you, Sebastjan -- 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] Coding Authentification, Databinding and Role-related application behaviour
On 8/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i have recently deprecated springannotwebapp so this no longer should be a problem. now to get spring injection going you do this: class myapplication extends webapplication { init() { addComponentInstantiationListener(new SpringComponentInjector(this)); } } thats it, no need for extending any spring related application object. Ok, is this in version 1.2.1 or only in 2.0? /Mats -Igor On 7/21/06, Mats Norén [EMAIL PROTECTED] wrote: Has there been any progress in merging AuthenticatedWebApplication and the spring-stuff lately or is there a best praktice out there somewhere? Best regards Mats On 6/8/06, Martijn Dashorst [EMAIL PROTECTED] wrote: The problem is that the wicket-auth-roles package assumes you subclass AuthenticatedWebApplication as your application class. If you want to reuse that, you'll have to subclass the AuthenticatedWebApplication and the AuthenticatedSession. No spring can fix that. Martijn On 6/8/06, Mark Derricutt [EMAIL PROTECTED] wrote: On 6/7/06, Martijn Dashorst [EMAIL PROTECTED] wrote: I suggest (tried and tested at my company) to use the Auth application as your base class and merge the spring related stuff into your subclass. The spring integration is agnostic for sessions and such, so you'll be up and running much quicker. Personally I'm using the wicket.spring.SpringWebApplicationFactory mentioned in web.xml then and nice and cleanly inject my authentication strategy into my Application via normal spring IoC: bean id=wicketApplication class=com.theoryinpractice.timetrackr.TimeTrackrApplication property name=timeTrackrAuthorizationStrategy ref=authorizationStrategy/ /bean bean id=authorizationStrategy class=com.theoryinpractice.timetrackr.TimeTrackrAuthorizationStrategy property name=userManager ref=userManager/ /bean The authorization strategy also has injected into it my hibernate DAO's so have full access to everything they need, cleanly and springy, without touching any of those odd little convience classes (actually I never knew they existed either). Doing spring+wicket this way is much much nicer I find. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2 now! Write Ajax applications without touching JavaScript! -- http://wicketframework.org ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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] Performance/Scalability tips
I also stress tested the examples quite a lot. Which part did you test that you get an out of memory? And how much memory did you give your server?Memory usage can be cut down in several ways:1 use for heavy hit pages stateless pages (in 1.2 just use bookmarkable links and no forms on it), in 2.0 you have much more choices for working stateless.2 For none stateless pages, do use detachable models. Make sure that you don't hold large (db) objects in your pages when they are serialized to the http session. 3 Tweak how many of those pages should be in memory. (this depends on how far you want to go with the back button support) in 2.0 we have a different session store that only keeps 1 page in mem. And the rest is cached and stored to disk. johanOn 8/9/06, Sebastjan Trepca [EMAIL PROTECTED] wrote: Hi all!We're starting a new project that will be quite big (1-2 million users) so now I'm choosing a web framework to use. It seems that Wicket is a very good framework but what worries me is the performance and scalability. I installed wicket-examples on my machine and stress-tested them a bit, just for curiosity, and always got OutOfMemory error which didn't look very promising. Then I read about detached models and created a project using them and it didn't crash anymore, but still, memory was quite high. Now I searched thru wiki and didn't find any other tips about performance etc.So, do you have any tips for me, on design level or maybe links to other docs, whatever really :)Thank you, Sebastjan -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] Problem with Javascript function calls in AJAX loaded document with IE6
The problem here probably is that outerHTML in explrer doesn't execute the javascript located in the replacement string. Current svn version should fix this (as well as header contribution), so please try it and let us know whether it does work. -Matej Pierre-Yves Saumont wrote: Hello, I have an AJAX tabbed panel that works smoothly except for one little thing. The first tab contains a form with an OnSubmit event handler. For testing purpose, the handler is as follow : onsubmit=alert('On Submit');return alertOnSubmit('alertOnSubmit') The alertOnSubmit function just display it's argument in an alert box. Everything works fine. Now, if I fut the same form in the second tab (which is then loaded through AJAX), the event handler works fine in Firefox. However, in IE6, the first alert box is displayed, but the second is not. I made several tests, putting the script in various places. Results are as follow : - When in first tab, everything works wherever the script is located. - When in second tab (AJAX loaded), it does not work if the script is located in the tab. It works only if the script is in the rest of the page. Does someone know if there is way to make IE6 use the scripts loaded through AJAX ? BTW, the Ajax Debug Window is really cool. It would be even cooler if it could be resized. (And also is IE6 dropdown lists would not display on top of it, but there is probably not much to do about this except waiting for IE7 :-( 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] Performance/Scalability tips
I used the default resin3pro configuration. I tested it like this:ab2 -n 1000 -c 100 http://localhost:8080/wicket-examples-1.2/repeater?wicket:bookmarkablePage=:wicket.examples.repeater.DataGridPage It died after eating 100MB of memory and serving 600-800 requests*100 threads. The problem is also that the CPU was on 100%.This version 2.0 sounds very nice, is it usable yet? How can I set a page to be stateless in 1.2.1 ? Is there some attribute to do this or does it just mean that you use detachable models? I would definetly like to handle sessions separately and have all my pages stateless. So forms are saved into sessions or what is the problem with them? They seem very nice though. Thanks for help.SebastjanOn 8/9/06, Johan Compagner [EMAIL PROTECTED] wrote: I also stress tested the examples quite a lot. Which part did you test that you get an out of memory? And how much memory did you give your server? Memory usage can be cut down in several ways:1 use for heavy hit pages stateless pages (in 1.2 just use bookmarkable links and no forms on it), in 2.0 you have much more choices for working stateless.2 For none stateless pages, do use detachable models. Make sure that you don't hold large (db) objects in your pages when they are serialized to the http session. 3 Tweak how many of those pages should be in memory. (this depends on how far you want to go with the back button support) in 2.0 we have a different session store that only keeps 1 page in mem. And the rest is cached and stored to disk. johanOn 8/9/06, Sebastjan Trepca [EMAIL PROTECTED] wrote: Hi all!We're starting a new project that will be quite big (1-2 million users) so now I'm choosing a web framework to use. It seems that Wicket is a very good framework but what worries me is the performance and scalability. I installed wicket-examples on my machine and stress-tested them a bit, just for curiosity, and always got OutOfMemory error which didn't look very promising. Then I read about detached models and created a project using them and it didn't crash anymore, but still, memory was quite high. Now I searched thru wiki and didn't find any other tips about performance etc.So, do you have any tips for me, on design level or maybe links to other docs, whatever really :)Thank you, Sebastjan -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] Performance/Scalability tips
Hi Johan, 1 use for heavy hit pages stateless pages (in 1.2 just use bookmarkable links and no forms on it), in 2.0 you have much more choices for working stateless. question: is this done by using the mount functions in the init() of the application file ? Regards Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Johan CompagnerGesendet: Mittwoch, 9. August 2006 11:39An: wicket-user@lists.sourceforge.netBetreff: Re: [Wicket-user] Performance/Scalability tips I also stress tested the examples quite a lot. Which part did you test that you get an out of memory? And how much memory did you give your server?Memory usage can be cut down in several ways:1 use for heavy hit pages stateless pages (in 1.2 just use bookmarkable links and no forms on it), in 2.0 you have much more choices for working stateless.2 For none stateless pages, do use detachable models. Make sure that you don't hold large (db) objects in your pages when they are serialized to the http session. 3 Tweak how many of those pages should be in memory. (this depends on how far you want to go with the back button support) in 2.0 we have a different session store that only keeps 1 page in mem. And the rest is cached and stored to disk. johan On 8/9/06, Sebastjan Trepca [EMAIL PROTECTED] wrote: Hi all!We're starting a new project that will be quite big (1-2 million users) so now I'm choosing a web framework to use. It seems that Wicket is a very good framework but what worries me is the performance and scalability. I installed wicket-examples on my machine and stress-tested them a bit, just for curiosity, and always got OutOfMemory error which didn't look very promising. Then I read about detached models and created a project using them and it didn't crash anymore, but still, memory was quite high. Now I searched thru wiki and didn't find any other tips about performance etc.So, do you have any tips for me, on design level or maybe links to other docs, whatever really :)Thank you, Sebastjan-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.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
He Sebastjan, where did you read about the detached models ? Regards Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Sebastjan TrepcaGesendet: Mittwoch, 9. August 2006 10:17An: wicket-user@lists.sourceforge.netBetreff: [Wicket-user] Performance/Scalability tips Hi all!We're starting a new project that will be quite big (1-2 million users) so now I'm choosing a web framework to use. It seems that Wicket is a very good framework but what worries me is the performance and scalability. I installed wicket-examples on my machine and stress-tested them a bit, just for curiosity, and always got OutOfMemory error which didn't look very promising. Then I read about detached models and created a project using them and it didn't crash anymore, but still, memory was quite high. Now I searched thru wiki and didn't find any other tips about performance etc.So, do you have any tips for me, on design level or maybe links to other docs, whatever really :)Thank you, Sebastjan - 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] Unknown Exception -- Wicket 1.2.1
I'm not doing anything like this programatically, do you mean a user is doing this via his browser? My guess is that someone is messing with the back button.. I have a form that had 3 panels, when a user completes the first it replaces the panel with the next. On 8/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote: On 8/8/06, Jeremy Levy [EMAIL PROTECTED] wrote: Can someone help me debug this exception?I don't see any references to my code: I'm using 1.2.1 in Jboss/Tomcat wicket.WicketRuntimeException: Internal error parsing wicket:interface = :1 atYeah, looks like someone has been trying to play with an internal url. Urls to components should look like:page-map-name:path:version:interface. In this case, there isonly page map name and path (default pagemap, path 1)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 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] Unknown Exception -- Wicket 1.2.1
that shouldn't matterWhat eelco says is that somebody is messing with the urls and tries to alter them and then sends them to the browser.johanOn 8/9/06, Jeremy Levy [EMAIL PROTECTED] wrote: I'm not doing anything like this programatically, do you mean a user is doing this via his browser? My guess is that someone is messing with the back button.. I have a form that had 3 panels, when a user completes the first it replaces the panel with the next. On 8/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote: On 8/8/06, Jeremy Levy [EMAIL PROTECTED] wrote: Can someone help me debug this exception?I don't see any references to my code: I'm using 1.2.1 in Jboss/Tomcat wicket.WicketRuntimeException: Internal error parsing wicket:interface = :1 atYeah, looks like someone has been trying to play with an internal url. Urls to components should look like:page-map-name:path:version:interface. In this case, there isonly page map name and path (default pagemap, path 1)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 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] Performance/Scalability tips
On 09/08/06, Korbinian Bachl [EMAIL PROTECTED] wrote: where did you read about the detached models ? Here's a good place to start - http://www.wicket-wiki.org.uk/wiki/index.php/Models#Detachable_Models. Then check the entries for the specific classes (e.g. AbstractDetachableModel) mentioned either on the Wiki or the JavaDoc. If nothing else, the Wiki page (e.g. http://www.wicket-wiki.org.uk/wiki/index.php/AbstractDetachableModel) will have a link to the Javadoc page.) /Gwyn -- 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] Performance/Scalability tips
no mounting is just making a url nicely bookmarkable. It has nothing to do if the page that is rendered by it is stateless.johanOn 8/9/06, Korbinian Bachl [EMAIL PROTECTED] wrote: Hi Johan, 1 use for heavy hit pages stateless pages (in 1.2 just use bookmarkable links and no forms on it), in 2.0 you have much more choices for working stateless. question: is this done by using the mount functions in the init() of the application file ? Regards Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Im Auftrag von Johan CompagnerGesendet: Mittwoch, 9. August 2006 11:39An: wicket-user@lists.sourceforge.netBetreff: Re: [Wicket-user] Performance/Scalability tips I also stress tested the examples quite a lot. Which part did you test that you get an out of memory? And how much memory did you give your server?Memory usage can be cut down in several ways:1 use for heavy hit pages stateless pages (in 1.2 just use bookmarkable links and no forms on it), in 2.0 you have much more choices for working stateless.2 For none stateless pages, do use detachable models. Make sure that you don't hold large (db) objects in your pages when they are serialized to the http session. 3 Tweak how many of those pages should be in memory. (this depends on how far you want to go with the back button support) in 2.0 we have a different session store that only keeps 1 page in mem. And the rest is cached and stored to disk. johan On 8/9/06, Sebastjan Trepca [EMAIL PROTECTED] wrote: Hi all!We're starting a new project that will be quite big (1-2 million users) so now I'm choosing a web framework to use. It seems that Wicket is a very good framework but what worries me is the performance and scalability. I installed wicket-examples on my machine and stress-tested them a bit, just for curiosity, and always got OutOfMemory error which didn't look very promising. Then I read about detached models and created a project using them and it didn't crash anymore, but still, memory was quite high. Now I searched thru wiki and didn't find any other tips about performance etc.So, do you have any tips for me, on design level or maybe links to other docs, whatever really :)Thank you, Sebastjan-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.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
As Johan said, no. Take a look at the Javadocs for BookmarkablePageLink WebPage (links below) /Gwyn http://wicket.sourceforge.net/apidocs/wicket/markup/html/link/BookmarkablePageLink.html http://wicket.sourceforge.net/apidocs/wicket/markup/html/link/BookmarkablePageLink.html On 09/08/06, Korbinian Bachl [EMAIL PROTECTED] wrote: 1 use for heavy hit pages stateless pages (in 1.2 just use bookmarkable links and no forms on it), in 2.0 you have much more choices for working stateless. question: is this done by using the mount functions in the init() of the application file ? -- 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] Performance/Scalability tips
What is ab2 for a thing?It looks like you are 1000 times getting that same bookmarkable page for 100 threads?That page is because of the source code viewer link not stateless so you a creating pages that will go into the sessions. Now is the question does ab2 work with cookies or not? If not then it does create 100 * 1000 sessions and for all those it creates 1 page...johanOn 8/9/06, Sebastjan Trepca [EMAIL PROTECTED] wrote: I used the default resin3pro configuration. I tested it like this:ab2 -n 1000 -c 100 http://localhost:8080/wicket-examples-1.2/repeater?wicket:bookmarkablePage=:wicket.examples.repeater.DataGridPage It died after eating 100MB of memory and serving 600-800 requests*100 threads. The problem is also that the CPU was on 100%.This version 2.0 sounds very nice, is it usable yet? How can I set a page to be stateless in 1.2.1 ? Is there some attribute to do this or does it just mean that you use detachable models? I would definetly like to handle sessions separately and have all my pages stateless. So forms are saved into sessions or what is the problem with them? They seem very nice though. Thanks for help.SebastjanOn 8/9/06, Johan Compagner [EMAIL PROTECTED] wrote: I also stress tested the examples quite a lot. Which part did you test that you get an out of memory? And how much memory did you give your server? Memory usage can be cut down in several ways:1 use for heavy hit pages stateless pages (in 1.2 just use bookmarkable links and no forms on it), in 2.0 you have much more choices for working stateless.2 For none stateless pages, do use detachable models. Make sure that you don't hold large (db) objects in your pages when they are serialized to the http session. 3 Tweak how many of those pages should be in memory. (this depends on how far you want to go with the back button support) in 2.0 we have a different session store that only keeps 1 page in mem. And the rest is cached and stored to disk. johanOn 8/9/06, Sebastjan Trepca [EMAIL PROTECTED] wrote: Hi all!We're starting a new project that will be quite big (1-2 million users) so now I'm choosing a web framework to use. It seems that Wicket is a very good framework but what worries me is the performance and scalability. I installed wicket-examples on my machine and stress-tested them a bit, just for curiosity, and always got OutOfMemory error which didn't look very promising. Then I read about detached models and created a project using them and it didn't crash anymore, but still, memory was quite high. Now I searched thru wiki and didn't find any other tips about performance etc.So, do you have any tips for me, on design level or maybe links to other docs, whatever really :)Thank you, Sebastjan -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
Re: [Wicket-user] Performance/Scalability tips
Well.. ab2 is an apache benchmarking tool. But I'm under the impression that it's intended to measure the performance of static pages. It doesn't use cookies, does it? If I recall correctly there should be a possibility to specify a cookie value there, so you might be able to reduce the number of created sessions somehow. -Matej Sebastjan Trepca wrote: I used the default resin3pro configuration. I tested it like this: ab2 -n 1000 -c 100 http://localhost:8080/wicket-examples-1.2/repeater?wicket:bookmarkablePage=:wicket.examples.repeater.DataGridPage http://localhost:8080/wicket-examples-1.2/repeater?wicket:bookmarkablePage=:wicket.examples.repeater.DataGridPage It died after eating 100MB of memory and serving 600-800 requests*100 threads. The problem is also that the CPU was on 100%. This version 2.0 sounds very nice, is it usable yet? How can I set a page to be stateless in 1.2.1 ? Is there some attribute to do this or does it just mean that you use detachable models? I would definetly like to handle sessions separately and have all my pages stateless. So forms are saved into sessions or what is the problem with them? They seem very nice though. Thanks for help. Sebastjan On 8/9/06, *Johan Compagner* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I also stress tested the examples quite a lot. Which part did you test that you get an out of memory? And how much memory did you give your server? Memory usage can be cut down in several ways: 1 use for heavy hit pages stateless pages (in 1.2 just use bookmarkable links and no forms on it), in 2.0 you have much more choices for working stateless. 2 For none stateless pages, do use detachable models. Make sure that you don't hold large (db) objects in your pages when they are serialized to the http session. 3 Tweak how many of those pages should be in memory. (this depends on how far you want to go with the back button support) in 2.0 we have a different session store that only keeps 1 page in mem. And the rest is cached and stored to disk. johan On 8/9/06, *Sebastjan Trepca* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all! We're starting a new project that will be quite big (1-2 million users) so now I'm choosing a web framework to use. It seems that Wicket is a very good framework but what worries me is the performance and scalability. I installed wicket-examples on my machine and stress-tested them a bit, just for curiosity, and always got OutOfMemory error which didn't look very promising. Then I read about detached models and created a project using them and it didn't crash anymore, but still, memory was quite high. Now I searched thru wiki and didn't find any other tips about performance etc. So, do you have any tips for me, on design level or maybe links to other docs, whatever really :) Thank you, Sebastjan - 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 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
Re: [Wicket-user] Performance/Scalability tips
http://httpd.apache.org/docs/2.2/programs/ab.html I think you're correct with the params, but I've no idea about the cookies. I think that basic lesson is that the benchmark that was done is only of use if the OP intended to be serving the Wicket-Examples app out at that rate - otherwise a more representative web-app would be much better! /Gwyn On 09/08/06, Johan Compagner [EMAIL PROTECTED] wrote: What is ab2 for a thing? It looks like you are 1000 times getting that same bookmarkable page for 100 threads? That page is because of the source code viewer link not stateless so you a creating pages that will go into the sessions. Now is the question does ab2 work with cookies or not? If not then it does create 100 * 1000 sessions and for all those it creates 1 page... johan On 8/9/06, Sebastjan Trepca [EMAIL PROTECTED] wrote: I used the default resin3pro configuration. I tested it like this: ab2 -n 1000 -c 100 http://localhost:8080/wicket-examples-1.2/repeater?wicket:bookmarkablePage=:wicket.examples.repeater.DataGridPage It died after eating 100MB of memory and serving 600-800 requests*100 threads. The problem is also that the CPU was on 100%. This version 2.0 sounds very nice, is it usable yet? How can I set a page to be stateless in 1.2.1 ? Is there some attribute to do this or does it just mean that you use detachable models? I would definetly like to handle sessions separately and have all my pages stateless. So forms are saved into sessions or what is the problem with them? They seem very nice though. Thanks for help. Sebastjan On 8/9/06, Johan Compagner [EMAIL PROTECTED] wrote: I also stress tested the examples quite a lot. Which part did you test that you get an out of memory? And how much memory did you give your server? Memory usage can be cut down in several ways: 1 use for heavy hit pages stateless pages (in 1.2 just use bookmarkable links and no forms on it), in 2.0 you have much more choices for working stateless. 2 For none stateless pages, do use detachable models. Make sure that you don't hold large (db) objects in your pages when they are serialized to the http session. 3 Tweak how many of those pages should be in memory. (this depends on how far you want to go with the back button support) in 2.0 we have a different session store that only keeps 1 page in mem. And the rest is cached and stored to disk. johan On 8/9/06, Sebastjan Trepca [EMAIL PROTECTED] wrote: Hi all! We're starting a new project that will be quite big (1-2 million users) so now I'm choosing a web framework to use. It seems that Wicket is a very good framework but what worries me is the performance and scalability. I installed wicket-examples on my machine and stress-tested them a bit, just for curiosity, and always got OutOfMemory error which didn't look very promising. Then I read about detached models and created a project using them and it didn't crash anymore, but still, memory was quite high. Now I searched thru wiki and didn't find any other tips about performance etc. So, do you have any tips for me, on design level or maybe links to other docs, whatever really :) -- 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] Performance/Scalability tips
Well.. ab2 is an apache benchmarking tool. But I'm under the impression that it's intended to measure the performance of static pages. Yep, it's mostly used for creating traffic. Just a basic test of performance. The description of AB is: ab is a tool for benchmarking your Apache Hypertext Transfer Protocol (HTTP) server. It is designed to give you an impression of how your current Apache installation performs. This especially shows you how many requests per second your Apache installation is capable of serving. It sure seems that sessions are used heavily, but i knew that anyway, from documentation. I would just need some pointers about reimplementing session handling. Sebastjan - 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] Discussing Wicket
Igor Vaynberg [EMAIL PROTECTED] 7/29/06: we do evangelize the OO wherever we can, but it mostly falls on deaf ears. have you ever seen a struts app? in most struts apps the notion of a class is used mostly as a namespace to group some functions together. its hard to explain something when most people dont understand what you are talking about. at least this has been my frustrating experience. like that blog from the tapestry guy ( http://greggbolinger.blogspot.com/2006/01/i-say-tapestry-you-say-wicke t.html and discussion we had here on the list ) saying listview is too complex to understand because it has an abstract callback method you have to implement and because it is an anoymous class. Wicket is complex, in the same way that Swing is more complex than coding simple HTML form elements. (In fact, many people complain about the complexity of Swing, but that complexity is there for a reason. Unfortunately, simplest possible examples do not motivate the need for the complexity.) I think we need to come up with some reasonable examples that motivate the use of OO in development of presentation logic -- examples in which Wicket elegantly factors out redundancy that would make applications in other frameworks sprawl like the suburbs of Houston. The challenge is to come up with an example which is small enough to fit in a short blog article. What were the compelling examples which convinced people of the need for OO-programming fifteen years ago? How would a Swing text author motivate the need for object-orientation in the presentation logic of a desktop application? We could adapt those examples to the web domain. On 7/29/06 Eelco Hillenius wrote: Yeah. It seems to be a sad reality that many frameworks have it as their holy grail to save their users from writing any code. Whereas I prefer the idea of a web framework that saves users from having to write any HTML, CSS or Javascript -- or at least one that at least lets users hide those ugly details, just as a data access object hides the ugly SQL strings. And many programmers seem to agree that's what they want. Those are the ones we've got to try to put out of business. :-) That's how you get those famous 'framework coders'. However, I think we're using the word `framework' with a different connotation. The framework programmers described in recent blogs are generally competent programmers who avoided having to learn messy framework API details hidden by architectural code provided by others in the project. In contrast, most web developers revel in the messy web-API details, but don't understand the fundamentals of programming. - 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] Discussing Wicket
You don't _need_ to know / use OO to program in Java or C++, but at least they _allow_ you to use OO in your programs. With all the reading I've done on JSF, I still don't have a clue as to the waysomeone who _wanted_ to use OO in structuring the presentation layer could do so. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor VaynbergSent: Saturday, July 29, 2006 9:54 AMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Discussing Wicket its not only that - most frameworks are not built around OO so the developer is not required to know it/use it. i think the skill is mostly lost in the webspace.-Igor On 7/29/06, Eelco Hillenius [EMAIL PROTECTED] wrote: On 7/29/06, Igor Vaynberg [EMAIL PROTECTED] wrote: we do evangelize the OO wherever we can, but it mostly falls on deaf ears. have you ever seen a struts app? in most struts apps the notion of a class is used mostly as a namespace to group some functions together. its hard to explain something when most people dont understand what you are talking about. at least this has been my frustrating experience. like that blog from the tapestry guy ( http://greggbolinger.blogspot.com/2006/01/i-say-tapestry-you-say-wicket.html and discussion we had here on the list ) saying listview is too complex to understand because it has an abstract callback method you have to implement and because it is an anoymous class.Yeah. It seems to be a sad reality that many frameworks have it astheir holy grail to save their users from writing any code. And many programmers seem to agree that's what they want. That's how you getthose famous 'framework coders'.Eelco-Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___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] Buttons not responding in IE
is the button inside a form?-IgorOn 8/9/06, wicket21 [EMAIL PROTECTED] wrote:I 've tried it, but it doesn't work. To be more precise here is the code : --This code does NOT work with IE:Page1.html :...td align=rightinput type=submit wicket:id=proceedButton class=mybuttonfree/ /td...Page1.java :...String proceedLabel =Proceed;Button proceedButton = new Button(proceedButton, newCompoundPropertyModel(proceedLabel)){protected void onSubmit() { ...this.setResponsePage(page10.class);}};add(proceedButton);...--This code (from other page in project) works fine(!) with IE:Page2.html :...td align=right input type=submit wicket:id=finalButton class=mybuttonfree/td...Page2.java :...String proceedLabel =Finish;Button finalButton = new Button(finalButton,new CompoundPropertyModel(proceedLabel)) {protected void onSubmit() {...this.setResponsePage(page10.class);}};add(finalButton);.../Kostasigor.vaynberg wrote: you have to use input type=submit input type=button and button tags do not submit the form - or at least should not according to spec i think. they are only supposed to invoke onclick handlers where _javascript_ either submits the form or does something else. i noticed that ffox will still submit the form sometimes if there is no onclick handler - which is wrong imho. -Igor--View this message in context: http://www.nabble.com/Buttons-not-responding-in-IE-tf2073453.html#a5722057 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 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] Coding Authentification, Databinding and Role-related application behaviour
it will be in both 1.2.2 and 2.0its in svn right now...still working on support for portlets but webapps are ready to go.-IgorOn 8/9/06, Mats Norén [EMAIL PROTECTED] wrote:On 8/9/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i have recently deprecated springannotwebapp so this no longer should be a problem. now to get spring injection going you do this: class myapplication extends webapplication {init() {addComponentInstantiationListener(new SpringComponentInjector(this));} } thats it, no need for extending any spring related application object. Ok, is this in version 1.2.1 or only in 2.0?/Mats -Igor On 7/21/06, Mats Norén [EMAIL PROTECTED] wrote: Has there been any progress in merging AuthenticatedWebApplication and the spring-stuff lately or is there a best praktice out there somewhere? Best regards Mats On 6/8/06, Martijn Dashorst [EMAIL PROTECTED] wrote: The problem is that the wicket-auth-roles package assumes you subclass AuthenticatedWebApplication as your application class. If you want to reuse that, you'll have to subclass the AuthenticatedWebApplication and the AuthenticatedSession. No spring can fix that. Martijn On 6/8/06, Mark Derricutt [EMAIL PROTECTED] wrote: On 6/7/06, Martijn Dashorst [EMAIL PROTECTED] wrote: I suggest (tried and tested at my company) to use the Auth application as your base class and merge the spring related stuff into your subclass. The spring integration is agnostic for sessions and such, so you'll be up and running much quicker. Personally I'm using the wicket.spring.SpringWebApplicationFactory mentioned in web.xml then and nice and cleanly inject my authentication strategy into my Application via normal spring IoC: bean id=wicketApplication class=com.theoryinpractice.timetrackr.TimeTrackrApplication property name=timeTrackrAuthorizationStrategy ref=authorizationStrategy/ /bean bean id=authorizationStrategy class=com.theoryinpractice.timetrackr.TimeTrackrAuthorizationStrategy property name=userManager ref=userManager/ /bean The authorization strategy also has injected into it my hibernate DAO's so have full access to everything they need, cleanly and springy, without touching any of those odd little convience classes (actually I never knew they existed either). Doing spring+wicket this way is much much nicer I find. ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2 now! Write Ajax applications without touching _javascript_! -- http://wicketframework.org___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user- Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 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] problem with PopupCloseLink - wicket 1.2.1
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 attemptto 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
Re: [Wicket-user] Coding Authentification, Databinding and Role-related application behaviour
updated-IgorOn 8/9/06, Gwyn Evans [EMAIL PROTECTED] wrote: Any chance you'd have time to add a V2.0 update to that effect here- http://www.wicket-wiki.org.uk/wiki/index.php/Spring :-)/Gwyn On 09/08/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i have recently deprecated springannotwebapp so this no longer should be a problem. now to get spring injection going you do this: class myapplication extends webapplication {init() {addComponentInstantiationListener(new SpringComponentInjector(this));} } thats it, no need for extending any spring related application object. -Igor On 7/21/06, Mats Norén [EMAIL PROTECTED] wrote: Has there been any progress in merging AuthenticatedWebApplication and the spring-stuff lately or is there a best praktice out there somewhere? Best regards Mats On 6/8/06, Martijn Dashorst [EMAIL PROTECTED] wrote: The problem is that the wicket-auth-roles package assumes you subclass AuthenticatedWebApplication as your application class. If you want to reuse that, you'll have to subclass the AuthenticatedWebApplication and the AuthenticatedSession. No spring can fix that. Martijn On 6/8/06, Mark Derricutt [EMAIL PROTECTED] wrote:On 6/7/06, Martijn Dashorst [EMAIL PROTECTED] wrote: I suggest (tried and tested at my company) to use the Auth application as your base class and merge the spring related stuff into your subclass. The spring integration is agnostic for sessions and such, so you'll be up and running much quicker. Personally I'm using the wicket.spring.SpringWebApplicationFactory mentioned in web.xml then and nice and cleanly inject my authentication strategy into my Application via normal spring IoC: bean id=wicketApplication class=com.theoryinpractice.timetrackr.TimeTrackrApplication property name=timeTrackrAuthorizationStrategy ref=authorizationStrategy/ /bean bean id=authorizationStrategy class=com.theoryinpractice.timetrackr.TimeTrackrAuthorizationStrategy property name=userManager ref=userManager/ /bean The authorization strategy also has injected into it my hibernate DAO's so have full access to everything they need, cleanly and springy, without touching any of those odd little convience classes (actually I never knew they existed either). Doing spring+wicket this way is much much nicer I find. -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] Performance/Scalability tips
It sure seems that sessions are used heavily, but i knew that anyway, from documentation. I don't think that sessions are used heavily compared to other web-apps. The difference is that Wicket does most of the Sessions tasks for you and it is consistent whereas with Struts etc you end up doing everything yourself. From my experience, many web-apps end up with much worse session usage as it is a developers tasks compared to a similar Wicket app. In Wicket, we try to keep the developer in control, but most standard session use case are already in place. Overall and IMO it makes Session handling and usage much saver in the long run. I don't have hard figures, but I think that Wicket web apps don't use more session memory than any other normal web-app (no matter which framework) which implements the same business functionality. Of course there are always well-tuned apps which do it better, but I think Wicket does a decent job for most use cases. Juergen - 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
the advantage that wicket provides in session handling is that it evicts objects from it for you. what you had to put into a session in lets say a struts app to be accessed across requests you now put into a Page and pass references from page instance to page instance if it is needed across pages. now when those pages are evicted from session by wicket so is that object you stored. from what i have seen in a lot of non-wicket projects - the things are put into session, but are never removed so they stay in there until the session times out - and thats a huge waste. sometimes when there is a wizard the laste page of the wizard does the cleanup, but the user can start a wizard and then decide to move on to something else w/out pressing the cancel button - this is another common source of session leakage that does not effect wicket. -IgorOn 8/9/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: It sure seems that sessions are used heavily, but i knew that anyway, from documentation.I don't think that sessions are used heavily compared to otherweb-apps. The difference is that Wicket does most of the Sessions tasks for you and it is consistent whereas with Struts etc you end updoing everything yourself. From my experience, many web-apps end upwith much worse session usage as it is a developers tasks compared to a similar Wicket app. In Wicket, we try to keep the developer incontrol, but most standard session use case are already in place.Overall and IMO it makes Session handling and usage much saver in thelong run. I don't have hard figures, but I think that Wicket web apps don't use more session memory than any other normal web-app (no matterwhich framework) which implements the same business functionality. Ofcourse there are always well-tuned apps which do it better, but Ithink Wicket does a decent job for most use cases. Juergen-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] no activity in wicket user list?
On 8/9/06, Jaime De La Jara [EMAIL PROTECTED] wrote: Hi, just wondering what has happened to the mailing list?, the last post is from July 25 and there's been no activity since then.You mean on SourceForge? They are having problems with that. Use nabble instead: http://www.nabble.com/Wicket---User-f13976.htmlFrank - 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] no activity in wicket user list?
in my mailbox last post was 30 minutes ago :) check your client.-IgorOn 8/9/06, Jaime De La Jara [EMAIL PROTECTED] wrote:Hi, just wondering what has happened to the mailing list?, the last post is from July 25 and there's been no activity since then. Ragards,Jaime. Do you Yahoo!? Next-gen email? Have it all with the all-new Yahoo! Mail Beta. -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] Unknown Exception -- Wicket 1.2.1
Yep. I think someone was just playing around a bit. Maybe we shouldn't log big fat stacktraces for that unless in debug and/ or development mode? Eelco On 8/9/06, Johan Compagner [EMAIL PROTECTED] wrote: that shouldn't matter What eelco says is that somebody is messing with the urls and tries to alter them and then sends them to the browser. johan - 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] Coding Authentification, Databinding and Role-related application behaviour
Thanks! On 09/08/06, Igor Vaynberg [EMAIL PROTECTED] wrote: updated - 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] Discussing Wicket
We have two applications that are largely the same. However, (along with some minor variations between them) they have completely different authentication strategies. The call center version entails logging in once at the start, while the retail version entails authenticating yourself every time a purchase is made. While I don't have this working yet --largely due to the fact that I'm still figuring out how Wicket's authentication model works. I am however thoroughly confident that the approach Wicket takes will make this far easier to implement than is has been in our legacy apps. For an article-length review of the advantages of an OO web framework, I really like a shopping cart style app that sells at least two substantially distinct products. Maybe something like... main page tabbed panel product A panel (extends abstract product panel, which contains a date picker and a list view of abstract product) -- this panel adds the product A item to the abstract product panel's list view product B panel (extends product panel) -- add product B shopping cart contains a list view of abstract product add product A or product B Initially there could just be html for the AbstractProductPanel, however then html could be added for the ProductAPanel to restructure its layout. Or is that simply too much for an article? On 8/9/06, Frank Silbermann [EMAIL PROTECTED] wrote: You don't _need_ to know / use OO to program in Java or C++, but at least they _allow_ you to use OO in your programs. With all the reading I've done on JSF, I still don't have a clue as to the way someone who _wanted_ to use OO in structuring the presentation layer could do so. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: Saturday, July 29, 2006 9:54 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Discussing Wicket its not only that - most frameworks are not built around OO so the developer is not required to know it/use it. i think the skill is mostly lost in the webspace. -Igor On 7/29/06, Eelco Hillenius [EMAIL PROTECTED] wrote: On 7/29/06, Igor Vaynberg [EMAIL PROTECTED] wrote: we do evangelize the OO wherever we can, but it mostly falls on deaf ears. have you ever seen a struts app? in most struts apps the notion of a class is used mostly as a namespace to group some functions together. its hard to explain something when most people dont understand what you are talking about. at least this has been my frustrating experience. like that blog from the tapestry guy ( http://greggbolinger.blogspot.com/2006/01/i-say-tapestry-you-say-wicket.html and discussion we had here on the list ) saying listview is too complex to understand because it has an abstract callback method you have to implement and because it is an anoymous class. Yeah. It seems to be a sad reality that many frameworks have it as their holy grail to save their users from writing any code. And many programmers seem to agree that's what they want. That's how you get those famous 'framework coders'. Eelco - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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 -- Scott Swank reformed mathematician - 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] Discussing Wicket
As long as you separate the business logic (e.g. authentication rules) from the presentation logic (the HTML), you can use the base language's object-orientation with most any framework. The real winner for wicket is the use of object-orientation in the display logic. I think you may be onto something with the shopping cart style application. You define an abstract product display panel which is subclassed by a variety of concrete leaf classes for various products and product types, and you define a component (e.g. a tabbed panel) to display an arbitrary collection of these products. For each product the database could contain a display type and a serialized property-list that tells the application whatever it needs to know for displaying the product. Then you could add a new product and its display simply by adding a record to the database. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Swank Sent: Wednesday, August 09, 2006 11:36 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Discussing Wicket We have two applications that are largely the same. However, (along with some minor variations between them) they have completely different authentication strategies. The call center version entails logging in once at the start, while the retail version entails authenticating yourself every time a purchase is made. While I don't have this working yet --largely due to the fact that I'm still figuring out how Wicket's authentication model works. I am however thoroughly confident that the approach Wicket takes will make this far easier to implement than is has been in our legacy apps. For an article-length review of the advantages of an OO web framework, I really like a shopping cart style app that sells at least two substantially distinct products. Maybe something like... main page tabbed panel product A panel (extends abstract product panel, which contains a date picker and a list view of abstract product) -- this panel adds the product A item to the abstract product panel's list view product B panel (extends product panel) -- add product B shopping cart contains a list view of abstract product add product A or product B Initially there could just be html for the AbstractProductPanel, however then html could be added for the ProductAPanel to restructure its layout. Or is that simply too much for an article? On 8/9/06, Frank Silbermann [EMAIL PROTECTED] wrote: You don't _need_ to know / use OO to program in Java or C++, but at least they _allow_ you to use OO in your programs. With all the reading I've done on JSF, I still don't have a clue as to the way someone who _wanted_ to use OO in structuring the presentation layer could do so. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: Saturday, July 29, 2006 9:54 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Discussing Wicket its not only that - most frameworks are not built around OO so the developer is not required to know it/use it. i think the skill is mostly lost in the webspace. -Igor On 7/29/06, Eelco Hillenius [EMAIL PROTECTED] wrote: On 7/29/06, Igor Vaynberg [EMAIL PROTECTED] wrote: we do evangelize the OO wherever we can, but it mostly falls on deaf ears. have you ever seen a struts app? in most struts apps the notion of a class is used mostly as a namespace to group some functions together. its hard to explain something when most people dont understand what you are talking about. at least this has been my frustrating experience. like that blog from the tapestry guy ( http://greggbolinger.blogspot.com/2006/01/i-say-tapestry-you-say-wicke t.html and discussion we had here on the list ) saying listview is too complex to understand because it has an abstract callback method you have to implement and because it is an anoymous class. Yeah. It seems to be a sad reality that many frameworks have it as their holy grail to save their users from writing any code. And many programmers seem to agree that's what they want. That's how you get those famous 'framework coders'. Eelco -- --- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEV DEV ___ 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?
Re: [Wicket-user] Form + pull model ListView + FormValidators
joni_18912 ivaynberg: any opinions on IFormValidator issue? Currently it is very difficult to work with them if the components in a Form changeivaynberg joni_18912 i think what you suggest worksivaynberg but you do realize that you can implement that yourself by subclassing the form? ivaynberg we need to discuss this with chillenious and jcompagner here because usually we all disagree as far as changes to core form processing goes :)joni_18912 ok :)chillenious :) chillenious what's the proposalchillenious ?chillenious that IFormValidator was a nasty buggerjoni_18912 chillenious: http://thread.gmane.org/gmane.comp.java.wicket.user/15627/focus=15643chillenious ah, I read the thread but missed the proposal partjoni_18912 only that i don't see how it is possible to implement it by subclassing the form. only way to get IFormValidators to a form is by pushing them ivaynberg you override validate()ivaynberg and process them yourselfjoni_18912 rightivaynberg after some discussions i am a bit hesitant of adding more stuff to form processing ivaynberg cause it seems everyone expects it to work slightly differentivaynberg so it just makes more of a messchillenious yeah I agreeivaynberg butchillenious better keep it simple if we can ivaynberg what i can do is break out validate(IFormValidator) for you so when you override validate and collect the validators you can just delegate to that callivaynberg so you dont have to rewrite as much ivaynberg sound good?joni_18912 that would be goodivaynberg okchillenious to me that does sound good tooivaynberg let me do that right nowjoni_18912 ty ivaynberg npchillenious better than the lazy loading thing. That's a nice pattern in itself, but it would add more complexity (not to mention another API break)ivaynberg i think a wiki page with the visitor would be nice in case someone else runs into this -IgorOn 8/8/06, Joni Freeman [EMAIL PROTECTED] wrote: On Tue, 2006-08-08 at 08:36 -0700, Igor Vaynberg wrote: this only solves it partially though - added formvalidators are still going to be a problem for removed items - not sure about the best approach right now - we might have to open more api or make validation smarter - lets discuss this some more.I think the problem is that IFormValidators are pushed to a Form.Pushing things do not work well when using pull models. What if Formwould pull FormValidators instead: public Form extends WebMarkupContainer implements IFormSubmitListener{...protected ListIFormValidator formValidators(){ListIFormValidator formValidators = new ArrayListIFormValidator();visitChildren(IFormValidatorProvider.class, new IVisitor(){public Object component(final Component component){IFormValidatorProvider provider = (IFormValidatorProvider) component;validators.addAll(provider.formValidators());return CONTINUE_TRAVERSAL;} });return formValidators; }}public interface IFormValidatorProvider{CollectionIFormValidator formValidators();}This would allow IFormValidators to be encapsulated with components.E.g. public DateRangePicker extends Panel implements IFormValidatorProvider{public DateRangePicker(String id){super(id);start = new DateRange(start);end = new DateRange(end); }public CollectionIFormValidator formValidators(){return Arrays.asList(new DateRangePickerValidator(start, end));}private class DateRangePickerValidator implements IFormValidator {public DateRangeFieldValidator(DatePicker start, DatePickerend){}}}This would also be more flexible than the current way since the decisionabout whether to include a certain IFormValidator can be done at onSubmit() phase.Any comments?Joni-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] Unknown Exception -- Wicket 1.2.1
I don't think it was someone playing with the URL, I had a user write in a say that they got the error during registration. Jeremy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: Wednesday, August 09, 2006 12:22 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Unknown Exception -- Wicket 1.2.1 Yep. I think someone was just playing around a bit. Maybe we shouldn't log big fat stacktraces for that unless in debug and/ or development mode? Eelco On 8/9/06, Johan Compagner [EMAIL PROTECTED] wrote: that shouldn't matter What eelco says is that somebody is messing with the urls and tries to alter them and then sends them to the browser. johan - 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 Important Notice to Recipients: It is important that you do not use e-mail to request, authorize or effect the purchase or sale of any security or commodity, to send fund transfer instructions, or to effect any other transactions. Any such request, orders, or instructions that you send will not be accepted and will not be processed by Morgan Stanley. - 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] Unknown Exception -- Wicket 1.2.1
if you can reproduce it then somehow so that i can look at it?johanOn 8/9/06, Levy, Jeremy [EMAIL PROTECTED] wrote:I don't think it was someone playing with the URL, I had a user write in a say that they got the error during registration.Jeremy-Original Message-From: [EMAIL PROTECTED][mailto: [EMAIL PROTECTED]] On Behalf Of EelcoHilleniusSent: Wednesday, August 09, 2006 12:22 PMTo: wicket-user@lists.sourceforge.netSubject: Re: [Wicket-user] Unknown Exception -- Wicket 1.2.1Yep. I think someone was just playing around a bit. Maybe we shouldn'tlog big fat stacktraces for that unless in debug and/ or development mode?EelcoOn 8/9/06, Johan Compagner [EMAIL PROTECTED] wrote: that shouldn't matter What eelco says is that somebody is messing with the urls and tries to alter them and then sends them to the browser. johan-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your jobeasier Download IBM WebSphere Application Server v.1.0.1 based on ApacheGeronimo 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 Important Notice to Recipients:It is important that you do not use e-mail to request, authorize or effect the purchase or sale of any security or commodity, to send fund transfer instructions, or to effect any other transactions. Any such request, orders, or instructions that you send will not be accepted and will not be processed by Morgan Stanley. -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] Performance/Scalability tips
It died after eating 100MB of memory and serving 600-800 requests*100 threads. That is probably because - like said elsewhere in this thread - a new session was started for every request. The problem is also that the CPU was on 100%. Hmm, that's interesting. We (or rather Johan and Jonathan) really worked hard at making Wicket as efficient as possible. Even with the whole object tree creation etc it should still perform very well. If you find certain hotspots, please share. This version 2.0 sounds very nice, is it usable yet? We're also planning on backporting those features from 2.0 to our upcomming 1.3 release. All 1.2.x release are meant to be binary compatible. 1.3. will have a couple of API breaks that will make new functionality possible. When we release 1.3. it will probably be immediately usable for production as it mainly consists of back ports. You can use 2.0 - in fact we think 2.0 has a few things that makes it a lot better than 1.x, but at this time we don't guarantee API stability yet. But we plan on stabilize 2.0 in about 2 months, also because of the fact that we are writing Wicket In Action for that version. How can I set a page to be stateless in 1.2.1 ? Is there some attribute to do this or does it just mean that you use detachable models? Stateless means the page isn't even stored in the session. We started out implementing that automatically for pages that don't have any call backs to themselves (Links, Forms, etc). So for 1.2, if you implement all your functionality using bookmarkable pages and passing 'state' using RequestParameters objects, you'll have hardly any session usage. I say hardly here, because 1.2 still creates a session for each client. Deferred session creation was implemented for 2.0 and is on the list to be backported for 1.3. With this, you can write Wicket applications that do not even create a session for a client ever. Stateless pages for Wicket 2.0 is currently under heavy development. From an end-user's point of view, it will support the same use case I mentioned above, and in addition to that, you can even use forms and links with stateless pages in 2.0. I lost track myself of the status of the whole stateless business in 2.0, so I started a WIKI page here: http://www.wicket-wiki.org.uk/wiki/index.php/Stateless_pages and I hope someone else (specifically Johan and Matej) can finish that page. There are several other ways to customize session usage too, btw. Most notably tweaking the number of history items that are stored in the session (IPageSettings#setMaxPageVersions), using a custom ISessionStore (the default in 1.2 just stores everything in the HttpSession object, but any other scheme is possible, including what will probably the default in 2.0: a first level that stores pages in the http session and a second level (for back button support) that stores on disk). Hope this helps. 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] Unknown Exception -- Wicket 1.2.1
How does that registration work? Any way you can think of how the URL got corrupted like that? Eelco On 8/9/06, Levy, Jeremy [EMAIL PROTECTED] wrote: I don't think it was someone playing with the URL, I had a user write in a say that they got the error during registration. Jeremy - 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
The problem is also that the CPU was on 100%.Hmm, that's interesting. We (or rather Johan and Jonathan) really worked hard at making Wicket as efficient as possible. Even with thewhole object tree creation etc it should still perform very well. Ifyou find certain hotspots, please share.I think this was just object creation and io overhead and the GC working on its top.. If you do everything in your local computer. And you do a test that does everythingjust in mem (no data/db io) then the CPU will be the bottleneck so it should go to 100%Where else can it go to? Stateless pages for Wicket 2.0 is currently under heavy development.From an end-user's point of view, it will support the same use case I mentioned above, andin addition to that, you can even use forms andlinks with stateless pages in 2.0.But of course with some exceptions!You can't rely on model data in the Link.onClick() method ofcourse because there is not data. With forms most state is already pushed from the browser (the data you submit)so for forms the onSubmit() it is almost as it was normally. I lost track myself of the status of the whole stateless business in2.0, so I started a WIKI page here:http://www.wicket-wiki.org.uk/wiki/index.php/Stateless_pages and Ihope someone else (specifically Johan and Matej) can finish that page.Matej! how nice that you are doing that! :)johan - 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] Wicket URLs without request cycle / Errors in onEndRequest
Hi, two tricky problems I'm just perplexed at after trying to figure it out for some hours: 1) I want to generate a url for a wicket page without a request cycle. I can access the web application, but no request is active (think about a mail notification from a headless scheduled service containing a wicket link). I don't want to hardwire the link in the code, I would like to refer to the class + pageparameters (so the url generation still works, even if the url encoding strategy changes). Is there any way to get such a url outside of a wicket component / request cycle? 2) I have my custom WebRequestCycle for spanning a transaction around every wicket request, rolling it back on errors, comitting it at the end of the request. Problem: in the onEndRequest method there is quite a chance that an (technical) error occurs (database exception while committing). I want to forward to an error page in these cases. setResponsePage doesn't do anything at that point, redirectTo can fail if it's a redirect already. Any chance to safely go to an error page at that point in the request cycle? Or another way to implement such a request-specific strategy with correct error handling? (I could omit the transaction around every web request, because I have them around my service methods anyway, but I like that strategy because if something goes wrong somewhere, I like to roll back the whole request's transaction just to be sure) Thanks a lot! Ralf - 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] AjaxSelfUpdatingTimerBehaviour problems
Folks,I have an index page (listing a number of devices) with a self-updating table using AjaxSelfUpdatingTimerBehaviour like this: WebMarkupContainer tblContainer = new WebMarkupContainer("taptable"); tblContainer.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(4))); tblContainer.setOutputMarkupId(true); add(tblContainer); // Table stuff follows...It works just fine. But when I click on a link in the table witch creates a new popup page displaying details for a device, the self-updating of the index page stops and I have to refresh the index page to get the self-updating behaviour going again. Looking at the Wicket Ajax Debug I see this:IERROR: malformed response envelope: could not find root ajax-response element INFO: invoking failure handler...ERROR: error while processing response: TypeError: root has no properties.root has no properties INFO: invoking failure handler...And then nothing more.Am I missing something? Or is it a bug? Safari and Firefox behaves the same./Per- 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 URLs without request cycle / Errors in onEndRequest
1) I want to generate a url for a wicket page without a request cycle.I can access the web application, but no request is active (think about a mail notification from a headless scheduled service containinga wicket link). I don't want to hardwire the link in the code, I wouldlike to refer to the class + pageparameters (so the url generation still works, even if the url encoding strategy changes). Is there anyway to get such a url outside of a wicket component / request cycle?What do you want to do with that url?I guess you want to generate a bookmarkable url ? The problem is that you really need a request cycle. Because that is used for all kinds of stuffSo can;t you just mockup one? 2) I have my custom WebRequestCycle for spanning a transaction aroundevery wicket request, rolling it back on errors, comitting it at theend of the request. Problem: in the onEndRequest method there is quitea chance that an (technical) error occurs (database exception while committing). I want to forward to an error page in these cases.setResponsePage doesn't do anything at that point, redirectTo can failif it's a redirect already. Any chance to safely go to an error pageat that point in the request cycle? Or another way to implement such a request-specific strategy with correct error handling? (I could omitthe transaction around every web request, because I have them aroundmy service methods anyway, but I like that strategy because ifsomething goes wrong somewhere, I like to roll back the whole request's transaction just to be sure)No this is not possible. In onEndRequest of request cycle you can't serve anotherpage again. Because everying is already committed to response of the web request. (like redirect url)If you want this kind of behaviour you can do it in a common base page and thenin the method onAfterRender() of the page.johan - 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] Dynamic Markup
dont push component resolvers to much because i think we need to drop that or greatly change it in 2.0johanOn 8/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote:On 8/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote: markup is cached, but you can tweak that by tweaking MarkupResourceStreamLookupResult, setCacheKey and setDisableCaching specifically. Furthermore, instead of adding your components in that for loop, you should rather use a ListView or repeater.Or rather some factory that ensures you map the right ids etc. Unlessyou use component resolvers which is something I don't know much aboutmyself currently. 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 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] Dynamic Markup
Okay, let's forget about this feature in that case. Eelco On 8/9/06, Johan Compagner [EMAIL PROTECTED] wrote: dont push component resolvers to much because i think we need to drop that or greatly change it in 2.0 johan On 8/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote: On 8/8/06, Eelco Hillenius [EMAIL PROTECTED] wrote: markup is cached, but you can tweak that by tweaking MarkupResourceStreamLookupResult, setCacheKey and setDisableCaching specifically. Furthermore, instead of adding your components in that for loop, you should rather use a ListView or repeater. Or rather some factory that ensures you map the right ids etc. Unless you use component resolvers which is something I don't know much about myself currently. 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
[Wicket-user] Ajax Submit default to Non Ajax Submit ?
Hello, I am still trying to make my Ajax form working, with no success until now. I have made a simple example that works in a standalone page. I have then copied this example in a page of my app, and it don't work. What is surprising is that no code in the Ajax OnSubmit handler is executed, although the result component is updated with the values form the form. As the page is also flashing in the browser, my guess is that if Ajax submit don't work, Wicket default to non Ajax submit with the page redisplaying. Is that right? If it is, can you give me some indications about why an Ajax submit handler that work in a page would not work in another one? 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
[Wicket-user] 业务!寻找合作伙伴!
贵公司负责人(经理/财务)您好: 我是深圳市中信实业有限公司;每月有增值税电脑发票、海关缴款书和普通商品销售税发票 (电脑运输、其它服务,广告,租赁业)优惠向外代开或合作,点数较低.更希望能够有机会与 贵公司合作!如贵司在发票的真伪方面有任何疑虑或担心,可上网查证或我司直接与贵司去税务 局抵扣核对.彼此合作一次,必成永久朋友!多谢合作!如有打扰,敬请原谅。 此信息长期有效,如须进一步洽商: 详情请电(24小时业务热线):013424331717 [EMAIL PROTECTED] 联系人:陈志荣 顺祝商祺! 深圳市中信实业有限公司 - 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 code is extremely ugly!Everytime you render the page the form gets a new FormValidator because everytime the listview is populated..Do setReuseItems(boolean reuseItems) to true on the ListView.And if you remove them yourself you should be able to also delete the validator from the form because that one is really not valid anymore...but that is a problem because there is no remove(validator) method i think...On 8/8/06, Joni Freeman [EMAIL PROTECTED] wrote:Consider following form which uses ListView with pull model. public MyForm extends Form {public MyForm(String id, IModel model) {super(id, model);add(new ListView(items) {public IModel getModel() {return new Model( dao.findAll());}protected void populateItem(final ListItem item) {FormComponent text1 = new TextField(t1);FormComponent text2 = new TextField(t2); item.add(text1);item.add(text2);MyForm.this.add(new MyFormValidator(text1, text2));}};}protected void onSubmit() { // hello world!}}Now, the first submit is ok, but if the validation fails during thefirst submit and the user presses submit again, the whole form fails toCaused by: java.lang.IllegalStateException : No Page found for component[MarkupContainer [Component id = TextField.text, page = No Page, path= 1:semester.length:start:TextField.text]]at wicket.Component.getPage(Component.java:1022)at wicket.Component.hasErrorMessage (Component.java:1226)atwicket.markup.html.form.FormComponent.isValid(FormComponent.java:442)...Why? Because the Form instance contains FormValidators which referenceold instances of FormComponents. These old instances are not in a Form after the first submit because the ListView uses pull model andtherefore can't call setReuseItems(true);So, it seems that it is not possible to use pull model ListView in aForm?Joni -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] Form + pull model ListView + FormValidators
and because the listview might remove items for you as well if they have been deleted from the database by someone else :)-IgorOn 8/9/06, Johan Compagner [EMAIL PROTECTED] wrote: This code is extremely ugly!Everytime you render the page the form gets a new FormValidator because everytime the listview is populated..Do setReuseItems(boolean reuseItems) to true on the ListView.And if you remove them yourself you should be able to also delete the validator from the form because that one is really not valid anymore...but that is a problem because there is no remove(validator) method i think...On 8/8/06, Joni Freeman [EMAIL PROTECTED] wrote: Consider following form which uses ListView with pull model. public MyForm extends Form {public MyForm(String id, IModel model) {super(id, model);add(new ListView(items) {public IModel getModel() {return new Model( dao.findAll());}protected void populateItem(final ListItem item) {FormComponent text1 = new TextField(t1);FormComponent text2 = new TextField(t2); item.add(text1);item.add(text2);MyForm.this.add(new MyFormValidator(text1, text2));}};}protected void onSubmit() { // hello world!}}Now, the first submit is ok, but if the validation fails during thefirst submit and the user presses submit again, the whole form fails toCaused by: java.lang.IllegalStateException : No Page found for component[MarkupContainer [Component id = TextField.text, page = No Page, path= 1:semester.length:start:TextField.text]]at wicket.Component.getPage(Component.java:1022)at wicket.Component.hasErrorMessage (Component.java:1226)atwicket.markup.html.form.FormComponent.isValid(FormComponent.java:442)...Why? Because the Form instance contains FormValidators which referenceold instances of FormComponents. These old instances are not in a Form after the first submit because the ListView uses pull model andtherefore can't call setReuseItems(true);So, it seems that it is not possible to use pull model ListView in aForm?Joni -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 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
[Wicket-user] ExternalLink weirdness
in ExternalLink.onComponentTag, if the href is not null, this is the code: // or generate an onclick JS handler directly tag.put(href, Strings.replaceAll(hrefValue.toString(), , amp;)); first, the comment seems odd second, why replace '' with 'amp;'? can't i have an href like 'http://mysite.com/page?arg1=val1arg2=val2'? (we're trying to use such an href, and it doesn't work) thanks, ittay -- === Ittay Dror, Chief architect, openQRM group leader, RD, Qlusters Inc. [EMAIL PROTECTED] +972-3-6081994 Fax: +972-3-6081841 http://www.openQRM.org - Keeps your Data-Center Up and Running - 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