I would use the event bus [1] Set up a domain event [2] subscriber [3] that can veto the changes - if the change is made through an action, you can use ActionDomainEvent [4] - if the change is made through an edit, you can use PropertyDomainEvent [5]
You'll need some way to know which fields should be spell checked. Two ways spring to mind: - either look at the domain event's identifier - or subclass the domain event (recommended anyway) and have those subclass events implement some sort of marker interface, eg SpellCheckEvent And you'll (obviously) also need some sort of spell checker implementation to call. HTH Dan [1] http://isis.apache.org/guides/rgsvc.html#_rgsvc-api_EventBusService [2] http://isis.apache.org/guides/rgcms.html#_rgcms_classes_domainevent [3] http://isis.apache.org/guides/rgcms.html#_rgcms_classes_super_AbstractSubscriber [4] http://isis.apache.org/guides/rgant.html#_rgant-Action_domainEvent [5 http://isis.apache.org/guides/rgant.html#_rgant-Property_domainEvent] On 17 December 2015 at 10:29, Marianne Hagaseth < [email protected]> wrote: > Hi! > What is the easiest way to add a spell checker to the text written in a > field in a domain object, for instance to check English syntax? > > > Best, > Marianne Hagaseth. > > Med vennlig hilsen / Best regards, > Marianne Hagaseth > Forsker - Maritime transportsystemer > Research Scientist - Maritime Transport Systems > > MARINTEK (Norsk Marinteknisk Forskningsinstitutt AS) > Address: POB 4125 Valentinlyst, NO-7450 Trondheim, Norway > Mobile: +47 90 95 64 69 - Phone: +47 464 15 000 > Web: www.marintek.sintef.no<http://www.marintek.sintef.no/> > >
