Package javax.faces.component

Examples of javax.faces.component.UIForm.saveState()


    public void testSaveState() throws Exception {
        UIForm form = new UIForm();
        form.getAttributes().put("foo", "bar");
        form.setPrependId(true);
        Object state = form.saveState(facesContext);
        form = new UIForm();
        form.restoreState(facesContext, state);
        assertTrue("bar".equals(form.getAttributes().get("foo")));
        assertTrue(form.isPrependId());
    }
View Full Code Here


    public void testSaveState() throws Exception {
        UIForm form = new UIForm();
        form.getAttributes().put("foo", "bar");
        form.setPrependId(true);
        Object state = form.saveState(facesContext);
        form = new UIForm();
        form.restoreState(facesContext, state);
        assertTrue("bar".equals(form.getAttributes().get("foo")));
        assertTrue(form.isPrependId());
    }
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.