Package javax.faces.application

Examples of javax.faces.application.Application.createMethodBinding()


        command.getAttributes().put("action", null);
        assertNull(command.getAction());

        assertEquals(command.getActionListener(),
                (MethodBinding) command.getAttributes().get("actionListener"));
        methodBinding = app.createMethodBinding("#{foo.yoyo}",
                actionListenerSignature);
        command.setActionListener(methodBinding);
        assertEquals(methodBinding,
                (MethodBinding) command.getAttributes().get("actionListener"));
        command.setActionListener(null);
View Full Code Here


        assertEquals(methodBinding,
                (MethodBinding) command.getAttributes().get("actionListener"));
        command.setActionListener(null);
        assertNull((MethodBinding)
                command.getAttributes().get("actionListener"));
        methodBinding = app.createMethodBinding("#{foo.buckaroo}",
                actionListenerSignature);
        command.getAttributes().put("actionListener", methodBinding);
        assertEquals(methodBinding, command.getActionListener());
        command.getAttributes().put("actionListener", null);
        assertNull(command.getActionListener());
View Full Code Here

        assertNull("erased value", command.getValue());

        MethodBinding methodBinding = null;

        command.setAction(methodBinding =
                app.createMethodBinding("#{foo.bar}", null));
        assertEquals(methodBinding, command.getAction());
        command.setAction(null);
        assertNull(command.getAction());

        methodBinding = app.createMethodBinding("#{foo.yoyo}",
View Full Code Here

                app.createMethodBinding("#{foo.bar}", null));
        assertEquals(methodBinding, command.getAction());
        command.setAction(null);
        assertNull(command.getAction());

        methodBinding = app.createMethodBinding("#{foo.yoyo}",
                actionListenerSignature);
        command.setActionListener(methodBinding);
        assertEquals(methodBinding, command.getActionListener());
        command.setActionListener(null);
        assertNull(command.getActionListener());
View Full Code Here

        super.populateComponent(component);
        UICommand c = (UICommand) component;
        Application app = facesContext.getApplication();
        MethodBinding methodBinding = null;

        c.setAction(methodBinding = app.createMethodBinding("#{foo.bar}",
                null));
        c.setActionListener(methodBinding =
                app.createMethodBinding("#{baz.bop}",
                        actionListenerSignature));
    }
View Full Code Here

        MethodBinding methodBinding = null;

        c.setAction(methodBinding = app.createMethodBinding("#{foo.bar}",
                null));
        c.setActionListener(methodBinding =
                app.createMethodBinding("#{baz.bop}",
                        actionListenerSignature));
    }


    protected boolean listenersAreEqual(FacesContext context,
View Full Code Here

        Application app = facesContext.getApplication();
        MethodBinding methodBinding = null;

        input.setValidator(methodBinding =
                app.createMethodBinding("#{foo.bar}", null));
        assertEquals(methodBinding, input.getValidator());
        input.setValidator(null);
        assertNull(input.getValidator());

        input.setValueChangeListener(methodBinding =
View Full Code Here

        assertEquals(methodBinding, input.getValidator());
        input.setValidator(null);
        assertNull(input.getValidator());

        input.setValueChangeListener(methodBinding =
                app.createMethodBinding("#{foo.bar}", null));
        assertEquals(methodBinding, input.getValueChangeListener());
        input.setValueChangeListener(null);
        assertNull(input.getValueChangeListener());

    }
View Full Code Here

        input.addValidator(new TestInputValidator("v2"));
        Application app = facesContext.getApplication();
        MethodBinding methodBinding = null;

        input.setValidator(methodBinding =
                app.createMethodBinding("v3.validate", validateParams));
        assertEquals(methodBinding, input.getValidator());
        request.setAttribute("v3", new TestInputValidator("v3"));
        TestInputValidator.trace(null);
        setupNewValue(input);
        root.processValidators(facesContext);
View Full Code Here

        UIViewRoot root = facesContext.getApplication().getViewHandler().createView(facesContext, null);
        root.getChildren().add(component);
        UIInput input = (UIInput) component;
        input.addValueChangeListener(new TestInputValueChangeListener("l1"));
        input.addValueChangeListener(new TestInputValueChangeListener("l2"));
        input.setValueChangeListener(app.createMethodBinding("l3.processValueChange", signature));
        request.setAttribute("l3", new TestInputValueChangeListener("l3"));
        TestInputValueChangeListener.trace(null);
        setupNewValue(input);
        root.processValidators(facesContext);
        assertEquals("/l1/l2/l3", TestInputValueChangeListener.trace());
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.