本文整理了Java中javax.faces.event.ActionEvent.getFacesContext()
方法的一些代码示例,展示了ActionEvent.getFacesContext()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ActionEvent.getFacesContext()
方法的具体详情如下:
包路径:javax.faces.event.ActionEvent
类名称:ActionEvent
方法名:getFacesContext
暂无
代码示例来源:origin: org.apache.myfaces.core/myfaces-api
public FacesContext getFacesContext()
{
if (facesContext != null)
{
return facesContext;
}
return super.getFacesContext();
}
代码示例来源:origin: org.glassfish/jakarta.faces
@SuppressWarnings("deprecation")
@Override
public void processAction(ActionEvent event) {
if (LOGGER.isLoggable(FINE)) {
LOGGER.fine(MessageFormat.format("processAction({0})", event.getComponent().getId()));
}
UIComponent source = event.getComponent();
FacesContext context = event.getFacesContext();
MethodBinding binding = ((ActionSource) source).getAction();
invokeNavigationHandling(
context, source, binding,
getNavigationOutcome(context, binding));
// Trigger a switch to Render Response if needed
context.renderResponse();
}
代码示例来源:origin: org.glassfish/javax.faces
@SuppressWarnings("deprecation")
@Override
public void processAction(ActionEvent event) {
if (LOGGER.isLoggable(FINE)) {
LOGGER.fine(MessageFormat.format("processAction({0})", event.getComponent().getId()));
}
UIComponent source = event.getComponent();
FacesContext context = event.getFacesContext();
MethodBinding binding = ((ActionSource) source).getAction();
invokeNavigationHandling(
context, source, binding,
getNavigationOutcome(context, binding));
// Trigger a switch to Render Response if needed
context.renderResponse();
}
代码示例来源:origin: eclipse-ee4j/mojarra
@Override
public void processAction(ActionEvent event) {
if (LOGGER.isLoggable(FINE)) {
LOGGER.fine(format("processAction({0})", event.getComponent().getId()));
}
UIComponent source = event.getComponent();
FacesContext context = event.getFacesContext();
MethodExpression expression = ((ActionSource2) source).getActionExpression();
invokeNavigationHandling(
context, source, expression,
getNavigationOutcome(context, expression));
// Trigger a switch to Render Response if needed
context.renderResponse();
}
内容来源于网络,如有侵权,请联系作者删除!