Package org.apache.wicket.protocol.http

Examples of org.apache.wicket.protocol.http.WebApplication


   */

  @Override
  protected void setUp() throws Exception
  {
    WebApplication app = new DummyApplication();
    tester = new WicketTester(app);
  }
View Full Code Here


    HttpSession httpSession = httpServletRequest.getSession(false);
    if (httpSession != null)
    {
      if (sessionKey == null)
      {
        WebApplication application = (WebApplication)Application.get(filterName);
        sessionKey = application.getSessionAttributePrefix(null, filterName) +
          Session.SESSION_ATTRIBUTE_NAME;

        log.debug("will use {} as the session key to get the Wicket session", sessionKey);
      }
View Full Code Here

   */
  @Override
  protected void setUp() throws Exception
  {
    person = new Person();
    app = new MockWebApplication(new WebApplication()
    {

      @Override
      public Class<? extends Page> getHomePage()
      {
View Full Code Here

   * @since 6.0
   */
  protected final AjaxRequestAttributes getAttributes()
  {
    AjaxRequestAttributes attributes = new AjaxRequestAttributes();
    WebApplication application = (WebApplication)getComponent().getApplication();
    AjaxRequestTargetListenerCollection ajaxRequestTargetListeners = application.getAjaxRequestTargetListeners();
    for (AjaxRequestTarget.IListener listener : ajaxRequestTargetListeners)
    {
      if (listener instanceof AjaxRequestTarget.AbstractListener)
      {
        ((AjaxRequestTarget.AbstractListener)listener).updateAjaxAttributes(attributes);
View Full Code Here

   * @see org.apache.wicket.behavior.IBehaviorListener#onRequest()
   */
  @Override
  public final void onRequest()
  {
    WebApplication app = (WebApplication)getComponent().getApplication();
    AjaxRequestTarget target = app.newAjaxRequestTarget(getComponent().getPage());

    RequestCycle requestCycle = RequestCycle.get();
    requestCycle.scheduleRequestHandlerAfterCurrent(target);

    respond(target);
View Full Code Here

    "0\">";

  @Override
  protected WebApplication newApplication()
  {
    WebApplication webApplication = new MockApplication()
    {
      @Override
      protected void init()
      {
        super.init();
View Full Code Here

{

  @Override
  protected WebApplication newApplication()
  {
    WebApplication webApplication = new MockApplication()
    {
      @Override
      protected void init()
      {
        super.init();
View Full Code Here

   */
  public AtmosphereTester(final WicketTester wicketTester, Page page)
  {
    this.wicketTester = wicketTester;

    WebApplication application = wicketTester.getApplication();

    TesterBroadcaster broadcaster = createBroadcaster();

    if (EventBus.isInstalled(application))
    {
View Full Code Here

    TestWebSocketResource.ON_CONNECT_CALLED.set(false);
    TestWebSocketResource.ON_CLOSE_CALLED.set(false);
    ON_OUT_BINARY_CALLED.set(false);
    ON_OUT_TEXT_CALLED.set(false);

    WebApplication application = new MockApplication()
    {
      @Override
      protected void init()
      {
        super.init();
View Full Code Here

  }

  @Override
  public void respond(IRequestCycle requestCycle)
  {
    WebApplication application = WebApplication.get();
    Integer pageId = pageKey.getPageId();
    Page page = (Page) Session.get().getPageManager().getPage(pageId);
    if (page != null)
    {
      page.dirty();
      AjaxRequestTarget target = application.newAjaxRequestTarget(page);
      executeHandlers(target, page);
    }
    else
    {
      LOGGER.warn("Could not find a page with id '{}' for session with id '{}' in the page stores. It will be unregistered",
View Full Code Here

TOP

Related Classes of org.apache.wicket.protocol.http.WebApplication

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.