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


        CharSequence output = transform(this, response.toString());
        webResponse.write(output);
      }
      catch (Exception ex)
      {
        throw new WicketRuntimeException("Error while transforming the output: " + this, ex);
      }
    }
    finally
    {
      // Restore the original response
View Full Code Here

        // Instantiate the factory
        return (IWebApplicationFactory)factoryClass.newInstance();
      }
      catch (ClassCastException e)
      {
        throw new WicketRuntimeException("Application factory class " +
          appFactoryClassName + " must implement IWebApplicationFactory");
      }
      catch (ClassNotFoundException e)
      {
        throw new WebApplicationFactoryCreationException(appFactoryClassName, e);
View Full Code Here

      {
        result = "";
      }
      else if (!result.startsWith("/") || !result.endsWith("/*"))
      {
        throw new WicketRuntimeException("Your " + FILTER_MAPPING_PARAM +
          " must start with \"/\" and end with \"/*\". It is: " + result);
      }
      else
      {
        // remove leading "/" and trailing "*"
 
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();

      page.getSession().getPageManager().touchPage(page);
View Full Code Here

          }
        }
      }
      catch (Exception e)
      {
        throw new WicketRuntimeException(e);
      }
    }

    return hasChild;
  }
View Full Code Here

          tester = new TagTester(parser, openTag, closeTag);
        }
      }
      catch (Exception e)
      {
        throw new WicketRuntimeException(e);
      }
    }

    return tester;
  }
View Full Code Here

          tester = new TagTester(parser, openTag, closeTag);
        }
      }
      catch (Exception e)
      {
        throw new WicketRuntimeException(e);
      }
    }

    return tester;
  }
View Full Code Here

        }
      }
      catch (Exception e)
      {
        // NOTE: IllegalStateException(Throwable) only exists since Java 1.5
        throw new WicketRuntimeException(e);
      }
    }

    return testers;
  }
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.