当前位置: 首页>>代码示例>>Java>>正文


Java PhaseId.PROCESS_VALIDATIONS属性代码示例

本文整理汇总了Java中javax.faces.event.PhaseId.PROCESS_VALIDATIONS属性的典型用法代码示例。如果您正苦于以下问题:Java PhaseId.PROCESS_VALIDATIONS属性的具体用法?Java PhaseId.PROCESS_VALIDATIONS怎么用?Java PhaseId.PROCESS_VALIDATIONS使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在javax.faces.event.PhaseId的用法示例。


在下文中一共展示了PhaseId.PROCESS_VALIDATIONS属性的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: processPartial

@Override
public void processPartial(PhaseId phaseId)
{
  UIViewRoot viewRoot = _context.getViewRoot();
  if (phaseId == PhaseId.APPLY_REQUEST_VALUES ||
      phaseId == PhaseId.PROCESS_VALIDATIONS ||
      phaseId == PhaseId.UPDATE_MODEL_VALUES)
  {
    _processExecute(viewRoot, phaseId);
  }
  else if (phaseId == PhaseId.RENDER_RESPONSE)
  {
    _processRender(viewRoot);
  }

}
 
开发者ID:apache,项目名称:myfaces-trinidad,代码行数:16,代码来源:PartialViewContextImpl.java

示例2: visit

public VisitResult visit(VisitContext context, UIComponent target)
{
  if (_phaseId == PhaseId.APPLY_REQUEST_VALUES)
  {
    target.processDecodes(_context);
  }
  else if (_phaseId == PhaseId.PROCESS_VALIDATIONS)
  {
    target.processValidators(_context);
  }
  else if (_phaseId == PhaseId.UPDATE_MODEL_VALUES)
  {
    target.processUpdates(_context);
  }


  // No need to visit children, since they will be executed/rendred by their parents
  return VisitResult.REJECT;
}
 
开发者ID:apache,项目名称:myfaces-trinidad,代码行数:19,代码来源:PartialViewContextImpl.java

示例3: processComponent

/**
 * Process a component.
 * This method calls {@link #processDecodes(FacesContext)},
 * {@link #processValidators} or
 * {@link #processUpdates}
 * depending on the {#link PhaseId}.
 */
protected final void processComponent(
  FacesContext context,
  UIComponent  component,
  PhaseId      phaseId)
{
  if (component != null)
  {
    if (phaseId == PhaseId.APPLY_REQUEST_VALUES)
      component.processDecodes(context);
    else if (phaseId == PhaseId.PROCESS_VALIDATIONS)
      component.processValidators(context);
    else if (phaseId == PhaseId.UPDATE_MODEL_VALUES)
      component.processUpdates(context);
    else
      throw new IllegalArgumentException(_LOG.getMessage(
        "BAD_PHASEID",phaseId));
  }
}
 
开发者ID:apache,项目名称:myfaces-trinidad,代码行数:25,代码来源:UIXCollection.java

示例4: afterPhase

/**
 * Handle a notification that the processing for a particular phase has just
 * been completed.
 */
public void afterPhase(PhaseEvent event) {

	if(event.getPhaseId() == PhaseId.APPLY_REQUEST_VALUES ||
			event.getPhaseId() == PhaseId.PROCESS_VALIDATIONS ||
			event.getPhaseId() == PhaseId.UPDATE_MODEL_VALUES || 
			event.getPhaseId() == PhaseId.INVOKE_APPLICATION) {

		FacesContext facesContext = event.getFacesContext();
		saveMessages(facesContext);
	}

}
 
开发者ID:hantsy,项目名称:javaee8-jsf-sample,代码行数:16,代码来源:MessageHandler.java

示例5: afterPhase

/**
 * save messages after APPLY_REQUEST_VALUES, PROCESS_VALIDATIONS,
 * INVOKE_APPLICATION
 */
public void afterPhase(PhaseEvent event) {
    if (event.getPhaseId() == PhaseId.APPLY_REQUEST_VALUES
            || event.getPhaseId() == PhaseId.PROCESS_VALIDATIONS
            || event.getPhaseId() == PhaseId.INVOKE_APPLICATION) {
        FacesContext facesContext = event.getFacesContext();
        saveMessages(facesContext);
    }
}
 
开发者ID:servicecatalog,项目名称:oscm,代码行数:12,代码来源:MessageHandler.java

示例6: processValidators

@Override
public void processValidators(FacesContext context) {
    if (ExtLibUtil.isXPages852()) {
        processFacetsForPhase = PhaseId.PROCESS_VALIDATIONS;
    }
    try {
        super.processValidators(context);
    }
    finally {
        processFacetsForPhase = null;
    }
}
 
开发者ID:OpenNTF,项目名称:XPagesExtensionLibrary,代码行数:12,代码来源:AbstractDataView.java

示例7: getPhaseId

@Override
public PhaseId getPhaseId() {
    return PhaseId.PROCESS_VALIDATIONS;
}
 
开发者ID:otsecbsol,项目名称:linkbinder,代码行数:4,代码来源:ProcessValidationsPhaseListener.java


注:本文中的javax.faces.event.PhaseId.PROCESS_VALIDATIONS属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。