You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Betlista (JIRA)" <ji...@apache.org> on 2013/08/30 10:57:52 UTC

[jira] [Updated] (WICKET-5337) Assert that IFormValidator instance is added to the form

     [ https://issues.apache.org/jira/browse/WICKET-5337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Betlista updated WICKET-5337:
-----------------------------

    Description: 
This enhancement is related to this (my) invalid bug https://issues.apache.org/jira/browse/WICKET-5336

Documentation for IFormValidator states:

"... These validators are added to the form..."

It would be fine if there is check in FormComponent (add(final IValidator<? super T> validator) method), that IValidator is NOT IFormValidator, something like

Args.isFalse(validator instance IFormValidator, "validator");

  was:
This enhancement is related to this (my) invalid bug https://issues.apache.org/jira/browse/WICKET-5336

Documentation for IFormValidator states:

"... These validators are added to the form..."

It would be fine if there is check in FormComponent, that IValidator is NOT IFormValidator, something like

Args.isFalse(validator instance IFormValidator, "validator");


added method I think this assert can be added to
                
> Assert that IFormValidator instance is added to the form
> --------------------------------------------------------
>
>                 Key: WICKET-5337
>                 URL: https://issues.apache.org/jira/browse/WICKET-5337
>             Project: Wicket
>          Issue Type: Improvement
>            Reporter: Betlista
>            Priority: Minor
>              Labels: form, validation, validator, validators
>
> This enhancement is related to this (my) invalid bug https://issues.apache.org/jira/browse/WICKET-5336
> Documentation for IFormValidator states:
> "... These validators are added to the form..."
> It would be fine if there is check in FormComponent (add(final IValidator<? super T> validator) method), that IValidator is NOT IFormValidator, something like
> Args.isFalse(validator instance IFormValidator, "validator");

--
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