[ 
http://jira.magnolia-cms.com/browse/MAGNOLIA-2916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=30120#action_30120
 ] 

Danilo Ghirardelli commented on MAGNOLIA-2916:
----------------------------------------------

You can close this issue, it's obsolete and just wrong. There is already a 
built-in undocumented feature in Magnolia that does exactly this: it is 
possible to declare a SaveHandler for the control and have it implement the 
ValidatingSaveHandler interface. Extending the control's original saveHandler 
the only thing left is just implementing the validate() method, which is 
exactly what was requested in this issue.
Sorry for bothering.

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

Reply via email to