Re: Handling SVG images

2016-09-02 Thread Martin Grigorov
Hi, I think you need to set the Content-Type. Override #configureResponse() of the resource. On Sep 2, 2016 4:22 PM, "Tim Dudgeon" wrote: > I'm wanting to handle SVG as an image using DynamicImageResource. The > images comes from an external source. I've got it working

Handling SVG images

2016-09-02 Thread Tim Dudgeon
I'm wanting to handle SVG as an image using DynamicImageResource. The images comes from an external source. I've got it working fine using PNG images but it seems the approach doesn't work for SVG, maybe because its not a binary format? This is (sort of) how it looks: Markup: Java:

Re: How do I mock a Wicket component?

2016-09-02 Thread Jonathan Eenkhoorn
Hi Jan, Thank you for your response. I might have used the wrong terminology by calling it 'stubbing' for my second attempt. I did use a real implementation of the ModalWindow in combination with spy. Spy did not introduce a problem, but the show() method of our implementation/extension of

Re: How do I mock a Wicket component?

2016-09-02 Thread Jan Ferko
Hi Jonathan, Take a look at method WicketTester.assertVisible("path-to-modal"). That way you can use plain modal window without any mocking, stubing or spying in your tests. I hope this helped. Jan On 2.9.2016 11:24, Jonathan Eenkhoorn wrote: I am trying to unittest a wicket panel with

How do I mock a Wicket component?

2016-09-02 Thread Jonathan Eenkhoorn
I am trying to unittest a wicket panel with the help of WicketTester and Spock/Mockito. In this panel, a ModalWindow (confirmation dialog) is show in a good case scenario. I want to validate this dialog will be shown, so I tried to mock the component, inject it into the panel and test if the

Re: Reload Wicket classes/markup without reloading Servlet Container

2016-09-02 Thread Martin Grigorov
Hi, I use DCEVM (https://github.com/dcevm/dcevm). It doesn't have all the bells and whisles like JRebel but it is FREE and does a great job in reloading classes! Combined with an embedded web container (as Tobias suggested) is the best! For reloading markup - Wicket does itself without any

Re: Reload Wicket classes/markup without reloading Servlet Container

2016-09-02 Thread Martijn Dashorst
At € day job we pay a lot to use jrebel. Not perfect but does the job reasonably well. Unfortunately their new licensing model made it about 4 times more expensive for us to use it. Martijn On Friday, 2 September 2016, Tobias Soloschenko < tobiassolosche...@googlemail.com> wrote: > Hi, > > you