Package org.springframework.binding.form

Examples of org.springframework.binding.form.HierarchicalFormModel.addChild()


        HierarchicalFormModel parentModel = new DefaultFormModel();
        assertNull(FormModelHelper.getChild(parentModel, "testChildName"));

        final ValidatingFormModel childFormModel = FormModelHelper.createFormModel(new Object(), "testChildName");
        parentModel.addChild(childFormModel);

        assertNotNull(FormModelHelper.getChild(parentModel, "testChildName"));
        assertNull(FormModelHelper.getChild(parentModel, "bogusChildName"));
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.