Package org.apache.wicket.protocol.http.request

Examples of org.apache.wicket.protocol.http.request.WebClientInfo


        // if we get here, the redirect already has been done; clear
        // the meta data entry; we don't need it any longer is the client
        // info object will be cached too
        setMetaData(BROWSER_WAS_POLLED_KEY, null);
      }
      clientInfo = new WebClientInfo(requestCycle);
    }
    return (WebClientInfo)clientInfo;
  }
View Full Code Here


      "iecursor.js");

  public final void renderHead(IHeaderResponse response)
  {

    WebClientInfo info = new WebClientInfo(RequestCycle.get());
    if (info.getProperties().isBrowserInternetExplorer())
    {
      response.renderJavaScriptReference(JS);

      String initJS = "IECursor.fix();";
      response.renderOnDomReadyJavaScript(initJS);
View Full Code Here

  private static final long serialVersionUID = 1L;

  public final void renderHead(IHeaderResponse response)
  {
    WebClientInfo info = new WebClientInfo(RequestCycle.get());
    if (info.getProperties().isBrowserInternetExplorer())
    {
      String initJS = "try { document.execCommand('BackgroundImageCache', false, true); } catch (e) {};";
      response.renderOnDomReadyJavaScript(initJS);
    }
  }
View Full Code Here

  public BrowserInfoPage()
  {
    initComps();
    RequestCycle requestCycle = getRequestCycle();
    WebSession session = (WebSession)getSession();
    WebClientInfo clientInfo = session.getClientInfo();
    if (clientInfo == null)
    {
      clientInfo = new WebClientInfo(requestCycle);
      getSession().setClientInfo(clientInfo);
    }
    else
    {
      ClientProperties properties = clientInfo.getProperties();
      properties.setJavaEnabled(false);
    }

    continueToOriginalDestination();
  }
View Full Code Here

        // if we get here, the redirect already has been done; clear
        // the meta data entry; we don't need it any longer is the client
        // info object will be cached too
        setMetaData(BROWSER_WAS_POLLED_KEY, null);
      }
      clientInfo = new WebClientInfo(requestCycle);
    }
    return (WebClientInfo)clientInfo;
  }
View Full Code Here

  public BrowserInfoPage()
  {
    initComps();
    RequestCycle requestCycle = getRequestCycle();
    WebSession session = (WebSession)getSession();
    WebClientInfo clientInfo = session.getClientInfo();
    if (clientInfo == null)
    {
      clientInfo = new WebClientInfo(requestCycle);
      getSession().setClientInfo(clientInfo);
    }
    else
    {
      ClientProperties properties = clientInfo.getProperties();
      properties.setJavaEnabled(false);
    }

    continueToOriginalDestination();
  }
View Full Code Here

      {
        ClientPropertiesBean propertiesBean = getModelObject();

        RequestCycle requestCycle = getRequestCycle();
        WebSession session = getWebSession();
        WebClientInfo clientInfo = session.getClientInfo();

        if (clientInfo == null)
        {
          clientInfo = new WebClientInfo(requestCycle);
          getSession().setClientInfo(clientInfo);
        }

        ClientProperties properties = clientInfo.getProperties();
        propertiesBean.merge(properties);

        afterSubmit();
      }
    };
View Full Code Here

  public BrowserInfoPage()
  {
    initComps();
    RequestCycle requestCycle = getRequestCycle();
    WebSession session = (WebSession)getSession();
    WebClientInfo clientInfo = session.getClientInfo();
    if (clientInfo == null)
    {
      clientInfo = new WebClientInfo(requestCycle);
      getSession().setClientInfo(clientInfo);
    }
    else
    {
      ClientProperties properties = clientInfo.getProperties();
      properties.setJavaEnabled(false);
    }

    continueToOriginalDestination();
  }
View Full Code Here

  {
    RequestCycle requestCycle = RequestCycle.get();
    String name = requestCycle.getMetaData(KEY);
    if (name == null)
    {
      WebClientInfo clientInfo;
      name = getVersion2();
      if (Session.exists())
      {
        WebSession session = WebSession.get();
        clientInfo = session.getClientInfo();
      }
      else
      {
        clientInfo = new WebClientInfo(requestCycle);
      }
      ClientProperties clientProperties = clientInfo.getProperties();
      if (clientProperties.isBrowserInternetExplorer() && clientProperties.getBrowserVersionMajor() < 9)
      {
        name = getVersion1();
      }
View Full Code Here

        // if we get here, the redirect already has been done; clear
        // the meta data entry; we don't need it any longer is the client
        // info object will be cached too
        setMetaData(BROWSER_WAS_POLLED_KEY, null);
      }
      clientInfo = new WebClientInfo(requestCycle);
    }
    return (WebClientInfo)clientInfo;
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.protocol.http.request.WebClientInfo

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.