Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: fix a translation garble due to the move from the old wiki

...

Code Block
 FeedbackPanel feedbackPanel = new FeedbackPanel("feedback");
 feedbackPanel.setFilter(new IFeedbackMessageFilter() {
     public boolean accept(FeedbackMessage message) {
         if (message.getReporter().getParent() h1.==  YourForm.this) {
             return true;
         }
         return false;
    }
 });
 add(feedbackPanel);

...

if (message.getReporter().getParent() == YourForm.this) {

will check to see if the reporting form component is from the form you added your FeedbackPanel to.