Package javax.faces.context

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


        NavigationHandler navigationHandler = application.getNavigationHandler();
        navigationHandler.handleNavigation(facesContext,
                                           fromAction,
                                           outcome);
        //Render Response if needed
        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

        else
        {
            navigationHandler.handleNavigation(facesContext, fromAction, outcome);
        }
        //Render Response if needed
        facesContext.renderResponse();

    }
}
View Full Code Here

      else
      {
         viewId = Pages.getViewId(facesContext); //just for the log message
      }
      if ( log.isDebugEnabled() ) log.debug("rendering: " + viewId);
      facesContext.renderResponse();
   }

   protected static String getDisplayMessage(Exception e, String message)
   {
      if ( Strings.isEmpty(message) && e.getMessage()!=null )
View Full Code Here

   private void illegalNavigationError()
   {
      FacesContext context = FacesContext.getCurrentInstance();
      navigate(context);
      illegalNavigation();
      context.renderResponse();
   }

   /**
    * Add a message to indicate that illegal navigation
    * occurred. May be overridden by user to perform
View Full Code Here

        FacesContext facesContext = FacesContext.getCurrentInstance();

        if (interpreter.severityBlocksNavigation(facesContext, uiComponent, facesMessage.getSeverity()))
        {
            facesContext.renderResponse();
        }
    }

    public static boolean severityBlocksSubmitForComponentId(String clientId, FacesMessage facesMessage)
    {
View Full Code Here

        // Retrieve the NavigationHandler instance..
        NavigationHandler navHandler = context.getApplication().getNavigationHandler();
        // Invoke nav handling..
        navHandler.handleNavigation(context, action, outcome.toString());
        // Trigger a switch to Render Response if needed
        context.renderResponse();
    }

    /**
     * adds a page element to this page
     * DO NOT CALL yourself, this method is called from the PageElement constructor!
View Full Code Here

      switch (BridgeUtil.getPortletRequestPhase())
      {
      case RENDER_PHASE:
      case EVENT_PHASE:
        // skip rest of action processing if no PRPs were mapped                 
        if (!mappedPublicParams) context.renderResponse();
      }
    }
  }

  private final class LRUMap
View Full Code Here

    facesContext.setViewRoot(viewRoot);

    JsfUtils.notifyAfterListeners(PhaseId.RESTORE_VIEW, this.facesLifecycle, facesContext);

    facesContext.setViewRoot(viewRoot);
    facesContext.renderResponse();
    try {
      this.logger.debug("Asking faces lifecycle to render");
      this.facesLifecycle.render(facesContext);
    } finally {
      this.logger.debug("View rendering complete");
View Full Code Here

      logger.debug("No action event detected");
      context.getExternalContext().getRequestMap().remove(JsfView.EVENT_KEY);
    }
    // tells JSF lifecycle that rendering should now happen and any subsequent phases should be skipped
    // required in the case of this action listener firing immediately (immediate=true) before validation
    context.renderResponse();
  }

  // internal helpers

  private boolean validateModel(FacesContext facesContext, String eventId) {
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.