You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by GESCONSULTOR - Óscar Bou <o....@gesconsultor.com> on 2015/01/10 14:59:40 UTC
@PostsPropertyChangedEvent no longer working on latest SNAPSHOT
Hi all.
I’m testing against latest 1.8.0-SNAPSHOT and seems that @PostsPropertyChangedEvent support has been removed.
In order to make it work again, it’s enough to just use the @PropertyInteraction annotation instead, passing the Event class to it (same way the @PostsPropertyChangedEvent worked).
I think support for this is going to be included also on the new @Property annotation currently developing, but after that the current website might be updated [1].
HTH,
Oscar
[1] http://isis.apache.org/reference/services/event-bus-service.html <http://isis.apache.org/reference/services/event-bus-service.html>
Re: @PostsPropertyChangedEvent no longer working on latest SNAPSHOT
Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Hi Oscar,
finally got around to looking at this.
It's true, there were situations where @PostsPropertyChangedEvent might not
fire. Even so, you should consider updating to using
@Property(domainEvent=...), as this provides much richer support, for
vetoing etc... see the ToDoItemSubscriptions class for an example [2]
I've also updated the website [1]
Cheers
Dan
[1] http://isis.apache.org/reference/services/event-bus-service.html <
http://isis.apache.org/reference/services/event-bus-service.html
[2]
https://github.com/apache/isis/blob/e37a6faa41ac7b791b57f2b3b5cbd9501615eaa8/example/application/todoapp/dom/src/main/java/dom/todo/ToDoItemSubscriptions.java#L243
On 10 January 2015 at 13:59, GESCONSULTOR - Óscar Bou <
o.bou@gesconsultor.com> wrote:
>
> Hi all.
>
> I’m testing against latest 1.8.0-SNAPSHOT and seems that
> @PostsPropertyChangedEvent support has been removed.
> In order to make it work again, it’s enough to just use the
> @PropertyInteraction annotation instead, passing the Event class to it
> (same way the @PostsPropertyChangedEvent worked).
>
> I think support for this is going to be included also on the new @Property
> annotation currently developing, but after that the current website might
> be updated [1].
>
> HTH,
>
> Oscar
>
>
>
>
> [1] http://isis.apache.org/reference/services/event-bus-service.html <
> http://isis.apache.org/reference/services/event-bus-service.html>