Examples of createMethodBinding()


Examples of javax.faces.application.Application.createMethodBinding()

        if (actionListener != null)
        {
            if (isValueReference(actionListener))
            {
                MethodBinding actionListenerBinding = app.createMethodBinding(
                        actionListener, new Class[] { ActionEvent.class });
                schedule.setActionListener(actionListenerBinding);
            }
            else
            {
View Full Code Here

Examples of javax.faces.application.Application.createMethodBinding()

        if (action != null)
        {
            if (isValueReference(action))
            {
                MethodBinding actionBinding = app.createMethodBinding(action,
                        new Class[] { ActionEvent.class });
                schedule.setAction(actionBinding);
            }
            else
            {
View Full Code Here

Examples of javax.faces.application.Application.createMethodBinding()

        LOG.warn("Type reset is not supported");
      }
    } else {
      if (action != null) {
        if (UIComponentTag.isValueReference(action)) {
          MethodBinding binding = application.createMethodBinding(action, null);
          component.setAction(binding);
        } else {
          component.setAction(new ConstantMethodBinding(action));
        }
      }
View Full Code Here

Examples of javax.faces.application.Application.createMethodBinding()

    final FacesContext facesContext = FacesContext.getCurrentInstance();
    final Application application = facesContext.getApplication();
    if (actionListener != null) {
      if (UIComponentTag.isValueReference(actionListener)) {
        MethodBinding binding
            = application.createMethodBinding(actionListener, ACTION_LISTENER_ARGS);
        command.setActionListener(binding);
      } else {
        throw new IllegalArgumentException(
            "Must be a valueReference (actionListener): " + actionListener);
      }
View Full Code Here

Examples of javax.faces.application.Application.createMethodBinding()

     final FacesContext facesContext = FacesContext.getCurrentInstance();
     final Application application = facesContext.getApplication();
     if (valueChangeListener != null) {
       if (UIComponentTag.isValueReference(valueChangeListener)) {
         MethodBinding binding
             = application.createMethodBinding(valueChangeListener, VALUE_CHANGE_LISTENER_ARGS);
         valueHolder.setValueChangeListener(binding);
       } else {
         throw new IllegalArgumentException(
             "Must be a valueReference (valueChangeListener): " + valueChangeListener);
       }
View Full Code Here

Examples of javax.faces.application.Application.createMethodBinding()

  public static void setSortActionListener(UIData data, String actionListener) {
    final FacesContext facesContext = FacesContext.getCurrentInstance();
    final Application application = facesContext.getApplication();
    if (actionListener != null) {
      if (UIComponentTag.isValueReference(actionListener)) {
        MethodBinding binding = application.createMethodBinding(
            actionListener, ACTION_LISTENER_ARGS);
        data.setSortActionListener(binding);
      } else {
        throw new IllegalArgumentException(
            "Must be a valueReference (sortActionListener): " + actionListener);
View Full Code Here

Examples of javax.faces.application.Application.createMethodBinding()

    if (stateChangeListener != null) {
      if (UIComponentTag.isValueReference(stateChangeListener)) {
        Class[] arguments = {SheetStateChangeEvent.class};
        MethodBinding binding
            = application.createMethodBinding(stateChangeListener, arguments);
        data.setStateChangeListener(binding);
      } else {
        throw new IllegalArgumentException(
            "Must be a valueReference (actionListener): " + stateChangeListener);
      }
View Full Code Here

Examples of javax.faces.application.Application.createMethodBinding()

          ValueBinding binding = application.createValueBinding(ref);
          if (name.equals("NAME")) {
            UICommand command = (UICommand) application.createComponent(UICommand.COMPONENT_TYPE);
            command.setRendererType("Link");
            command.setValueBinding("label", binding);
            MethodBinding action = application.createMethodBinding("#{test.select}", new Class[0]);
            command.setAction(action);
            column.getChildren().add(command);
          } else {
            UIOutput output = (UIOutput) application.createComponent(UIOutput.COMPONENT_TYPE);
            output.setValueBinding("value", binding);
View Full Code Here

Examples of javax.faces.application.Application.createMethodBinding()

    if (stateChangeListener != null) {
      if (UIComponentTag.isValueReference(stateChangeListener)) {
        Class[] arguments = {SheetStateChangeEvent.class};
        MethodBinding binding
            = application.createMethodBinding(stateChangeListener, arguments);
        data.setStateChangeListener(binding);
      } else {
        throw new IllegalArgumentException(
            "Must be a valueReference (actionListener): " + stateChangeListener);
      }
View Full Code Here

Examples of javax.faces.application.Application.createMethodBinding()

        if (mouseListener != null)
        {
            if (isValueReference(mouseListener))
            {
                MethodBinding mouseListenerBinding = app
                        .createMethodBinding(mouseListener,
                                new Class[] { ScheduleMouseEvent.class });
                schedule.setMouseListener(mouseListenerBinding);
            }
            else
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.