Ignoring requests already processed by other servlet (REST)

2013-03-03 Thread Ondrej Zizka
Hi all, I have a wicket app at /* and REST API at /rest . When REST returns 404 (e.g. to reqest for non-existent ID), Wicket processes this. What's the technique to tell wicket to let some requests pass? I was thinking I could mount a page to /rest which would just copy the response

Found - init-param ignorePaths /// Re: Ignoring requests already processed by other servlet (REST)

2013-03-03 Thread Ondrej Zizka
Found - thanks to Erics blog: |filter filter-namewicket.filter/filter-name filter-classorg.apache.wicket.protocol.http.WicketFilter/filter-class init-param param-nameignorePaths/param-name param-valueimages/,rest//param-value /init-param /filter

Re: org.apache.wicket.util.convert.ConversionException: Cannot parse 'abcdef' using format java.text.DecimalFormat@674dc

2013-03-03 Thread Pratibha
Thanks for the reply, i added Validator, basically first validate the input and then convert it. ---Pratibha -- View this message in context:

Wicket Tester with BookmarkablePageLink

2013-03-03 Thread yka
Hi all, are there any known problems with testing BookmarkablePageLinks? Im trying to click a BookmarkablePageLink from my start page and receive the following trace. I dont understand why he cant use the public constructor. I've wrote the default constructor...

Re: Ignoring requests already processed by other servlet (REST)

2013-03-03 Thread Bernard
See https://cwiki.apache.org/WICKET/best-practices-and-gotchas.html#BestPracticesandGotchas-Ignoringpaths On Sun, 03 Mar 2013 10:35:17 +0100, you wrote: Hi all, I have a wicket app at /* and REST API at /rest . When REST returns 404 (e.g. to reqest for non-existent ID), Wicket processes

How to redirect an external web site and where is setRequestTarget method?

2013-03-03 Thread mike.hua
According to the web site: https://cwiki.apache.org/WICKET/how-to-redirect-to-an-external-non-wicket-page.html public void onSubmit() { // Make sure no output for the current cycle is ever sent. getRequestCycle().setRequestTarget(new RedirectRequestTarget(http://www.163.com;)); } I can't

Re: How to redirect an external web site and where is setRequestTarget method?

2013-03-03 Thread Stephen Walsh
I'm using throw new RestartResponseAtInterceptPageException to redirect to an external page. That doc is for Wicket 1.3. I found that same page and started using RestartResponseAtInterceptPageException instead. I forget where I found the documentation on it, but I believe that was a change with

Re: How to redirect an external web site and where is setRequestTarget method?

2013-03-03 Thread vineet semwal
use RedirectToUrlException On Mon, Mar 4, 2013 at 8:31 AM, mike.hua hz...@sohu.com wrote: According to the web site: https://cwiki.apache.org/WICKET/how-to-redirect-to-an-external-non-wicket-page.html public void onSubmit() { // Make sure no output for the current cycle is ever sent.