Package javax.faces.event

Examples of javax.faces.event.MethodExpressionActionListener


            {
                actionListener = new PartialMethodExpressionActionListener(methodExpression, methodExpression2);
            }
            else
            {
                actionListener = new MethodExpressionActionListener(methodExpression, methodExpression2);
            }
        }
        ((ActionSource2) innerComponent).addActionListener(actionListener);
        mctx.addMethodExpressionTargeted(innerComponent, targetAttributeName, actionListener);
    }
View Full Code Here


            {
                actionListener = new PartialMethodExpressionActionListener(methodExpression, methodExpression2);
            }
            else
            {
                actionListener = new MethodExpressionActionListener(methodExpression, methodExpression2);
            }
        }
        ((ActionSource2) innerComponent).addActionListener(actionListener);
        mctx.addMethodExpressionTargeted(innerComponent, targetAttributeName, 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

                        + component.getClientId(context)
                        + " is no ActionSource");
            }

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

                                        {
                                            actionListener = new PartialMethodExpressionActionListener(methodExpression, methodExpression2);
                                        }
                                        else
                                        {
                                            actionListener = new MethodExpressionActionListener(methodExpression, methodExpression2);
                                        }
                                    }
                                    ((ActionSource2) innerComponent).addActionListener(actionListener);
                                    mctx.addMethodExpressionTargeted(innerComponent, attributeName, actionListener);
                                    if (mctx.isUsingPSSOnThisView() && mctx.isMarkInitialState())
View Full Code Here

 
  protected void setActionListenerProperty(UIComponent component, MethodExpression actionListener) {
    if (actionListener != null) {
      if (component instanceof ActionSource2) {
        ActionSource2 actionSource2 = (ActionSource2) component;
        actionSource2.addActionListener(new MethodExpressionActionListener(actionListener));
      } else {
        throw new IllegalArgumentException(Messages.getMessage(Messages.NO_ACTION_SOURCE2_ERROR, component.getClientId(getFacesContext())));
      }
    }
  }
View Full Code Here

            {
                actionListener = new PartialMethodExpressionActionListener(methodExpression, methodExpression2);
            }
            else
            {
                actionListener = new MethodExpressionActionListener(methodExpression, methodExpression2);
            }
        }
        ((ActionSource2) innerComponent).addActionListener(actionListener);
        mctx.addMethodExpressionTargeted(innerComponent, targetAttributeName, actionListener);
    }
View Full Code Here

   * @param expression The EL expression to create an action listener method expression for.
   * @return The created action listener method expression, ready to be used as
   * {@link UICommand#addActionListener(javax.faces.event.ActionListener)}.
   */
  public static MethodExpressionActionListener createActionListenerMethodExpression(String expression) {
    return new MethodExpressionActionListener(createVoidMethodExpression(expression, ActionEvent.class));
  }
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, targetAttributeName, actionListener);
                                }
                                else if ("validator".equals(targetAttributeName))
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.