Package javax.faces.el

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


        setSelectedIndex(index);
      }
      MethodBinding tabChangeListenerBinding = getTabChangeListener();
      if (tabChangeListenerBinding != null) {
        try {
          tabChangeListenerBinding.invoke(getFacesContext(), new Object[]{facesEvent});
        } catch (EvaluationException e) {
          Throwable cause = e.getCause();
          if (cause != null && cause instanceof AbortProcessingException) {
            throw (AbortProcessingException) cause;
          } else {
View Full Code Here


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

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

      ActionListener defaultActionListener =
        context.getApplication().getActionListener();
      if (defaultActionListener != null)
      {
View Full Code Here

        else if (methodBinding != null)
        {
            fromAction = methodBinding.getExpressionString();
            try
            {
                Object objOutcome = methodBinding.invoke(facesContext, null);

                if (objOutcome != null)
                {
                    outcome = objOutcome.toString();
                }
View Full Code Here

            MethodBinding valueChangeListenerBinding = getValueChangeListener();
            if (valueChangeListenerBinding != null)
            {
                try
                {
                    valueChangeListenerBinding.invoke(getFacesContext(), new Object[] { event });
                }
                catch (EvaluationException e)
                {
                    Throwable cause = e.getCause();
                    if (cause != null && cause instanceof AbortProcessingException)
View Full Code Here

    if (event instanceof ValueChangeEvent) {
      MethodBinding method = getValueChangeListener();
      if (method != null) {
        FacesContext context = getFacesContext();
        method.invoke(context, new Object[] { event });
      }
    }

  }
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

            }

            public Boolean adviseNodeSelected(UITree tree) {
              MethodBinding adviseNodeSelected = tree.getAdviseNodeSelected();
              if (null != adviseNodeSelected) {
                return (Boolean) adviseNodeSelected.invoke(FacesContext.getCurrentInstance(), new Object [] {tree});
              }
              return null;
            }
          };
        }
View Full Code Here

        else
        {
            fromAction = methodBinding.getExpressionString();
            try
            {
                outcome = (String) methodBinding.invoke(facesContext, null);
            }
            catch (EvaluationException e)
            {
                Throwable cause = e.getCause();
                if (cause != null && cause instanceof AbortProcessingException)
View Full Code Here

    }

    final UIIn input = (UIIn) component;
    final MethodBinding methodBinding = input.getSuggestMethod();
    final AutoSuggestItems items
            = createAutoSuggestItems(methodBinding.invoke(facesContext, new Object[]{input}));
    final List<AutoSuggestItem> suggestItems = items.getItems();
    final TobagoResponseWriter writer = HtmlRendererUtils.getTobagoResponseWriter(facesContext);

    writer.startJavascript();
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.