Re: Ajax not firing onSubmit after back-button press
Reading up on it now... On 12/18/2009 5:15 PM, McIlwee, Craig wrote: > Maybe wicket thinks that the ajax behavior belongs to a page that isn't the > current/active page and therefore is ignoring it? > http://wicket.apache.org/docs/1.4/org/apache/wicket/ajax/AbstractDefaultAjaxBehavior.html#getCallbackScript(boolean) > Just a guess, and I am likely to be wrong, but I though I'd throw it out > there. > > Craig > _ > > From: Kurt Heston [mailto:khes...@hestonsystems.com] > To: users@wicket.apache.org > Sent: Fri, 18 Dec 2009 19:45:36 -0500 > Subject: Re: Ajax not firing onSubmit after back-button press > > My Ajax calls are getting swallowed somewhere. Is there someplace I can > set a break-point to find out where it's dying? > > On 12/17/2009 11:28 AM, Kurt Heston wrote: > > I've read alot about ajax and the back button in the forums and on the > > web, but what I'm seeing looks to be a different problem in v1.4.3. I > > don't think it has anything to do with WICKET-271. > > > > I have some ajax in a panel that works perfectly after a page refresh > > but not after pressing the back button. I can see the call (POST) being > > made in FireBug and have confirmed it isn't being swallowed by Firefox > > caching with a JMeter proxy, but my onSubmit method isn't firing > > server-side. If I press the browser refresh button, onSubmit starts > > firing again. Not entirely sure, but I think this worked in v1.3.5. > > > > Suggestions? > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajax not firing onSubmit after back-button press
Maybe wicket thinks that the ajax behavior belongs to a page that isn't the current/active page and therefore is ignoring it? http://wicket.apache.org/docs/1.4/org/apache/wicket/ajax/AbstractDefaultAjaxBehavior.html#getCallbackScript(boolean) Just a guess, and I am likely to be wrong, but I though I'd throw it out there. Craig _ From: Kurt Heston [mailto:khes...@hestonsystems.com] To: users@wicket.apache.org Sent: Fri, 18 Dec 2009 19:45:36 -0500 Subject: Re: Ajax not firing onSubmit after back-button press My Ajax calls are getting swallowed somewhere. Is there someplace I can set a break-point to find out where it's dying? On 12/17/2009 11:28 AM, Kurt Heston wrote: > I've read alot about ajax and the back button in the forums and on the > web, but what I'm seeing looks to be a different problem in v1.4.3. I > don't think it has anything to do with WICKET-271. > > I have some ajax in a panel that works perfectly after a page refresh > but not after pressing the back button. I can see the call (POST) being > made in FireBug and have confirmed it isn't being swallowed by Firefox > caching with a JMeter proxy, but my onSubmit method isn't firing > server-side. If I press the browser refresh button, onSubmit starts > firing again. Not entirely sure, but I think this worked in v1.3.5. > > Suggestions? > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Ajax not firing onSubmit after back-button press
My Ajax calls are getting swallowed somewhere. Is there someplace I can set a break-point to find out where it's dying? On 12/17/2009 11:28 AM, Kurt Heston wrote: > I've read alot about ajax and the back button in the forums and on the > web, but what I'm seeing looks to be a different problem in v1.4.3. I > don't think it has anything to do with WICKET-271. > > I have some ajax in a panel that works perfectly after a page refresh > but not after pressing the back button. I can see the call (POST) being > made in FireBug and have confirmed it isn't being swallowed by Firefox > caching with a JMeter proxy, but my onSubmit method isn't firing > server-side. If I press the browser refresh button, onSubmit starts > firing again. Not entirely sure, but I think this worked in v1.3.5. > > Suggestions? > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: @RequireHttps - forms misbehaving
I was unable to re-create it in a simple web app w/ a few pages. However, no matter where I use it in my storefront app, it happens. It's very strange because it starts a page "late". I put the annotation on the User Account page, yet it doesn't switch to https until I reach the *following* page in the checkout process. I just stuck it on the general Login page that exists outside of the checkout process...and when I click the link from the home page to go to the Login page using setResponsePage(new Login()), it doesn't switch to https. Instead, I enter the user/pass and submit...THEN it goes to https, then I'm able to re-enter and login. Very strange behavior...I have no idea what might be causing it. I use various Panels throughout the side, would that have any influence on it? For example, the link in the header to go to the Login page is inside of a straightforward Panel. The entire site uses markup inheritance as well. On Fri, Dec 18, 2009 at 9:29 AM, VGJ wrote: > I'll create one and post it, if I can. > > -v > > > On Fri, Dec 18, 2009 at 9:21 AM, Igor Vaynberg wrote: > >> can you recreate in a quickstart? >> >> -igor >> >> On Fri, Dec 18, 2009 at 7:56 AM, VGJ wrote: >> > I'm now using @RequireHttps to switch to https on certain pages but it's >> not >> > quite working right. >> > >> > In our storefront app, I'm switching to https at the point in the >> checkout >> > process where you view your cart, and then proceed to a page to either >> login >> > or create an account. When I submit my username and password, the >> > validation fires as if I entered nothing into the form. Enter it a >> second >> > time and it works - the validation doesn't trigger. Everything was >> entered >> > correctly the first time around...so it's as if the form is being posted >> on >> > its own, when the page loads? Every page with @RequireHttps that has a >> > form, does this. >> > >> > What do I need to do to change to accommodate validation under >> @RequireHttps >> > pages? >> > >> > Currently you just see a lot of forms w/ fields like this: >> > >> > add(new TextField("username").setRequired(true)); >> > >> > ...with a pretty common feedback panel: >> > >> > >> > >> > >> > >> > Thanks! >> > >> > -v >> > >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >
RE: File Upload Issues
Doug, I retested on IE6, IE7, FF3 and IE6 is the only browser that the issue shows up in. IE7 and FF3.x seem to work just fine. In IE6 I have an "Add New" button that adds a row to a model in a listview and then via ajax updates the listviews container which in this case is a WebMarkupContainer (yes, setOutputMarkupId(true), is specified for all updatable components in the hierarchy - and we remove all elements prior to issuing the target.addComponent(...)). If the file upload component is present on the page, clicking the "Add New" button's onUpdate() gets called just fine, but the expected refresh behavior from the target.addComponent(...) has no effect. If I remove the upload component from the page, then the ajax begins functioning normally. I believe we saw this issue in 1.4.1 as well and had to patch our local version of the library. I will get more details on the patch we made, but were hoping this was fixed in 1.4.4. I believe we put in a JIRA issue around this problem. I'll try and get those details as well. J.D. -Original Message- From: Corbin, James [mailto:jcor...@iqnavigator.com] Sent: Friday, December 18, 2009 12:47 PM To: users@wicket.apache.org Subject: RE: File Upload Issues Ajax has stopped working. If I remove the file upload component, the ajax begins working as expected. Is there a workaround or a pending fix? Thanks, J.D. -Original Message- From: Douglas Ferguson [mailto:doug...@douglasferguson.us] Sent: Friday, December 18, 2009 12:03 PM To: users@wicket.apache.org Subject: Re: File Upload Issues There is a bug in 1.4.4. related to resource loading. Are you sure AJAX has stopped or is it just taking A REALLY LONG TIME? This is the reason they are trying to get 1.4.5 out quickly. D/ On Dec 18, 2009, at 10:15 AM, Corbin, James wrote: > Hello, > > > > I'm having issues in IE6 relating to the the File Upload Control after > upgrading to Wicket 1.4.4. > > > > If I attempt to put a file upload component onto a form that contains > other components that do ajax, everything stops working in regards to > ajax. > > > > Now I understand that the file upload component does NOT support ajax. > Does it follow that putting a file upload component on a form that does > ajax is not supported? > > > > J.D. > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: File Upload Issues
Ajax has stopped working. If I remove the file upload component, the ajax begins working as expected. Is there a workaround or a pending fix? Thanks, J.D. -Original Message- From: Douglas Ferguson [mailto:doug...@douglasferguson.us] Sent: Friday, December 18, 2009 12:03 PM To: users@wicket.apache.org Subject: Re: File Upload Issues There is a bug in 1.4.4. related to resource loading. Are you sure AJAX has stopped or is it just taking A REALLY LONG TIME? This is the reason they are trying to get 1.4.5 out quickly. D/ On Dec 18, 2009, at 10:15 AM, Corbin, James wrote: > Hello, > > > > I'm having issues in IE6 relating to the the File Upload Control after > upgrading to Wicket 1.4.4. > > > > If I attempt to put a file upload component onto a form that contains > other components that do ajax, everything stops working in regards to > ajax. > > > > Now I understand that the file upload component does NOT support ajax. > Does it follow that putting a file upload component on a form that does > ajax is not supported? > > > > J.D. > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Javascript Resources Loading Slow
http://markmail.org/thread/44hui777oz7rlg4w -igor On Fri, Dec 18, 2009 at 11:02 AM, Jered Myers wrote: > I just converted my code from Wicket 1.4m2 to 1.4.4 and am see performance > problems with resource load times. For example, when I load a page that has > a LinkTree in it, the browser takes a long time (20 - 30 seconds) to load > "http://localhost:8080/MyProject/resources/org.apache.wicket.markup.html.tree.BaseTree/res/base";. > I had a similar problem with a javascript file I was adding like so: > > private static final CompressedResourceReference PROTO_JS = new > CompressedResourceReference(ScriptaculousAjaxBehavior.class, > "prototype.js"); > ... > add(JavascriptPackageResource.getHeaderContribution(PROTO_JS)); > > When I commented these lines out, the problem went away. Any ideas why this > is so slow or what I can do to fix it? > > Jered > > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: File Upload Issues
There is a bug in 1.4.4. related to resource loading. Are you sure AJAX has stopped or is it just taking A REALLY LONG TIME? This is the reason they are trying to get 1.4.5 out quickly. D/ On Dec 18, 2009, at 10:15 AM, Corbin, James wrote: > Hello, > > > > I'm having issues in IE6 relating to the the File Upload Control after > upgrading to Wicket 1.4.4. > > > > If I attempt to put a file upload component onto a form that contains > other components that do ajax, everything stops working in regards to > ajax. > > > > Now I understand that the file upload component does NOT support ajax. > Does it follow that putting a file upload component on a form that does > ajax is not supported? > > > > J.D. > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Javascript Resources Loading Slow
I just converted my code from Wicket 1.4m2 to 1.4.4 and am see performance problems with resource load times. For example, when I load a page that has a LinkTree in it, the browser takes a long time (20 - 30 seconds) to load "http://localhost:8080/MyProject/resources/org.apache.wicket.markup.html.tree.BaseTree/res/base";. I had a similar problem with a javascript file I was adding like so: private static final CompressedResourceReference PROTO_JS = new CompressedResourceReference(ScriptaculousAjaxBehavior.class, "prototype.js"); ... add(JavascriptPackageResource.getHeaderContribution(PROTO_JS)); When I commented these lines out, the problem went away. Any ideas why this is so slow or what I can do to fix it? Jered
Re: applet in wicket .. exception thrown ...
i have attached the HELLOWORLD.class file James Carman-3 wrote: > > Email me the HelloWorld.class file directly. I can probably send you > back a working quickstart pretty quickly > > > On Fri, Dec 18, 2009 at 11:58 AM, local_shamil > wrote: >> >> the WEBAPP folder is in the SRC/MAIN/ folder... and the Helloworld.class >> file >> is in that ... >> >> :( >> >> >> James Carman-3 wrote: >>> >>> Look in your actual output folder (where the webapp is run from, >>> typically target/webapp or something like that). Is the >>> HelloWorld.class file there? >>> >>> On Fri, Dec 18, 2009 at 11:52 AM, local_shamil >>> wrote: well this is what i did ,, i created a quickstart wicket project ,,, then i added all the .java files including the applet.java file in to the src/main/java/ folder ... then when i run jetty, the files get complied and saved in the target/classes/ folder . so what i did was, i copied the applet.class file and pasted it in my WEBAPP folder . then i added ; in my html but what i get is a NOCLASSFOUND error to insert an image i copied the image to the webapp folder and had the following HTML code Image039.jpg then it worked ... Why isn' wicket identifying the applet.class file which is in the WEBAPP folder ?? help James Carman-3 wrote: > > Are you mounting your page at all? > > On Fri, Dec 18, 2009 at 11:36 AM, local_shamil > wrote: >> >> In the same folder ... but it doesn't work in this >> >> >> >> >> James Carman-3 wrote: >>> >>> Where do you put it for a normal non-wicket webapp using static html >>> pages? >>> >>> On Fri, Dec 18, 2009 at 11:31 AM, local_shamil >>> wrote: can some one please tell me , where to put the applet class file? is it inside the webapp folder ? i have used a quickstart wicket project .. please help ... Aiszone wrote: > > Try enabled logging on your webserver - that way you can see, > where > it > tries > to retrieve the class files from. > It's a bit hard helping you, since I don't know the structure of > your > app, > but I have an application running with multiple applets included, > and > it > works fine with Wicket - as long, as the setup is correct. > > > On Wed, Dec 16, 2009 at 11:27 AM, Shamil > wrote: > >> i need to add an applet to wicket.. and this is what i did... i >> wrote >> an >> applet and complied it.. i copied the class file of this applet >> and >> inserted >> it in to the webapp folder . >> >> and i inserted this in my HTML file... >> >> >> >> but still i get a class not found exception , why is that how do >> i >> resolve >> it ??? >> >> any clue ?? >> > > > > -- > Med venlig hilsen/Best regards > > Anders Sørensen > > -- View this message in context: http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26845958.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26846071.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26846271.html Sent from the Wicket - User mailing list a
Re: applet in wicket .. exception thrown ...
James Carman-3 wrote: > > Email me the HelloWorld.class file directly. I can probably send you > back a working quickstart pretty quickly > > > On Fri, Dec 18, 2009 at 11:58 AM, local_shamil > wrote: >> >> the WEBAPP folder is in the SRC/MAIN/ folder... and the Helloworld.class >> file >> is in that ... >> >> :( >> >> >> James Carman-3 wrote: >>> >>> Look in your actual output folder (where the webapp is run from, >>> typically target/webapp or something like that). Is the >>> HelloWorld.class file there? >>> >>> On Fri, Dec 18, 2009 at 11:52 AM, local_shamil >>> wrote: well this is what i did ,, i created a quickstart wicket project ,,, then i added all the .java files including the applet.java file in to the src/main/java/ folder ... then when i run jetty, the files get complied and saved in the target/classes/ folder . so what i did was, i copied the applet.class file and pasted it in my WEBAPP folder . then i added ; in my html but what i get is a NOCLASSFOUND error to insert an image i copied the image to the webapp folder and had the following HTML code Image039.jpg then it worked ... Why isn' wicket identifying the applet.class file which is in the WEBAPP folder ?? help James Carman-3 wrote: > > Are you mounting your page at all? > > On Fri, Dec 18, 2009 at 11:36 AM, local_shamil > wrote: >> >> In the same folder ... but it doesn't work in this >> >> >> >> >> James Carman-3 wrote: >>> >>> Where do you put it for a normal non-wicket webapp using static html >>> pages? >>> >>> On Fri, Dec 18, 2009 at 11:31 AM, local_shamil >>> wrote: can some one please tell me , where to put the applet class file? is it inside the webapp folder ? i have used a quickstart wicket project .. please help ... Aiszone wrote: > > Try enabled logging on your webserver - that way you can see, > where > it > tries > to retrieve the class files from. > It's a bit hard helping you, since I don't know the structure of > your > app, > but I have an application running with multiple applets included, > and > it > works fine with Wicket - as long, as the setup is correct. > > > On Wed, Dec 16, 2009 at 11:27 AM, Shamil > wrote: > >> i need to add an applet to wicket.. and this is what i did... i >> wrote >> an >> applet and complied it.. i copied the class file of this applet >> and >> inserted >> it in to the webapp folder . >> >> and i inserted this in my HTML file... >> >> >> >> but still i get a class not found exception , why is that how do >> i >> resolve >> it ??? >> >> any clue ?? >> > > > > -- > Med venlig hilsen/Best regards > > Anders Sørensen > > -- View this message in context: http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26845958.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26846071.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26846271.html Sent from the Wicket - User mailing list archive at Nabble.com. --
Re: applet in wicket .. exception thrown ...
help i am lost .. :( :( local_shamil wrote: > > the WEBAPP folder is in the SRC/MAIN/ folder... and the Helloworld.class > file is in that ... > > :( > > > James Carman-3 wrote: >> >> Look in your actual output folder (where the webapp is run from, >> typically target/webapp or something like that). Is the >> HelloWorld.class file there? >> >> On Fri, Dec 18, 2009 at 11:52 AM, local_shamil >> wrote: >>> >>> well this is what i did ,, i created a quickstart wicket project ,,, >>> then i >>> added all the .java files including the applet.java file in to the >>> src/main/java/ folder ... then when i run jetty, the files get complied >>> and >>> saved in the target/classes/ folder . so what i did was, i copied >>> the >>> applet.class file and pasted it in my WEBAPP folder . >>> >>> then i added ; >>> >>> >>> >>> in my html >>> >>> >>> but what i get is a NOCLASSFOUND error >>> >>> to insert an image i copied the image to the webapp folder and had the >>> following HTML code >>> Image039.jpg >>> >>> then it worked ... >>> >>> Why isn' wicket identifying the applet.class file which is in the WEBAPP >>> folder ?? >>> >>> >>> help >>> >>> >>> >>> >>> James Carman-3 wrote: Are you mounting your page at all? On Fri, Dec 18, 2009 at 11:36 AM, local_shamil wrote: > > In the same folder ... but it doesn't work in this > > > > > James Carman-3 wrote: >> >> Where do you put it for a normal non-wicket webapp using static html >> pages? >> >> On Fri, Dec 18, 2009 at 11:31 AM, local_shamil >> wrote: >>> >>> can some one please tell me , where to put the applet class file? is >>> it >>> inside the webapp folder ? i have used a quickstart wicket project >>> .. >>> >>> please help ... >>> >>> >>> >>> Aiszone wrote: Try enabled logging on your webserver - that way you can see, where it tries to retrieve the class files from. It's a bit hard helping you, since I don't know the structure of your app, but I have an application running with multiple applets included, and it works fine with Wicket - as long, as the setup is correct. On Wed, Dec 16, 2009 at 11:27 AM, Shamil wrote: > i need to add an applet to wicket.. and this is what i did... i > wrote > an > applet and complied it.. i copied the class file of this applet > and > inserted > it in to the webapp folder . > > and i inserted this in my HTML file... > > > > but still i get a class not found exception , why is that how do i > resolve > it ??? > > any clue ?? > -- Med venlig hilsen/Best regards Anders Sørensen >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26845958.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > > -- > View this message in context: > http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26846071.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26846271.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional comm
Re: applet in wicket .. exception thrown ...
Email me the HelloWorld.class file directly. I can probably send you back a working quickstart pretty quickly On Fri, Dec 18, 2009 at 11:58 AM, local_shamil wrote: > > the WEBAPP folder is in the SRC/MAIN/ folder... and the Helloworld.class file > is in that ... > > :( > > > James Carman-3 wrote: >> >> Look in your actual output folder (where the webapp is run from, >> typically target/webapp or something like that). Is the >> HelloWorld.class file there? >> >> On Fri, Dec 18, 2009 at 11:52 AM, local_shamil >> wrote: >>> >>> well this is what i did ,, i created a quickstart wicket project ,,, then >>> i >>> added all the .java files including the applet.java file in to the >>> src/main/java/ folder ... then when i run jetty, the files get complied >>> and >>> saved in the target/classes/ folder . so what i did was, i copied >>> the >>> applet.class file and pasted it in my WEBAPP folder . >>> >>> then i added ; >>> >>> >>> >>> in my html >>> >>> >>> but what i get is a NOCLASSFOUND error >>> >>> to insert an image i copied the image to the webapp folder and had the >>> following HTML code >>> Image039.jpg >>> >>> then it worked ... >>> >>> Why isn' wicket identifying the applet.class file which is in the WEBAPP >>> folder ?? >>> >>> >>> help >>> >>> >>> >>> >>> James Carman-3 wrote: Are you mounting your page at all? On Fri, Dec 18, 2009 at 11:36 AM, local_shamil wrote: > > In the same folder ... but it doesn't work in this > > > > > James Carman-3 wrote: >> >> Where do you put it for a normal non-wicket webapp using static html >> pages? >> >> On Fri, Dec 18, 2009 at 11:31 AM, local_shamil >> wrote: >>> >>> can some one please tell me , where to put the applet class file? is >>> it >>> inside the webapp folder ? i have used a quickstart wicket project .. >>> >>> please help ... >>> >>> >>> >>> Aiszone wrote: Try enabled logging on your webserver - that way you can see, where it tries to retrieve the class files from. It's a bit hard helping you, since I don't know the structure of your app, but I have an application running with multiple applets included, and it works fine with Wicket - as long, as the setup is correct. On Wed, Dec 16, 2009 at 11:27 AM, Shamil wrote: > i need to add an applet to wicket.. and this is what i did... i > wrote > an > applet and complied it.. i copied the class file of this applet and > inserted > it in to the webapp folder . > > and i inserted this in my HTML file... > > > > but still i get a class not found exception , why is that how do i > resolve > it ??? > > any clue ?? > -- Med venlig hilsen/Best regards Anders Sørensen >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26845958.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > > -- > View this message in context: > http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26846071.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26846271.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> --
Re: applet in wicket .. exception thrown ...
the WEBAPP folder is in the SRC/MAIN/ folder... and the Helloworld.class file is in that ... :( James Carman-3 wrote: > > Look in your actual output folder (where the webapp is run from, > typically target/webapp or something like that). Is the > HelloWorld.class file there? > > On Fri, Dec 18, 2009 at 11:52 AM, local_shamil > wrote: >> >> well this is what i did ,, i created a quickstart wicket project ,,, then >> i >> added all the .java files including the applet.java file in to the >> src/main/java/ folder ... then when i run jetty, the files get complied >> and >> saved in the target/classes/ folder . so what i did was, i copied >> the >> applet.class file and pasted it in my WEBAPP folder . >> >> then i added ; >> >> >> >> in my html >> >> >> but what i get is a NOCLASSFOUND error >> >> to insert an image i copied the image to the webapp folder and had the >> following HTML code >> Image039.jpg >> >> then it worked ... >> >> Why isn' wicket identifying the applet.class file which is in the WEBAPP >> folder ?? >> >> >> help >> >> >> >> >> James Carman-3 wrote: >>> >>> Are you mounting your page at all? >>> >>> On Fri, Dec 18, 2009 at 11:36 AM, local_shamil >>> wrote: In the same folder ... but it doesn't work in this James Carman-3 wrote: > > Where do you put it for a normal non-wicket webapp using static html > pages? > > On Fri, Dec 18, 2009 at 11:31 AM, local_shamil > wrote: >> >> can some one please tell me , where to put the applet class file? is >> it >> inside the webapp folder ? i have used a quickstart wicket project .. >> >> please help ... >> >> >> >> Aiszone wrote: >>> >>> Try enabled logging on your webserver - that way you can see, where >>> it >>> tries >>> to retrieve the class files from. >>> It's a bit hard helping you, since I don't know the structure of >>> your >>> app, >>> but I have an application running with multiple applets included, >>> and >>> it >>> works fine with Wicket - as long, as the setup is correct. >>> >>> >>> On Wed, Dec 16, 2009 at 11:27 AM, Shamil >>> wrote: >>> i need to add an applet to wicket.. and this is what i did... i wrote an applet and complied it.. i copied the class file of this applet and inserted it in to the webapp folder . and i inserted this in my HTML file... but still i get a class not found exception , why is that how do i resolve it ??? any clue ?? >>> >>> >>> >>> -- >>> Med venlig hilsen/Best regards >>> >>> Anders Sørensen >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26845958.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26846071.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26846271.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26846361.html Sent from the Wicket - User mailing list archive at Nabble.com. -
Re: applet in wicket .. exception thrown ...
Look in your actual output folder (where the webapp is run from, typically target/webapp or something like that). Is the HelloWorld.class file there? On Fri, Dec 18, 2009 at 11:52 AM, local_shamil wrote: > > well this is what i did ,, i created a quickstart wicket project ,,, then i > added all the .java files including the applet.java file in to the > src/main/java/ folder ... then when i run jetty, the files get complied and > saved in the target/classes/ folder . so what i did was, i copied the > applet.class file and pasted it in my WEBAPP folder . > > then i added ; > > > > in my html > > > but what i get is a NOCLASSFOUND error > > to insert an image i copied the image to the webapp folder and had the > following HTML code > Image039.jpg > > then it worked ... > > Why isn' wicket identifying the applet.class file which is in the WEBAPP > folder ?? > > > help > > > > > James Carman-3 wrote: >> >> Are you mounting your page at all? >> >> On Fri, Dec 18, 2009 at 11:36 AM, local_shamil >> wrote: >>> >>> In the same folder ... but it doesn't work in this >>> >>> >>> >>> >>> James Carman-3 wrote: Where do you put it for a normal non-wicket webapp using static html pages? On Fri, Dec 18, 2009 at 11:31 AM, local_shamil wrote: > > can some one please tell me , where to put the applet class file? is it > inside the webapp folder ? i have used a quickstart wicket project .. > > please help ... > > > > Aiszone wrote: >> >> Try enabled logging on your webserver - that way you can see, where it >> tries >> to retrieve the class files from. >> It's a bit hard helping you, since I don't know the structure of your >> app, >> but I have an application running with multiple applets included, and >> it >> works fine with Wicket - as long, as the setup is correct. >> >> >> On Wed, Dec 16, 2009 at 11:27 AM, Shamil wrote: >> >>> i need to add an applet to wicket.. and this is what i did... i wrote >>> an >>> applet and complied it.. i copied the class file of this applet and >>> inserted >>> it in to the webapp folder . >>> >>> and i inserted this in my HTML file... >>> >>> >>> >>> but still i get a class not found exception , why is that how do i >>> resolve >>> it ??? >>> >>> any clue ?? >>> >> >> >> >> -- >> Med venlig hilsen/Best regards >> >> Anders Sørensen >> >> > > -- > View this message in context: > http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26845958.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26846071.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > > -- > View this message in context: > http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26846271.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: applet in wicket .. exception thrown ...
well this is what i did ,, i created a quickstart wicket project ,,, then i added all the .java files including the applet.java file in to the src/main/java/ folder ... then when i run jetty, the files get complied and saved in the target/classes/ folder . so what i did was, i copied the applet.class file and pasted it in my WEBAPP folder . then i added ; in my html but what i get is a NOCLASSFOUND error to insert an image i copied the image to the webapp folder and had the following HTML code Image039.jpg then it worked ... Why isn' wicket identifying the applet.class file which is in the WEBAPP folder ?? help James Carman-3 wrote: > > Are you mounting your page at all? > > On Fri, Dec 18, 2009 at 11:36 AM, local_shamil > wrote: >> >> In the same folder ... but it doesn't work in this >> >> >> >> >> James Carman-3 wrote: >>> >>> Where do you put it for a normal non-wicket webapp using static html >>> pages? >>> >>> On Fri, Dec 18, 2009 at 11:31 AM, local_shamil >>> wrote: can some one please tell me , where to put the applet class file? is it inside the webapp folder ? i have used a quickstart wicket project .. please help ... Aiszone wrote: > > Try enabled logging on your webserver - that way you can see, where it > tries > to retrieve the class files from. > It's a bit hard helping you, since I don't know the structure of your > app, > but I have an application running with multiple applets included, and > it > works fine with Wicket - as long, as the setup is correct. > > > On Wed, Dec 16, 2009 at 11:27 AM, Shamil wrote: > >> i need to add an applet to wicket.. and this is what i did... i wrote >> an >> applet and complied it.. i copied the class file of this applet and >> inserted >> it in to the webapp folder . >> >> and i inserted this in my HTML file... >> >> >> >> but still i get a class not found exception , why is that how do i >> resolve >> it ??? >> >> any clue ?? >> > > > > -- > Med venlig hilsen/Best regards > > Anders Sørensen > > -- View this message in context: http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26845958.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26846071.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26846271.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: applet in wicket .. exception thrown ...
Are you mounting your page at all? On Fri, Dec 18, 2009 at 11:36 AM, local_shamil wrote: > > In the same folder ... but it doesn't work in this > > > > > James Carman-3 wrote: >> >> Where do you put it for a normal non-wicket webapp using static html >> pages? >> >> On Fri, Dec 18, 2009 at 11:31 AM, local_shamil >> wrote: >>> >>> can some one please tell me , where to put the applet class file? is it >>> inside the webapp folder ? i have used a quickstart wicket project .. >>> >>> please help ... >>> >>> >>> >>> Aiszone wrote: Try enabled logging on your webserver - that way you can see, where it tries to retrieve the class files from. It's a bit hard helping you, since I don't know the structure of your app, but I have an application running with multiple applets included, and it works fine with Wicket - as long, as the setup is correct. On Wed, Dec 16, 2009 at 11:27 AM, Shamil wrote: > i need to add an applet to wicket.. and this is what i did... i wrote > an > applet and complied it.. i copied the class file of this applet and > inserted > it in to the webapp folder . > > and i inserted this in my HTML file... > > > > but still i get a class not found exception , why is that how do i > resolve > it ??? > > any clue ?? > -- Med venlig hilsen/Best regards Anders Sørensen >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26845958.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > > -- > View this message in context: > http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26846071.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: applet in wicket .. exception thrown ...
In the same folder ... but it doesn't work in this James Carman-3 wrote: > > Where do you put it for a normal non-wicket webapp using static html > pages? > > On Fri, Dec 18, 2009 at 11:31 AM, local_shamil > wrote: >> >> can some one please tell me , where to put the applet class file? is it >> inside the webapp folder ? i have used a quickstart wicket project .. >> >> please help ... >> >> >> >> Aiszone wrote: >>> >>> Try enabled logging on your webserver - that way you can see, where it >>> tries >>> to retrieve the class files from. >>> It's a bit hard helping you, since I don't know the structure of your >>> app, >>> but I have an application running with multiple applets included, and it >>> works fine with Wicket - as long, as the setup is correct. >>> >>> >>> On Wed, Dec 16, 2009 at 11:27 AM, Shamil wrote: >>> i need to add an applet to wicket.. and this is what i did... i wrote an applet and complied it.. i copied the class file of this applet and inserted it in to the webapp folder . and i inserted this in my HTML file... but still i get a class not found exception , why is that how do i resolve it ??? any clue ?? >>> >>> >>> >>> -- >>> Med venlig hilsen/Best regards >>> >>> Anders Sørensen >>> >>> >> >> -- >> View this message in context: >> http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26845958.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26846071.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: applet in wicket .. exception thrown ...
Where do you put it for a normal non-wicket webapp using static html pages? On Fri, Dec 18, 2009 at 11:31 AM, local_shamil wrote: > > can some one please tell me , where to put the applet class file? is it > inside the webapp folder ? i have used a quickstart wicket project .. > > please help ... > > > > Aiszone wrote: >> >> Try enabled logging on your webserver - that way you can see, where it >> tries >> to retrieve the class files from. >> It's a bit hard helping you, since I don't know the structure of your app, >> but I have an application running with multiple applets included, and it >> works fine with Wicket - as long, as the setup is correct. >> >> >> On Wed, Dec 16, 2009 at 11:27 AM, Shamil wrote: >> >>> i need to add an applet to wicket.. and this is what i did... i wrote an >>> applet and complied it.. i copied the class file of this applet and >>> inserted >>> it in to the webapp folder . >>> >>> and i inserted this in my HTML file... >>> >>> >>> >>> but still i get a class not found exception , why is that how do i >>> resolve >>> it ??? >>> >>> any clue ?? >>> >> >> >> >> -- >> Med venlig hilsen/Best regards >> >> Anders Sørensen >> >> > > -- > View this message in context: > http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26845958.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: applet in wicket .. exception thrown ...
can some one please tell me , where to put the applet class file? is it inside the webapp folder ? i have used a quickstart wicket project .. please help ... Aiszone wrote: > > Try enabled logging on your webserver - that way you can see, where it > tries > to retrieve the class files from. > It's a bit hard helping you, since I don't know the structure of your app, > but I have an application running with multiple applets included, and it > works fine with Wicket - as long, as the setup is correct. > > > On Wed, Dec 16, 2009 at 11:27 AM, Shamil wrote: > >> i need to add an applet to wicket.. and this is what i did... i wrote an >> applet and complied it.. i copied the class file of this applet and >> inserted >> it in to the webapp folder . >> >> and i inserted this in my HTML file... >> >> >> >> but still i get a class not found exception , why is that how do i >> resolve >> it ??? >> >> any clue ?? >> > > > > -- > Med venlig hilsen/Best regards > > Anders Sørensen > > -- View this message in context: http://old.nabble.com/applet-in-wicket-..-exception-thrown-...-tp26814020p26845958.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: @RequireHttps - forms misbehaving
I'll create one and post it, if I can. -v On Fri, Dec 18, 2009 at 9:21 AM, Igor Vaynberg wrote: > can you recreate in a quickstart? > > -igor > > On Fri, Dec 18, 2009 at 7:56 AM, VGJ wrote: > > I'm now using @RequireHttps to switch to https on certain pages but it's > not > > quite working right. > > > > In our storefront app, I'm switching to https at the point in the > checkout > > process where you view your cart, and then proceed to a page to either > login > > or create an account. When I submit my username and password, the > > validation fires as if I entered nothing into the form. Enter it a > second > > time and it works - the validation doesn't trigger. Everything was > entered > > correctly the first time around...so it's as if the form is being posted > on > > its own, when the page loads? Every page with @RequireHttps that has a > > form, does this. > > > > What do I need to do to change to accommodate validation under > @RequireHttps > > pages? > > > > Currently you just see a lot of forms w/ fields like this: > > > > add(new TextField("username").setRequired(true)); > > > > ...with a pretty common feedback panel: > > > > > > > > > > > > Thanks! > > > > -v > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: @RequireHttps - forms misbehaving
can you recreate in a quickstart? -igor On Fri, Dec 18, 2009 at 7:56 AM, VGJ wrote: > I'm now using @RequireHttps to switch to https on certain pages but it's not > quite working right. > > In our storefront app, I'm switching to https at the point in the checkout > process where you view your cart, and then proceed to a page to either login > or create an account. When I submit my username and password, the > validation fires as if I entered nothing into the form. Enter it a second > time and it works - the validation doesn't trigger. Everything was entered > correctly the first time around...so it's as if the form is being posted on > its own, when the page loads? Every page with @RequireHttps that has a > form, does this. > > What do I need to do to change to accommodate validation under @RequireHttps > pages? > > Currently you just see a lot of forms w/ fields like this: > > add(new TextField("username").setRequired(true)); > > ...with a pretty common feedback panel: > > > > > > Thanks! > > -v > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
File Upload Issues
Hello, I'm having issues in IE6 relating to the the File Upload Control after upgrading to Wicket 1.4.4. If I attempt to put a file upload component onto a form that contains other components that do ajax, everything stops working in regards to ajax. Now I understand that the file upload component does NOT support ajax. Does it follow that putting a file upload component on a form that does ajax is not supported? J.D.
@RequireHttps - forms misbehaving
I'm now using @RequireHttps to switch to https on certain pages but it's not quite working right. In our storefront app, I'm switching to https at the point in the checkout process where you view your cart, and then proceed to a page to either login or create an account. When I submit my username and password, the validation fires as if I entered nothing into the form. Enter it a second time and it works - the validation doesn't trigger. Everything was entered correctly the first time around...so it's as if the form is being posted on its own, when the page loads? Every page with @RequireHttps that has a form, does this. What do I need to do to change to accommodate validation under @RequireHttps pages? Currently you just see a lot of forms w/ fields like this: add(new TextField("username").setRequired(true)); ...with a pretty common feedback panel: Thanks! -v
Re: "Pretty" URLs and sessions
Alex, this was a great help, thank you! On Thu, Dec 17, 2009 at 3:23 PM, Alex Objelean wrote: > > Though I didn't use it, there is HttpsRequestCycleProcessor (you should add > it in your Application) and @RequireHttps annotation (for each WebPage > which > must be accessed through SSL) which should make this work. > > Alex > > > V. Jenks wrote: > > > > Yes I know, I do this most of the time. However, I'm redirecting from > > http > > to https. When I wrote this app, this was what everyone was > recommending. > > Is there another way? > > > > On Thu, Dec 17, 2009 at 2:45 PM, Alex Objelean > > wrote: > > > >> > >> You shouldn't have a code like this: > >> getRequestCycle().setRedirect(false); > >> > >> getRequestCycle().setRequestTarget(EmptyRequestTarget.getInstance()); > >> getResponse().redirect(" > >> https://mysite/app/?wicket:bookmarkablePage=:com.myapp.UserAccount";); > >> > >> A more 'wicket way' of doing thins is this: > >> > >> setResponsePage(UserAccount.class); > >> > >> That means that a bookmarkable page will be created (a new instance of > >> the > >> page will be instantiated). > >> You can also do something like this: > >> > >> setResponsePage(new UserAccount(account)); > >> > >> Or you could try to make this page as stateless as possible by passing > >> account id or other parameters to the page that depends.. > >> > >> Alex > >> > >> > >> V. Jenks wrote: > >> > > >> > Hit a snag! At the cart page (going into the login page), I redirect > >> to > >> > https like so: > >> > > >> > getRequestCycle().setRedirect(false); > >> > > >> > getRequestCycle().setRequestTarget(EmptyRequestTarget.getInstance()); > >> > getResponse().redirect("https://mysite/app/account";); > >> > > >> > "user-account" being mapped like so in the "app" class: > >> > > >> > mount(new HybridUrlCodingStrategy("/account", UserAccount.class)); > >> > > >> > ...gets me this exception: > >> > > >> > org.apache.wicket.WicketRuntimeException: Can't instantiate page using > >> > constructor public com.agribeef.abcommerce.ui.UserAccount() > >> > at > >> > > >> > org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:212) > >> > at > >> > > >> > org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57) > >> > at > >> > > >> > org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:299) > >> > at > >> > > >> > org.apache.wicket.request.target.coding.HybridUrlCodingStrategy$HybridBookmarkablePageRequestTarget.newPage(HybridUrlCodingStrategy.java:887) > >> > at > >> > > >> > org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:321) > >> > at > >> > > >> > org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234) > >> > at > >> > > >> > org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) > >> > at > >> > > >> > org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) > >> > ... > >> > Caused by: java.lang.reflect.InvocationTargetException > >> > at > >> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > >> > Method) > >> > at > >> > > >> > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > >> > at > >> > > >> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > >> > at > >> java.lang.reflect.Constructor.newInstance(Constructor.java:513) > >> > at > >> > > >> > org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192) > >> > ... 40 more > >> > Caused by: java.lang.NullPointerException > >> > at com.myapp.UserAccount.(UserAccount.java:44) > >> > ... 45 more > >> > > >> > ...which is of course, where I try to reference the stateful bean > >> > (ShoppingCartBean) that I'm passing around. > >> > > >> > Prior to now, I just did this: > >> > > >> > getRequestCycle().setRedirect(false); > >> > > >> > getRequestCycle().setRequestTarget(EmptyRequestTarget.getInstance()); > >> > getResponse().redirect(" > >> > https://mysite/app/?wicket:bookmarkablePage=:com.myapp.UserAccount";); > >> > > >> > I could stick with that I guess, since it's trackable. It would have > >> been > >> > nice to use the Hybrid approach consistently, though. > >> > > >> > -v > >> > > >> > > >> > On Thu, Dec 17, 2009 at 2:12 PM, Alex Objelean > >> > wrote: > >> > > >> >> > >> >> Also, it could be useful to check this out: > >> >> > >> >> > >> > http://day-to-day-stuff.blogspot.com/2008/10/wicket-extreme-consistent-urls.html > >> >> > >> >> Alex > >> >> > >> >> > >> >> V. Jenks wrote: > >> >> > > >> >> > Excellent, excellent! This i
Re: Feedback Messages Not Getting Displayed When Using AjaxSubmitLink
Or you just implement (override) the onError(...) method of your AjaxSubmitLink()... there you can 'refresh' your feedbackpanel by adding it to the ajaxRequestTarget (It's on the todo list to make it abstract, so you have to implement it, just like the onSubmit(...) On Fri, Dec 18, 2009 at 4:01 PM, Martin Willitts wrote: > > I found I needed to use form.error("message") in the onSubmit method. > > > > luther.baker wrote: > > > > I'm not at a computer to try this ... but I do this all the time so it > > definitely works like you're hoping. > > > > You've posted alot of code so its a bit difficult to trace what is > > commented > > out and what is not ... but starting with your original post, uncomment > > the > > following: > > > > final FeedbackPanel feedback = new FeedbackPanel("feedback"); > > feedback.setOutputMarkupId(true); > > add(feedback); > > > > Now, be sure to add this (I think this is the part you're missing - or I > > missed in reading your snippets): > > > > feedback.setOutputMarkupPlaceholderTag(true); > > > > And then make sure you add it to the target in the submit handler: > > > > target.addComponent(feedback); > > > > I think you're doing/done all of this at one time with varied components > - > > but my guess is that you've got to double check and make sure you're > doing > > all three things specifically for the feedback panel. > > > > Hope this helps, > > > > -Luther > > > > > > > > Its hard to tell what > > > > On Fri, Jun 19, 2009 at 4:21 PM, jpalmer1026 > > wrote: > > > >> > >> Actually, validation messages are now getting displayed for validation > >> performed on components but I am still unable to get error messages that > >> I > >> have added to be displayed. For example, in the following code, I need a > >> way > >> to display the line "No PIN found for PIN" but I am not sure how to do > >> that. > >> Any ideas? > >> > >> final AjaxSubmitLink verifyPinLink = new AjaxSubmitLink("verifyPinLink") > >> { > >>@Override > >>public void onSubmit(AjaxRequestTarget target, Form form) { > >> //target.addComponent(feedback); > >> //onError(target, form); > >> > >>Declaration declaration = (Declaration) > >> form.getModelObject(); > >>ParcelIdentification pid = > >> declarationService.findParcelIdentification(declaration.getPin()); > >>if (pid == null) { > >>error("No PIN found for PIN " + > declaration.getPin()); > >>} else { > >>InitiateDeclarationVerifyPanel decVerifyPanel = new > >> InitiateDeclarationVerifyPanel("verifyPanel", pid); > >>parent.addOrReplace(decVerifyPanel); > >>parent.setVisible(true); > >>this.setEnabled(false); > >>reenterPinLink.setVisible(true); > >>target.addComponent(this); > >>target.addComponent(parent); > >>target.addComponent(reenterPinLink); > >>} > >>} > >> > >> @Override > >>public void onError(AjaxRequestTarget target, Form form) { > >>target.addComponent(feedback); > >>} > >>}; > >> > >> > >> jpalmer1026 wrote: > >> > > >> > I called target.addComponent for the feedbackpanel but still no luck. > >> My > >> > updated code is as follows: > >> > > >> > final AjaxSubmitLink verifyPinLink = new > >> AjaxSubmitLink("verifyPinLink") > >> > { > >> > @Override > >> > public void onSubmit(AjaxRequestTarget target, Form form) > { > >> > target.addComponent(feedback); > >> > onError(target, form); > >> > > >> > Declaration declaration = (Declaration) > >> > form.getModelObject(); > >> > ParcelIdentification pid = > >> > declarationService.findParcelIdentification(declaration.getPin()); > >> > if (pid == null) { > >> > error("No PIN found for PIN " + > >> declaration.getPin()); > >> > } else { > >> > InitiateDeclarationVerifyPanel decVerifyPanel = > new > >> > InitiateDeclarationVerifyPanel("verifyPanel", pid); > >> > parent.addOrReplace(decVerifyPanel); > >> > parent.setVisible(true); > >> > this.setEnabled(false); > >> > reenterPinLink.setVisible(true); > >> > target.addComponent(this); > >> > target.addComponent(parent); > >> > target.addComponent(reenterPinLink); > >> > } > >> > } > >> > }; > >> > > >> > Erik van Oosten wrote: > >> >> > >> >> You did not call target.addComponent for the feedbackpanel or any of > >> its > >> >> parents. > >> >> > >> >> Regards, > >> >> Erik. > >> >> > >> >> > >> >>
Re: Feedback Messages Not Getting Displayed When Using AjaxSubmitLink
I found I needed to use form.error("message") in the onSubmit method. luther.baker wrote: > > I'm not at a computer to try this ... but I do this all the time so it > definitely works like you're hoping. > > You've posted alot of code so its a bit difficult to trace what is > commented > out and what is not ... but starting with your original post, uncomment > the > following: > > final FeedbackPanel feedback = new FeedbackPanel("feedback"); > feedback.setOutputMarkupId(true); > add(feedback); > > Now, be sure to add this (I think this is the part you're missing - or I > missed in reading your snippets): > > feedback.setOutputMarkupPlaceholderTag(true); > > And then make sure you add it to the target in the submit handler: > > target.addComponent(feedback); > > I think you're doing/done all of this at one time with varied components - > but my guess is that you've got to double check and make sure you're doing > all three things specifically for the feedback panel. > > Hope this helps, > > -Luther > > > > Its hard to tell what > > On Fri, Jun 19, 2009 at 4:21 PM, jpalmer1026 > wrote: > >> >> Actually, validation messages are now getting displayed for validation >> performed on components but I am still unable to get error messages that >> I >> have added to be displayed. For example, in the following code, I need a >> way >> to display the line "No PIN found for PIN" but I am not sure how to do >> that. >> Any ideas? >> >> final AjaxSubmitLink verifyPinLink = new AjaxSubmitLink("verifyPinLink") >> { >>@Override >>public void onSubmit(AjaxRequestTarget target, Form form) { >> //target.addComponent(feedback); >> //onError(target, form); >> >>Declaration declaration = (Declaration) >> form.getModelObject(); >>ParcelIdentification pid = >> declarationService.findParcelIdentification(declaration.getPin()); >>if (pid == null) { >>error("No PIN found for PIN " + declaration.getPin()); >>} else { >>InitiateDeclarationVerifyPanel decVerifyPanel = new >> InitiateDeclarationVerifyPanel("verifyPanel", pid); >>parent.addOrReplace(decVerifyPanel); >>parent.setVisible(true); >>this.setEnabled(false); >>reenterPinLink.setVisible(true); >>target.addComponent(this); >>target.addComponent(parent); >>target.addComponent(reenterPinLink); >>} >>} >> >> @Override >>public void onError(AjaxRequestTarget target, Form form) { >>target.addComponent(feedback); >>} >>}; >> >> >> jpalmer1026 wrote: >> > >> > I called target.addComponent for the feedbackpanel but still no luck. >> My >> > updated code is as follows: >> > >> > final AjaxSubmitLink verifyPinLink = new >> AjaxSubmitLink("verifyPinLink") >> > { >> > @Override >> > public void onSubmit(AjaxRequestTarget target, Form form) { >> > target.addComponent(feedback); >> > onError(target, form); >> > >> > Declaration declaration = (Declaration) >> > form.getModelObject(); >> > ParcelIdentification pid = >> > declarationService.findParcelIdentification(declaration.getPin()); >> > if (pid == null) { >> > error("No PIN found for PIN " + >> declaration.getPin()); >> > } else { >> > InitiateDeclarationVerifyPanel decVerifyPanel = new >> > InitiateDeclarationVerifyPanel("verifyPanel", pid); >> > parent.addOrReplace(decVerifyPanel); >> > parent.setVisible(true); >> > this.setEnabled(false); >> > reenterPinLink.setVisible(true); >> > target.addComponent(this); >> > target.addComponent(parent); >> > target.addComponent(reenterPinLink); >> > } >> > } >> > }; >> > >> > Erik van Oosten wrote: >> >> >> >> You did not call target.addComponent for the feedbackpanel or any of >> its >> >> parents. >> >> >> >> Regards, >> >> Erik. >> >> >> >> >> >> jpalmer1...@mchsi.com schreef: >> >>> I am using an AjaxSubmitLink to submit form data. Using this, >> however, >> >>> is preventing feedback messages from being displayed. >> >>> >> >>> My code is as follows: >> >>> >> >>> public class InitiateDeclarationPage extends EzdecBaseWebPage { >> >>> @SpringBean >> >>> private IDeclarationService declarationService; >> >>> >> >>> AjaxFallbackLink reenterPinLink; >> >>> >> >>> public InitiateDeclarationPage() { >> >>> final Declaration declaration = new >> >>> Declaration(EzdecSession.getCurrentUser().getAccount(), >
wicket-objectsizeof-agent and JDK1.5
Is/has anyone successfully used the javaagent? How did you do it? I've tried setting it up, but it needs extra jarson the bootclasspath (wicket for the Objects class and slf4j for the logging), when I add them to the bootclasspath it is registering the agent, but when the app actually starts slf4j is failing or I'm getting class not found errors on other classes. If anyone has used it, have you noticed a significant difference between the Instrumentation version of the sizeof method versus the serialization method? We are having some ridiculously random memory problems and we're trying to analyze some of the objects in the session to determine if we are not using some of the models properly.
Re: single-page, multi-panel, pretty URL webapp
Actually, what I mean is that based on page parameters you encode into url, you can take the decision of what panel to show, or how it should behave. It all depends on your application. Alex Stefan Jozsa-2 wrote: > > I know that is no such thing like 'panel mounting', > this is my problem ! > > I can encode arguments as PageParameters, but after ? > What you mean saying "restore the page based on those params" ? > > Thanks, > Stefan > > --- On Fri, 12/18/09, Alex Objelean wrote: > >> From: Alex Objelean >> Subject: Re: single-page, multi-panel, pretty URL webapp >> To: users@wicket.apache.org >> Date: Friday, December 18, 2009, 3:36 PM >> >> There is no such thing like 'panel mounting'. All you can >> do, is to encode >> the state into url using PageParams & restore the page >> based on those >> parameters. >> >> Alex >> >> >> Stefan Jozsa-2 wrote: >> > >> > My application is a single-page multiple-panel (heavy >> AJAX) webapp >> > (except the login page). >> > >> > Part of page is almost constant, is expensive to >> instantiate/refresh >> > and cannot be (always) refreshed (having embedded >> Flash player). >> > >> > Rest of page is a panel and is populated succesively >> with >> > 'addOrReplace(somePanel)' according to UI/user >> actions. >> > >> > What I want to achieve (after login) is >> > something like 'panel mounting', that is: >> > >> > http://myDomain.com/myApp/ => >> > instantiate MyPage and set as >> content-panel new HomePanel() >> > >> > Typing 'whoknows' in search field and clicking >> 'Search' button: >> > URL: http://myDomain.com/myApp/search?k=whoknows >> > action: just set as >> content-panel new SearchPanel("whoknows") >> > >> > Clicking artist Hendrix in search panel: >> > URL: http://myDomain.com/myApp/artist?k=123456789 => >> > action: just set as >> content-panel new ArtistPanel(123456789) >> > >> > so that can navigate using browser's back/forth. >> > >> > How this can be done? >> > Thanks in advance, >> > Stefan >> > >> > >> > >> > >> > >> > >> - >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> > For additional commands, e-mail: users-h...@wicket.apache.org >> > >> > >> > >> >> -- >> View this message in context: >> http://old.nabble.com/single-page%2C-multi-panel%2C-pretty-URL-webapp-tp26843002p26843501.html >> Sent from the Wicket - User mailing list archive at >> Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://old.nabble.com/single-page%2C-multi-panel%2C-pretty-URL-webapp-tp26843002p26843700.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: single-page, multi-panel, pretty URL webapp
I know that is no such thing like 'panel mounting', this is my problem ! I can encode arguments as PageParameters, but after ? What you mean saying "restore the page based on those params" ? Thanks, Stefan --- On Fri, 12/18/09, Alex Objelean wrote: > From: Alex Objelean > Subject: Re: single-page, multi-panel, pretty URL webapp > To: users@wicket.apache.org > Date: Friday, December 18, 2009, 3:36 PM > > There is no such thing like 'panel mounting'. All you can > do, is to encode > the state into url using PageParams & restore the page > based on those > parameters. > > Alex > > > Stefan Jozsa-2 wrote: > > > > My application is a single-page multiple-panel (heavy > AJAX) webapp > > (except the login page). > > > > Part of page is almost constant, is expensive to > instantiate/refresh > > and cannot be (always) refreshed (having embedded > Flash player). > > > > Rest of page is a panel and is populated succesively > with > > 'addOrReplace(somePanel)' according to UI/user > actions. > > > > What I want to achieve (after login) is > > something like 'panel mounting', that is: > > > > http://myDomain.com/myApp/ => > > instantiate MyPage and set as > content-panel new HomePanel() > > > > Typing 'whoknows' in search field and clicking > 'Search' button: > > URL: http://myDomain.com/myApp/search?k=whoknows > > action: just set as > content-panel new SearchPanel("whoknows") > > > > Clicking artist Hendrix in search panel: > > URL: http://myDomain.com/myApp/artist?k=123456789 => > > action: just set as > content-panel new ArtistPanel(123456789) > > > > so that can navigate using browser's back/forth. > > > > How this can be done? > > Thanks in advance, > > Stefan > > > > > > > > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > > -- > View this message in context: > http://old.nabble.com/single-page%2C-multi-panel%2C-pretty-URL-webapp-tp26843002p26843501.html > Sent from the Wicket - User mailing list archive at > Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: single-page, multi-panel, pretty URL webapp
There is no such thing like 'panel mounting'. All you can do, is to encode the state into url using PageParams & restore the page based on those parameters. Alex Stefan Jozsa-2 wrote: > > My application is a single-page multiple-panel (heavy AJAX) webapp > (except the login page). > > Part of page is almost constant, is expensive to instantiate/refresh > and cannot be (always) refreshed (having embedded Flash player). > > Rest of page is a panel and is populated succesively with > 'addOrReplace(somePanel)' according to UI/user actions. > > What I want to achieve (after login) is > something like 'panel mounting', that is: > > http://myDomain.com/myApp/ => > instantiate MyPage and set as content-panel new HomePanel() > > Typing 'whoknows' in search field and clicking 'Search' button: > URL: http://myDomain.com/myApp/search?k=whoknows > action: just set as content-panel new SearchPanel("whoknows") > > Clicking artist Hendrix in search panel: > URL: http://myDomain.com/myApp/artist?k=123456789 => > action: just set as content-panel new ArtistPanel(123456789) > > so that can navigate using browser's back/forth. > > How this can be done? > Thanks in advance, > Stefan > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://old.nabble.com/single-page%2C-multi-panel%2C-pretty-URL-webapp-tp26843002p26843501.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
single-page, multi-panel, pretty URL webapp
My application is a single-page multiple-panel (heavy AJAX) webapp (except the login page). Part of page is almost constant, is expensive to instantiate/refresh and cannot be (always) refreshed (having embedded Flash player). Rest of page is a panel and is populated succesively with 'addOrReplace(somePanel)' according to UI/user actions. What I want to achieve (after login) is something like 'panel mounting', that is: http://myDomain.com/myApp/ => instantiate MyPage and set as content-panel new HomePanel() Typing 'whoknows' in search field and clicking 'Search' button: URL: http://myDomain.com/myApp/search?k=whoknows action: just set as content-panel new SearchPanel("whoknows") Clicking artist Hendrix in search panel: URL: http://myDomain.com/myApp/artist?k=123456789 => action: just set as content-panel new ArtistPanel(123456789) so that can navigate using browser's back/forth. How this can be done? Thanks in advance, Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: PageWindowManager (DiskPageStore) causing PageExpiredException when working in different browser tabs
Hi, Thanks for quick reply. It took me a bit more code reading, but now I see what you're saying. Models are really oversized, so this is the problem. Unfortunately, necessary changes to our project would be out of budget, so i'll stay with increasing diskpagestore max size for now. So, thanks again and.. Stastne a vesele:) tom kmec. Dne 18.12.2009 12:29, Matej Knopp napsal(a): Hi, problem in your case is that that the diskpagestore overflows. That normal, it's cyclic, but it shouldn't happen too often. The default size is 10 megabytes (can be increased), that means it should be able to accommodate quite a few (well, hundreds) of pages. So even with multiple tabs the expiration shouldn't happen too often. That is, unless your serialized pages are particularly big, which would indicate that you're not using detachable models properly and serialize lot of stuff. Btw, seeing your are working for EEA, try contacting Tomas Drencak (EEA KE), he might be able to help you with this. -Matej 2009/12/18 Tom Kmec: Hello, we are experiencing occasional page expirations in our Wicket based application when user is working in several browser tabs. After some debugging, i got to PageWindowManager class, which manages positions and size of serialized pages in the pagemap file. I have identified adjustWindowSize(int index, int size) method as the source of my problem, namely this part: // merge as many times as necessary while (window.filePartSize< size&& index< windows.size() - 1) { mergeWindowWithNext(index); } The problem with this is that beyond the resized window there might be a page window containing data of another page (open in another browser tab). This code just wipes the data out. I haven't found any 'quick fix' solution for this. I might replace DiskPageStore with SimpleSynchronousFilePageStore, but that "will perform badly in production." as the documentation states and it will require altering wicket code anyway, so I'd prefer another solution... any thoughts? Thanks, Tom Kmec eea cz - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: PageWindowManager (DiskPageStore) causing PageExpiredException when working in different browser tabs
Hi, problem in your case is that that the diskpagestore overflows. That normal, it's cyclic, but it shouldn't happen too often. The default size is 10 megabytes (can be increased), that means it should be able to accommodate quite a few (well, hundreds) of pages. So even with multiple tabs the expiration shouldn't happen too often. That is, unless your serialized pages are particularly big, which would indicate that you're not using detachable models properly and serialize lot of stuff. Btw, seeing your are working for EEA, try contacting Tomas Drencak (EEA KE), he might be able to help you with this. -Matej 2009/12/18 Tom Kmec : > Hello, > > we are experiencing occasional page expirations in our Wicket based > application when user is working in several browser tabs. > > After some debugging, i got to PageWindowManager class, which manages > positions and size of serialized pages in the pagemap file. > > I have identified adjustWindowSize(int index, int size) method as the source > of my problem, namely this part: > > // merge as many times as necessary > while (window.filePartSize < size && index < windows.size() - 1) > { > mergeWindowWithNext(index); > } > > The problem with this is that beyond the resized window there might be a > page window containing data of another page (open in another browser tab). > This code just wipes the data out. > > I haven't found any 'quick fix' solution for this. > I might replace DiskPageStore with SimpleSynchronousFilePageStore, but that > "will perform badly in production." as the documentation states and it will > require altering wicket code anyway, so I'd prefer another solution... > any thoughts? > > Thanks, > Tom Kmec > eea cz > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: retrieving multiple values for a key in a properties file
This is not really a wicket task. It's more a programming problem. String localizedString = Localizer.getString(key); String[] values = localizedString.split(","); Simple isn't it? You really want to decline this method? I was aware of this possibility (which I actually want to avoid for my front page) ;-) I just wanted to ask if there is a standard way to do this in wicket in order to leverage also the caching mechanism. But it is no problem to implement it on my own. regards, andr - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
PageWindowManager (DiskPageStore) causing PageExpiredException when working in different browser tabs
Hello, we are experiencing occasional page expirations in our Wicket based application when user is working in several browser tabs. After some debugging, i got to PageWindowManager class, which manages positions and size of serialized pages in the pagemap file. I have identified adjustWindowSize(int index, int size) method as the source of my problem, namely this part: // merge as many times as necessary while (window.filePartSize < size && index < windows.size() - 1) { mergeWindowWithNext(index); } The problem with this is that beyond the resized window there might be a page window containing data of another page (open in another browser tab). This code just wipes the data out. I haven't found any 'quick fix' solution for this. I might replace DiskPageStore with SimpleSynchronousFilePageStore, but that "will perform badly in production." as the documentation states and it will require altering wicket code anyway, so I'd prefer another solution... any thoughts? Thanks, Tom Kmec eea cz - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org