Package javax.faces.el

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


    }

    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


        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 validatorBinding = input.getValidator();
        if (validatorBinding != null)
        {
            try
            {
                validatorBinding.invoke(context,
                                        new Object[] {context, input, convertedValue});
            }
            catch (EvaluationException e)
            {
                input.setValid(false);
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

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

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

                        "attachment; filename=\""+encodeHTTPHeaderFilename + "\"");
        }

        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

    if (listener != null && UIComponentTag.isValueReference(listener))
    {
      FacesContext facesContext = FacesContext.getCurrentInstance();
      MethodBinding methodBinding = facesContext.getApplication()
      .createMethodBinding(listener,new Class[] { ActionEvent.class });
      methodBinding.invoke(facesContext, new Object[] { event });
    }
  }
 
  /**
    * setLaunchListener - sets the value of the Menu Node's launchListener
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

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.