[Wicket-user] How to make wicket testable at jmeter?
When I use the robot to record the flow, jmeter captured the form is post to /wicket?wicket:interface=:1:userForm:1:IFormSubmitListener But later when I rerun the test, and it just throws 404 not found error. When I go to that URL, I get the page expire message. Just wonder how can I make wicket work with jmeter? I've try to visit /wicket/ first but that still fail. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to make wicket testable at jmeter?
I ran into this myself, and the only solution I came up with is not to repeat the test multiple times. It appears that the client thread is not destroyed between repeats, and the servlet container (or Wicket, haven't looked into it) keeps on numbering as if the previous session still runs. Martijn On 10/27/06, Carfield Yim [EMAIL PROTECTED] wrote: When I use the robot to record the flow, jmeter captured the form is post to /wicket?wicket:interface=:1:userForm:1:IFormSubmitListener But later when I rerun the test, and it just throws 404 not found error. When I go to that URL, I get the page expire message. Just wonder how can I make wicket work with jmeter? I've try to visit /wicket/ first but that still fail. - 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 -- a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to make wicket testable at jmeter?
On Fri, 2006-10-27 at 14:49 +0800, Carfield Yim wrote: When I use the robot to record the flow, jmeter captured the form is post to /wicket?wicket:interface=:1:userForm:1:IFormSubmitListener But later when I rerun the test, and it just throws 404 not found error. When I go to that URL, I get the page expire message. Just wonder how can I make wicket work with jmeter? I've try to visit /wicket/ first but that still fail. This is one of the reasons I prefer Grinder for performance testing. With Grinder it is possible to programmatically follow links. A similar problem may be when using Selenium IDE for acceptance testing, the tests can't be repeated. Here Selenium RC is your friend. 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 list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to make wicket testable at jmeter?
On 10/27/06, Martijn Dashorst [EMAIL PROTECTED] wrote: I ran into this myself, and the only solution I came up with is not to repeat the test multiple times. so you mean I cannot have load test if I use wicket that is kind of bad really bad Actually can I set the client thread is not destroyed between repeats? Sound like just a setting issue... - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to make wicket testable at jmeter?
This is one of the reasons I prefer Grinder for performance testing. With Grinder it is possible to programmatically follow links. A similar problem may be when using Selenium IDE for acceptance testing, the tests can't be repeated. Here Selenium RC is your friend. But my friend complaint that Grinder's is not as stable as jmeter, let me take a look first. Moreover, if it is not follow links case, but a form posting case, do you think grinder also handle it good with wicket? - 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] mountBookmarkablePage
Hi I have a page that are set as mountBookmarkablePage, and it gets its parameters from the url etc http://localhost:8080/application/page/paramA/valueA/paramB/valueB When my page has picked up the parameters i wish to clear them so that my url becomes something like http://localhost:8080/application/page . Reason why I want to do this are that some of the other pages I have some of the image references get smashed so image ref should have been: http://localhost:8080/application/ui/i/ikon-help.gif but are instead : http://localhost:8080/application/page/paramA/valueA/paramB/valueB/ui/i/ikon-help.gif Hoping for some answers. Regards Nino - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to make wicket testable at jmeter?
Hmm thats not our experience. Our opperationals guy did some loadtesting of Wicket using JMeter and I don't recall him having any problems with it. I'll try to ask him what he did.Frank On 10/27/06, Martijn Dashorst [EMAIL PROTECTED] wrote: I ran into this myself, and the only solution I came up with is not torepeat the test multiple times.It appears that the client thread is not destroyed between repeats,and the servlet container (or Wicket, haven't looked into it) keeps on numbering as if the previous session still runs.MartijnOn 10/27/06, Carfield Yim [EMAIL PROTECTED] wrote: When I use the robot to record the flow, jmeter captured the form is post to /wicket?wicket:interface=:1:userForm:1:IFormSubmitListener But later when I rerun the test, and it just throws 404 not found error. When I go to that URL, I get the page expire message. Just wonder how can I make wicket work with jmeter? I've try to visit /wicket/ first but that still fail. - 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--a href="" href="http://www.thebeststuffintheworld.com/vote_for/wicket">http://www.thebeststuffintheworld.com/vote_for/wicket Vote/afor a href="" href="http://www.thebeststuffintheworld.com/stuff/wicket">http://www.thebeststuffintheworld.com/stuff/wicketWicket/aat the a href="" href="http://www.thebeststuffintheworld.com/"> http://www.thebeststuffintheworld.com/Best Stuff inthe World!/a-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] mountBookmarkablePage
use absolute paths for your images and you wont have this problemor mount with a querystringurlcodingstrategy so your url will be application/page?parama=valueparamb=value-Igor On 10/27/06, Nino Wael [EMAIL PROTECTED] wrote: Hi I have a page that are set as mountBookmarkablePage, and it gets its parameters from the url etc http://localhost:8080/application/page/paramA/valueA/paramB/valueB When my page has picked up the parameters i wish to clear them so that my url becomes something like http://localhost:8080/application/page . Reason why I want to do this are that some of the other pages I have some of the image references get smashed so image ref should have been: http://localhost:8080/application/ui/i/ikon-help.gif but are instead : http://localhost:8080/application/page/paramA/valueA/paramB/valueB/ui/i/ikon-help.gif Hoping for some answers. Regards Nino -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] How to make wicket testable at jmeter?
On 10/27/06, Carfield Yim [EMAIL PROTECTED] wrote: so you mean I cannot have load test if I use wicket that is kind of bad really bad No, that is not what I mean... I just said that you can't set the threads to repeat. That doesn't prevent you from writing longer running tests, that run in parallel. Martijn -- a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to make wicket testable at jmeter?
Create a HTTP Cookie Manager, and clear cookies after each iteration.. Works here for us. BTW I could send our template if you want to. Regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carfield Yim Sent: 27. oktober 2006 08:50 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] How to make wicket testable at jmeter? When I use the robot to record the flow, jmeter captured the form is post to /wicket?wicket:interface=:1:userForm:1:IFormSubmitListener But later when I rerun the test, and it just throws 404 not found error. When I go to that URL, I get the page expire message. Just wonder how can I make wicket work with jmeter? I've try to visit /wicket/ first but that still fail. - 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] How to make wicket testable at jmeter?
Look at my mail, you really can set the threads to repeat:) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Martijn Dashorst Sent: 27. oktober 2006 09:42 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] How to make wicket testable at jmeter? On 10/27/06, Carfield Yim [EMAIL PROTECTED] wrote: so you mean I cannot have load test if I use wicket that is kind of bad really bad No, that is not what I mean... I just said that you can't set the threads to repeat. That doesn't prevent you from writing longer running tests, that run in parallel. Martijn -- a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - 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] How to make wicket testable at jmeter?
On Fri, 2006-10-27 at 15:28 +0800, Carfield Yim wrote: But my friend complaint that Grinder's is not as stable as jmeter, let me take a look first. It is stable, but it doesn't have an easy to use GUI to record the tests. There is a recording proxy but I do not know how well that works. I always program the tests by hand (jython + java). Moreover, if it is not follow links case, but a form posting case, do you think grinder also handle it good with wicket? Grinder is an API so you can basically do anything. You can follow redirects etc. You can also performance test any Java classes with it, so you can skip HTTP layer if that makes testing more convenient. 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 list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] OT: How to make wicket testable at jmeter?
tests. There is a recording proxy but I do not know how well that works. The recording proxy is exactly the part that my friend complaint about. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to make wicket testable at jmeter?
On 10/27/06, Nino Wael [EMAIL PROTECTED] wrote: Create a HTTP Cookie Manager, and clear cookies after each iteration.. Works here for us. that work, cool!!! BTW I could send our template if you want to. sure like to take a look - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to make wicket testable at jmeter?
You can get it here: http://s1.upload.sc/request/5ae8f5148c890325d37ffc8ace1c8536 since its larger than 1meg so I could not send it to this list. Regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carfield Yim Sent: 27. oktober 2006 10:18 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] How to make wicket testable at jmeter? On 10/27/06, Nino Wael [EMAIL PROTECTED] wrote: Create a HTTP Cookie Manager, and clear cookies after each iteration.. Works here for us. that work, cool!!! BTW I could send our template if you want to. sure like to take a look - 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] Why form validators are private?
I'm trying to overwrite the validateRequired of the Form, but this method is private. My problem is that I have two submit buttons: the first button is to insert the data into the database, and this button need to check the required fields. The another button is a confirm button that need to do the submit but I don't need to do the check for the required fields. The idea is to overwrite the validateRequired to control what button is clicked and to know if the fields have to be validated. Now the solution is to overwrite all fields of the form and overwrite the isRequired method. Do you know another idea to do this? Thanks - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] mountBookmarkablePage
Hmm, im not sure if I can have absolute urls and changing our mount method is too late now, I guess. I did not tell the whole story in my mail some of the image urls are actually kept correct. We have a component that are called helpLink, when attached to our page url comes our correct: Like this: http://localhost:8080/jobindsats/ui/i/ikon-help.gif when its attached to another component we have it comes out like this: http://localhost:8080/jobindsats/viewer/databanksitemap/ydelsesgruppeId/Y01/maalingId/ui/i/ikon-help.gif using the page without entry from the mountable path gives no errors of course (ive also tried setting a page in before the wanted page which picks up the parameters, but I am unable to clear the url of them). See code of helpLink here: Working img: a title=Vis hjaelig;lp til variable href="" class=help wicket:id=helpimg src="" alt=Vis hjaelig;lp til variable //a Not working img: a title=Vis hjaelig;lp tilnbsp; href="" class=help wicket:id=helpimg src="" wicket:id=helpimg alt=Hjaelig;lp //a http://paste.uni.cc/11120 Hmmm scrap above, found out the trouble In our other component there was added this(took a look at not working im above): helpLink.add(new WebMarkupContainer(helpimg).add(new AttributeModifier(alt, new Model(Vis hjælp til + subj; this apparently recreated the link to our image aswell so it got the page and parameters prepended. I got it workingJ I must say that sometimes I wish I had a parrot as most of my problems seems to be solved when trying to explain what Im trying to doJ Regards Nino From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: 27. oktober 2006 09:37 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] mountBookmarkablePage use absolute paths for your images and you wont have this problem or mount with a querystringurlcodingstrategy so your url will be application/page?parama=valueparamb=value -Igor On 10/27/06, Nino Wael [EMAIL PROTECTED] wrote: Hi I have a page that are set as mountBookmarkablePage, and it gets its parameters from the url etc http://localhost:8080/application/page/paramA/valueA/paramB/valueB When my page has picked up the parameters i wish to clear them so that my url becomes something like http://localhost:8080/application/page . Reason why I want to do this are that some of the other pages I have some of the image references get smashed so image ref should have been: http://localhost:8080/application/ui/i/ikon-help.gif but are instead : http://localhost:8080/application/page/paramA/valueA/paramB/valueB/ui/i/ikon-help.gif Hoping for some answers. Regards Nino - 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] Why form validators are private?
button.setDefaultFormProcessing(false) public class Button extends FormComponent { /** * Sets the defaultFormProcessing property. When false (default is true), * all validation and formupdating is bypassed and the onSubmit method of * that button is called directly, and the onSubmit method of the parent * form is not called. A common use for this is to create a cancel button. * * @param defaultFormProcessing *defaultFormProcessing * @return This */ public final Button setDefaultFormProcessing(boolean defaultFormProcessing) } Martijn On 10/27/06, Alberto Bueno [EMAIL PROTECTED] wrote: I'm trying to overwrite the validateRequired of the Form, but this method is private. My problem is that I have two submit buttons: the first button is to insert the data into the database, and this button need to check the required fields. The another button is a confirm button that need to do the submit but I don't need to do the check for the required fields. The idea is to overwrite the validateRequired to control what button is clicked and to know if the fields have to be validated. Now the solution is to overwrite all fields of the form and overwrite the isRequired method. Do you know another idea to do this? Thanks - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - 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] Why form validators are private?
My problem is that the only validation that I don't want to do is the requiredValidation. I want to to the rest of the process. button.setDefaultFormProcessing(false) public class Button extends FormComponent { /** * Sets the defaultFormProcessing property. When false (default is true), * all validation and formupdating is bypassed and the onSubmit method of * that button is called directly, and the onSubmit method of the parent * form is not called. A common use for this is to create a cancel button. * * @param defaultFormProcessing *defaultFormProcessing * @return This */ public final Button setDefaultFormProcessing(boolean defaultFormProcessing) } Martijn On 10/27/06, Alberto Bueno [EMAIL PROTECTED] wrote: I'm trying to overwrite the validateRequired of the Form, but this method is private. My problem is that I have two submit buttons: the first button is to insert the data into the database, and this button need to check the required fields. The another button is a confirm button that need to do the submit but I don't need to do the check for the required fields. The idea is to overwrite the validateRequired to control what button is clicked and to know if the fields have to be validated. Now the solution is to overwrite all fields of the form and overwrite the isRequired method. Do you know another idea to do this? Thanks - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wicket changes relative urls to static ones - and messes up my deployment.
Hi there. Thanks for a great framework. Is it possible to control this behaviour or work around it? When I have this in my html template: link href=style.css media=screen rel=Stylesheet type=text/css/ And I deploy it in my servlet container (which is tomcat 5.5) it is changed to: link href=/my-web-app/style.css media=screen rel=Stylesheet type=text/css/ That is: Wicket changes my relative URL into an absolute URL based on the path where the application is mounted. The same goes for other URLs - ie. inside an img tag. When I am deploying my web application I have an Apache 2 web server sitting in front which is doing virtual hosting and proxying. This requires the URLs to be relative. -- Christian - 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] Why form validators are private?
we could make the protected final so that you can add your own method that calls the validation methods you do want.On 10/27/06, Alberto Bueno [EMAIL PROTECTED] wrote:My problem is that the only validation that I don't want to do is the requiredValidation. I want to to the rest of the process. button.setDefaultFormProcessing(false) public class Button extends FormComponent { /*** Sets the defaultFormProcessing property. When false (default is true), * all validation and formupdating is bypassed and the onSubmit method of* that button is called directly, and the onSubmit method of the parent* form is not called. A common use for this is to create a cancel button. ** @param defaultFormProcessing*defaultFormProcessing* @return This*/ public final Button setDefaultFormProcessing(boolean defaultFormProcessing) } Martijn On 10/27/06, Alberto Bueno [EMAIL PROTECTED] wrote: I'm trying to overwrite the validateRequired of the Form, but this method is private. My problem is that I have two submit buttons: the first button is to insert the data into the database, and this button need to check the required fields. The another button is a confirm button that need to do the submit but I don't need to do the check for the required fields. The idea is to overwrite the validateRequired to control what button is clicked and to know if the fields have to be validated. Now the solution is to overwrite all fields of the form and overwrite the isRequired method. Do you know another idea to do this? Thanks - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job 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] Why form validators are private?
It would be a very good idea. ;) we could make the protected final so that you can add your own method that calls the validation methods you do want. On 10/27/06, *Alberto Bueno* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: My problem is that the only validation that I don't want to do is the requiredValidation. I want to to the rest of the process. button.setDefaultFormProcessing(false) public class Button extends FormComponent { /** * Sets the defaultFormProcessing property. When false (default is true), * all validation and formupdating is bypassed and the onSubmit method of * that button is called directly, and the onSubmit method of the parent * form is not called. A common use for this is to create a cancel button. * * @param defaultFormProcessing *defaultFormProcessing * @return This */ public final Button setDefaultFormProcessing(boolean defaultFormProcessing) } Martijn On 10/27/06, Alberto Bueno [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I'm trying to overwrite the validateRequired of the Form, but this method is private. My problem is that I have two submit buttons: the first button is to insert the data into the database, and this button need to check the required fields. The another button is a confirm button that need to do the submit but I don't need to do the check for the required fields. The idea is to overwrite the validateRequired to control what button is clicked and to know if the fields have to be validated. Now the solution is to overwrite all fields of the form and overwrite the isRequired method. Do you know another idea to do this? Thanks - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 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 - 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 - 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] Wicket changes relative urls to static ones - and messes up my deployment
I am resending this one as there seem to be some problems with sourceforge's mailing lists and gmail: Hi there. Thanks for a great framework. Is it possible to control this behaviour or work around it? When I have this in my html template: link href=style.css media=screen rel=Stylesheet type=text/css/ And I deploy it in my servlet container (which is tomcat 5.5) it is changed to: link href=/my-web-app/style.css media=screen rel=Stylesheet type=text/css/ That is: Wicket changes my relative URL into an absolute URL based on the path where the application is mounted. The same goes for other URLs - ie. inside an img tag. When I am deploying my web application I have an Apache 2 web server sitting in front which is doing virtual hosting and proxying. This requires the URLs to be relative. -- Christian - 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 changes relative urls to static ones - and messes up my deployment.
HeyTake a look at:http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-HowtofixWicketgeneratedlinks FrankOn 10/27/06, Christian Hvid [EMAIL PROTECTED] wrote: Hi there.Thanks for a great framework.Is it possible to control this behaviour or work around it?When I have this in my html template:link href="" media=screen rel=Stylesheet type=text/css/ And I deploy it in my servlet container (which is tomcat 5.5) it is changed to:link href="" media=screen rel=Stylesheettype=text/css/ That is: Wicket changes my relative URL into an absolute URL based onthe path where the application is mounted.The same goes for other URLs - ie. inside an img tag.When I am deploying my web application I have an Apache 2 web server sitting in front which is doing virtual hosting and proxying. Thisrequires the URLs to be relative.-- Christian-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] Wicket changes relative urls to static ones - and messes up my deployment
http://www.nabble.com/Wicket-changes-relative-urls-to-static-ones---and-messes-up-my-deployment.-tf2519507.html :)On 10/27/06, Christian Hvid [EMAIL PROTECTED] wrote: I am resending this one as there seem to be some problems withsourceforge's mailing lists and gmail:Hi there.Thanks for a great framework.Is it possible to control this behaviour or work around it? When I have this in my html template:link href="" media=screen rel=Stylesheet type=text/css/And I deploy it in my servlet container (which is tomcat 5.5) it ischanged to:link href="" media=screen rel=Stylesheettype=text/css/That is: Wicket changes my relative URL into an absolute URL based on the path where the application is mounted.The same goes for other URLs - ie. inside an img tag.When I am deploying my web application I have an Apache 2 web serversitting in front which is doing virtual hosting and proxying. This requires the URLs to be relative.-- Christian-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] How to remove a behavior
I'm trying to remove a behavior from a component, but the method getBehaviors returns an unmodifiableList and I cannot remove the behavior. My problem if that the rendering of a component depends of a mode, and if the mode is view then the component have a AbstractTransformerBehavior (to change the rendering), but if I refresh the page and the mode has been changed, then I have to remove this behavior. Do you have any idea to implement this case? Thanks - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to remove a behavior
Disable the modifier by overriding the isEnabled() method of the behavior. Martijn On 10/27/06, Alberto Bueno [EMAIL PROTECTED] wrote: I'm trying to remove a behavior from a component, but the method getBehaviors returns an unmodifiableList and I cannot remove the behavior. My problem if that the rendering of a component depends of a mode, and if the mode is view then the component have a AbstractTransformerBehavior (to change the rendering), but if I refresh the page and the mode has been changed, then I have to remove this behavior. Do you have any idea to implement this case? Thanks - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- a href=http://www.thebeststuffintheworld.com/vote_for/wicket;Vote/a for a href=http://www.thebeststuffintheworld.com/stuff/wicket;Wicket/a at the a href=http://www.thebeststuffintheworld.com/;Best Stuff in the World!/a - 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 changes relative urls to static ones - and messes up my deployment.
Thank you. That did it. I only noticed the new wiki now; it is beautiful. On 10/27/06, Frank Bille [EMAIL PROTECTED] wrote: Hey Take a look at: http://cwiki.apache.org/WICKET/wicket-behind-a-front-end-proxy.html#Wicketbehindafront-endproxy-HowtofixWicketgeneratedlinks Frank On 10/27/06, Christian Hvid [EMAIL PROTECTED] wrote: Hi there. Thanks for a great framework. Is it possible to control this behaviour or work around it? When I have this in my html template: link href=style.css media=screen rel=Stylesheet type=text/css/ And I deploy it in my servlet container (which is tomcat 5.5) it is changed to: link href=/my-web-app/style.css media=screen rel=Stylesheet type=text/css/ That is: Wicket changes my relative URL into an absolute URL based on the path where the application is mounted. The same goes for other URLs - ie. inside an img tag. When I am deploying my web application I have an Apache 2 web server sitting in front which is doing virtual hosting and proxying. This requires the URLs to be relative. -- Christian - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Why form validators are private?
Please add a feature request in JIRA so that we don't forget about it. Eelco On 10/27/06, Alberto Bueno [EMAIL PROTECTED] wrote: It would be a very good idea. ;) - 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] TextTemplate For CSS Generation?
You could take a look at wicket.extensions.util.resource.TextTemplateSharedResourceFactory method resourceReference. Eelco On 10/25/06, Jonathan Sharp [EMAIL PROTECTED] wrote: I'm new to wicket so bear with me... I want our base page to generate a link tag back to the Wicket object which will output the CSS (as opposed to inline in the header). I'm thinking it'd be easiest to have the CSS object write to the output stream directly. A few questions, what class (or interface) should my CSS object extend and what should I use to add a link tag reference to it in the head of my page? (HeaderContributor.forCss(ClassName.class) is depricated in our version). Also I'm planning on accessing the ClientProperties object to do browser detected for some customized CSS rules. Cheers, -js On 10/25/06, Igor Vaynberg [EMAIL PROTECTED] wrote: it wouldnt be a bad start -igor On 10/25/06, Jonathan Sharp [EMAIL PROTECTED] wrote: I'm attempting to develop a package that dynamically generates an external CSS file. Is using the TextTemplate the best route to go for this? Cheers, -Jonathan - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] location.href not working on button
Never encountered this. If you have it reproducable and think it is something Wicket could fix, please share. Eelco On 10/23/06, Steve Knight [EMAIL PROTECTED] wrote: Hello, I have a Cancel button in my forms that, when clicked, should redirect the user back to the previous page. This works fine in all but one of my forms. It is almost identical to all the others, so I don't know why it doesn't work. I am simply using setResponsePage(backPage) in the onClick method of the button, and it generates the correct onclick code. After doing some research, I have found other people with the same javascript issue and it seems to be that 'location.href=' doesn't always work inside of forms. To test this I created another button and tried using ' self.location= ', and it works fine. Anyone else run into this problem before or know of any workarounds? Steve - 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] TextTemplate For CSS Generation?
Thanks for all of the responses, here's what I ended up doing. (If there's a better wicket way please feel free to correct me)public class StyleSheet extends WebPage { public StyleSheet() { String css = #antiFooter{ border: 5px solid green; }; StringResourceStream stream = new StringResourceStream(css, text/css); ResourceStreamRequestTarget t = new ResourceStreamRequestTarget(stream, stream.getContentType()); RequestCycle.get().setRequestTarget(t); }}Cheers,-jsOn 10/27/06, Eelco Hillenius [EMAIL PROTECTED] wrote:You could take a look atwicket.extensions.util.resource.TextTemplateSharedResourceFactory method resourceReference.EelcoOn 10/25/06, Jonathan Sharp [EMAIL PROTECTED] wrote: I'm new to wicket so bear with me... I want our base page to generate a link tag back to the Wicket object which will output the CSS (as opposed to inline in the header). I'm thinking it'd be easiest to have the CSS object write to the output stream directly. A few questions, what class (or interface) should my CSS object extend and what should I use to add a link tag reference to it in the head of my page? (HeaderContributor.forCss(ClassName.class) is depricated in our version). Also I'm planning on accessing the ClientProperties object to do browser detected for some customized CSS rules. Cheers, -js On 10/25/06, Igor Vaynberg [EMAIL PROTECTED] wrote: it wouldnt be a bad start -igor On 10/25/06, Jonathan Sharp [EMAIL PROTECTED] wrote: I'm attempting to develop a package that dynamically generates an external CSS file. Is using the TextTemplate the best route to go for this? Cheers, -Jonathan - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job 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] Wicket 1.2.2 home page loads twice
is it the issue described in the entry best practices and gotchas in the wiki? This is horrible if it can still happen in 1.2.2. Maybe, this is a feature and not a bug.*PEACE OUT* :-) On 27/10/06, Flavius [EMAIL PROTECTED] wrote: I found the issue.I'm putting the images in for the home page.One tag didn't have an entry for the src, likeimg src="" . . . .That was calling the home page.:-( --View this message in context: http://www.nabble.com/Wicket-1.2.2-home-page-loads-twice-tf2515875.html#a7022847 Sent from the Wicket - User mailing list archive 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] mountBookmarkablePage
I got it working J I must say that sometimes I wish I had a parrot as most of my problems seems to be solved when trying to explain what Im trying to doJ :)-igor - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket 1.2.2 home page loads twice
yes it is the issue.this is nothing we can really fix - it is the browser's fault. i think only firefox does this but i dont remember for sure. i dont see why when it encounters src="" on an img it sends another request to the url that generated the page. seems silly. they prob dont check for the empty string in their code. -igorOn 10/27/06, Otan [EMAIL PROTECTED] wrote: is it the issue described in the entry best practices and gotchas in the wiki? This is horrible if it can still happen in 1.2.2. Maybe, this is a feature and not a bug.*PEACE OUT* :-) On 27/10/06, Flavius [EMAIL PROTECTED] wrote: I found the issue.I'm putting the images in for the home page.One tag didn't have an entry for the src, likeimg src="" . . . .That was calling the home page.:-( --View this message in context: http://www.nabble.com/Wicket-1.2.2-home-page-loads-twice-tf2515875.html#a7022847 Sent from the Wicket - User mailing list archive 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.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] TextTemplate For CSS Generation?
I wouldn't make it a page. I think TextTemplateSharedResourceFactory or other using one of the other classes in that package is better. If you don't want to use that, you would still be better off creating a resource for it and serving that through a component (see ResourceLink for how you could do that). Eelco On 10/27/06, Jonathan Sharp [EMAIL PROTECTED] wrote: Thanks for all of the responses, here's what I ended up doing. (If there's a better wicket way please feel free to correct me) public class StyleSheet extends WebPage { public StyleSheet() { String css = #antiFooter{ border: 5px solid green; }; StringResourceStream stream = new StringResourceStream(css, text/css); ResourceStreamRequestTarget t = new ResourceStreamRequestTarget(stream, stream.getContentType()); RequestCycle.get().setRequestTarget(t); } } Cheers, -js On 10/27/06, Eelco Hillenius [EMAIL PROTECTED] wrote: You could take a look at wicket.extensions.util.resource.TextTemplateSharedResourceFactory method resourceReference. Eelco On 10/25/06, Jonathan Sharp [EMAIL PROTECTED] wrote: I'm new to wicket so bear with me... I want our base page to generate a link tag back to the Wicket object which will output the CSS (as opposed to inline in the header). I'm thinking it'd be easiest to have the CSS object write to the output stream directly. A few questions, what class (or interface) should my CSS object extend and what should I use to add a link tag reference to it in the head of my page? (HeaderContributor.forCss(ClassName.class) is depricated in our version). Also I'm planning on accessing the ClientProperties object to do browser detected for some customized CSS rules. Cheers, -js On 10/25/06, Igor Vaynberg [EMAIL PROTECTED] wrote: it wouldnt be a bad start -igor On 10/25/06, Jonathan Sharp [EMAIL PROTECTED] wrote: I'm attempting to develop a package that dynamically generates an external CSS file. Is using the TextTemplate the best route to go for this? Cheers, -Jonathan - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___
Re: [Wicket-user] AjaxTabbedPanel is broken (wicket-1.2.2)
I remember making AjaxTabbedPAnel not versioned couple of days ago, which solved this problem. Still should be done for AjaxFallbackDefaultDataTable. It doesn't make sense to use versioning with ajax components. -Matej Ingram Chen wrote: I found that this issue: http://www.nabble.com/--wicket-Bugs-1549248---ajax-and-versioning-tf2189645.html is similar, and I turn off page versioning, it works well. This is enough for my project now. Anyway, Thank your adivse. On 8/30/06, *Gwyn Evans* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 30/08/06, Ingram Chen [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I found that this also happend to AjaxFallBackDefaultDataTable... seems not a problem for particular component. Is this bug already fixed in SVN or any work around I can do ? My project is stopped due to this problem Well, try a fall-back to 1.2.1 see if that was OK? Was there anything in 1.2.2 that you required as part of your project? /Gwyn - 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 -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - 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] submit through Enter will ignore AjaxSubmitButton
hello, I have wrote a form on the page, it only have one TextField and one IndicatingAjaxSubmitButton, I input some text in the TextField and click Enter, the page will refresh but not submit, the button work well. I'm using wicket1.2.2, this problem happen in IE6. In FireFox, click Enter will submit the form through button. final SearchBean bean = new SearchBean(); Form form = new Form(searchForm, new Model(bean)); add(form); form.add(new RequiredTextField(searchString, new PropertyModel(bean, searchString))); form.add(new IndicatingAjaxSubmitButton(search, form) { private static final long serialVersionUID = 1L; @Override protected void onSubmit(AjaxRequestTarget target, Form form) { SearchBean temp = (SearchBean) form.getModelObject(); InfoSearchListPanel panel = new InfoSearchListPanel( HomePage.PANEL_ID, temp.getSearchString()); getPage().replace(panel); target.addComponent(panel); } }); BUT, I write another form, the code looks like above, click Enter will submit the form through button in IE6. Form form = new Form(infoForm, new Model(info)); add(form); form.add(new RequiredTextField(date, new PropertyModel(info, date), Date.class));//I have replace the id from chinese to english form.add(new RequiredTextField(title, new PropertyModel(info, title)) .add(StringValidator.maximumLength(200))); final RequiredTextField labelField = new RequiredTextField(label, new PropertyModel(info, label)); labelField.add(StringValidator.maximumLength(40)); form.add(labelField); DropDownChoice labelChoice = new DropDownChoice(labelChoice, new Model( tempString), dao.labelList(), new IChoiceRenderer() { private static final long serialVersionUID = 1L; public Object getDisplayValue(Object arg0) { return arg0; } public String getIdValue(Object arg0, int arg1) { return arg0.toString(); } }); form.add(labelChoice); form.add(new TextField(keywords, new PropertyModel(info, keywords)) .add(StringValidator.maximumLength(200))); form.add(new TextArea(content, new PropertyModel(info, content))); form.add(new IndicatingAjaxSubmitButton(save, form) { private static final long serialVersionUID = 1L; @Override protected void onError(AjaxRequestTarget target, Form form) { target.addComponent(feedback); } @Override protected void onSubmit(AjaxRequestTarget target, Form form) { Info info = (Info) form.getModelObject(); dao.save(info); getPage().replace(backPanel); target.addComponent(backPanel); } }); Why this? I don't think the two copy of code has any essential difference, this problem is too strange. best regard deafwolf - 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] AjaxTabbedPanel is broken (wicket-1.2.2)
i dont see why this has to be done on a component level - i thought our ajax request target disabled versioning while it was executing???-igorOn 10/27/06, Matej Knopp [EMAIL PROTECTED] wrote:I remember making AjaxTabbedPAnel not versioned couple of days ago, which solved this problem. Still should be done forAjaxFallbackDefaultDataTable.It doesn't make sense to use versioning with ajax components.-MatejIngram Chen wrote: I found that this issue: http://www.nabble.com/--wicket-Bugs-1549248---ajax-and-versioning-tf2189645.html is similar, and I turn off page versioning, it works well. This is enough for my project now. Anyway, Thank your adivse. On 8/30/06, *Gwyn Evans* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: On 30/08/06, Ingram Chen [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I found that this also happend to AjaxFallBackDefaultDataTable... seems not a problem for particular component. Is this bug already fixed in SVN or any work around I can do ? My project is stopped due to this problem Well, try a fall-back to 1.2.1 see if that was OK?Was there anything in 1.2.2 that you required as part of your project? /Gwyn - 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 -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user- 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] submit through Enter will ignore AjaxSubmitButton
this is a browser featurewhat you can do is add the behavior below to all textfields in the form/*** Behavior that traps the enter key press* * @author ivaynberg*/public class EnterKeyTrap extends AbstractBehavior implements IHeaderContributor { @Override public void onComponentTag(Component component, ComponentTag tag) { tag.put(onkeydown, return ekt(event)!=13); } public void renderHead(Response response) { response.write(_javascript_Utils.SCRIPT_OPEN_TAG); response.write(function ekt(e){if(typeof(e.keyCode)==\undefined\){return e.which;}else{return e.keyCode;}}); response.write (_javascript_Utils.SCRIPT_CLOSE_TAG); }}-igorOn 10/27/06, deafwolf [EMAIL PROTECTED] wrote:hello,I have wrote a form on the page,it only have one TextField and one IndicatingAjaxSubmitButton, I input some text in the TextField and click Enter,the page will refresh but not submit, the button work well.I'm using wicket1.2.2, this problem happen in IE6.In FireFox, click Enter will submit the form through button. final SearchBean bean = new SearchBean();Form form = new Form(searchForm, new Model(bean));add(form);form.add(new RequiredTextField(searchString, new PropertyModel(bean,searchString))); form.add(new IndicatingAjaxSubmitButton(search, form) {private static final long serialVersionUID = 1L;@Overrideprotected void onSubmit(AjaxRequestTarget target, Form form) { SearchBean temp = (SearchBean) form.getModelObject();InfoSearchListPanel panel = new InfoSearchListPanel(HomePage.PANEL_ID, temp.getSearchString()); getPage().replace(panel);target.addComponent(panel);}});BUT,I write another form, the code looks like above,click Enter will submit the form through button in IE6. Form form = new Form(infoForm, new Model(info));add(form);form.add(new RequiredTextField(date, new PropertyModel(info, date),Date.class));//I have replace the id from chinese to english form.add(new RequiredTextField(title, new PropertyModel(info, title)).add(StringValidator.maximumLength(200)));final RequiredTextField labelField = new RequiredTextField(label, new PropertyModel(info, label));labelField.add(StringValidator.maximumLength(40));form.add(labelField);DropDownChoice labelChoice = new DropDownChoice(labelChoice, new Model( tempString), dao.labelList(), new IChoiceRenderer() {private static final long serialVersionUID = 1L;public Object getDisplayValue(Object arg0) {return arg0; }public String getIdValue(Object arg0, int arg1) {return arg0.toString();}});form.add(labelChoice);form.add(new TextField(keywords, new PropertyModel(info, keywords)) .add(StringValidator.maximumLength(200)));form.add(new TextArea(content, new PropertyModel(info, content)));form.add(new IndicatingAjaxSubmitButton(save, form) { private static final long serialVersionUID = 1L;@Overrideprotected void onError(AjaxRequestTarget target, Form form) {target.addComponent(feedback);} @Overrideprotected void onSubmit(AjaxRequestTarget target, Form form) {Info info = (Info) form.getModelObject();dao.save(info);getPage().replace(backPanel); target.addComponent(backPanel);}});Why this? I don't think the two copy of code has any essential difference,this problem is too strange.best regarddeafwolf -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] getting pageParameters in a panel
Hi, ive got a small problem, in wich im not sure how to solve it: Ive got a own IRequestStrategy that uses requestParameters and have a form-panel in the masterlayout that uses this submit: @Override public void onSubmit() { String suchFeld = getSuchfeld(); if(suchFeld.length()0) { PageParameters params = new PageParameters(); params.add("finde",suchFeld); setResponsePage(Suche.class,params); } else { setResponsePage(getPage().getClass(), new PageParameters(getPage().getRequest().getRequestParameters().getParameters())); } i now try in case nothing is specified to return the same page as before with same URL, however, how can i get all the RequestParameters from the page itself ? new PageParameters(getPage().getRequest().getRequestParameters().getParameters()) doenst work and getPage().getRequest().getRequestParameters() is also not helpful - what i need would be a getPage().getRequest().getPageRequestParameters(); how can i solve this ? Best Regards, Korbinian - 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] getting pageParameters in a panel
String querystring=((WebRequest)getRequest()).getHttpServletRequest().getQueryString();PageParameters p=new PageParameters(querystring,);try that-igor On 10/27/06, Korbinian Bachl [EMAIL PROTECTED] wrote: Hi, ive got a small problem, in wich im not sure how to solve it: Ive got a own IRequestStrategy that uses requestParameters and have a form-panel in the masterlayout that uses this submit: @Override public void onSubmit() { String suchFeld = getSuchfeld(); if(suchFeld.length()0) { PageParameters params = new PageParameters(); params.add(finde,suchFeld); setResponsePage(Suche.class,params); } else { setResponsePage(getPage().getClass(), new PageParameters(getPage().getRequest().getRequestParameters().getParameters())); } i now try in case nothing is specified to return the same page as before with same URL, however, how can i get all the RequestParameters from the page itself ? new PageParameters(getPage().getRequest().getRequestParameters().getParameters()) doenst work and getPage().getRequest().getRequestParameters() is also not helpful - what i need would be a getPage().getRequest().getPageRequestParameters(); how can i solve this ? Best Regards, Korbinian -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] getting pageParameters in a panel
Thank you very much igor, you saved my day ! :) Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Igor VaynbergGesendet: Freitag, 27. Oktober 2006 18:50An: wicket-user@lists.sourceforge.netBetreff: Re: [Wicket-user] getting pageParameters in a panel String querystring=((WebRequest)getRequest()).getHttpServletRequest().getQueryString();PageParameters p=new PageParameters(querystring,"");try that-igor On 10/27/06, Korbinian Bachl [EMAIL PROTECTED] wrote: Hi, ive got a small problem, in wich im not sure how to solve it: Ive got a own IRequestStrategy that uses requestParameters and have a form-panel in the masterlayout that uses this submit: @Override public void onSubmit() { String suchFeld = getSuchfeld(); if(suchFeld.length()0) { PageParameters params = new PageParameters(); params.add("finde",suchFeld); setResponsePage(Suche.class,params); } else { setResponsePage(getPage().getClass(), new PageParameters(getPage().getRequest().getRequestParameters().getParameters())); } i now try in case nothing is specified to return the same page as before with same URL, however, how can i get all the RequestParameters from the page itself ? new PageParameters(getPage().getRequest().getRequestParameters().getParameters()) doenst work and getPage().getRequest().getRequestParameters() is also not helpful - what i need would be a getPage().getRequest().getPageRequestParameters(); how can i solve this ? Best Regards, Korbinian-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] AjaxTabbedPanel is broken (wicket-1.2.2)
Yes, but reloading of page means removing / creating children, thus increasing page version. Though the url didn't change. -Matej Igor Vaynberg wrote: i dont see why this has to be done on a component level - i thought our ajax request target disabled versioning while it was executing??? -igor On 10/27/06, * Matej Knopp* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I remember making AjaxTabbedPAnel not versioned couple of days ago, which solved this problem. Still should be done for AjaxFallbackDefaultDataTable. It doesn't make sense to use versioning with ajax components. -Matej Ingram Chen wrote: I found that this issue: http://www.nabble.com/--wicket-Bugs-1549248---ajax-and-versioning-tf2189645.html is similar, and I turn off page versioning, it works well. This is enough for my project now. Anyway, Thank your adivse. On 8/30/06, *Gwyn Evans* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 30/08/06, Ingram Chen [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I found that this also happend to AjaxFallBackDefaultDataTable... seems not a problem for particular component. Is this bug already fixed in SVN or any work around I can do ? My project is stopped due to this problem Well, try a fall-back to 1.2.1 see if that was OK? Was there anything in 1.2.2 that you required as part of your project? /Gwyn - 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 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 mailto: 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 -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 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 - 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
Re: [Wicket-user] AjaxTabbedPanel is broken (wicket-1.2.2)
but when you reload the page it is not an ajax request - so it should be versioned!the ajax urls should not be targetted at a specific page version so it should all work no?-igor On 10/27/06, Matej Knopp [EMAIL PROTECTED] wrote: Yes, but reloading of page means removing / creating children, thusincreasing page version. Though the url didn't change.-MatejIgor Vaynberg wrote: i dont see why this has to be done on a component level - i thought our ajax request target disabled versioning while it was executing??? -igor On 10/27/06, * Matej Knopp* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: I remember making AjaxTabbedPAnel not versioned couple of days ago, which solved this problem. Still should be done for AjaxFallbackDefaultDataTable. It doesn't make sense to use versioning with ajax components. -Matej Ingram Chen wrote: I found that this issue: http://www.nabble.com/--wicket-Bugs-1549248---ajax-and-versioning-tf2189645.html is similar, and I turn off page versioning, it works well. This is enough for my project now. Anyway, Thank your adivse. On 8/30/06, *Gwyn Evans* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: On 30/08/06, Ingram Chen [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I found that this also happend to AjaxFallBackDefaultDataTable... seems not a problem for particular component. Is this bug already fixed in SVN or any work around I can do ? My project is stopped due to this problem Well, try a fall-back to 1.2.1 see if that was OK?Was there anything in 1.2.2 that you required as part of your project? /Gwyn - 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 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 mailto: 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 -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 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 - 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
[Wicket-user] mainland respect
Product offers quiet operation under extreme conditions. Product offers quiet operation under extreme conditions. beating them out of the gate is new-kid on the . Including automation features such as SCPI and C-library, multi-port product enables traffic generation, filtering, and analysis. Read more in the ZOOMON Press Release. I went to get one earlier, and. It supports video-over-IP and Gigabit Ethernet to desktop. Their designs are similar, and yet. However, there were a few other interesting stories as well and this show features art by Ami, Garver and Kat. An evaluation version is available for download. However, I'm not perfect, lol, and I have some stretch marks on my lower back. I am really into tattoos and piercings and I want to own a tattoo and piercing shop one day. beating them out of the gate is new-kid on the . Previously only available by invitation, the service is now allowing anyone with a US mobile phone to sign up. Previously only available by invitation, the service is now allowing anyone with a US mobile phone to sign up. Next week, an update will be released which . Their method essentially, is to use more keywords. Including automation features such as SCPI and C-library, multi-port product enables traffic generation, filtering, and analysis. After the great fire of London, Sir Christopher Wren set to work rebuilding the city. The remains a free edition for anyone wanting . beating them out of the gate is new-kid on the . The new version is a free upgrade for anyone who has purchased the Pro edition. Product offers quiet operation under extreme conditions. The remains a free edition for anyone wanting . It integrates the Batik toolkit to enable SVG generation. Industrial, multi-protocol RFID solution is suitable for high-volume and on-demand smart label printing and RFID tag encoding. While it was being built, the startling, shell-shaped structure. - 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] Gwyn, Igor...any comments?
had time to take a peek. looks neat. curious, why do you need to clear databasesession? like in count the first thing you do is dbSess.clear(); ? or why are you using it as a singleton? why not session-per-request? or a threadlocal? if you are going to use this to sell shades to noobs i would change a few things that would scare them away:instead of ORMDictionary dict = ShadesORMDictionary.getInstance(); i would make it a spring bean and get it through the context - the whole point of spring is to get rid of static injection. same for orm property of the daosame for dbsession if its really meant to be used that way - as a singleton need some connection support code to implement single-connection-per-request. it sucks that every dao op pulls a connection from the datasource imho - cant have transactions that span multiple calls to dao? need to get rid of all the try/catch/finally - that code looks scarry and is replicated in every methodanother thing that would be great to see is how associations are handled - phonebook is not really meant to demo the persistence framework, more the integration thereof with wicket. oh, and when i load it up and hit the list page i see the query to select all the contacts followed by a select-by-id query for each contact, why is that? bug?nice job,-igor On 10/25/06, Geoff hendrey [EMAIL PROTECTED] wrote: Hey Guys,I was wondering if you had a chance to checkout the integration of Shades with the Phonebook. Is there any way I can make shades more tightly integrated with Wicket?Does Wicket need a default persistence mechanism? -geoff-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.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Problem with RestartResponseAtInterceptPageException?
Hello,Here is my setup:1. I have an AuthorizationStrategy which checks a page to see if the SIgnIn is required. If it is, it throws a RestartResponseAtInterceptPageException to my SignInPage.2. I have a page which has a form which does some validation and when you click submit it goes to a page that requires the user to be logged in and it hits the AuthStrategy I wrote in #1. The problem I'm having is that when you click submit on the form (with no validation errors), and then go to the signin page, and then actually sign in, it takes me back to the form page with a validation error saying that the fields are not filled in. Why is it not going to the original destination? Thanks,Andrew - 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 RestartResponseAtInterceptPageException?
original destination is the url - the page that the form is onthe exception does not remember params submitted via post - this does pop up now and then, any reason why you dont do the auth check before the form submit? thats the easy way out the hard way out is to submit an rfe to our jira, and even better a patch-igorOn 10/27/06, Andrew Berman [EMAIL PROTECTED] wrote:Hello,Here is my setup:1. I have an AuthorizationStrategy which checks a page to see if the SIgnIn is required. If it is, it throws a RestartResponseAtInterceptPageException to my SignInPage. 2. I have a page which has a form which does some validation and when you click submit it goes to a page that requires the user to be logged in and it hits the AuthStrategy I wrote in #1. The problem I'm having is that when you click submit on the form (with no validation errors), and then go to the signin page, and then actually sign in, it takes me back to the form page with a validation error saying that the fields are not filled in. Why is it not going to the original destination? Thanks,Andrew -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 RestartResponseAtInterceptPageException?
Igor,For the onSubmit of the form's button, though, I do a setResponsePage(MyPageThatRequiresSignIn.class);So shouldn't the original destination be the page I'm trying to go to?--Andrew On 10/27/06, Igor Vaynberg [EMAIL PROTECTED] wrote: original destination is the url - the page that the form is onthe exception does not remember params submitted via post - this does pop up now and then, any reason why you dont do the auth check before the form submit? thats the easy way out the hard way out is to submit an rfe to our jira, and even better a patch-igorOn 10/27/06, Andrew Berman [EMAIL PROTECTED] wrote: Hello,Here is my setup:1. I have an AuthorizationStrategy which checks a page to see if the SIgnIn is required. If it is, it throws a RestartResponseAtInterceptPageException to my SignInPage. 2. I have a page which has a form which does some validation and when you click submit it goes to a page that requires the user to be logged in and it hits the AuthStrategy I wrote in #1. The problem I'm having is that when you click submit on the form (with no validation errors), and then go to the signin page, and then actually sign in, it takes me back to the form page with a validation error saying that the fields are not filled in. Why is it not going to the original destination? Thanks,Andrew -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] Wicket 1.2.2 home page loads twice
Someone has already reported this issue to mozilla. The bug id is 357103 The status of the bug is UNCONFIRMED and is assigned to [EMAIL PROTECTED]. Let's vote for this issue to get it fixed.On 27/10/06, Igor Vaynberg [EMAIL PROTECTED] wrote:yes it is the issue.this is nothing we can really fix - it is the browser's fault. i think only firefox does this but i dont remember for sure. i dont see why when it encounters src="" on an img it sends another request to the url that generated the page. seems silly. they prob dont check for the empty string in their code. -igorOn 10/27/06, Otan [EMAIL PROTECTED] wrote: is it the issue described in the entry best practices and gotchas in the wiki? This is horrible if it can still happen in 1.2.2. Maybe, this is a feature and not a bug.*PEACE OUT* :-) On 27/10/06, Flavius [EMAIL PROTECTED] wrote: I found the issue.I'm putting the images in for the home page.One tag didn't have an entry for the src, likeimg src="" . . . .That was calling the home page.:-( --View this message in context: http://www.nabble.com/Wicket-1.2.2-home-page-loads-twice-tf2515875.html#a7022847 Sent from the Wicket - User mailing list archive 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.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] shades feedback
-- Message: 1 Date: Fri, 27 Oct 2006 16:58:24 -0400 From: Elinor Nolan [EMAIL PROTECTED] Subject: [Wicket-user] mainland respect To: wicket-user@lists.sourceforge.net Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=us-ascii had time to take a peek. looks neat. curious, why do you need to clear databasesession? like in count the first thing you do is dbSess.clear(); ? or why are you using it as a singleton? why not session-per-request? or a threadlocal? Thanks for the feedback. It's not a singleton. The dbSess, is set into the DAO. I assumes the DAO was not a singleton, so as long as there is a DAO per user's session, there will be a dbSess per user session. The DatabaseSession (dbSess) only keeps two pieces of state: 1) The parameters, which get substituted in for ${} variables. 2) a Record corresponding to each pojo. (the Record does change tracking for its corresponding POJO). So in cases when you don't need change tracking, like deleting it's OK to clear the session, but you don't have to. You DO want to clear the session after you flush state out to the database, like when you do an update. if you are going to use this to sell shades to noobs i would change a few things that would scare them away: instead of ORMDictionary dict = ShadesORMDictionary.getInstance(); i would make it a spring bean and get it through the context - the whole point of spring is to get rid of static injection. same for orm property of the dao good suggestion same for dbsession if its really meant to be used that way - as a singleton need some connection support code to implement single-connection-per-request. it sucks that every dao op pulls a connection from the datasource imho - cant have transactions that span multiple calls to dao? OK, I just implemented the DAO this way, because it appeared this DAO didn't need anything more. This is part of the DAO coding. need to get rid of all the try/catch/finally - that code looks scarry and is replicated in every method My thought there was that, sure it could get pushed to some utility class. I'm new to Spring. I don't want to just make some utility class that pushes the code somewhere else. If there's some way to make the try catches go away, by somehow having Spring manage it, that makes sense. another thing that would be great to see is how associations are handled - phonebook is not really meant to demo the persistence framework, more the integration thereof with wicket. oh, and when i load it up and hit the list page i see the query to select all the contacts followed by a select-by-id query for each contact, why is that? bug? As far as I could tell this is due to how the Phonebook code invokes the DAO. I was going to ask you why the DAO is used in such a way that it gets the collection, then reloads each item of the collection. I believe this is because the phonebook is detaching and reataching the pojos. This one thing that is great about Shades. You don't need any sort of detachment bunk, because the DatabaseSession is serializable, along with all the POJO's. So in order to eliminate the loads that occur each time you get an object by ID, you have to not invoke the method of the DAO that gets the object by ID, and that, unfortunately, is out of my hands. nice job, Thanks! my pleasure. -igor - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user