Hi, your isVisible() might be called to often or early.
FeedbackMessagesModel caches the messages during request, so the call to #anyMessage() might result in a premature collection of messages.
Try override #onConfigure() instead, this is preferred over overriding #isVisible():
@Override protected void onConfigure() { super.onConfigure(); setVisible(anyMessage()); } Have fun Sven On 02.12.19 14:32, Entropy wrote:
The isVisible(): assetLookupOptionsFP = new FeedbackPanel("assetLookupOptionsFP"){ private static final long serialVersionUID = 1L; @Override public boolean isVisible() { if (anyMessage()){ return true; } else { return false; } } }; -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org