Examples of shouldProcessDynaview()


Examples of com.ocpsoft.pretty.PrettyContext.shouldProcessDynaview()

      {
         ((HttpServletRewrite) event).getRequest().setAttribute(REWRITE_MAPPING_ID_KEY,
                  REWRITE_MAPPING_ID_KEY + ":" + mapping.getId());

         URL url = context.getRequestURL();
         if (context.shouldProcessDynaview())
         {
            log.trace("Forwarding mapped request [" + url.toURL() + "] to dynaviewId [" + context.getDynaViewId() + "]");
            ((HttpInboundServletRewrite) event).forward(context.getDynaViewId());
         }
         else
View Full Code Here

Examples of com.ocpsoft.pretty.PrettyContext.shouldProcessDynaview()

   {
      FacesContext facesContext = event.getFacesContext();
      if (PhaseId.RESTORE_VIEW.equals(event.getPhaseId()))
      {
         PrettyContext prettyContext = PrettyContext.getCurrentInstance(facesContext);
         if (prettyContext.shouldProcessDynaview())
         {
            // We are only using this lifecycle to access the EL-Context.
            // End the faces lifecycle and finish processing after the Phase
            UIViewRoot viewRoot = facesContext.getViewRoot();
            if (viewRoot == null)
View Full Code Here

Examples of com.ocpsoft.pretty.PrettyContext.shouldProcessDynaview()

   public void afterPhase(final PhaseEvent event)
   {
      if (PhaseId.RESTORE_VIEW.equals(event.getPhaseId()))
      {
         PrettyContext prettyContext = PrettyContext.getCurrentInstance(event.getFacesContext());
         boolean dynaviewViewDetermination = prettyContext.shouldProcessDynaview();

         /*
          * Validate and inject path/query parameter if one of these conditions is met:
          *   - The 'responseComplete' flag is not set (normal mapped request)
          *   - we must evaluate the view id for a dynaview request (responseComplete is set!!!)
View Full Code Here

Examples of com.ocpsoft.pretty.PrettyContext.shouldProcessDynaview()

   {
      FacesContext facesContext = event.getFacesContext();
      if (PhaseId.RESTORE_VIEW.equals(event.getPhaseId()))
      {
         PrettyContext prettyContext = PrettyContext.getCurrentInstance(facesContext);
         if (prettyContext.shouldProcessDynaview())
         {
            // We are only using this lifecycle to access the EL-Context.
            // End the faces lifecycle and finish processing after the Phase
            UIViewRoot viewRoot = facesContext.getViewRoot();
            if (viewRoot == null)
View Full Code Here

Examples of com.ocpsoft.pretty.PrettyContext.shouldProcessDynaview()

            // inject parameters
            injector.injectParameters(event.getFacesContext());
         }

         PrettyContext prettyContext = PrettyContext.getCurrentInstance(event.getFacesContext());
         if (prettyContext.shouldProcessDynaview())
         {
            dynaview.processDynaView(prettyContext, event.getFacesContext());
         }
         else if (!event.getFacesContext().getResponseComplete())
         {
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.