Package org.apache.wicket.util.template

Examples of org.apache.wicket.util.template.PackageTextTemplate.asString()


    variables.put("componentId", component.getMarkupId());
    variables.put("callbackUrl", getCallbackUrl());

    final TextTemplate verifyTemplate = new PackageTextTemplate(VerifyBehavior.class,
      "verify.js.tmpl");
    String asString = verifyTemplate.asString(variables);
    response.render(OnDomReadyHeaderItem.forScript(asString));
  }

  @Override
  protected void respond(AjaxRequestTarget target)
View Full Code Here


        params.put("componentId", vector.getJsId());
        params.put("dataLoaderId", getId());

        PackageTextTemplate template = new PackageTextTemplate(VectorFeatureDataLoadedListener.class,
                "VectorFeatureDataLoadedListener.js");
        response.render(OnDomReadyHeaderItem.forScript(template.asString(params)));
    }
}
View Full Code Here

        params.put("componentId", vector.getJsId());
        params.put("dataLoaderId", getId());

        PackageTextTemplate template = new PackageTextTemplate(VectorFeatureDataLoadedListener.class,
                "VectorFeaturesLoadedListener.js");
        response.render(OnDomReadyHeaderItem.forScript(template.asString(params)));
    }
}
View Full Code Here

    params.put("callbackUrl", getCallbackUrl());
    params.put("dndHandlerStart", getJSFunctionName4Start());
    params.put("dndHandlerStop", getJSFunctionName4Stop());
    // params.put("startOnLoad", options_.get("startOnLoad", "true").toString());
    // perform subsitution and return the result
    return template.asString(params);
  }

  private CharSequence getContainerCSSClass()
  {
    CharSequence back = (CharSequence)options_.get("containerclass", null);
View Full Code Here

        String href = getRequestCycle().getUrlRenderer().renderFullUrl(
            Url.parse(relativeUrl.toString()));
        variables.put("downloadLink", href);

        PackageTextTemplate template = new PackageTextTemplate(MailTemplate.class, "mail-template.tmpl");
        CharSequence templateHtml = template.asString(variables);
        updateResult(result, templateHtml, target);
        target.add(feedback);
      }

      @Override
View Full Code Here

    variables.put("contextPath", contextPath);

    // preserve the application name for JSR356 based impl
    variables.put("applicationName", component.getApplication().getName());

    String webSocketSetupScript = webSocketSetupTemplate.asString(variables);

    response.render(OnDomReadyHeaderItem.forScript(webSocketSetupScript));
  }

  @Override
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.