Package org.apache.wicket.util.resource

Examples of org.apache.wicket.util.resource.StringResourceStream


    @Override
    public IResourceStream getMarkupResourceStream(MarkupContainer container,
      Class<?> containerClass)
    {
      return new StringResourceStream("" + //
        "<html><body>" + //
        "  <div wicket:id=\"border\">" + //
        "    <div wicket:id=\"c1\"></div>" + // component is only at the markup
        "  </div>" + //
        "</body></html>");
View Full Code Here


    @Override
    public IResourceStream getMarkupResourceStream(MarkupContainer container,
      Class<?> containerClass)
    {
      return new StringResourceStream(
        "<wicket:border><div wicket:id=\"c1\"></div><wicket:body /></wicket:border>");
    }
View Full Code Here

    @Override
    public IResourceStream getMarkupResourceStream(MarkupContainer container,
      Class<?> containerClass)
    {
      return new StringResourceStream("" + //
        "<html><body>" + //
        "  <div wicket:id=\"_wicket_enclosure\"></div>" + //
        "  <div wicket:id=\"container\">" + //
        "    <wicket:enclosure child=\"msg\">" + //
        "      <span wicket:id=\"msg\"></span>" + //
View Full Code Here

    @Override
    public IResourceStream getMarkupResourceStream(MarkupContainer container,
      Class<?> containerClass)
    {
      return new StringResourceStream("" + //
        "<html><body>" + //
        "  <div wicket:id=\"_wicket_message\"></div>" + //
        "  <div wicket:id=\"container\">" + //
        "    <wicket:message key=\"null\" />" + //
        "  </div>" + //
View Full Code Here

    }

    @Override
    public IResourceStream getMarkupResourceStream(MarkupContainer container, Class<?> containerClass)
    {
      return new StringResourceStream(markup);
    }
View Full Code Here

    @Override
    public IResourceStream getMarkupResourceStream(MarkupContainer container,
      Class<?> containerClass)
    {
      return new StringResourceStream(
        "<html><body><a wicket:id=\"mainLink\"></a></body></html>");
    }
View Full Code Here

  {
    @Override
    public IResourceStream getMarkupResourceStream(MarkupContainer container,
      Class<?> containerClass)
    {
      return new StringResourceStream("<html><body></body></html>");
    }
View Full Code Here

   * testStringResourceStream()
   */
  @Test
  public void stringResourceStream()
  {
    StringResourceStream resourceStream = new StringResourceStream(TEST_STRING);
    bindToApplicationAsResourceAndRequestIt(resourceStream);
    assertEquals(TEST_STRING.length(), tester.getContentLengthFromResponseHeader());
  }
View Full Code Here

        @Override
        public IResourceStream getMarkupResourceStream(MarkupContainer container,
                Class<?> containerClass)
        {
            return new StringResourceStream(
                    "<body>\n" +
                    "<div wicket:id='feedback'/>\n" +
                    "<div wicket:id='label'/>\n" +
                    "</body>");
        }
View Full Code Here

  @Test
  public void giveUpRespondingOnIOExceptions()
  {
    TestRequestCycleListener testRequestCycleListener = new TestRequestCycleListener();
    tester.getApplication().getRequestCycleListeners().add(testRequestCycleListener);
    tester.startResource(new ResourceStreamResource(new StringResourceStream("asdf")));
    assertThat(testRequestCycleListener.lastExceptionRquestHandlerResolved,
      instanceOf(EmptyRequestHandler.class));
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.util.resource.StringResourceStream

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.