本文整理匯總了Java中javax.faces.event.PhaseId.RESTORE_VIEW屬性的典型用法代碼示例。如果您正苦於以下問題:Java PhaseId.RESTORE_VIEW屬性的具體用法?Java PhaseId.RESTORE_VIEW怎麽用?Java PhaseId.RESTORE_VIEW使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類javax.faces.event.PhaseId
的用法示例。
在下文中一共展示了PhaseId.RESTORE_VIEW屬性的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: afterPhase
@SuppressWarnings("unchecked")
public void afterPhase(PhaseEvent event)
{
FacesContext context = event.getFacesContext();
if (event.getPhaseId() == PhaseId.RESTORE_VIEW)
{
// Store off the current ViewRoot so we can check for a full page
// render in response to a partial event.
context.getExternalContext().getRequestMap().put(INITIAL_VIEW_ROOT_KEY,
context.getViewRoot());
}
}
示例2: beforePhase
public void beforePhase(PhaseEvent e) {
System.out.println("MyListener works xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
if (e.getPhaseId() == PhaseId.RESTORE_VIEW) {
if (e.getFacesContext().getExternalContext().getSession(false) == null) {
e.getFacesContext().getApplication().getNavigationHandler().handleNavigation(
e.getFacesContext(), "", "sessionExpired");
}
}
}
示例3: getPhaseId
public PhaseId getPhaseId()
{
return PhaseId.RESTORE_VIEW;
}
示例4: getPhaseId
public PhaseId getPhaseId() {
return PhaseId.RESTORE_VIEW;
}
示例5: getPhaseId
@Override
public PhaseId getPhaseId()
{
return PhaseId.RESTORE_VIEW;
}
示例6: getPhaseId
public PhaseId getPhaseId() {
return PhaseId.RESTORE_VIEW;
// return PhaseId.ANY_PHASE;
}
示例7: getPhaseId
public PhaseId getPhaseId() {
return PhaseId.RESTORE_VIEW;
// throw new UnsupportedOperationException("Not supported yet.");
}
示例8: getPhaseId
@Override
public PhaseId getPhaseId() {
return PhaseId.RESTORE_VIEW;
}
示例9: getPhaseId
@Override
public PhaseId getPhaseId() {
return PhaseId.RESTORE_VIEW;
}
示例10: getPhaseId
@Override
public PhaseId getPhaseId()
{
return PhaseId.RESTORE_VIEW;
}
示例11: getPhaseId
/**
* {@inheritDoc}
* @see PhaseListener#getPhaseId()
*/
public PhaseId getPhaseId() {
return PhaseId.RESTORE_VIEW;
}