當前位置: 首頁>>代碼示例>>Java>>正文


Java PhaseId.APPLY_REQUEST_VALUES屬性代碼示例

本文整理匯總了Java中javax.faces.event.PhaseId.APPLY_REQUEST_VALUES屬性的典型用法代碼示例。如果您正苦於以下問題:Java PhaseId.APPLY_REQUEST_VALUES屬性的具體用法?Java PhaseId.APPLY_REQUEST_VALUES怎麽用?Java PhaseId.APPLY_REQUEST_VALUES使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在javax.faces.event.PhaseId的用法示例。


在下文中一共展示了PhaseId.APPLY_REQUEST_VALUES屬性的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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: processDecodes

@Override
public void processDecodes(FacesContext context) {
    if (ExtLibUtil.isXPages852()) {
        processFacetsForPhase = PhaseId.APPLY_REQUEST_VALUES;
    }
    try {
        super.processDecodes(context);
    }
    finally {
        processFacetsForPhase = null;
    }
}
 
開發者ID:OpenNTF,項目名稱:XPagesExtensionLibrary,代碼行數:12,代碼來源:AbstractDataView.java


注:本文中的javax.faces.event.PhaseId.APPLY_REQUEST_VALUES屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。