javax.faces.event.ActionEvent.getFacesContext()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(2.1k)|赞(0)|评价(0)|浏览(161)

本文整理了Java中javax.faces.event.ActionEvent.getFacesContext()方法的一些代码示例,展示了ActionEvent.getFacesContext()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ActionEvent.getFacesContext()方法的具体详情如下:
包路径:javax.faces.event.ActionEvent
类名称:ActionEvent
方法名:getFacesContext

ActionEvent.getFacesContext介绍

暂无

代码示例

代码示例来源:origin: org.apache.myfaces.core/myfaces-api

  1. public FacesContext getFacesContext()
  2. {
  3. if (facesContext != null)
  4. {
  5. return facesContext;
  6. }
  7. return super.getFacesContext();
  8. }

代码示例来源:origin: org.glassfish/jakarta.faces

  1. @SuppressWarnings("deprecation")
  2. @Override
  3. public void processAction(ActionEvent event) {
  4. if (LOGGER.isLoggable(FINE)) {
  5. LOGGER.fine(MessageFormat.format("processAction({0})", event.getComponent().getId()));
  6. }
  7. UIComponent source = event.getComponent();
  8. FacesContext context = event.getFacesContext();
  9. MethodBinding binding = ((ActionSource) source).getAction();
  10. invokeNavigationHandling(
  11. context, source, binding,
  12. getNavigationOutcome(context, binding));
  13. // Trigger a switch to Render Response if needed
  14. context.renderResponse();
  15. }

代码示例来源:origin: org.glassfish/javax.faces

  1. @SuppressWarnings("deprecation")
  2. @Override
  3. public void processAction(ActionEvent event) {
  4. if (LOGGER.isLoggable(FINE)) {
  5. LOGGER.fine(MessageFormat.format("processAction({0})", event.getComponent().getId()));
  6. }
  7. UIComponent source = event.getComponent();
  8. FacesContext context = event.getFacesContext();
  9. MethodBinding binding = ((ActionSource) source).getAction();
  10. invokeNavigationHandling(
  11. context, source, binding,
  12. getNavigationOutcome(context, binding));
  13. // Trigger a switch to Render Response if needed
  14. context.renderResponse();
  15. }

代码示例来源:origin: eclipse-ee4j/mojarra

  1. @Override
  2. public void processAction(ActionEvent event) {
  3. if (LOGGER.isLoggable(FINE)) {
  4. LOGGER.fine(format("processAction({0})", event.getComponent().getId()));
  5. }
  6. UIComponent source = event.getComponent();
  7. FacesContext context = event.getFacesContext();
  8. MethodExpression expression = ((ActionSource2) source).getActionExpression();
  9. invokeNavigationHandling(
  10. context, source, expression,
  11. getNavigationOutcome(context, expression));
  12. // Trigger a switch to Render Response if needed
  13. context.renderResponse();
  14. }

相关文章