|Re: [EMF Forms] validation processing [message #1711728 is a reply to message #1711572]
||Mon, 19 October 2015 13:00
| Jonas Helming
Registered: July 2009
EMF itself does not prevent creating invalid states and so doesn't EMF
Forms, which does not add any additional logic here. Validation is
checking a current model instance against those rules. However, for some
model constraints it would be possible to enforce them beforehand.
I assume you talking about multiplicities? They could actually be
enforced by multi-attribute and multi-references controls, but that
would require some customization.
Am 17.10.2015 um 17:03 schrieb Klim Tow:
> I wonder how it is intended to process invalid forms, i.e. those with
> failed validation.
> As far I can see, EMF Forms only adds highlighting if there are
> constraint violations (also maybe some other things I am not aware of).
> But it does not disable any buttons, so it is always possible to create
> model objects, no matter if they are invalid.
> Actually the primary goal of validation is to prevent creating invalid
> state, so I am sure that I am missing something, but I can't find
> appropriate documentation relating to this issue.
Get professional Eclipse developer support:
Powered by FUDForum
. Page generated in 0.03448 seconds