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>\n" +
            "<body>\n" +
              "\t<a wicket:id=\"link\" />\n" +
              "\t<div wicket:id=\"isPageStateless\" />\n" +
            "</body>\n" +
          "</html>");
View Full Code Here


    }

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

            "<form wicket:id=\"form\">"
              + "<input type=\"submit\"/> \n" +
            "</form>" +
          "</body></html>";

      return new StringResourceStream(markup);
    }
View Full Code Here

    @Override
    public IResourceStream getMarkupResourceStream(MarkupContainer container, Class<?> containerClass)
    {
      String markup = "<html/>";

      return new StringResourceStream(markup);
    }
View Full Code Here

    }

    public IResourceStream getMarkupResourceStream(final MarkupContainer container,
      final Class<?> containerClass)
    {
      return new StringResourceStream(
        "<html><body><a wicket:id=\"re-create\"></a>"
          + "<form wicket:id=\"uploadForm\"><input wicket:id=\"fileInput\" type=\"file\" /> <span wicket:id=\"progress\"> </span></form>"
          + "</body></html>");
    }
View Full Code Here

    }

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

    private int count;

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

  @Test
  public void testLightweightResource()
  {
    IResourceStreamLocator resourceStreamLocator = mock(IResourceStreamLocator.class);

    StringResourceStream srs = new StringResourceStream("anything");

    when(
      resourceStreamLocator.locate(String.class, "path", "style", "variation", null,
        "extension", true)).thenReturn(srs);
View Full Code Here

    }

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

    }

    String stringValue = textTemplate.asString(variablesModel.getObject());
    variablesModel.detach(); // We're done with the model so detach it!

    StringResourceStream resourceStream = new StringResourceStream(stringValue,
      textTemplate.getContentType());
    resourceStream.setLastModified(textTemplate.lastModifiedTime());

    resource = new ResourceStreamResource(resourceStream);
    return resource;
  }
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.