Package org.apache.wicket

Examples of org.apache.wicket.WicketRuntimeException


      postprocessConfiguration(attributesJson, component);
    }
    catch (JSONException e)
    {
      throw new WicketRuntimeException(e);
    }

    String attributesAsJson = attributesJson.toString();

    return attributesAsJson;
View Full Code Here


    application = Application.get();

    markupCache = newCacheImplementation();
    if (markupCache == null)
    {
      throw new WicketRuntimeException("The map used to cache markup must not be null");
    }

    markupKeyCache = newCacheImplementation();
  }
View Full Code Here

   */
  public ModalWindow setContent(final Component component)
  {
    if (component.getId().equals(getContentId()) == false)
    {
      throw new WicketRuntimeException("Modal window content id is wrong. Component ID:" +
        component.getId() + "; content ID: " + getContentId());
    }
    else if (component instanceof AbstractRepeater)
    {
      throw new WicketRuntimeException(
        "A repeater component cannot be used as the content of a modal window, please use repeater's parent");
    }

    component.setOutputMarkupPlaceholderTag(true);
    component.setVisible(false);
View Full Code Here

    if (isCustomComponent() == false)
    {
      Page page = createPage();
      if (page == null)
      {
        throw new WicketRuntimeException("Error creating page for modal dialog.");
      }
      CharSequence pageUrl;
      RequestCycle requestCycle = RequestCycle.get();

      if (page.isPageStateless())
View Full Code Here

  public static EventBus get(Application application)
  {
    EventBus eventBus = application.getMetaData(EVENT_BUS_KEY);
    if (eventBus == null)
    {
      throw new WicketRuntimeException(
        "There is no EventBus registered for the given application: " +
          application.getName());
    }
    return eventBus;
  }
View Full Code Here

  private static Broadcaster lookupDefaultBroadcaster()
  {
    BroadcasterFactory factory = BroadcasterFactory.getDefault();
    if (factory == null)
    {
      throw new WicketRuntimeException(
        "There is no Atmosphere BroadcasterFactory configured. Did you include the "
          + "atmosphere.xml configuration file and configured AtmosphereServlet?");
    }
    Collection<Broadcaster> allBroadcasters = factory.lookupAll();
    if (allBroadcasters.isEmpty())
    {
      throw new WicketRuntimeException(
        "The Atmosphere BroadcasterFactory has no Broadcasters, "
          + "something is wrong with your Atmosphere configuration.");
    }
    return allBroadcasters.iterator().next();
  }
View Full Code Here

          curMethod.setAccessible(true);
          curMethod.invoke(base, target, event.getPayload());
        }
        catch (IllegalAccessException e)
        {
          throw new WicketRuntimeException(e);
        }
        catch (IllegalArgumentException e)
        {
          throw new WicketRuntimeException(e);
        }
        catch (InvocationTargetException e)
        {
          throw new WicketRuntimeException(e);
        }
      }
    }
  }
View Full Code Here

    {
      return filterClass.newInstance();
    }
    catch (InstantiationException e)
    {
      throw new WicketRuntimeException(e);
    }
    catch (IllegalAccessException e)
    {
      throw new WicketRuntimeException(e);
    }
  }
View Full Code Here

      postprocessConfiguration(attributesJson, component);
    }
    catch (JSONException e)
    {
      throw new WicketRuntimeException(e);
    }

    String attributesAsJson = attributesJson.toString();

    return attributesAsJson;
View Full Code Here

      if (clazz == null)
      {
        ClassNotFoundException cause = new ClassNotFoundException(
          "Could not resolve type [" + type +
            "] with the currently configured org.apache.wicket.application.IClassResolver");
        throw new WicketRuntimeException(cause);
      }
      return LazyInitProxyFactory.createProxy(clazz, locator);
    }
View Full Code Here

TOP

Related Classes of org.apache.wicket.WicketRuntimeException

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.