[
https://issues.apache.org/jira/browse/WICKET-3857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13087713#comment-13087713
]
Emond Papegaaij commented on WICKET-3857:
-----------------------------------------
With this issue, org.apache.wicket.validation.Validatable has been moved to a
test package, making it unavailable in the maven artifacts. Validatable was
part of Wicket's public API and not marked as deprecated, therefore I think it
should stay available. Also, the implementation in the test packages has a bug
in getModel: it always returns null, rather than the model.
> Allow validators access to component's model
> --------------------------------------------
>
> Key: WICKET-3857
> URL: https://issues.apache.org/jira/browse/WICKET-3857
> Project: Wicket
> Issue Type: New Feature
> Reporter: Igor Vaynberg
> Assignee: Igor Vaynberg
> Fix For: 1.4.18, 1.5-RC6
>
>
> sometimes it is useful for validators to get access to component's model. for
> example
> a) validators can use the model to get value as it was before editing started
> - ie a password validator that forces the user to change their password
> b) validators can access some metadata about the model - ie a model that
> implements IPropertyReflectionAwareModel
> in 1.4 this is done by adding a IModelAwareValidatable#getModel() mixin and
> casting IValidatable down to it. in 1.5 #getModel() has been introduced
> direction to IValidatable
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira