Node nextNode = nodes.item(i);
if (nextNode instanceof Element) {
Element next = (Element)nodes.item(i);
if (next.getAttribute("class").equals("prompt")) {
//get all the html under the prompt element
promptText = new TransformResult(next).getString();
}
}
}
RatePanel ratePanel = new RatePanel(wicketId, loc, ratingId, promptText);
ratePanel.add(new AttributeRemover("id"));