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.

Reply via email to