You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Igor Vaynberg (JIRA)" <ji...@apache.org> on 2011/07/02 00:25:28 UTC
[jira] [Updated] (WICKET-3857) Allow validators access to
component's model
[ https://issues.apache.org/jira/browse/WICKET-3857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Igor Vaynberg updated WICKET-3857:
----------------------------------
Description:
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
was:
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 b adding a IModelAwareValidatable#getModel() mixin and casting IValidatable down to it. in 1.5 #getModel() has been introduced direction to IValidatable
> 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
> 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