Package javax.faces.el

Examples of javax.faces.el.MethodBinding.invoke()


            FacesContext context = getFacesContext();

            MethodBinding mb = getActionListener();
            if (mb != null)
            {
                mb.invoke(context, new Object[]
                { event });
            }

            ActionListener defaultActionListener = context.getApplication()
                    .getActionListener();
View Full Code Here


            ScheduleMouseEvent mouseEvent = (ScheduleMouseEvent) event;
            MethodBinding mouseListener = getMouseListener();

            if (mouseListener != null)
            {
                mouseListener.invoke(context,
                        new Object[] { mouseEvent });
            }
        }

        //then invode any other listeners
View Full Code Here

        MethodBinding actionListener = getActionListener();

        if (actionListener != null)
        {
            actionListener.invoke(context, new Object[] { event });
        }
    }

    /**
     * Find the entry with the given id
View Full Code Here

        MethodBinding validatorBinding = input.getValidator();
        if (validatorBinding != null)
        {
            try
            {
                validatorBinding.invoke(context, new Object[] { context, input, convertedValue });
            }
            catch (EvaluationException e)
            {
                input.setValid(false);
                Throwable cause = e.getCause();
View Full Code Here

      }

      MethodBinding validator = getValidator();
      if (validator != null) {
        try {
          validator.invoke(context,
              new Object[] { context, this, newValue});
        }
        catch (EvaluationException ee) {
          if (ee.getCause() instanceof ValidatorException) {
            ValidatorException ve =
View Full Code Here

        binding = eventsProducer.getDragListener();
      }
    }
   
    if (binding != null) {
      binding.invoke(context, new Object[] { event });
    }
  }
}
View Full Code Here

          graphics.setBackground(color);
          graphics.clearRect(0, 0, data._width, data._height);
        }
       
        MethodBinding paint = (MethodBinding) UIComponentBase.restoreAttachedState(facesContext, data._paint);
        paint.invoke(facesContext, new Object[] {graphics,data._data});
      } finally {
        if (graphics != null) {
          graphics.dispose();
        }
      }
View Full Code Here

    super.broadcast(event);
    if (event instanceof DropEvent) {
      if (((DropEvent) event).isValid()) {
        MethodBinding binding = getDropListener();
        if (binding != null) {
          binding.invoke(getFacesContext(), new Object[] {event});
        }

        new AjaxEvent(this).queue();
        new ActionEvent(this).queue();
      }
View Full Code Here

    }

    MethodBinding validator = getValidator();
    if (validator != null) {
      try {
        validator.invoke(context,
            new Object[] { context, this, newValue});
      }
      catch (EvaluationException ee) {
        if (ee.getCause() instanceof ValidatorException) {
          ValidatorException ve =
View Full Code Here

        if (null == methodBindingAdvisor) {
          methodBindingAdvisor = new TreeStateAdvisor() {
            public Boolean adviseNodeOpened(UITree tree) {
              MethodBinding adviseNodeOpened = tree.getAdviseNodeOpened();
              if (null != adviseNodeOpened) {
                return (Boolean) adviseNodeOpened.invoke(FacesContext.getCurrentInstance(), new Object[] {tree});
              }
              return null;
            }

            public Boolean adviseNodeSelected(UITree tree) {
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.