List of usage examples for org.apache.wicket.markup RawMarkup toString
@Override
public String toString()
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 }