Package org.apache.wicket.markup.repeater

Examples of org.apache.wicket.markup.repeater.AbstractRepeater


    @Test
    public void testAddPropertyWithoutName_shouldLeaveListUnchanged() throws Exception {
        tester.startPage(new ConnectorEditorPage("testdomain", "testconnector"));
        AjaxButton button = (AjaxButton) tester.getComponentFromLastRenderedPage("editor:form:addProperty");
        AbstractRepeater properties =
            (AbstractRepeater) tester.getComponentFromLastRenderedPage("editor:form:attributesPanel:properties");
        tester.executeAjaxEvent(button, "onclick");
        assertThat(properties.size(), is(0));
    }
View Full Code Here


        formTester.setValue("attributesPanel:properties:0:values:2:value:editor", "bar");

        formTester.setValue("newPropertyKey", "testNew");
        tester.executeAjaxEvent(newPropertyButton, "onclick");

        AbstractRepeater list =
            (AbstractRepeater) tester
                .getComponentFromLastRenderedPage("editor:form:attributesPanel:properties:0:values");
        assertThat(list.size(), is(2));
    }
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.repeater.AbstractRepeater

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.