You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sebastien Briquet (JIRA)" <ji...@apache.org> on 2013/03/03 15:25:12 UTC
[jira] [Closed] (WICKET-4549) Wicket 6.0.0-beta1: RangeValidator /
FeedbackPanel Issue (NPE)
[ https://issues.apache.org/jira/browse/WICKET-4549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sebastien Briquet closed WICKET-4549.
-------------------------------------
> Wicket 6.0.0-beta1: RangeValidator / FeedbackPanel Issue (NPE)
> --------------------------------------------------------------
>
> Key: WICKET-4549
> URL: https://issues.apache.org/jira/browse/WICKET-4549
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 6.0.0-beta1
> Environment: (k)ubuntu 11.10, java-6-openjdk
> Reporter: Sebastien Briquet
> Attachments: issue-rangevalidator.zip
>
>
> While using the following code:
> form.add(new FeedbackPanel("feedback"));
> 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).
> 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)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira