Re: MixedParamUrlCodingStrategy and form submit

2011-09-21 Thread Alexander Gubin
so, Igor, any clues? On Sep 19, 2011, at 8:56 AM, Alexander Gubin wrote: 1.4.18 On 09/16/2011 04:26 PM, Igor Vaynberg wrote: what version of wicket? -igor On Thu, Sep 15, 2011 at 3:08 PM, Alexander Gubinagu...@greatergood.net wrote: Googled around, but no clear answer: In my

Re: MixedParamUrlCodingStrategy and form submit

2011-09-19 Thread Alexander Gubin
1.4.18 On 09/16/2011 04:26 PM, Igor Vaynberg wrote: what version of wicket? -igor On Thu, Sep 15, 2011 at 3:08 PM, Alexander Gubinagu...@greatergood.net wrote: Googled around, but no clear answer: In my app I mount a page like this: mount(new MixedParamUrlCodingStrategy(/store/product,

Re: MixedParamUrlCodingStrategy and form submit

2011-09-16 Thread Alexander Gubin
turns out that error() and info() calls from onSubmit method send me to the wrong path too I appreciate any ideas on solving this On 09/15/2011 03:08 PM, Alexander Gubin wrote: Googled around, but no clear answer: In my app I mount a page like this: mount(new MixedParamUrlCodingStrategy

MixedParamUrlCodingStrategy and form submit

2011-09-15 Thread Alexander Gubin
Googled around, but no clear answer: In my app I mount a page like this: mount(new MixedParamUrlCodingStrategy(/store/product, ItemPage.class, new String[]{itemId, itemName})); which gives me a URL store/product/45336/some-name I have a form on the resulting page, which on submit sends me

ajax and URLs

2011-09-12 Thread Alexander Gubin
Sorry, if this question had been answered before, I am writing and AJAX app and looking into way to modify browser location bar, when clicking on Ajax links. Currently I have two pages with a bunch on panels, and when I hit back button I would like to go to previous panel, not page. I see

testing setResponsePage with Panel or Page

2011-09-09 Thread Alexander Gubin
Hi all, I have a panel that redirects to another page if the user isn't logged in, e.g public MyPanel(String id) { super(id); Integer accountId = sessionBean.getAccountId(); if (accountId == null) { // not logged in, redirect to login getRequestCycle().setRedirect(true);

Re: wicket include in test

2011-08-25 Thread Alexander Gubin
Igor, thanks a lot! I was thinking of putting some check whether it's a test code into production code, but that idea seems a bit whacky :) Will play with MockServletRequest... thanks again Alexander On 08/25/2011 10:48 AM, Igor Vaynberg wrote: the include component tries to construct a

wicket include in test

2011-08-24 Thread Alexander Gubin
I saw similar post about 2 years ago, but seems that the question was left unaswered. http://wicket-users.markmail.org/message/o6ub7gjxrheevlo4?q=test+include I have a page with Include, works fine, however when testing I get: org.apache.wicket.util.resource.ResourceStreamNotFoundException: