Guys, Please use Jira for bug reports.
On Thu, May 10, 2012 at 9:28 AM, Thomas Götz <t...@decoded.de> wrote: > I can confirm this, see this quickstart: > http://decoded.de/wicket-quickstart.zip > The NPE only occurs if there is a FeedbackPanel on the page. If you take it > out -> no exception. Besides, there is no WARN log if you are missing a > FeedbackPanel and there are messages to be rendered, bug or feature?! > > Cheers, > -Tom > > > On 09.05.2012 at 22:49 Sebastien wrote: > >> Hi wicket's team, >> >> While using the following code: >> >> final TextField<Integer> input = new TextField<Integer>("input", >> new Model<Integer>(15), Integer.class); >> input.add(new RangeValidator<Integer>(0, 200)); >> form.add(input); >> >> I've got a NPE with wicket6.0.0-beta1, when I submit the form with a value >> not inside the validator's bounds. (ie, 500). >> I tested in a simple quickstart to be sure... It is ok with 1.5.6 and crash >> with 6.0.0-beta1 >> >> java.lang.NullPointerException >> at >> org.apache.wicket.markup.html.form.ValidationErrorFeedback.toString(ValidationErrorFeedback.java:83) >> at >> org.apache.wicket.markup.html.panel.FeedbackPanel.newMessageDisplayComponent(FeedbackPanel.java:338) >> at >> org.apache.wicket.markup.html.panel.FeedbackPanel$MessageListView.populateItem(FeedbackPanel.java:117) >> at >> org.apache.wicket.markup.html.list.ListView.onPopulate(ListView.java:524) >> at >> org.apache.wicket.markup.repeater.AbstractRepeater.onBeforeRender(AbstractRepeater.java:116) >> >> Thus, just fyi, it is not documented in the migration guide what's happened >> to the NumberValidator... I did not find it, so I did not test another >> validator such as MaximumValidator... >> >> Best regards, >> Sebastien > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org