javax.faces.event.ActionListener.processAction()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(113)

本文整理了Java中javax.faces.event.ActionListener.processAction()方法的一些代码示例,展示了ActionListener.processAction()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ActionListener.processAction()方法的具体详情如下:
包路径:javax.faces.event.ActionListener
类名称:ActionListener
方法名:processAction

ActionListener.processAction介绍

[英]Invoked when the action described by the specified ActionEvent occurs.
[中]当指定的ActionEvent描述的操作发生时调用。

代码示例

代码示例来源:origin: primefaces/primefaces

@Override
public void processAction(ActionEvent event) throws AbortProcessingException {
  UIComponent source = event.getComponent();
  // don't use event#getFacesContext() - it's only available in JSF 2.3
  Map<Object, Object> attrs = FacesContext.getCurrentInstance().getAttributes();
  if (source instanceof Widget) {
    attrs.put(Constants.DIALOG_FRAMEWORK.SOURCE_WIDGET, ((Widget) source).resolveWidgetVar());
  }
  attrs.put(Constants.DIALOG_FRAMEWORK.SOURCE_COMPONENT, source.getClientId());
  base.processAction(event);
}

代码示例来源:origin: javamelody/javamelody

/** {@inheritDoc} */
@Override
public void processAction(ActionEvent event) { // throws FacesException
  // cette méthode est appelée par JSF RI (Mojarra)
  if (DISABLED || !JSF_COUNTER.isDisplayed()) {
    delegateActionListener.processAction(event);
    return;
  }
  boolean systemError = false;
  try {
    final String actionName = getRequestName(event);
    JSF_COUNTER.bindContextIncludingCpu(actionName);
    delegateActionListener.processAction(event);
  } catch (final Error e) {
    // on catche Error pour avoir les erreurs systèmes
    // mais pas Exception qui sont fonctionnelles en général
    systemError = true;
    throw e;
  } finally {
    // on enregistre la requête dans les statistiques
    JSF_COUNTER.addRequestForCurrentContext(systemError);
  }
}

代码示例来源:origin: org.apache.myfaces.core/myfaces-api

@Override
public void processListener(FacesListener facesListeners)
{
  ((ActionListener)facesListeners).processAction(this);
}

代码示例来源:origin: TheCoder4eu/BootsFaces-OSP

@Override
  public void processListener(FacesListener listener) {
    this.listener.processAction(this);
  }
}

代码示例来源:origin: javax/javaee-web-api

/**
 * @throws AbortProcessingException {@inheritDoc}
 */ 
@Override
public void processListener(FacesListener listener) {
  ((ActionListener) listener).processAction(this);
}

代码示例来源:origin: eclipse-ee4j/mojarra

/**
 * @throws AbortProcessingException {@inheritDoc}
 */ 
@Override
public void processListener(FacesListener listener) {
  ((ActionListener) listener).processAction(this);
}

代码示例来源:origin: com.sun.faces/jsf-api

/**
 * @throws AbortProcessingException {@inheritDoc}
 */ 
public void processListener(FacesListener listener) {
  ((ActionListener) listener).processAction(this);
}

代码示例来源:origin: javax.faces/javax.faces-api

/**
 * @throws AbortProcessingException {@inheritDoc}
 */ 
@Override
public void processListener(FacesListener listener) {
  ((ActionListener) listener).processAction(this);
}

代码示例来源:origin: net.bootsfaces/bootsfaces

@Override
  public void processListener(FacesListener listener) {
    this.listener.processAction(this);
  }
}

代码示例来源:origin: org.jboss.spec.javax.faces/jboss-jsf-api_2.0_spec

/**
 * @throws AbortProcessingException {@inheritDoc}
 */ 
public void processListener(FacesListener listener) {
  ((ActionListener) listener).processAction(this);
}

代码示例来源:origin: org.apache.myfaces/com.springsource.org.apache.myfaces.javax.faces

public void processListener(FacesListener facesListeners)
{
  ((ActionListener)facesListeners).processAction(this);
}

代码示例来源:origin: org.glassfish/javax.faces

/**
 * @throws AbortProcessingException {@inheritDoc}
 */ 
@Override
public void processListener(FacesListener listener) {
  ((ActionListener) listener).processAction(this);
}

代码示例来源:origin: org.apache.deltaspike.modules/deltaspike-jsf-module-impl

@Override
public void processAction(ActionEvent actionEvent)
{
  if (this.activated)
  {
    getWrappedActionListener().processAction(actionEvent);
  }
  else
  {
    this.wrapped.processAction(actionEvent);
  }
}

代码示例来源:origin: org.apache.deltaspike.modules/deltaspike-jsf-module-impl-ee6

@Override
public void processAction(ActionEvent actionEvent)
{
  if (this.activated)
  {
    getWrappedActionListener().processAction(actionEvent);
  }
  else
  {
    this.wrapped.processAction(actionEvent);
  }
}

代码示例来源:origin: org.apache.myfaces.tobago/tobago-core

@Override
 public void processAction(final ActionEvent actionEvent) throws AbortProcessingException {
  if (LOG.isDebugEnabled()) {
   LOG.debug("processAction " + actionEvent);
  }
  actionListener.processAction(actionEvent);
 }
}

代码示例来源:origin: org.apache.myfaces.core/myfaces-shaded-impl

public void processAction(ActionEvent event)
    throws AbortProcessingException
{
  _getDelegate().processAction(event);
}

代码示例来源:origin: org.apache.myfaces.core/myfaces-impl

public void processAction(ActionEvent event)
    throws AbortProcessingException
{
  _getDelegate().processAction(event);
}

代码示例来源:origin: javax/javaee-web-api

@Override    
public void processAction(ActionEvent event) throws AbortProcessingException {
  getWrapped().processAction(event);
}

代码示例来源:origin: org.primefaces/primefaces

@Override
public void processAction(ActionEvent event) throws AbortProcessingException {
  UIComponent source = event.getComponent();
  // don't use event#getFacesContext() - it's only available in JSF 2.3
  Map<Object, Object> attrs = FacesContext.getCurrentInstance().getAttributes();
  if (source instanceof Widget) {
    attrs.put(Constants.DIALOG_FRAMEWORK.SOURCE_WIDGET, ((Widget) source).resolveWidgetVar());
  }
  attrs.put(Constants.DIALOG_FRAMEWORK.SOURCE_COMPONENT, source.getClientId());
  base.processAction(event);
}

代码示例来源:origin: org.apache.deltaspike.modules/deltaspike-jsf-module-impl

@Override
  public void processAction(ActionEvent actionEvent)
  {
    if (this.activated)
    {
      ViewConfigDescriptor viewConfigDescriptor = BeanProvider.getContextualReference(ViewConfigResolver.class)
          .getViewConfigDescriptor(FacesContext.getCurrentInstance().getViewRoot().getViewId());

      ViewControllerUtils.executeViewControllerCallback(viewConfigDescriptor, PreViewAction.class);
    }

    this.wrapped.processAction(actionEvent);
  }
}

相关文章