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 2012/05/10 10:00:56 UTC

[jira] [Issue Comment Edited] (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:comment-tabpanel&focusedCommentId=13272168#comment-13272168 ] 

Sebastien Briquet edited comment on WICKET-4549 at 5/10/12 7:59 AM:
--------------------------------------------------------------------

To be marked as duplicate of WICKET-4548
                
      was (Author: sebfz1):
    Too be marked as duplicate of WICKET-4548
                  
> 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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira