Hi all,
the Java 8 compiler is just better inferrinf the right method signature.
That's nothing Wicket can do about - besides avoiding constructor
overloading.
I've changed the test as Sebastien has proposed.
Have fun+
Sven
On 06.12.2015 14:14, Sebastien wrote:
Hi Tobias,
I agree with Sven about the way of testing the CPM.
If you change the test like this, it works fine:
test-page:
ImageSrc imageSrc = new ImageSrc();
imageSrc.setUrl("http://www.google.de/test.jpg");
Form<?> form = new Form<ImageSrc>("form", new
CompoundPropertyModel<ImageSrc>(imageSrc));
add(form);
form.add(new ExternalImage("url"));
<form wicket:id="form">
<img wicket:id="url" />
</form>
test:
Assert.assertTrue(lastResponseAsString.contains("<img
wicket:id=\"url\" src=\"http://www.google.de/test.jpg\"/>"));
I does not explain why there is a diff a behavior between 7.x and master,
but I guess it could be treated in a different ticket...
Best regards,
Sebastien.