* @see org.apache.wicket.model.Model#getObject()
*/
@Override
public String getObject()
{
final GroovyResult groovyResult = parentPage.groovyResult;
final StringBuffer buf = new StringBuffer();
buf.append(groovyResult.getResultAsHtmlString());
if (groovyResult.getResult() != null && StringUtils.isNotEmpty(groovyResult.getOutput()) == true) {
buf.append("<br/>\n");
buf.append(HtmlHelper.escapeXml(groovyResult.getOutput()));
}
return buf.toString();
}
}) {
/**
* @see org.apache.wicket.Component#isVisible()
*/
@Override
public boolean isVisible()
{
final GroovyResult groovyResult = parentPage.groovyResult;
return (groovyResult != null && groovyResult.hasResult() == true);
}
};
groovyResultPanel.getLabel().setEscapeModelStrings(false);
fs.add(groovyResultPanel);
}