[
http://jira.magnolia-cms.com/browse/MAGNOLIA-2916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=24666#action_24666
]
Danilo Ghirardelli commented on MAGNOLIA-2916:
----------------------------------------------
Yes, I know there is the regular expression validator. The improvement is to go
beyond that, having a custom class.
My problem is just that I have to extend controls without changing a single
line of their behaviour just to add a few validation rules, so it would be nice
if there is something common to all controls.
I wrote "dialog" instead of "control", now I corrected it.
> Add the possibility to set a validation class for controls.
> -----------------------------------------------------------
>
> Key: MAGNOLIA-2916
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-2916
> Project: Magnolia
> Issue Type: Improvement
> Components: core, gui
> Affects Versions: 4.2-m1
> Reporter: Danilo Ghirardelli
> Assignee: Philipp Bärfuss
>
> Sometimes there is the need of validating a dialog element (control) with
> more logic than the "required" and regular expressions only. I'm thinking
> about email fields, of even a check for image dimensions or colours in the
> image control. It would be really nice to have che possibility to set a
> property in the control configuration with (for instance) "validationClass"
> and a class that extends some interface.
> Usually I do something similar extending the control I want to validate, but
> it should be quicker if this behaviour is in the common parent for all
> controls.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------