Package javax.faces.el

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


        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 valueChangeListenerBinding = getValueChangeListener();
            if (valueChangeListenerBinding != null)
            {
                try
                {
                    valueChangeListenerBinding.invoke(getFacesContext(),
                            new Object[]
                            { event });
                }
                catch (EvaluationException e)
                {
View Full Code Here

            MethodBinding valueChangeListenerBinding = getValueChangeListener();
            if (valueChangeListenerBinding != null)
            {
                try
                {
                    valueChangeListenerBinding.invoke(getFacesContext(),
                                                      new Object[]{event});
                }
                catch (EvaluationException e)
                {
                    Throwable cause = e.getCause();
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

                        "attachment; filename=" + MimeUtility.encodeHTTPHeader(filename, !isGecko));
        }

        MethodBinding method = getMethod();
        OutputStream out = new BufferedOutputStream(hsr.getOutputStream());
          method.invoke(context, new Object[]{context, out});
          out.close();
        
      }
      catch (Exception e)
      {
View Full Code Here

       )
    {
      FacesContext facesContext = FacesContext.getCurrentInstance();
      MethodBinding methodBinding = facesContext.getApplication().createMethodBinding(value,null);
     
      value = (String) methodBinding.invoke(facesContext, null);
    }

    // Post me as the selected Node for the request
    postSelectedNode(this);
View Full Code Here

    MethodBinding binding = getActionListener();

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

  public MethodBinding getAction() {
    return null;
View Full Code Here

        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

    }

    TobagoResponseWriter writer = HtmlRendererUtil.getTobagoResponseWriter(context);
    int maxSuggestedCount = 25;

    List suggestedList = (List) mb.invoke(
        context, new Object[]{
            AjaxPhaseListener.getValueForComponent(context, component)
        }
    );
View Full Code Here

    MethodBinding binding = getActionListener();

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

  public MethodBinding getAction() {
    return null;
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.