Hi list
with the following test
public void testFormAndLinkAreSubmitted()
{
WicketTester tester = new WicketTester();
tester.startPage(FormPage.class);
FormPage page = (FormPage)tester.getLastRenderedPage();
Assert.assertFalse(page.isSubmitLinkSubmitted());
Hi,
Instead of switching between components, i think that using the setVisible
method of component class could be a better solution. This is the principle
i read in the in Wicket in Action book when the want to hide a container of
other thing.
I hope this could help you
Andrea
On Thu, Jul 22, 201
orm:field", 2);
}
It's a bug or a mine misunderstanding?Somebody could help me, please?
Many thanks in advance
Andrea Selva
stRenderedPage();
Assert.assertTrue(page.isFormSubmitted());
Assert.assertTrue(page.isSubmitLinkSubmitted());
tester.assertModelValue("form:field", 2);
}
It's a bug or a mine misunderstanding?Somebody could help me, please?
Many thanks in advance
Andrea Selva