*/
public VelocityWithMarkupParsingPage()
{
HashMap<String, String> values = new HashMap<String, String>();
values.put("labelId", "message");
VelocityPanel velocityPanel = new VelocityPanel("velocityPanel",
new Model<HashMap<String, String>>(values))
{
private static final long serialVersionUID = 1L;
@Override
protected IResourceStream getTemplateResource()
{
return new UrlResourceStream(getClass().getResource("testWithMarkup.html"));
}
@Override
public boolean parseGeneratedMarkup()
{
return true;
}
};
velocityPanel.add(new Label("message", VelocityPage.TEST_STRING)
{
private static final long serialVersionUID = 1L;
@Override
protected void onComponentTag(final ComponentTag tag)