retrieve a page from PageStore?
Hi, I'm using Wicket 1.5RC7. I have only 2 pages (Login, and HomePage) HomePage has state and you can do things like search, etc. When the user hits BACK BUTTON trying to go to Login, I want to redirect it to HomePage, but with the last state. With exceptions, I have used PageRequestHandlerTracker which works fine, but it does NOT work for this case. Anyone knows how to retrieve the current (or last) version of a page from PageStore? thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: retrieve a page from PageStore?
Well I'm closer, I could retrieve the page doing this: getSession().getPageManager().getPage(1) This gives me the LAST version of HomePage Now, how can I know that page id 1 is the one I'm interested? Maybe I can save this id in the session, in the HomePage constructor? any ideas? On Thu, Oct 25, 2012 at 11:37 AM, Alfonso Quiroga alfonsose...@gmail.com wrote: Hi, I'm using Wicket 1.5RC7. I have only 2 pages (Login, and HomePage) HomePage has state and you can do things like search, etc. When the user hits BACK BUTTON trying to go to Login, I want to redirect it to HomePage, but with the last state. With exceptions, I have used PageRequestHandlerTracker which works fine, but it does NOT work for this case. Anyone knows how to retrieve the current (or last) version of a page from PageStore? thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: retrieve a page from PageStore?
Hi, 1. Why do you use *1.5RC7* ? 2. See DebugDiskDataStore in wicket-devutils. It shows how you can extend the default data store (DiskDataStore) to be able to browse it. Also read https://cwiki.apache.org/confluence/display/WICKET/Page+Storage. It explains some details about this part of Wicket code. You can replace all of the default impls with your own if needed. On Thu, Oct 25, 2012 at 6:06 PM, Alfonso Quiroga alfonsose...@gmail.com wrote: Well I'm closer, I could retrieve the page doing this: getSession().getPageManager().getPage(1) This gives me the LAST version of HomePage Now, how can I know that page id 1 is the one I'm interested? Maybe I can save this id in the session, in the HomePage constructor? any ideas? On Thu, Oct 25, 2012 at 11:37 AM, Alfonso Quiroga alfonsose...@gmail.com wrote: Hi, I'm using Wicket 1.5RC7. I have only 2 pages (Login, and HomePage) HomePage has state and you can do things like search, etc. When the user hits BACK BUTTON trying to go to Login, I want to redirect it to HomePage, but with the last state. With exceptions, I have used PageRequestHandlerTracker which works fine, but it does NOT work for this case. Anyone knows how to retrieve the current (or last) version of a page from PageStore? thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: retrieve a page from PageStore?
Martin, sorry, I'm using wicket 1.5.8 I'll check now DebugDiskDataStore, thanks!!! On Thu, Oct 25, 2012 at 12:13 PM, Martin Grigorov mgrigo...@apache.org wrote: Hi, 1. Why do you use *1.5RC7* ? 2. See DebugDiskDataStore in wicket-devutils. It shows how you can extend the default data store (DiskDataStore) to be able to browse it. Also read https://cwiki.apache.org/confluence/display/WICKET/Page+Storage. It explains some details about this part of Wicket code. You can replace all of the default impls with your own if needed. On Thu, Oct 25, 2012 at 6:06 PM, Alfonso Quiroga alfonsose...@gmail.com wrote: Well I'm closer, I could retrieve the page doing this: getSession().getPageManager().getPage(1) This gives me the LAST version of HomePage Now, how can I know that page id 1 is the one I'm interested? Maybe I can save this id in the session, in the HomePage constructor? any ideas? On Thu, Oct 25, 2012 at 11:37 AM, Alfonso Quiroga alfonsose...@gmail.com wrote: Hi, I'm using Wicket 1.5RC7. I have only 2 pages (Login, and HomePage) HomePage has state and you can do things like search, etc. When the user hits BACK BUTTON trying to go to Login, I want to redirect it to HomePage, but with the last state. With exceptions, I have used PageRequestHandlerTracker which works fine, but it does NOT work for this case. Anyone knows how to retrieve the current (or last) version of a page from PageStore? thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.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