Example usage for org.apache.wicket.markup RawMarkup toString

List of usage examples for org.apache.wicket.markup RawMarkup toString

Introduction

In this page you can find the example usage for org.apache.wicket.markup RawMarkup toString.

Prototype

@Override
public String toString() 

Source Link

Usage

From source file:fiftyfive.wicket.prototype.TruncatedRawMarkup.java

License:Apache License

@Override
public void onComponentTagBody(MarkupStream markup, ComponentTag tag) {
    // We assume the body of the component is raw HTML
    // (i.e. not nested wicket components or wicket tags).
    RawMarkup raw = (RawMarkup) markup.get();
    getResponse().write(getTruncateHelper().truncate(raw.toString(), this.length));
    markup.next();//from  ww  w . jav a  2s  .com
}