Examples of SharedResourceReference


Examples of org.apache.wicket.request.resource.SharedResourceReference

      PopupSettings.SCROLLBARS).setHeight(500).setWidth(700);
    add(new ExternalLink("googlePopup", "http://www.google.com",
      "Click this link to go to Google in a popup").setPopupSettings(googlePopupSettings));

    // Shared resource link
    add(new ResourceLink<>("cancelButtonLink", new SharedResourceReference("cancelButton")));

    add(new DownloadLink("downloadLink", new AbstractReadOnlyModel<File>()
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

Examples of org.apache.wicket.request.resource.SharedResourceReference

    if (css != null)
    {
      response.renderCSSReference(css);
    }

    ResourceReference ref = new SharedResourceReference(RESOURCE_NAME);

    final String uploadFieldId = (uploadField == null) ? "" : uploadField.getMarkupId();

    ByteArrayOutputStream out = new ByteArrayOutputStream();
    PrintStream js = new PrintStream(out);
View Full Code Here

Examples of org.apache.wicket.request.resource.SharedResourceReference

      PopupSettings.SCROLLBARS).setHeight(500).setWidth(700);
    add(new ExternalLink("googlePopup", "http://www.google.com",
      "Click this link to go to Google in a popup").setPopupSettings(googlePopupSettings));

    // Shared resource link
    add(new ResourceLink<Void>("cancelButtonLink", new SharedResourceReference("cancelButton")));

    add(new DownloadLink("downloadLink", new AbstractReadOnlyModel<File>()
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

Examples of org.apache.wicket.request.resource.SharedResourceReference

    // Add okay button image
    add(new Image("okButton", getOkButtonImage()));

    // Add cancel button image
    add(new Image("cancelButton", new SharedResourceReference("cancelButton")));

    // image loaded as resource ref via model.
    add(new Image("imageModelResourceReference", new Model<ResourceReference>(RESOURCE_REF)));

    // image loaded as resource via model.
View Full Code Here

Examples of org.apache.wicket.request.resource.SharedResourceReference

  @Before
  public void before() throws Exception
  {
    resource = new TestResource();
    tester.getApplication().getSharedResources().add(SHARED_NAME, resource);
    ResourceReference resourceReference = new SharedResourceReference(SHARED_NAME);
    mapper = new ResourceMapper("/test/resource", resourceReference);
    mapperWithPlaceholder = new ResourceMapper("/test2/${name}/resource", resourceReference);
    tester.getApplication().getRootRequestMapperAsCompound().add(mapper);
  }
View Full Code Here

Examples of org.apache.wicket.request.resource.SharedResourceReference

    public HomePage(final PageParameters parameters) {
    super(parameters);
 
    add(new ResourceLink("rssLink", new RSSProducerResource()));
    add(new ResourceLink("globalRssLink", new SharedResourceReference("globalRSSProducer")));
    }
View Full Code Here

Examples of org.apache.wicket.request.resource.SharedResourceReference

    if (css != null)
    {
      response.render(CssHeaderItem.forReference(css));
    }

    ResourceReference ref = new SharedResourceReference(RESOURCE_NAME);

    final String uploadFieldId = (uploadField == null) ? "" : uploadField.getMarkupId();

    final String status = new StringResourceModel(RESOURCE_STARTING, this, (IModel<?>)null).getString();
View Full Code Here

Examples of org.apache.wicket.request.resource.SharedResourceReference

   * @throws Exception
   */
  @Test
  public void resourceReferenceUrl() throws Exception
  {
    ResourceReference rr = new SharedResourceReference("test");
    CharSequence url = tester.getRequestCycle().mapUrlFor(rr, null).toString();
    assertEquals("wicket/resource/org.apache.wicket.Application/test", url);

    rr = new PackageResourceReference(SharedResourceUrlTest.class, "test");
    url = tester.getRequestCycle().mapUrlFor(rr, null).toString();
View Full Code Here

Examples of org.apache.wicket.request.resource.SharedResourceReference

   * @throws Exception
   */
  @Test
  public void resourceReferenceWithParamsUrl() throws Exception
  {
    ResourceReference rr = new SharedResourceReference("test");
    CharSequence url = tester.getRequestCycle()
      .mapUrlFor(rr, new PageParameters().set("param", "value"))
      .toString();
    assertEquals("wicket/resource/org.apache.wicket.Application/test?param=value", url);

View Full Code Here

Examples of org.apache.wicket.request.resource.SharedResourceReference

      PopupSettings.SCROLLBARS).setHeight(500).setWidth(700);
    add(new ExternalLink("googlePopup", "http://www.google.com",
      "Click this link to go to Google in a popup").setPopupSettings(googlePopupSettings));

    // Shared resource link
    add(new ResourceLink<Void>("cancelButtonLink", new SharedResourceReference("cancelButton")));

    add(new DownloadLink("downloadLink", new AbstractReadOnlyModel<File>()
    {
      private static final long serialVersionUID = 1L;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.