Package javax.faces.el

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


        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


        FacesContext context = getFacesContext();
        MethodBinding actionListenerBinding = getActionListener();

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

    /**
     * <p>
 
View Full Code Here

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

            if (mouseListenerBinding != null)
            {
                mouseListenerBinding.invoke(context,
                        new Object[] { mouseEvent });
            }
        }
        //now invoke the other listeners
        super.broadcast(event);
View Full Code Here

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

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

            FacesContext context = getFacesContext();

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

        context.setDateHeader("Last-Modified",modified.getTime());
      }
      // Send content
      OutputStream out = context.getOutputStream();
      MethodBinding send = (MethodBinding) UIComponentBase.restoreAttachedState(facesContext,data.createContent);
      send.invoke(facesContext,new Object[]{out,data.value});
    }
  }
  /* (non-Javadoc)
   * @see org.ajax4jsf.resource.InternetResourceBase#requireFacesContext()
   */
 
View Full Code Here

 
              // Notify the specified action listener method (if any)
              MethodBinding mb = getAjaxListener();
              if (mb != null) {
                FacesContext context = FacesContext.getCurrentInstance();
                  mb.invoke(context, new Object[] { event });
              }
              // TODO - perform special rendering, withowt RENDER_VIEW phase.
              if(isSelfRendered()) {
                  // queue new event to end of queue to perform child elements
                // events.
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.