Set a breakpoint at FeedbackMessage#markRendered() and see when this happens. It seems something marks the feedback message as rendered before it being rendered.
Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Jul 31, 2017 at 9:57 PM, Entropy <[email protected]> wrote: > Okay, new info. So, alot of what I said I accepted on faith from a > co-worker > who was working the problem. I'm posting on his behalf. Turns out some of > that was wrong, but we do have a little bit of a poser here nonetheless. I > apologize for that. I should make my guys all sign up for this forum > rather > than using me as a go between. > > First, the button.onError(target, form) is invoked. However, the > ComponentFeedbackPanel is not rendering. We have a custom behavior that > writes an error css class onto the control if isValid() is false, and that > is working. In debug, I can see the hasFeedbackMessage()==true, and the > getFeedbackMessages() returns an error with the right field name on it. > Yes > the component feedback does not render. > > I put setOutputMarkupId(true) on literally everything, and > setOutputPlaceholderTag(true) on the component feedbacks. That didn't > help. > I explicitly added each feedback to the target rather than their parent. > > Yet the ComponentFeedbackPanel doesn't show the errors. I looked in F12 > tools and saw that the span for it actually IS there, there's just nothing > in it. > > -- > View this message in context: http://apache-wicket.1842946. > n4.nabble.com/AjaxButton-not-calling-onError-after- > required-validation-fail-tp4678346p4678384.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
