Re: How to redirect to a page from an AJAX request?
hi! you could check it with the Wicket Ajax Debug - for the ajax redirect it should receive and process javascript instruction which resets location of the page. maybe there are some JS errors out there? On May 22, 2012 8:59 AM, "Melinda Dweer" wrote: > IFAIK setResponsePage(Page.class) should work: at least I remember using it > successfully on an AJAX request cycle to redirect to a different page. > > Regards, > > Melinda > > On Tue, May 22, 2012 at 2:41 AM, Alec Swan wrote: > > > Hello, > > > > I use AjaxSubmitLink to submit a form that has captcha. I refresh > > captcha by adding it to ajax request. However, when the user > > successfully submits the form I want to redirect the user to a > > different page. I tried setResponsePage and throw new > > RestartResponseException in AjaxSubmitLink#onSubmit, but they seem to > > have no effect. > > > > How can I redirect the user to a page from an ajax request? > > > > Thanks, > > > > Alec > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > >
Re: How to redirect to a page from an AJAX request?
IFAIK setResponsePage(Page.class) should work: at least I remember using it successfully on an AJAX request cycle to redirect to a different page. Regards, Melinda On Tue, May 22, 2012 at 2:41 AM, Alec Swan wrote: > Hello, > > I use AjaxSubmitLink to submit a form that has captcha. I refresh > captcha by adding it to ajax request. However, when the user > successfully submits the form I want to redirect the user to a > different page. I tried setResponsePage and throw new > RestartResponseException in AjaxSubmitLink#onSubmit, but they seem to > have no effect. > > How can I redirect the user to a page from an ajax request? > > Thanks, > > Alec > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
How to redirect to a page from an AJAX request?
Hello, I use AjaxSubmitLink to submit a form that has captcha. I refresh captcha by adding it to ajax request. However, when the user successfully submits the form I want to redirect the user to a different page. I tried setResponsePage and throw new RestartResponseException in AjaxSubmitLink#onSubmit, but they seem to have no effect. How can I redirect the user to a page from an ajax request? Thanks, Alec - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AJAX-swappable bookmarkable unversioned tabs
Hello, We are starting a new project where we need to implement a simple menu using Wicket 1.4.17. In my previous project I implemented tabbing using ajax-swappable panels. I really liked the smooth tab transition you get with this approach. The two things I disliked were versionable pages and that tabs were not bookmarkable. Is it possible to have the ajax-swappable bookmarkable tabs without versioned pages? Thanks, Alec - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket 6 setting response page with page object and session expired error
ok, yep right, give me some time so I try to recreate it from scratch pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __ On 21 May 2012 16:48, Thomas Götz wrote: > Either this or upload it somewhere and post the link here. > > -Tom > > > On 21.05.2012 at 16:25 kamiseq wrote: > >> yes, >> can I send it directly to you in case userlist rejects attachment? >> >> pozdrawiam >> Paweł Kamiński >> >> kami...@gmail.com >> pkaminski@gmail.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: wicket 6 setting response page with page object and session expired error
Either this or upload it somewhere and post the link here. -Tom On 21.05.2012 at 16:25 kamiseq wrote: > yes, > can I send it directly to you in case userlist rejects attachment? > > pozdrawiam > Paweł Kamiński > > kami...@gmail.com > pkaminski@gmail.com > __ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicket 6 setting response page with page object and session expired error
yes, can I send it directly to you in case userlist rejects attachment? pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __ On 21 May 2012 10:01, Thomas Götz wrote: > Could you provide a quickstart that demonstrates this behavior? > > -Tom > > > On 21.05.2012 at 09:56 kamiseq wrote: > >> hej, >> I have a strange error. >> >> I have stateless page (A) with form on it. form contains email input. >> inside form's onSelect handler I create page (B) and pass email to its >> constructor. >> Application nextPage = new >> Application(getModelObject().getEmail());// form model object >> setResponsePage(nextPage); >> >> page B is also mounted so someone can access page by passing email as >> parameter. >> super(parameters); >> StringValue email = parameters.get("email"); >> if (email.isEmpty()) >> throw new RuntimeException("ups no email"); >> >> page B displays users data if available. >> page B creates LoadableDetachableModel and uses email as id, I also >> pass Injected service object by giuce to the model >> page B has link to go to page C >> add(new Link("accept") >> { >> @Override >> public void onClick() { >> SignIn signInPage = new SignIn(model); // model is created on >> the begging of the constructor >> setResponsePage(signInPage); >> } >> }); >> >> pages B and C are state-full. >> now when I go from page A and pass page B object and then call the >> link which creates page C object then I get page expired message. >> BUT if I go directly to page B using mounted url and then I click on >> link I am redirected to page C without a problem. >> >> maybe I miss something obvious here but I cannot explain it why this >> is happening. >> there is no errors in log from wicket, the SignIn (C) page is created >> as expected. >> >> thanks for any hint. >> >> pozdrawiam >> Paweł Kamiński >> >> kami...@gmail.com >> pkaminski@gmail.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 > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Full month calendar
A bonus question. How can I localize fullcalendar ? (I mean day names and so one..). Regards., Sandor -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Full-month-calendar-tp4642735p4647866.html Sent from the Users forum 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: wicket 6 setting response page with page object and session expired error
Could you provide a quickstart that demonstrates this behavior? -Tom On 21.05.2012 at 09:56 kamiseq wrote: > hej, > I have a strange error. > > I have stateless page (A) with form on it. form contains email input. > inside form's onSelect handler I create page (B) and pass email to its > constructor. > Application nextPage = new > Application(getModelObject().getEmail());// form model object > setResponsePage(nextPage); > > page B is also mounted so someone can access page by passing email as > parameter. > super(parameters); > StringValue email = parameters.get("email"); > if (email.isEmpty()) >throw new RuntimeException("ups no email"); > > page B displays users data if available. > page B creates LoadableDetachableModel and uses email as id, I also > pass Injected service object by giuce to the model > page B has link to go to page C > add(new Link("accept") > { >@Override >public void onClick() { >SignIn signInPage = new SignIn(model); // model is created on > the begging of the constructor >setResponsePage(signInPage); >} > }); > > pages B and C are state-full. > now when I go from page A and pass page B object and then call the > link which creates page C object then I get page expired message. > BUT if I go directly to page B using mounted url and then I click on > link I am redirected to page C without a problem. > > maybe I miss something obvious here but I cannot explain it why this > is happening. > there is no errors in log from wicket, the SignIn (C) page is created > as expected. > > thanks for any hint. > > pozdrawiam > Paweł Kamiński > > kami...@gmail.com > pkaminski@gmail.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
wicket 6 setting response page with page object and session expired error
hej, I have a strange error. I have stateless page (A) with form on it. form contains email input. inside form's onSelect handler I create page (B) and pass email to its constructor. Application nextPage = new Application(getModelObject().getEmail());// form model object setResponsePage(nextPage); page B is also mounted so someone can access page by passing email as parameter. super(parameters); StringValue email = parameters.get("email"); if (email.isEmpty()) throw new RuntimeException("ups no email"); page B displays users data if available. page B creates LoadableDetachableModel and uses email as id, I also pass Injected service object by giuce to the model page B has link to go to page C add(new Link("accept") { @Override public void onClick() { SignIn signInPage = new SignIn(model); // model is created on the begging of the constructor setResponsePage(signInPage); } }); pages B and C are state-full. now when I go from page A and pass page B object and then call the link which creates page C object then I get page expired message. BUT if I go directly to page B using mounted url and then I click on link I am redirected to page C without a problem. maybe I miss something obvious here but I cannot explain it why this is happening. there is no errors in log from wicket, the SignIn (C) page is created as expected. thanks for any hint. pozdrawiam Paweł Kamiński kami...@gmail.com pkaminski@gmail.com __ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: TableComponentAsXlsHandler Problem
@ Mr. Ziemelis thank you it works. sorry for late reply, thanks for everyone!! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TableComponentAsXlsHandler-Problem-tp4616754p4647807.html Sent from the Users forum 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