IOException: The handle is invalid - on file upload
I'm using wicket 1.3.4 and doing some file uploading and keep intermittantly getting the following error: IOException: The handle is invalid. My form is uploads zips and jpgs and is very similar to the wicket examples. ie in my submit button I do the following: if (uploadFile != null) { // Check new file, delete if it already existed imageProcessing.deleteFileIfExists(uploadFolder + File.separator + uploadFile.getClientFileName()); // Create a new file File newFile = new File(uploadFolder, uploadFile.getClientFileName()); try { // Save to new file newFile.createNewFile(); uploadFile.writeTo(newFile); }... It's the writeTo line that causes the error. Some jpgs and zips work fine, others don't or only intermittantly work. An example image I'm having errors with is this one: http://transfer.folioflow.com.s3.amazonaws.com/08092007045.jpg I've tried using the getInputStream() instead of the writeTo, and tried writing the inputstream into an output stream, but get exactly the same error while doing an inputstream.read(); I'm at a bit of a loss to what could be causing this. -- View this message in context: http://www.nabble.com/IOException%3A-The-handle-is-invalid---on-file-upload-tp18998030p18998030.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Spring Security (née acegi) integration str ategy?
In general, when planning to implement Spring Security for authentication, what is generally considered the best way to do so? 1) Implement the app completely with Wicket Security (wasp/swarm/hive) and then add in Spring Security? 2) Start with Spring Security and Wicket Security from the start? Thoughts? -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IOException: The handle is invalid - on file upload
Just to follow this up. When using the inputstream and the read() method on the same upload file. The number of lines read before getting in error message changes each time. Could it be a jdk bug? Andrew Moore wrote: I'm using wicket 1.3.4 and doing some file uploading and keep intermittantly getting the following error: IOException: The handle is invalid. My form is uploads zips and jpgs and is very similar to the wicket examples. ie in my submit button I do the following: if (uploadFile != null) { // Check new file, delete if it already existed imageProcessing.deleteFileIfExists(uploadFolder + File.separator + uploadFile.getClientFileName()); // Create a new file File newFile = new File(uploadFolder, uploadFile.getClientFileName()); try { // Save to new file newFile.createNewFile(); uploadFile.writeTo(newFile); }... It's the writeTo line that causes the error. Some jpgs and zips work fine, others don't or only intermittantly work. An example image I'm having errors with is this one: http://transfer.folioflow.com.s3.amazonaws.com/08092007045.jpg I've tried using the getInputStream() instead of the writeTo, and tried writing the inputstream into an output stream, but get exactly the same error while doing an inputstream.read(); I'm at a bit of a loss to what could be causing this. -- View this message in context: http://www.nabble.com/IOException%3A-The-handle-is-invalid---on-file-upload-tp18998030p18998188.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
very confused with url wicket is generating
please help me understand how this url works. I have a form, the on submit method calls setResponsePage(foo.class) , So when a user submits the form my onSubmit method gets called and i end method with setResponsePage(), after this what happens ? where the control goes, how wicket tries to look up the class and where it generates the url does it know whether to redirect or forward please help me understand this . -- View this message in context: http://www.nabble.com/very-confused-with-url-wicket-is-generating-tp18998651p18998651.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: very confused with url wicket is generating
If you want it to redirect, call setRedirect(true) on the request cycle. On Fri, Aug 15, 2008 at 9:29 AM, miro [EMAIL PROTECTED] wrote: please help me understand how this url works. I have a form, the on submit method calls setResponsePage(foo.class) , So when a user submits the form my onSubmit method gets called and i end method with setResponsePage(), after this what happens ? where the control goes, how wicket tries to look up the class and where it generates the url does it know whether to redirect or forward please help me understand this . -- View this message in context: http://www.nabble.com/very-confused-with-url-wicket-is-generating-tp18998651p18998651.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: very confused with url wicket is generating
Its not just about redirect please help me understand how things work when I call setResponsePage() just few details on how it actually finds the url for the class I pass in setRespopnsePage() ? jwcarman wrote: If you want it to redirect, call setRedirect(true) on the request cycle. On Fri, Aug 15, 2008 at 9:29 AM, miro [EMAIL PROTECTED] wrote: please help me understand how this url works. I have a form, the on submit method calls setResponsePage(foo.class) , So when a user submits the form my onSubmit method gets called and i end method with setResponsePage(), after this what happens ? where the control goes, how wicket tries to look up the class and where it generates the url does it know whether to redirect or forward please help me understand this . -- View this message in context: http://www.nabble.com/very-confused-with-url-wicket-is-generating-tp18998651p18998651.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/very-confused-with-url-wicket-is-generating-tp18998651p18998783.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: very confused with url wicket is generating
This might help you: http://cwiki.apache.org/WICKET/request-processing-overview.html On Fri, Aug 15, 2008 at 9:37 AM, miro [EMAIL PROTECTED] wrote: Its not just about redirect please help me understand how things work when I call setResponsePage() just few details on how it actually finds the url for the class I pass in setRespopnsePage() ? jwcarman wrote: If you want it to redirect, call setRedirect(true) on the request cycle. On Fri, Aug 15, 2008 at 9:29 AM, miro [EMAIL PROTECTED] wrote: please help me understand how this url works. I have a form, the on submit method calls setResponsePage(foo.class) , So when a user submits the form my onSubmit method gets called and i end method with setResponsePage(), after this what happens ? where the control goes, how wicket tries to look up the class and where it generates the url does it know whether to redirect or forward please help me understand this . -- View this message in context: http://www.nabble.com/very-confused-with-url-wicket-is-generating-tp18998651p18998651.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/very-confused-with-url-wicket-is-generating-tp18998651p18998783.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
session jumping?
Wicket 1.3.3 I am going to attempt to describe what I have experienced in the hopes that a core dev can point me in the right direction. The background: We previously had a complete JSP system in place. We decided to use the Wicket framework, but could not convert the entire system at once, so the foundation is now wicket with a few of its pieces in Wicket, but much of the legacy system is accessed thorugh a technique the Al Maw posted whereby the legacy url is captured then redirected into a Wicket page hosting an IFrame, which then loads the original URL. All of the pure Wicket pages are mounted using the HybridUrlCodingStrategy, except for the Wicket page that acts as the legacy interface, which is the standard BookmarkablePageRequestTargetUCS. We use the wicket-auth module for authentication (with Databinder), so the user (user_id) is stored in the WebSession. The problem: It seems that when two users enter the system, there is a scenario where the second user becomes the first user. Both users login through a Wicket Page, which deposits them on a wicket page. If user1 go to a legacy URL, then the next wicket page that user2 visits changes to user1's session. This can be observed because we display the logged in user on each page and the name changes. My working theory is that it has something to do with loading a serialized page from disk. We are using JDK serialization and the std SecondLevelCache/DiskPageStore session store. Can a dev verify that the Session is serialized with a Page? How on earth is one user loading another's serialized Page from disk? Has anyone experienced this? How can I prevent this? Obviously, this is a serious issue for us because this defeats user security. Chuck -- View this message in context: http://www.nabble.com/session-%22jumping%22--tp18999615p18999615.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: very confused with url wicket is generating
if you call setResponsePage(Class) then wicket generates a bookmarkable url (mounted or not) and that url has enough information to reconstruct the page when you do a refresh in the browser. Internally if you have a form or links on them (which are not stateless) the links target that specific instances that is created by the bookmarkable url johan On Fri, Aug 15, 2008 at 3:37 PM, miro [EMAIL PROTECTED] wrote: Its not just about redirect please help me understand how things work when I call setResponsePage() just few details on how it actually finds the url for the class I pass in setRespopnsePage() ? jwcarman wrote: If you want it to redirect, call setRedirect(true) on the request cycle. On Fri, Aug 15, 2008 at 9:29 AM, miro [EMAIL PROTECTED] wrote: please help me understand how this url works. I have a form, the on submit method calls setResponsePage(foo.class) , So when a user submits the form my onSubmit method gets called and i end method with setResponsePage(), after this what happens ? where the control goes, how wicket tries to look up the class and where it generates the url does it know whether to redirect or forward please help me understand this . -- View this message in context: http://www.nabble.com/very-confused-with-url-wicket-is-generating-tp18998651p18998651.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/very-confused-with-url-wicket-is-generating-tp18998651p18998783.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session jumping?
do you really see the same httpsession instance? or just the wicket session instance? Can you print out the session ids? But first upgrade to 1.3.4: The Apache Wicket team is proud to announce the availability of the fourth maintenance release: Apache Wicket 1.3.4. A lot of bugs have been squashed and several improvements implemented. Two noteworthy bugs have been squashed: - cross session leakage due to a dangling thread local in exceptional circumstances - memory leak in localizer (WICKET-1667) johan On Fri, Aug 15, 2008 at 4:29 PM, ChuckDeal [EMAIL PROTECTED] wrote: Wicket 1.3.3 I am going to attempt to describe what I have experienced in the hopes that a core dev can point me in the right direction. The background: We previously had a complete JSP system in place. We decided to use the Wicket framework, but could not convert the entire system at once, so the foundation is now wicket with a few of its pieces in Wicket, but much of the legacy system is accessed thorugh a technique the Al Maw posted whereby the legacy url is captured then redirected into a Wicket page hosting an IFrame, which then loads the original URL. All of the pure Wicket pages are mounted using the HybridUrlCodingStrategy, except for the Wicket page that acts as the legacy interface, which is the standard BookmarkablePageRequestTargetUCS. We use the wicket-auth module for authentication (with Databinder), so the user (user_id) is stored in the WebSession. The problem: It seems that when two users enter the system, there is a scenario where the second user becomes the first user. Both users login through a Wicket Page, which deposits them on a wicket page. If user1 go to a legacy URL, then the next wicket page that user2 visits changes to user1's session. This can be observed because we display the logged in user on each page and the name changes. My working theory is that it has something to do with loading a serialized page from disk. We are using JDK serialization and the std SecondLevelCache/DiskPageStore session store. Can a dev verify that the Session is serialized with a Page? How on earth is one user loading another's serialized Page from disk? Has anyone experienced this? How can I prevent this? Obviously, this is a serious issue for us because this defeats user security. Chuck -- View this message in context: http://www.nabble.com/session-%22jumping%22--tp18999615p18999615.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session jumping?
I'll make another attempt at upgrading. The last time I tried to upgrade to 1.3.4, I had problem with the relative path adjustments that Wicket was making. I had planned to hold off until our next release because we are at the end of this cycle. But this is a showstopper, so here we go... Johan Compagner wrote: do you really see the same httpsession instance? or just the wicket session instance? Can you print out the session ids? But first upgrade to 1.3.4: The Apache Wicket team is proud to announce the availability of the fourth maintenance release: Apache Wicket 1.3.4. A lot of bugs have been squashed and several improvements implemented. Two noteworthy bugs have been squashed: - cross session leakage due to a dangling thread local in exceptional circumstances - memory leak in localizer (WICKET-1667) johan On Fri, Aug 15, 2008 at 4:29 PM, ChuckDeal [EMAIL PROTECTED] wrote: Wicket 1.3.3 I am going to attempt to describe what I have experienced in the hopes that a core dev can point me in the right direction. The background: We previously had a complete JSP system in place. We decided to use the Wicket framework, but could not convert the entire system at once, so the foundation is now wicket with a few of its pieces in Wicket, but much of the legacy system is accessed thorugh a technique the Al Maw posted whereby the legacy url is captured then redirected into a Wicket page hosting an IFrame, which then loads the original URL. All of the pure Wicket pages are mounted using the HybridUrlCodingStrategy, except for the Wicket page that acts as the legacy interface, which is the standard BookmarkablePageRequestTargetUCS. We use the wicket-auth module for authentication (with Databinder), so the user (user_id) is stored in the WebSession. The problem: It seems that when two users enter the system, there is a scenario where the second user becomes the first user. Both users login through a Wicket Page, which deposits them on a wicket page. If user1 go to a legacy URL, then the next wicket page that user2 visits changes to user1's session. This can be observed because we display the logged in user on each page and the name changes. My working theory is that it has something to do with loading a serialized page from disk. We are using JDK serialization and the std SecondLevelCache/DiskPageStore session store. Can a dev verify that the Session is serialized with a Page? How on earth is one user loading another's serialized Page from disk? Has anyone experienced this? How can I prevent this? Obviously, this is a serious issue for us because this defeats user security. Chuck -- View this message in context: http://www.nabble.com/session-%22jumping%22--tp18999615p18999615.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/session-%22jumping%22--tp18999615p1814.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PageParameter question
Hi! I try to use the page parameters class for passing a lot of queries. Now it is very important that if I pass ?Item=13Gender=femaleCategory=13 that I get this in the correct order. Used for internal bread crumbs and background image replacement. When I use the PageParameters the parameters are not retained in the order I added them. Comments anyone? Let's say I make this PageParameters params = new PageParameters(); params.add( category, 12 ); params.add( brand, 11 ); And I use this to check the parameters Iterator iter = params.keySet().iterator(); while( iter.hasNext() ){ String key = (String)iter.next(); } A do not get the order I'm looking for. -- View this message in context: http://www.nabble.com/PageParameter-question-tp1829p1829.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session jumping?
Sorry, you had asked some questions too: I had not verified that it was the same httpsession. it just seemed to be the same wicket session. Where would you recommend to print the session id (i'm guessing httpsession id?)? Johan Compagner wrote: do you really see the same httpsession instance? or just the wicket session instance? Can you print out the session ids? But first upgrade to 1.3.4: The Apache Wicket team is proud to announce the availability of the fourth maintenance release: Apache Wicket 1.3.4. A lot of bugs have been squashed and several improvements implemented. Two noteworthy bugs have been squashed: - cross session leakage due to a dangling thread local in exceptional circumstances - memory leak in localizer (WICKET-1667) johan On Fri, Aug 15, 2008 at 4:29 PM, ChuckDeal [EMAIL PROTECTED] wrote: Wicket 1.3.3 I am going to attempt to describe what I have experienced in the hopes that a core dev can point me in the right direction. The background: We previously had a complete JSP system in place. We decided to use the Wicket framework, but could not convert the entire system at once, so the foundation is now wicket with a few of its pieces in Wicket, but much of the legacy system is accessed thorugh a technique the Al Maw posted whereby the legacy url is captured then redirected into a Wicket page hosting an IFrame, which then loads the original URL. All of the pure Wicket pages are mounted using the HybridUrlCodingStrategy, except for the Wicket page that acts as the legacy interface, which is the standard BookmarkablePageRequestTargetUCS. We use the wicket-auth module for authentication (with Databinder), so the user (user_id) is stored in the WebSession. The problem: It seems that when two users enter the system, there is a scenario where the second user becomes the first user. Both users login through a Wicket Page, which deposits them on a wicket page. If user1 go to a legacy URL, then the next wicket page that user2 visits changes to user1's session. This can be observed because we display the logged in user on each page and the name changes. My working theory is that it has something to do with loading a serialized page from disk. We are using JDK serialization and the std SecondLevelCache/DiskPageStore session store. Can a dev verify that the Session is serialized with a Page? How on earth is one user loading another's serialized Page from disk? Has anyone experienced this? How can I prevent this? Obviously, this is a serious issue for us because this defeats user security. Chuck -- View this message in context: http://www.nabble.com/session-%22jumping%22--tp18999615p18999615.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/session-%22jumping%22--tp18999615p1866.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PageParameter question
PageParameters is a hashmap and not a list, thus the hashcode is the decisive factor, not the order the elements are added ... Mathias P.W Nilsson wrote: Hi! I try to use the page parameters class for passing a lot of queries. Now it is very important that if I pass ?Item=13Gender=femaleCategory=13 that I get this in the correct order. Used for internal bread crumbs and background image replacement. When I use the PageParameters the parameters are not retained in the order I added them. Comments anyone? Let's say I make this PageParameters params = new PageParameters(); params.add( category, 12 ); params.add( brand, 11 ); And I use this to check the parameters Iterator iter = params.keySet().iterator(); while( iter.hasNext() ){ String key = (String)iter.next(); } A do not get the order I'm looking for. - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/PageParameter-question-tp1829p19000175.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PageParameter question
Well of course, the Wicket ValueMap extends HashMap. OK, to get this parameters in a correct order I need to roll my own PageParameter? -- View this message in context: http://www.nabble.com/PageParameter-question-tp1829p19000196.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session jumping?
onBeginRequest of your RequestCycle or something like that but first try to upgrade On Fri, Aug 15, 2008 at 4:50 PM, ChuckDeal [EMAIL PROTECTED] wrote: Sorry, you had asked some questions too: I had not verified that it was the same httpsession. it just seemed to be the same wicket session. Where would you recommend to print the session id (i'm guessing httpsession id?)? Johan Compagner wrote: do you really see the same httpsession instance? or just the wicket session instance? Can you print out the session ids? But first upgrade to 1.3.4: The Apache Wicket team is proud to announce the availability of the fourth maintenance release: Apache Wicket 1.3.4. A lot of bugs have been squashed and several improvements implemented. Two noteworthy bugs have been squashed: - cross session leakage due to a dangling thread local in exceptional circumstances - memory leak in localizer (WICKET-1667) johan On Fri, Aug 15, 2008 at 4:29 PM, ChuckDeal [EMAIL PROTECTED] wrote: Wicket 1.3.3 I am going to attempt to describe what I have experienced in the hopes that a core dev can point me in the right direction. The background: We previously had a complete JSP system in place. We decided to use the Wicket framework, but could not convert the entire system at once, so the foundation is now wicket with a few of its pieces in Wicket, but much of the legacy system is accessed thorugh a technique the Al Maw posted whereby the legacy url is captured then redirected into a Wicket page hosting an IFrame, which then loads the original URL. All of the pure Wicket pages are mounted using the HybridUrlCodingStrategy, except for the Wicket page that acts as the legacy interface, which is the standard BookmarkablePageRequestTargetUCS. We use the wicket-auth module for authentication (with Databinder), so the user (user_id) is stored in the WebSession. The problem: It seems that when two users enter the system, there is a scenario where the second user becomes the first user. Both users login through a Wicket Page, which deposits them on a wicket page. If user1 go to a legacy URL, then the next wicket page that user2 visits changes to user1's session. This can be observed because we display the logged in user on each page and the name changes. My working theory is that it has something to do with loading a serialized page from disk. We are using JDK serialization and the std SecondLevelCache/DiskPageStore session store. Can a dev verify that the Session is serialized with a Page? How on earth is one user loading another's serialized Page from disk? Has anyone experienced this? How can I prevent this? Obviously, this is a serious issue for us because this defeats user security. Chuck -- View this message in context: http://www.nabble.com/session-%22jumping%22--tp18999615p18999615.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/session-%22jumping%22--tp18999615p1866.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Getting hold of Container's markup
While using Wicket tester for starting a panel and then visiting the components to extract and build the text out of it, we are encountering a session expiration problem; Is it because of DummyWebApplication and new session being created by WicketTester? if so is there a workaround for this? Appreciate your help! Rick On Mon, Jul 28, 2008 at 6:28 PM, Ricky [EMAIL PROTECTED] wrote: I'll give it a shot and see how it goes, thanks for your help Igor appreciate it! Regards Vyas, Anirudh On Fri, Jul 25, 2008 at 3:03 PM, Igor Vaynberg [EMAIL PROTECTED]wrote: my advice to you, if you want to go this way, is to use wickettester to render the component. it is really easy to pull out the output from that. -igor On Fri, Jul 25, 2008 at 11:51 AM, Ricky [EMAIL PROTECTED] wrote: Hi Igor, Thanks for replying again and bearing with me, appreciate your help. Here is what i have so far : === public static final String generatePlainTextFromContainer(final MarkupContainer sourceContainer) { sourceContainer.visitChildren(new Component.IVisitor() { // Loop through each child of the markup container to do setRenderBodyOnly to true. public final Object component(final Component component) { if (component != null) { component.setRenderBodyOnly(true); } return CONTINUE_TRAVERSAL; } }); if (!sourceContainer.hasBeenRendered()) { throw new IllegalStateException(Source container has not been rendered.); *// Is this right?* } // uses REGEX to strip off all HTML etc. // container.getResponse( ) gives me the content and HTML that i need. return convertHTMLToPlainText(sourceContainer.getResponse().toString()); } Now a part that i am missing is knowing WHEN and WHERE exactly should i call this method, so that a panel or Page can be converted to plain text (With COMPLETE markup). Right now, i get some markup, but some of the markup (ESPECIALLY refreshing views) are missing altogether. I tried to call it onBeforeRender( ) and as well as onAfterRender( ); but it gives an empty response. I could replace if sourceContainer has not been rendered if block contents with sourceContainer.render( ) to forcefully render it, but it screws other things up in the page. My goal is have this method being passed any PANEL or Page and be able to generate plain text from it. When i pass in the panel it is UNABLE to get the page so it throws an exception. So in work around i am thinking if i create a Page and pass in the markup container to the constructor of the page, i could add that to the page hierarchy and then get what i what i want; but the issue with that is, that What ID will i put in my markup HTML?? I would sincerely appreciate ideas / suggestion / responses on whether i am going on the right track or is there a better way?? Thanks and Regards Vyas, Anirudh On Thu, Jul 24, 2008 at 1:47 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: application.init() { getrequestcyclesettngs().addresponsefilter(new iresponsefilter() { public appendingatringbuffer filter(appendingstringbuffer responsebuffer) { return responsebuffer.append(!-- generated at: +new Date()+ --); } } that is an example filter that adds a comment at the end of the html -igor On Thu, Jul 24, 2008 at 10:42 AM, Ricky [EMAIL PROTECTED] wrote: Hi Igor, Thanks for reply! My apologies, but could elaborate a little on IResponseFilter usage as a skeletal example. I am not following Java documentation's verbiage that well (sorry if i come across as dumb). Regards Vyas, Anirudh On Wed, Jul 23, 2008 at 11:40 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: see IResponseFilter. as far as spitting out text, wicket works with xml not plain text. but if you call setrenderbodyonly(true) on all components there wont be any xml tags left in the output. -igor On Wed, Jul 23, 2008 at 8:20 AM, Ricky [EMAIL PROTECTED] wrote: Hi, I have two questions (related) : 1.) Is there a way in wicket to get Not the raw markup but markup *AFTER*the actual data has been inserted? (meaning the final HTML as we see it on the page?). 2.) Similar to above scenario, can you use container to spit out markup in some other form, for example Plain Text or XML form ? (the markup with actual data). I prepared a test case for the same, which used a TestPage and Wicket Tester to start the page and then called testPage.getAssociateMarkup(true); and testPage.getMarkup(). I tried to call it after doing testPage.render() but no change. Regards Vyas, Anirudh
Re: PageParameter question
as far as i remember, you can't easily subclass pageparameters. i'd suggest to implement your own urlcoding strategy that does the ordering stuff for you Mathias P.W Nilsson wrote: Well of course, the Wicket ValueMap extends HashMap. OK, to get this parameters in a correct order I need to roll my own PageParameter? - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/PageParameter-question-tp1829p19000354.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PageParameter question
I don't quite know what you mean. I must still pass PageParameters to the contructor of a page? How could this help me? -- View this message in context: http://www.nabble.com/PageParameter-question-tp1829p19001494.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PageParameter question
either use IndexedParamUrlCodingStrategy to mount your page. e.g. params.put(0, foo); params.put(1, bar); params.put(2, cux); will result in mountpoint/foo/bar/cux (in that order) or override the strategy you're using to get them in the right order, but i still don't get why you're trying to do this... Mathias P.W Nilsson wrote: I don't quite know what you mean. I must still pass PageParameters to the contructor of a page? How could this help me? - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/PageParameter-question-tp1829p19001725.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PageParameter question
Are you a 100% sure that ordering the parameters is the only way to go? And if yes are you sure you want to rely on the order the browser gives you? I think you should rethink your strategy. 2008/8/15 Mathias P.W Nilsson [EMAIL PROTECTED] I don't quite know what you mean. I must still pass PageParameters to the contructor of a page? How could this help me? -- View this message in context: http://www.nabble.com/PageParameter-question-tp1829p19001494.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session jumping?
OK, I upgraded to 1.3.4 and now I remember what was broken for me. Some of my pages are having the wrong relative path prepended to them. Upon further inspection, line 184 of ServletWebRequest is not matching due to an encoding issue where path = jspfs/legacyUrl/peerReview/pr_start.jsp serveltPath = /jspfs/legacyUrl/peerReview%2Fpr_start.jsp I read up on WICKET-1624 and WICKET-1627 because it was referenced in the code, but I am not sure where to go from here. Johan Compagner wrote: onBeginRequest of your RequestCycle or something like that but first try to upgrade On Fri, Aug 15, 2008 at 4:50 PM, ChuckDeal [EMAIL PROTECTED] wrote: Sorry, you had asked some questions too: I had not verified that it was the same httpsession. it just seemed to be the same wicket session. Where would you recommend to print the session id (i'm guessing httpsession id?)? Johan Compagner wrote: do you really see the same httpsession instance? or just the wicket session instance? Can you print out the session ids? But first upgrade to 1.3.4: The Apache Wicket team is proud to announce the availability of the fourth maintenance release: Apache Wicket 1.3.4. A lot of bugs have been squashed and several improvements implemented. Two noteworthy bugs have been squashed: - cross session leakage due to a dangling thread local in exceptional circumstances - memory leak in localizer (WICKET-1667) johan On Fri, Aug 15, 2008 at 4:29 PM, ChuckDeal [EMAIL PROTECTED] wrote: Wicket 1.3.3 I am going to attempt to describe what I have experienced in the hopes that a core dev can point me in the right direction. The background: We previously had a complete JSP system in place. We decided to use the Wicket framework, but could not convert the entire system at once, so the foundation is now wicket with a few of its pieces in Wicket, but much of the legacy system is accessed thorugh a technique the Al Maw posted whereby the legacy url is captured then redirected into a Wicket page hosting an IFrame, which then loads the original URL. All of the pure Wicket pages are mounted using the HybridUrlCodingStrategy, except for the Wicket page that acts as the legacy interface, which is the standard BookmarkablePageRequestTargetUCS. We use the wicket-auth module for authentication (with Databinder), so the user (user_id) is stored in the WebSession. The problem: It seems that when two users enter the system, there is a scenario where the second user becomes the first user. Both users login through a Wicket Page, which deposits them on a wicket page. If user1 go to a legacy URL, then the next wicket page that user2 visits changes to user1's session. This can be observed because we display the logged in user on each page and the name changes. My working theory is that it has something to do with loading a serialized page from disk. We are using JDK serialization and the std SecondLevelCache/DiskPageStore session store. Can a dev verify that the Session is serialized with a Page? How on earth is one user loading another's serialized Page from disk? Has anyone experienced this? How can I prevent this? Obviously, this is a serious issue for us because this defeats user security. Chuck -- View this message in context: http://www.nabble.com/session-%22jumping%22--tp18999615p18999615.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/session-%22jumping%22--tp18999615p1866.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/session-%22jumping%22--tp18999615p19002132.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AjaxSelfUpdatingTimerBehavior and RepeatingView
Hello, Newbie wicket user, but liking it so far :) Using 1.3.4 I've been trying to get a prototype going which will display a repeating view and regularly update a list of data via Ajax. My constructor for my component (which extends Panel) looks like this. == public UpcomingRacesComponent(String id) { super(id); RepeatingView upcomingRacesRepeatingView = new RepeatingView(upcomingRacesRepeater); this.add(upcomingRacesRepeatingView); String[] races = getRandomlyOrderedRaces(); int index = 0; for (String race : races) { WebMarkupContainer item = new WebMarkupContainer(upcomingRacesRepeatingView .newChildId()); upcomingRacesRepeatingView.add(item); item.add(new Label(raceLabel, race)); index++; } } == the html for this looks like == wicket:panel div wicket:id=upcomingRacesRepeater div wicket:id=raceLabel [ race ] /div /div /wicket:panel == the code for the page that holds the component is == public IndexPage() { final UpcomingRacesComponent upcomingRacesComponent = new UpcomingRacesComponent(upcomingRacesComponent); upcomingRacesComponent.setOutputMarkupId(true); upcomingRacesComponent.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(3))); this.add(upcomingRacesComponent); } == and the html within the page == div wicket:id=upcomingRacesComponent class=upcomingRaces [ Upcoming races component ] /div == Through the Wicket debugger, I can see the request going to the server, but the same data is always returned (i'm randomizing the order for testing, so it should be changing). I also tried wrapping the component withing a WebMarkupContainer (as described in the Wicket In Action). but that didn't work either. It's pretty obvious why it isn't working since the constructor is only being called once and hence getRandomlyOrderedRaces is only called once, but I've been trying various different things and I can't seem to find where to hook in getRandomlyOrderedRaces so that it is called upon each of the AJAX calls. Any help appreciated, this is probably a really dumb question Thanks Daryl
Wicket 1.4m3 ModalWindow close problem in Opera
Hi, I would like to ask you about my problem with modal modal window in Opera. When i close modal window everything works good in java (all listeners ale correctly called). But in browser window i still see some parts of modal window in background of my page. It dispappears only when i refresh page or invoke show modal window again. I try open modal window example (http://www.wicket-library.com/wicket-examples/ajax/modal-window.1) in opera and result is in attachment. Can somebody help me to fix this problem? Thanks Dave http://www.nabble.com/file/p19002461/operaModalWindow.PNG operaModalWindow.PNG -- View this message in context: http://www.nabble.com/Wicket-1.4m3-ModalWindow-close-problem-in-Opera-tp19002461p19002461.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AjaxSelfUpdatingTimerBehavior works one time
I am using the AjaxSelfUpdatingTimerBehavior on a WebMarkupContainer. A RefreshingView is within the container. When I load the page, the view works fine. On the first Ajax call, it does update the view and loads fine. On the second call I get Ajax GET stopped because of precondition check, url:?wicket:interface=:1:nameListCont::IActivePageBehaviorListener:0:-1amp;wicket:ignoreIfNotActive=true I am not understanding why it works once then stops. Seems like the behavior listener is gone on the second call. --Tim -- View this message in context: http://www.nabble.com/AjaxSelfUpdatingTimerBehavior-works-one-time-tp19002634p19002634.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: session jumping?
cant you patch wicket for that specific problem? Is maybe trunk of 1.3 better for you? On Fri, Aug 15, 2008 at 6:59 PM, ChuckDeal [EMAIL PROTECTED] wrote: OK, I upgraded to 1.3.4 and now I remember what was broken for me. Some of my pages are having the wrong relative path prepended to them. Upon further inspection, line 184 of ServletWebRequest is not matching due to an encoding issue where path = jspfs/legacyUrl/peerReview/pr_start.jsp serveltPath = /jspfs/legacyUrl/peerReview%2Fpr_start.jsp I read up on WICKET-1624 and WICKET-1627 because it was referenced in the code, but I am not sure where to go from here. Johan Compagner wrote: onBeginRequest of your RequestCycle or something like that but first try to upgrade On Fri, Aug 15, 2008 at 4:50 PM, ChuckDeal [EMAIL PROTECTED] wrote: Sorry, you had asked some questions too: I had not verified that it was the same httpsession. it just seemed to be the same wicket session. Where would you recommend to print the session id (i'm guessing httpsession id?)? Johan Compagner wrote: do you really see the same httpsession instance? or just the wicket session instance? Can you print out the session ids? But first upgrade to 1.3.4: The Apache Wicket team is proud to announce the availability of the fourth maintenance release: Apache Wicket 1.3.4. A lot of bugs have been squashed and several improvements implemented. Two noteworthy bugs have been squashed: - cross session leakage due to a dangling thread local in exceptional circumstances - memory leak in localizer (WICKET-1667) johan On Fri, Aug 15, 2008 at 4:29 PM, ChuckDeal [EMAIL PROTECTED] wrote: Wicket 1.3.3 I am going to attempt to describe what I have experienced in the hopes that a core dev can point me in the right direction. The background: We previously had a complete JSP system in place. We decided to use the Wicket framework, but could not convert the entire system at once, so the foundation is now wicket with a few of its pieces in Wicket, but much of the legacy system is accessed thorugh a technique the Al Maw posted whereby the legacy url is captured then redirected into a Wicket page hosting an IFrame, which then loads the original URL. All of the pure Wicket pages are mounted using the HybridUrlCodingStrategy, except for the Wicket page that acts as the legacy interface, which is the standard BookmarkablePageRequestTargetUCS. We use the wicket-auth module for authentication (with Databinder), so the user (user_id) is stored in the WebSession. The problem: It seems that when two users enter the system, there is a scenario where the second user becomes the first user. Both users login through a Wicket Page, which deposits them on a wicket page. If user1 go to a legacy URL, then the next wicket page that user2 visits changes to user1's session. This can be observed because we display the logged in user on each page and the name changes. My working theory is that it has something to do with loading a serialized page from disk. We are using JDK serialization and the std SecondLevelCache/DiskPageStore session store. Can a dev verify that the Session is serialized with a Page? How on earth is one user loading another's serialized Page from disk? Has anyone experienced this? How can I prevent this? Obviously, this is a serious issue for us because this defeats user security. Chuck -- View this message in context: http://www.nabble.com/session-%22jumping%22--tp18999615p18999615.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/session-%22jumping%22--tp18999615p1866.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/session-%22jumping%22--tp18999615p19002132.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is DynamicImageResource safe for multiple windows?
Building a sample to show the problem has been harder than I thought. Because on all bare-bones applications that I tried to build, the URLs end up being different (the counter on the interface seems to be working). What could make my larger application not increment the ?wicket:interface=:counter: count? That seems to be the source of my problem. On my application, it's always at 0. I'm using wicket 1.3.3 (which is the same version as the one I'm testing it with) and, besides a much deeper component tree, the only meaningful thing that is different on my application is that I initialize the SpringComponentInjector (which I don't think should be the issue, but it's good to mention). Thanks, Michel On Thu, Aug 14, 2008 at 10:26 PM, Michel Goldstein [EMAIL PROTECTED] wrote: As I mentioned, I basically used what was in the twiki about JFreeChart integration. I'll build a simple example of the problem and send it out sometime tomorrow (USA Pacific time). Thanks, Michel On Thu, Aug 14, 2008 at 7:59 PM, Timo Rantalaiho [EMAIL PROTECTED]wrote: On Thu, 14 Aug 2008, Michel Goldstein wrote: Spoke too soon... Unfortunately the problem still seems to be there even after I've added the NonCachingImage. This furthers the confirmation that it's not browser caching issue, but a resource sharing problem. From where does the image data come from, and when? You could show some code, preferably in an easily executable quickstart, and maybe someone could help you. Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
don't understand model behaviour for a form and a datatable
I have a DataTable in a Panel which creates a Subpanel by an AjaxRequest with a form in it. The form shows the double-clicked entry of a DataTable's row, where the objects parameters can be changed by pressing the save button. The form is constructed by a CompoundPropertyModel. And now comes the magic I don't understand: If I press the save button the object in the table will immediately updated although the submit methods are empty. How does this behavior work? How can I interupt this update if I have a problem on the backend? Heiko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
QuickStart 404
I tried getting the Wicket quickstart up and running via maven today.I followed the directions here: http://wicket.apache.org/quickstart.html then ran mvn jetty:run. It shows things running alright. When I go to: http://locahost:8080/ I get a 404: No context on this server matched or handled this request. Contexts known to this server are: - /myproject --- [EMAIL PROTECTED]/myproject,/home/g/projects/wicket/myproject/src/main/webapp}http://localhost:8080/myproject Any ideas? Thanks,
Re: QuickStart 404
Did you click myproject? That's where your project is launched. There's a setting in your POM. On Fri, Aug 15, 2008 at 2:52 PM, Gregg Bolinger [EMAIL PROTECTED]wrote: I tried getting the Wicket quickstart up and running via maven today.I followed the directions here: http://wicket.apache.org/quickstart.html then ran mvn jetty:run. It shows things running alright. When I go to: http://locahost:8080/ I get a 404: No context on this server matched or handled this request. Contexts known to this server are: - /myproject --- [EMAIL PROTECTED] {/myproject,/home/g/projects/wicket/myproject/src/main/webapp} http://localhost:8080/myproject Any ideas? Thanks, -- Jeremy Thomerson http://www.wickettraining.com
Suggestion: Make MarkupContainer implement java.lang.Iterable
MarkupContainer already has the iterator() method. If it implements Iterable, one can use it directly in the foreach loop :) MarkupContainer container = ...; for (Component c : container) {} -- View this message in context: http://www.nabble.com/Suggestion%3A-Make-MarkupContainer-implement-java.lang.Iterable-tp19004729p19004729.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PageParameter question
Ok, what other stratergy is there 1. A user chooses a Brand. Customer has requested that a top logo, text and background image changes for that particular brand and list all items. 2. Customer continues to filter on a Category. The search is narrowed. Background is preserved but 2 breadcrumbs path is made to follow. 1. A user chooses a Department instead as a first choice. Top logo, background images changes for the department and list the items 2. User continues the search. It is critical with the sortorder since the breadcrumbs and the top logo, text and background is determined. What other choice is there? -- View this message in context: http://www.nabble.com/PageParameter-question-tp1829p19004816.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PageParameter question
I have already solved this using wicket ultimate stateful WebFramework. Customer requires that the site must be google friendly. -- View this message in context: http://www.nabble.com/PageParameter-question-tp1829p19004831.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: PageParameter question
It may not be the prettiest, but you could come up with a utility method that encodes all of those parameters into one string so that you ultimately have one parameter that represents them all. Then you could even create a subclass of PageParameters that knows to look up the parameter in that string if the parameter isn't there by the default lookup. Sorr y- I don't think that description was very good - let me give a pseudo-code example of what I'm thinking Where ever you currently create your page parameters: PageParameters params = new PageParameters(); params.add( category, 12 ); params.add( brand, 11 ); Change it to something like: StringBuffer sb = new StringBuffer(); sb.append(category).append(:).append(12).append(|); sb.append(brand).append(:).append(11).append(|); PageParameters params = new PageParameters(); params.add(data, sb.toString()); Okay, just looked - you can't subclass PageParameters - it's final. So, I suppose you could use a utility method like: String brand = MyUtility.getParameter(params, brand); MyUtility { String getParameter(PageParameters params, String key) { String val = params.get(key); if (val == null) { String data = params.get(data); val = getFromEncodedString(data, key); } } String getFromEncodedString(String data, String key) { String[] pieces = data.split(|); for (String piece : pieces) { if (piece.beginsWith(key)) { String[] keyVal = piece.split(:); return keyVal[1]; } } } } DISCLAIMER - obviously this code does a lot of unsafe things. It is just to show one idea that I had for handling your situation. You could take it and modify it to work for you, or it may give you another idea. The primary piece of this idea is that you encode all of your parameters into one parameter that stores the data in the order that you need it since order matters to you. -- Jeremy Thomerson http://www.wickettraining.com On Fri, Aug 15, 2008 at 3:12 PM, Mathias P.W Nilsson [EMAIL PROTECTED]wrote: I have already solved this using wicket ultimate stateful WebFramework. Customer requires that the site must be google friendly. -- View this message in context: http://www.nabble.com/PageParameter-question-tp1829p19004831.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
url when requestTarget is of type IListenerInterfaceRequestTarget
if my requestTarget is of type IListenerInterfaceRequestTarget, WebRequestCodingStrategy it calls the method protected CharSequence encode(RequestCycle requestCycle, IListenerInterfaceRequestTarget requestTarget) , this method puts lot of details in url l?wicket:interface=:60 which does not makes sense to me. Is there any way I can rephrase this and use the mounted string for this page ? -- View this message in context: http://www.nabble.com/url-when-requestTarget-is-of-type-IListenerInterfaceRequestTarget-tp19005159p19005159.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [announce] Wicket in Action e-book has been published!
grats!:) Martijn Dashorst wrote: Almost 3 years of hard work, loosing friends, moving abroad, marrying lovely wives, late nights, early mornings, frustrated family, and all other bad (and good) things that cross one's life is now rewarded with the availability of the e-book edition of Wicket in Action. The print edition (also know as dead-tree edition) will be available in just over 2 weeks (estimated at Aug 29th). Eelco and I are *really*, *really* glad that the journey is finally over. We think it was worth it. Now we leave the book in your capable hands to make beautiful applications that make your boss and customers happy and we are sure you'll enjoy creating them. Eelco Hillenius Martijn Dashorst About Wicket in Action Wicket in Action is a comprehensive guide for Java developers building Wicket-based web applications. It introduces Wicket's structure and components, and moves quickly into examples of Wicket at work. Written by core committers, this book shows you the how-to and the why of Wicket. You'll learn to use and customize Wicket components, to interact with Spring and Hibernate, and to implement rich Ajax-driven features. Some quotes of early access reviewers: Finally, the Web Framework of web framework, Apache Wicket, now has a bible of its own. - Per Ejeklint Without question, Wicket in Action... is the be-all and end-all when it comes to Wicket. - Geertjan Wielenga Wicket In Action glues the areas of web development with Apache Wicket together and gives a great overview of Apache Wicket...it will make a great compendium. - Nino Martinez Wael You can read full reviews here: - Nick Heudecker: Wicket In Action Book Review http://www.theserverside.com/news/thread.tss?thread_id=50326 - Geertjan Wielenga: Wicket in Action: Undoubtedly The Wicket Bible http://blogs.sun.com/geertjan/entry/wicket_in_action_undoubtedly_the Free content If you don't think these reviewers are qualified to tell you to buy Wicket in Action, let these free samples convince you: * Chapter 1: http://www.manning.com/dashorst/ch01_dashorst.pdf * Chapter 8: http://www.manning.com/dashorst/ch08_dashorst.pdf * Excerpt: Creating Secure Web Applications with Apache Wicket (http://www.manning.com/free/excerpt_Wicket.html) MEAP readers If you bought the MEAP edition you'll receive a personal download link for the final e-book in your inbox today (or possibly tomorrow). We'd like to extend our gratitude to the MEAP readers - without you and your encouragements we would've given up. Limited summer discount There is a 35% discount when you buy Wicket in Action at the manning website before the end of August. For more details look here: http://manning.com/dashorst - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Dynamic PrependKeywordEncodingStrategy? (making a simple rule for caching with apache)
Hi I've been fighting a bit with making a EncodingStrategy that can prepend a keyword (cacheable etc) to the url depending on page state, however I cant get the last bits to work heres what I got so far: ApplicationClass: @Override protected IRequestCycleProcessor newRequestCycleProcessor() { return new WebRequestCycleProcessor() { protected IRequestCodingStrategy newRequestCodingStrategy() { return new PrependKeywordEncodingStrategy( new WebRequestCodingStrategy(), cacheable); } }; } I've posted the prepending strategy to pastebin: http://pastebin.ca/1173557 So the idea are basically that there should be prepended cacheable to all pages where the user are not logged in. That way I can set my apache up to cache all pages with /cacheable prefix. -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mounting with inheritance?
I have a client that wants a store application, simple enough, list products, put them in shopping cart and checkout. But he has great amitions, he wants to be able to have multiple stores, one for electronics, one for hiking gear, one for workout and fitness and so on, but he wants everything managble from one admin view, and the stores could have pretty much the same layout, but with some modifications possible, change colors, have the fitness part include some workout tips articles etc. So I figured it'd be cool if it could be hosted on one url, www.company.com, and have the first part of the url idenfity the store to use, and any additions be the identifier to where to go in the store, in this way: www.company.com/fitness - takes you to the storefront of the finess store www.company.com/electronics/product - takes you to a product listing page for the electronics store www.company.com/hiking/product/42 - views product details of product id 42 in the hiking store I've been looking into the mounting functionality of wicket, and thought it might be used in combination with wicketstuff-annotations, but I'm not sure how to proceed. I've been playing with the idea of having an abstract StorePage or so, to determine what store the user wants to walk around in, and then have the ProductList and ProductDetail etc pages inherit from this, but I am not quite sure how or if it would work. Anyone having a suggestion would be very much appreciated. Thanks Arne -- View this message in context: http://www.nabble.com/Mounting-with-inheritance--tp19007264p19007264.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: QuickStart 404
Got it. Thanks for the tip. On Fri, Aug 15, 2008 at 3:03 PM, Jeremy Thomerson [EMAIL PROTECTED] wrote: Did you click myproject? That's where your project is launched. There's a setting in your POM. On Fri, Aug 15, 2008 at 2:52 PM, Gregg Bolinger [EMAIL PROTECTED] wrote: I tried getting the Wicket quickstart up and running via maven today.I followed the directions here: http://wicket.apache.org/quickstart.html then ran mvn jetty:run. It shows things running alright. When I go to: http://locahost:8080/ I get a 404: No context on this server matched or handled this request. Contexts known to this server are: - /myproject --- [EMAIL PROTECTED] {/myproject,/home/g/projects/wicket/myproject/src/main/webapp} http://localhost:8080/myproject Any ideas? Thanks, -- Jeremy Thomerson http://www.wickettraining.com