Parent
-> ListView
-> ListItem
-> Reporter (creates error message via error() call)
"Parent" is the component I assign to the FeedbackPanel to scope all of the displayed messages to the Parent itself and any of it's children via this:
@Override
protected IFeedbackMessageFilter getFeedbackMessageFilter()
{
return new IFeedbackMessageFilter()
{
public boolean accept(FeedbackMessage feedbackMessage)
{
return parent == feedbackMessage.getReporter() || parent.contains( feedbackMessage.getReporter(), true );
}
};
}
The problem is that the parent.contains( ... ) is failing. I debugged the component tree by doing this in the debugger:
feedbackMessage.getReporter().getParent().getParent().getParent()
This returns a ListItem component in which the parent is null. Meaning the reporter -> parent link is broken. In what circumstances can a ListItem's (or any component for that matter ) parent be null?
Aaron
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user