why generate hybrid URL for stateless page?

2011-09-13 Thread Kent Tong
Hi, In 1.5 I found that even if a page is stateless, Wicket still generates hybrid URLs (with PageInfo) for stateless links/forms. This is done in AbstractBookmarkableMapper (see below). Any idea why? Thanks! if (requestHandler instanceof BookmarkableListenerInterfaceRequestHandler) {

Re: Create a stand-alone link and get its URL

2011-09-13 Thread Sven Meier
Why don't you just use a component for this, e.g. DownloadLink? a wicket:id=${var.wellKnownWicketId}Download/a No stable url involved. Sven On 09/13/2011 04:45 AM, Alec Swan wrote: Our templating engine is the one that needs to generate the link by evaluating a template similar to a

Re: ajax and URLs

2011-09-13 Thread Martin Grigorov
Wicket doesn't support Ajax back/forward button out of the box for now. You'll have to do it by yourself. On Tue, Sep 13, 2011 at 3:45 AM, Alexander Gubin agu...@greatergood.net wrote: Sorry, if this question had been answered before, I am writing and AJAX app and looking into way to modify

Re: why generate hybrid URL for stateless page?

2011-09-13 Thread Martin Grigorov
Hi Kent, Indeed the URL is hybrid but only the component info is actually used. Since the page is stateless the page is not stored and the next request recreates a new instance of this page class and uses the component info (e.g. ILinkListener-form-link) to find the link and execute its onClick

Re: weekly memory usage increase by 500 Mb problem

2011-09-13 Thread Alex
Thank you very much for your answer. I tried to use JProfiler. Under Windows it works fine. But in the working environment (Ubuntu 9.10, Tomcat6, Java Sun 1.6.0_24 HotSpot 64 bit mixed mode) the list with running JVMs is empty. If I use jpenable it says: No unprofiled JVMs found. Unfortunately

Re: weekly memory usage increase by 500 Mb problem

2011-09-13 Thread Alex
I managed to run JProfiler. The startup command should be located not in CATALINA_OPTS but in JAVA_OPTS. It is really good tool! In the mean time JProfiler running in Production, I will look on Eclipse Memory Analyzer. Thank you very much again for your help! 2011/9/13 Alex

Re: Create a stand-alone link and get its URL

2011-09-13 Thread Alec Swan
I don't think this will work because the template could be a method invocation, e.g. a wicket:id=${var.getLinkToStudentReportWithColumns('First Name', 'Last Name')}Download/a Template-evaluation approach works great for generating HTML reports, i.e. the template evaluates to a string that

Re: ajax and URLs

2011-09-13 Thread Igor Vaynberg
ive done some work on it here, maybe its of some use to you: https://github.com/ivaynberg/wicket/tree/ajax-history -igor On Tue, Sep 13, 2011 at 12:11 AM, Martin Grigorov mgrigo...@apache.org wrote: Wicket doesn't support Ajax back/forward button out of the box for now. You'll have to do it

Re: Create a stand-alone link and get its URL

2011-09-13 Thread Igor Vaynberg
add a single link to your page. expose its url as a variable to the templating engine and append some sort of id to the url to differentiate which template should be used. since you have to put the link into markup put it inside an invisible div. -igor On Tue, Sep 13, 2011 at 8:37 AM, Alec Swan

stateless page + click on stateless link = stateful page

2011-09-13 Thread Bertrand Guay-Paquet
Hello, I have a stateless page with a stateless link on it. The stateless link is used to set the session locale and nothing more. In particular, it does not redirect to another page when clicked. On first access to the page, the url is: localhost/servlet/login After clicking on the

Re: Create a stand-alone link and get its URL

2011-09-13 Thread Alec Swan
Great idea, thanks. As I was working on passing template information as a part of the link URL I started thinking that it would be nice if I could store this information in session metadata and pass the metadata key as a part of the link URL. However, I am not sure if I can pass metadata key in

Re: Create a stand-alone link and get its URL

2011-09-13 Thread Igor Vaynberg
create a single metadata key that holds a mapstring,object where string is a uuid. -igor On Tue, Sep 13, 2011 at 5:40 PM, Alec Swan alecs...@gmail.com wrote: Great idea, thanks. As I was working on passing template information as a part of the link URL I started thinking that it would be

Re: stateless page + click on stateless link = stateful page

2011-09-13 Thread Pedro Santos
Yes, otherwise the F5 would not work. It can be prevented by redirecting to a stateless page, even if it was the last accessed one. 2011/9/13 Bertrand Guay-Paquet ber...@step.polymtl.ca Hello, I have a stateless page with a stateless link on it. The stateless link is used to set the session

Re: How to remove all previous pages from pagemap

2011-09-13 Thread rebecca
Hello, Well i have to say that i spent hours yesterday trying to understand this. It was exactly as Matthias described: On clicking the back button, wicket goes to the server to fetch the page (which is o.k. - i asked browser not to cache). But instead of rendering a new bookmarkable version of