Package javax.faces.context

Examples of javax.faces.context.FacesContext.renderResponse()


        }
      }

      // Now restore the Faces Messages
      restoreFacesMessageState(context);
      context.renderResponse();
    }
  }

  private final class LRUMap
    extends LinkedHashMap<String, Map<String, Object>>
View Full Code Here


      {
        hsr.reset();
        _LOG.warning(e);      
        FacesMessage message = MessageFactory.getMessage(context, DOWNLOAD_MESSAGE_ID);
        context.addMessage(null, message);
        context.renderResponse();
        return;
      }
    }
   
    context.responseComplete();
View Full Code Here

      // Push parameters into the new pageFlow scope
      _getPageFlowScope().putAll(dialogParameters);

      // And navigate to the dialog root
      context.setViewRoot(dialogRoot);
      context.renderResponse();
    }
  }


  //
View Full Code Here

          LOG.error("", e);
          FacesContext facesContext = facesContextFactory.getFacesContext(context, request, response, lifecycle);
          // TODO  better Message i18n Message?
          FacesMessage facesMessage = new FacesMessage(FacesMessage.SEVERITY_ERROR, e.getCause().getMessage(), null);
          facesContext.addMessage(null, facesMessage);
          facesContext.renderResponse();
          return facesContext;
        }
      }
    }
    return facesContextFactory.getFacesContext(context, request, response, lifecycle);
View Full Code Here

  }

  public void processAction(ActionEvent event) throws AbortProcessingException {
    super.processAction(event);
    FacesContext facesContext = FacesContext.getCurrentInstance();
    facesContext.renderResponse();
  }

}
View Full Code Here

        NavigationHandler navigationHandler = application.getNavigationHandler();
        navigationHandler.handleNavigation(facesContext,
                                           fromAction,
                                           outcome);
        //Render Response if needed
        facesContext.renderResponse();

    }
}
View Full Code Here

     */
    public void navigateTo(Class<? extends ViewConfig> targetView)
    {
        FacesContext facesContext = FacesContext.getCurrentInstance();
        facesContext.getApplication().getNavigationHandler().handleNavigation(facesContext, null, targetView.getName());
        facesContext.renderResponse();
    }
}
View Full Code Here

        FacesContext context = FacesContext.getCurrentInstance()
        Application application = context.getApplication()
        ViewHandler viewHandler = application.getViewHandler()
        UIViewRoot viewRoot = viewHandler.createView(context, context.getViewRoot().getViewId())
        context.setViewRoot(viewRoot)
        context.renderResponse();  
    }
   
}
View Full Code Here

                    count = (count == null) ? 0 : count;
                    String viewIdAfterAction = context.getViewRoot().getViewId();

                    if (viewIdBeforeAction.equals(viewIdAfterAction) && count == 0)
                    {
                        context.renderResponse();
                    }
                    // "... Otherwise, execute the lifecycle on the new UIViewRoot ..."
                    // Note these words are implemented in the NavigationHandler, but
                    // the original proposal from seam s:viewAction did a trick here
                    // to restart the JSF lifecycle.
View Full Code Here

      {
        hsr.reset();
        _LOG.warning(e);      
        FacesMessage message = MessageFactory.getMessage(context, DOWNLOAD_MESSAGE_ID);
        context.addMessage(null, message);
        context.renderResponse();
        return;
      }
    }
   
    context.responseComplete();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.