Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It's just a drop-in replacement for FeedbackPanel that changes the CSS style based on the type of messages contained. The problem is that it doesn't work well if there are multiple message types in the panel.

Alternative Example (Wicket 1.4+)

An alternative example using the built-in method for getting the message rendering component. This method simply appends a class attribute to the component that Wicket is about to render for the particular message. The resulting classes are: feedbackUNDEFINED feedbackDEBUG feedbackINFO feedbackWARNING feedbackERROR feedbackFATAL.

...