I've updated my class and I'm not getting the exception anymore, but the class attribute still isn't being added:
public class CSSFeedbackPanel extends FeedbackPanel { public CSSFeedbackPanel(final String id) { super(id); WebMarkupContainer feedbackul = (WebMarkupContainer) get("feedbackul"); if (feedbackul != null) { feedbackul.add(new AttributeModifier("class", true, new Model() { public Object getObject() { if (anyMessage()) { if (anyMessage(FeedbackMessage.INFO)) { return "feedbackulINFO"; } else if (anyMessage(FeedbackMessage.ERROR)) { return "feedbackulERROR"; } else { return "feedbackulNONE"; } } else { return "feedbackulNONE"; } } })); } } } The getObject() call isn't being executed. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user