Re: shared resource / JSON question

2012-07-11 Thread Martin Grigorov
Hi, Put a breakpoint in WicketFilter#doFilter() and see whether it gets hit. If it doesn't then it is client side caching. Otherwise for some reason Wicket doesn't map the url to the mounted resource - re-check the url and the mount path. On Wed, Jul 11, 2012 at 8:33 AM, mlabs wrote: > I have im

Re: Unable to use wicket tester to simulate ajax behavior

2012-07-11 Thread Martin Grigorov
Hi, Try with: tester.getRequest().setParameter("form:combo1", "0"); tester.executeAjaxEvent("form:combo1", "onchange"); On Tue, Jul 10, 2012 at 10:10 AM, Giovanni Cuccu wrote: > Hi, > can someone give me an hint on this? > I tried to explain my problem providing a complete example and expla

Re: migrating from 1.4 to 1.5 - some images problems

2012-07-11 Thread Sam Zilverberg
I tried these methods but they didn't work. They still calculated the url to be /ui/images/datepicker.png. I found the problem. The page is a stateful and unmounted page. In wicket 1.4 these pages url would rendered as /context/?wicket:interface=:4 In wicket 1.5 the url is /context/wicket/page

Re: DatePicker does not work in IE9

2012-07-11 Thread esajjkh
Thanks for your help, I tried it but no luck. I tried this one: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml"; xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"; xml:lang="en" lang="en"> It works fine with ModalWin

Re: remove /wicket in front of url Wicket 1.5

2012-07-11 Thread samzilverberg
I'm interested in the complex options you mentioned: Martin Grigorov-4 wrote > > More complex: see PageInstanceMapper and create your own that does the > same job but uses less segments for the url. > I created a mapper which does not add the extra namespace segment in: public Url mapHandler(I

Re: remove /wicket in front of url Wicket 1.5

2012-07-11 Thread Martin Grigorov
Hi, You need to return a proper value for its #getCompatibilityScore(). The returned value should be smaller than the ones returned by MountedMapper (mounted pages) and bigger than PageInstanceMapper's one. On Wed, Jul 11, 2012 at 3:28 PM, samzilverberg wrote: > I'm interested in the complex opt

Re: Unable to use wicket tester to simulate ajax behavior

2012-07-11 Thread Giovanni Cuccu
Hi Martin, I did the change you suggested but the test fails with esame error: junit.framework.AssertionFailedError: expect no error message, but contains Field 'combo1' is required. Thanks, Giovanni Il 11/07/12 09.23, Martin Grigorov ha scritto: Hi, Try with: tester.getRequest()

Re: DatePicker does not work in IE9

2012-07-11 Thread esajjkh
It is fixed: Instead of adding direct the DateTimeField in the Form, I added it into the WebMarkupContainer and then I added this markupcontainer into the Form, this is how I make it work :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DatePicker-does-not-work-i

Re: remove /wicket in front of url Wicket 1.5

2012-07-11 Thread samzilverberg
I tried all kind of different values in my TestMapper : 1, 1000, Integer.MAX_VALUE, -1000. But none of them made any change. I even put a break point in the MountMapper getCompatibilityScore method to see what values it returns and ran in debug mode, but the app never breaks there... Am I missing

wicket 1.4 to 1.5 migration - page id in urls issue - how to remove for certain pages

2012-07-11 Thread Sam Zilverberg
Hi, Sadly I didn't find any similar thread on nabble or stackoverflow... In wicket 1.4 I had a mount for /devices that lead to a page that shows a data table with some filtering options. The page is stateful - mainly because of the filtering options. when you filter the url changes to /device::bl