Error in FormTester with 1.4 but not with 1.5

2010-09-07 Thread Andrea Selva
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());

Re: Best way to hide a component

2010-07-22 Thread Andrea Selva
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

Problem with submitLink outside a form

2010-07-21 Thread Andrea Selva
orm:field", 2); } It's a bug or a mine misunderstanding?Somebody could help me, please? Many thanks in advance Andrea Selva

FormTester.submitLink located outside of the tags miss the update

2010-07-16 Thread 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