Example usage for org.apache.wicket.markup.transformer XsltTransformerBehavior XsltTransformerBehavior

List of usage examples for org.apache.wicket.markup.transformer XsltTransformerBehavior XsltTransformerBehavior

Introduction

In this page you can find the example usage for org.apache.wicket.markup.transformer XsltTransformerBehavior XsltTransformerBehavior.

Prototype

public XsltTransformerBehavior(final String xslFilePath) 

Source Link

Usage

From source file:de.alpharogroup.wicket.xslt.examples.panels.HomePanel.java

License:Apache License

public HomePanel(final String id) {
    super(id);/*from ww w .j  a v  a  2s  .co  m*/
    final Label report = new Label("message", new Model<>(

            "<message>Yep, it worked!</message>"));
    add(report);
    report.setEscapeModelStrings(false);
    final XsltTransformerBehavior trans = new XsltTransformerBehavior("def.xsl");
    trans.bind(report);
    report.add(trans);
}

From source file:org.jaulp.wicket.xslt.examples.panels.HomePanel.java

License:Apache License

public HomePanel(final String id) {
    super(id);//from  www  .j  a  v  a 2 s. co  m
    Label report = new Label("message", new Model<>(

            "<message>Yep, it worked!</message>"));
    add(report);
    report.setEscapeModelStrings(false);
    XsltTransformerBehavior trans = new XsltTransformerBehavior("def.xsl");
    trans.bind(report);
    report.add(trans);
}