Package javax.faces.event

Examples of javax.faces.event.ActionEvent


                    command,
                    context)))
        {
            final MethodBinding binding = command.getActionOpen();
            command.setAction(binding);
            final ActionEvent actionEvent = new ActionEvent(command);
            if (command.isImmediate())
            {
                command.queueEventImmediate(actionEvent);
            }
            else
            {
                command.queueEventNormal(actionEvent);
            }
        }
        else if (popupAction != null && popupAction.equals(getHiddenFieldClose(
                    command,
                    context)))
        {
            final MethodBinding binding = command.getActionClose();
            if (binding != null)
            {
                command.setAction(binding);
                ActionEvent actionEvent = new ActionEvent(command);
                command.queueEventImmediate(actionEvent);
            }
        }
    }
View Full Code Here


      if(component instanceof MultiActionSource){
        MultiActionSource multiActionSource = (MultiActionSource) component;
        MethodBinding methodBinding = multiActionSource.getMethodBinding(value);
        multiActionSource.setAction(methodBinding);
        if(methodBinding != null){
          component.queueEvent(new ActionEvent(component));
        }
      }
    }
  }
View Full Code Here

  @Override
  public void decode(FacesContext facesContext, UIComponent component) {

    String id = (String) isSubmitted(facesContext, "action");
    if (component.getClientId(facesContext).equals(id)) {
      component.queueEvent(new ActionEvent(component));
    }
  }
View Full Code Here

        if (requestMap.get(compClientId) != null) {
            if (parentTabPanel.isImmediate()) {
                tab.setImmediate(true);
            }
            new ActionEvent(tab).queue();
        }
    }
View Full Code Here

  public void decode(FacesContext facesContext, UIComponent component) {   
    String param = component.getClientId(facesContext);
   
    if(facesContext.getExternalContext().getRequestParameterMap().containsKey(param)) {
      component.queueEvent(new ActionEvent(component));
    }
  }
View Full Code Here

  public void decode(FacesContext facesContext) {
    Map<String,String> params = facesContext.getExternalContext().getRequestParameterMap();
    String clientId = getClientId(facesContext);
   
    if(params.containsKey(clientId)) {
      this.queueEvent(new ActionEvent(this));
    }
  }
View Full Code Here

  public void decode(FacesContext facesContext, UIComponent component) { 
    String param = component.getClientId();

    if(facesContext.getExternalContext().getRequestParameterMap().containsKey(param)) {
      component.queueEvent(new ActionEvent(component));
    }
  }
View Full Code Here

            {
                String reqValue = (String) facesContext.getExternalContext().getRequestParameterMap().get(
                        HtmlRendererUtils.getHiddenCommandLinkFieldName(formInfo));
                if (reqValue != null && reqValue.equals(clientId)
                    || HtmlRendererUtils.isPartialOrBehaviorSubmit(facesContext, clientId)) {
                    component.queueEvent(new ActionEvent(component));

                    RendererUtils.initPartialValidationAndModelUpdate(component, facesContext);
                }
            }
            if (component instanceof ClientBehaviorHolder &&
View Full Code Here

        org.apache.myfaces.shared_impl.renderkit.RendererUtils.checkParamValidity(facesContext, uiComponent, UICommand.class);

        //super.decode must not be called, because value is handled here
        if (!isReset(uiComponent) && isSubmitted(facesContext, uiComponent))
        {
            uiComponent.queueEvent(new ActionEvent(uiComponent));

            org.apache.myfaces.shared_impl.renderkit.RendererUtils.initPartialValidationAndModelUpdate(uiComponent, facesContext);
           
            if (uiComponent instanceof ClientBehaviorHolder &&
                    !HtmlRendererUtils.isDisabled(uiComponent))
View Full Code Here

            {
                mb = new SimpleActionMethodBinding(actionParam);
            }
            ((HtmlCommandJSCookMenu)component).setAction(mb);

            component.queueEvent(new ActionEvent(component));
        }
    }
View Full Code Here

TOP

Related Classes of javax.faces.event.ActionEvent

Copyright © 2018 www.massapicom. 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.