wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grigorov <mgrigo...@apache.org>
Subject Re: AjaxButton not calling onError after required validation fail
Date Mon, 31 Jul 2017 19:20:35 GMT
Set a breakpoint at FeedbackMessage#markRendered() and see when this
It seems something marks the feedback message as rendered before it being

Martin Grigorov
Wicket Training and Consulting

On Mon, Jul 31, 2017 at 9:57 PM, Entropy <blmulholland@gmail.com> 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message