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

Simone Gianni resolved LABS-360.
--------------------------------

    Resolution: Fixed

added @RichText(rawLength,textLength) and made @Length, @Regexp and @Column 
work on richtexts as well.

> [richtext] Add length validations
> ---------------------------------
>
>                 Key: LABS-360
>                 URL: https://issues.apache.org/jira/browse/LABS-360
>             Project: Labs
>          Issue Type: New Feature
>          Components: Magma
>    Affects Versions: Current
>            Reporter: Simone Gianni
>             Fix For: Current
>
>
> Since richtext are not strings anymore from a validation POV, the @Length 
> validation does not accept it any longer.
> Moreover, length of a richtext is a double concept. From a database POV 
> length is to be considered the length of the entire data, while from a human 
> POV the length is only the character data and not the formatting 
> informations. 
> So, adding two length to the rich text validation would be a perfect solution.
> Moreover, the RichTextString class could implement CharSequence, and current 
> length and database validation routines could check for CharSequence instead 
> of String and still apply (in a less refined fashion) also to richtexts.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to