I've custom validation put into my page, which validation is known as from business logic layer, once i click "Save" button on UI, that is AjaxSubmitLink.

On my small page I've apache wicket DateTimeField, but it is validation does not work properly: error message does not come in FeedbackPanel, that is added on-page and my custom validation is proven there properly.

So for instance I fill hrs area with "321" and that i may have error in console: WARN org.apache.wicket.protocol.http.WebSession - Component-targetted feedback message remained unrendered. This may be since you are missing a FeedbackPanel around the page. Message: [FeedbackMessage message = "Translation for key [hrs.RangeValidator] isn't found for language [en]!", reporter = hrs, level = ERROR]

Maybe someone had similar problems and also have solution with this?


Since you do an Ajax-Request you need to add the feedback-panel for your AjaxRequestTarget (therefore it will update itself on every request).

You need to override the onError method though:

add(new AjaxSubmitLink() {
        protected void onError(final AjaxRequestTarget target, final Form form) {