Package javax.faces.event

Examples of javax.faces.event.MethodExpressionActionListener


                                                                  ve.getExpressionString(),
                                                                  Void.TYPE,
                                                                  NO_ARGS);

                ((ActionSource2) target).addActionListener(
                      new MethodExpressionActionListener(
                            new ContextualCompositeMethodExpression(ve,
                                                                    me),
                            new ContextualCompositeMethodExpression(ve,
                                                                    noArg)));
View Full Code Here


        {
            comp.setActionExpression(_actionExpression);
        }       
        if (_actionListener != null)
        {
            comp.addActionListener(new MethodExpressionActionListener(_actionListener));
        }
    }
View Full Code Here

        {
            comp.setActionExpression(_actionExpression);
        }       
        if (_actionListener != null)
        {
            comp.addActionListener(new MethodExpressionActionListener(_actionListener));
        }
    }
View Full Code Here

                        new PartialMethodExpressionActionListener(methodExpressionOneArg, methodExpressionZeroArg));
            }
            else
            {
                ((ActionSource2) instance).addActionListener(
                        new MethodExpressionActionListener(methodExpressionOneArg, methodExpressionZeroArg));
            }
        }
View Full Code Here

                                   
                                    methodExpression2 = reWrapMethodExpression(context.getApplication().getExpressionFactory().
                                        createMethodExpression(elContext,
                                                attributeExpressionString, Void.TYPE, EMPTY_CLASS_ARRAY), attributeNameValueExpression);
                                   
                                    ActionListener actionListener = new MethodExpressionActionListener(methodExpression, methodExpression2);
                                    ((ActionSource2)innerComponent).addActionListener(actionListener);
                                    mctx.addMethodExpressionTargeted(innerComponent, attributeName, actionListener);
                                }
                                else if ("validator".equals(attributeName))
                                {
View Full Code Here

                                        methodExpression2 = reWrapMethodExpression(context.getApplication().getExpressionFactory().
                                                createMethodExpression(elContext,
                                                        attributeExpressionString, Void.TYPE, EMPTY_CLASS_ARRAY), attributeNameValueExpression);

                                        actionListener = new MethodExpressionActionListener(methodExpression, methodExpression2);
                                    }
                                    ((ActionSource2) innerComponent).addActionListener(actionListener);
                                    mctx.addMethodExpressionTargeted(innerComponent, attributeName, actionListener);
                                }
                                else if ("validator".equals(attributeName))
View Full Code Here

            if (!(component instanceof ActionSource2))
            {
                throw new IllegalArgumentException("Component " + component.getClientId(context) + " is no ActionSource");
            }

            ((ActionSource2)component).addActionListener(new MethodExpressionActionListener(actionListener));
        }
    }
View Full Code Here

        {
            comp.setActionExpression(_actionExpression);
        }       
        if (_actionListener != null)
        {
            comp.addActionListener(new MethodExpressionActionListener(_actionListener));
        }
    }
View Full Code Here

        {
            comp.setActionExpression(_actionExpression);
        }       
        if (_actionListener != null)
        {
            comp.addActionListener(new MethodExpressionActionListener(_actionListener));
        }
    }
View Full Code Here

            if (!(component instanceof ActionSource2))
            {
                throw new IllegalArgumentException("Component " + component.getClientId(context) + " is no ActionSource");
            }

            ((ActionSource2)component).addActionListener(new MethodExpressionActionListener(actionListener));
        }
    }
View Full Code Here

TOP

Related Classes of javax.faces.event.MethodExpressionActionListener

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.