[Seaside] [Magritte] Multiple descriptions validation/condition

Humber Aquino humberaquino at gmail.com
Wed Nov 29 05:06:25 UTC 2006

On 11/14/06, Lukas Renggli <renggli at gmail.com> wrote:
> > Thanks, glad it's useful.  As for beRequired, you got me there, no clue,
> > maybe someone else will chime in with the answer.
> The latest version of Magritte (Magritte-All-lr.179 or later) has
> properties to set the error text for specific error, e.g.
> #conflictErrorMessage:, #kindErrorMessage:, #multipleErrorsMessage:,
> #requiredErrorMessage: and #rangeErrorMessage:.
It works great! Thanks Lukas!

   ^(super descriptionContainer)
               [:value |
               (value cache at: self descriptionStartDate)
                   < (value cache at: self descriptionEndDate)]
           labelled: 'Start date must be before end date';

Worked great Ramon!

But how can i validate the unicity of an object in a collection but
inside a description? is this possible? the idea is to keep the
validation inside the description throw addContition:labelled:

Thanks again :)

More information about the Seaside mailing list