本文整理汇总了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;
}