Package org.apache.wicket.settings

Examples of org.apache.wicket.settings.IRequestCycleSettings

More documentation is available about each setting in the setter method for the property. @author Igor Vaynberg (ivaynberg)


  public final void redirectTo(final Page page)
  {
    String redirectUrl = null;

    // Check if use serverside response for client side redirects
    IRequestCycleSettings settings = application.getRequestCycleSettings();
    if ((settings.getRenderStrategy() == IRequestCycleSettings.REDIRECT_TO_BUFFER) &&
        (application instanceof WebApplication) && !(getWebRequest().isAjax()))
    {
      // remember the current response
      final WebResponse currentResponse = getWebResponse();
      try
View Full Code Here


  public final void redirectTo(final Page page)
  {
    String redirectUrl = null;

    // Check if use serverside response for client side redirects
    IRequestCycleSettings settings = application.getRequestCycleSettings();
    if ((settings.getRenderStrategy() == IRequestCycleSettings.RenderStrategy.REDIRECT_TO_BUFFER) &&
      (application instanceof WebApplication) && !(getWebRequest().isAjax()))
    {
      // remember the current response
      final WebResponse currentResponse = getWebResponse();
      try
View Full Code Here

   *
   * @return the currently available client info
   */
  private ClientProperties getClientProperties()
  {
    IRequestCycleSettings requestCycleSettings = getApplication().getRequestCycleSettings();
    boolean gatherExtendedBrowserInfo = requestCycleSettings.getGatherExtendedBrowserInfo();
    ClientProperties properties = null;
    try
    {
      requestCycleSettings.setGatherExtendedBrowserInfo(false);
      WebClientInfo clientInfo = (WebClientInfo) getSession().getClientInfo();
      properties = clientInfo.getProperties();
    }
    finally
    {
      requestCycleSettings.setGatherExtendedBrowserInfo(gatherExtendedBrowserInfo);
    }
    return properties;
  }
View Full Code Here

  public final void redirectTo(final Page page)
  {
    String redirectUrl = null;

    // Check if use serverside response for client side redirects
    IRequestCycleSettings settings = application.getRequestCycleSettings();
    if ((settings.getRenderStrategy() == IRequestCycleSettings.REDIRECT_TO_BUFFER) &&
      (application instanceof WebApplication) && !(getWebRequest().isAjax()))
    {
      // remember the current response
      final WebResponse currentResponse = getWebResponse();
      try
View Full Code Here

  public final void redirectTo(final Page page)
  {
    String redirectUrl = null;

    // Check if use serverside response for client side redirects
    IRequestCycleSettings settings = application.getRequestCycleSettings();
    if ((settings.getRenderStrategy() == IRequestCycleSettings.REDIRECT_TO_BUFFER)
        && (application instanceof WebApplication))
    {
      // remember the current response
      final WebResponse currentResponse = getWebResponse();
      try
View Full Code Here

  public final void redirectTo(final Page page)
  {
    String redirectUrl = null;

    // Check if use serverside response for client side redirects
    IRequestCycleSettings settings = application.getRequestCycleSettings();
    if ((settings.getRenderStrategy() == IRequestCycleSettings.REDIRECT_TO_BUFFER) &&
        (application instanceof WebApplication) && !(getWebRequest().isAjax()))
    {
      // remember the current response
      final WebResponse currentResponse = getWebResponse();
      try
View Full Code Here

  public final void redirectTo(final Page page)
  {
    String redirectUrl = null;

    // Check if use serverside response for client side redirects
    IRequestCycleSettings settings = application.getRequestCycleSettings();
    if ((settings.getRenderStrategy() == IRequestCycleSettings.REDIRECT_TO_BUFFER) &&
      (application instanceof WebApplication) && !(getWebRequest().isAjax()))
    {
      // remember the current response
      final WebResponse currentResponse = getWebResponse();
      try
View Full Code Here

TOP

Related Classes of org.apache.wicket.settings.IRequestCycleSettings

Copyright © 2018 www.massapicom. 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.