You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2014/07/18 11:53:04 UTC

[jira] [Commented] (ISIS-796) lifecycle callback "updating()" is not firing

    [ https://issues.apache.org/jira/browse/ISIS-796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14066202#comment-14066202 ] 

Dan Haywood commented on ISIS-796:
----------------------------------

create object:

**** 10:48:59,799  [ToDoItem             1800880000@qtp-1538760015-0 DEBUG]  lifecycle callback: created: Untitled To Do Item
**** 10:48:59,819  [ToDoItem             1800880000@qtp-1538760015-0 DEBUG]  lifecycle callback: persisting: a due by 2014-08-01
**** 10:48:59,854  [ToDoItem             1800880000@qtp-1538760015-0 DEBUG]  lifecycle callback: persisted: a due by 2014-08-01
10:48:59,858  [ToDoItemSubscriptions 1800880000@qtp-1538760015-0 INFO ]  Received ActionInteractionEvent, ToDos, invoked newToDo
**** 10:49:00,404  [ToDoItem             1800880000@qtp-1538760015-0 DEBUG]  lifecycle callback: loaded: a due by 2014-08-01
10:49:00,452  [ToDoItemSubscriptions 1800880000@qtp-1538760015-0 INFO ]  Received ActionInteractionEvent, To Do Item Contributions, invoked relativePriority
10:49:00,453  [ToDoItemSubscriptions 1800880000@qtp-1538760015-0 INFO ]  Received ActionInteractionEvent, To Do Item Contributions, invoked relativePriority
10:49:00,680  [JQueryAbstractBehavior 1800880000@qtp-1538760015-0 WARN ]  Application > MarkupSettings > StripWicketTags: setting is currently set to false. It is highly recommended to set it to true to prevent widget misbehaviors.
10:49:00,681  [JQueryAbstractBehavior 1800880000@qtp-1538760015-0 WARN ]  Application > MarkupSettings > StripWicketTags: setting is currently set to false. It is highly recommended to set it to true to prevent widget misbehaviors.
10:49:02,514  [PropertiesFactory    1800880000@qtp-1538760015-0 INFO ]  Loading properties files from jar:file:/C:/Users/Dan/.m2/repository/org/apache/wicket/wicket-extensions/6.15.0/wicket-extensions-6.15.0.jar!/org/apache/wicket/extensions/Initializer.properties with loader org.apache.wicket.resource.IsoPropertiesFilePropertiesLoader@2829913a
**** 10:49:06,930  [ToDoItem             1057569436@qtp-1538760015-6 DEBUG]  lifecycle callback: loaded: a due by 2014-08-01
10:49:06,937  [ToDoItemSubscriptions 1057569436@qtp-1538760015-6 INFO ]  Received ActionInteractionEvent, To Do Item Contributions, invoked relativePriority
10:49:06,954  [JQueryAbstractBehavior 1057569436@qtp-1538760015-6 WARN ]  Application > MarkupSettings > StripWicketTags: setting is currently set to false. It is highly recommended to set it to true to prevent widget misbehaviors.
10:49:06,955  [JQueryAbstractBehavior 1057569436@qtp-1538760015-6 WARN ]  Application > MarkupSettings > StripWicketTags: setting is currently set to false. It is highly recommended to set it to true to prevent widget misbehaviors.

update object...
**** 10:49:09,687  [ToDoItem             1057569436@qtp-1538760015-6 DEBUG]  lifecycle callback: loaded: a due by 2014-08-01
**** 10:49:09,717  [ToDoItem             1057569436@qtp-1538760015-6 DEBUG]  lifecycle callback: updating: a due by 2014-08-01
10:49:09,718  [ToDoItemSubscriptions 1057569436@qtp-1538760015-6 INFO ]  Received PropertyInteractionEvent, v due by 2014-08-01, changed description : a -> v
**** 10:49:09,729  [ToDoItem             1057569436@qtp-1538760015-6 DEBUG]  lifecycle callback: updated: v due by 2014-08-01
10:49:09,733  [ToDoItemSubscriptions 1057569436@qtp-1538760015-6 INFO ]  Received ActionInteractionEvent, To Do Item Contributions, invoked relativePriority
**** 10:49:09,958  [ToDoItem             1057569436@qtp-1538760015-6 DEBUG]  lifecycle callback: loaded: v due by 2014-08-01
10:49:09,976  [ToDoItemSubscriptions 1057569436@qtp-1538760015-6 INFO ]  Received ActionInteractionEvent, To Do Item Contributions, invoked relativePriority
10:49:09,976  [ToDoItemSubscriptions 1057569436@qtp-1538760015-6 INFO ]  Received ActionInteractionEvent, To Do Item Contributions, invoked relativePriority
10:49:10,096  [JQueryAbstractBehavior 1057569436@qtp-1538760015-6 WARN ]  Application > MarkupSettings > StripWicketTags: setting is currently set to false. It is highly recommended to set it to true to prevent widget misbehaviors.
10:49:10,097  [JQueryAbstractBehavior 1057569436@qtp-1538760015-6 WARN ]  Application > MarkupSettings > StripWicketTags: setting is currently set to false. It is highly recommended to set it to true to prevent widget misbehaviors.

delete object:
**** 10:49:13,794  [ToDoItem             1057569436@qtp-1538760015-6 DEBUG]  lifecycle callback: loaded: v due by 2014-08-01
**** 10:49:13,801  [ToDoItem             1057569436@qtp-1538760015-6 DEBUG]  lifecycle callback: removing: v due by 2014-08-01
**** 10:49:13,809  [ToDoItem             1057569436@qtp-1538760015-6 DEBUG]  lifecycle callback: removed: [DELETED]
10:49:13,810  [ToDoItemSubscriptions 1057569436@qtp-1538760015-6 INFO ]  Received ActionInteractionEvent, [DELETED], invoked delete


> lifecycle callback "updating()" is not firing
> ---------------------------------------------
>
>                 Key: ISIS-796
>                 URL: https://issues.apache.org/jira/browse/ISIS-796
>             Project: Isis
>          Issue Type: Bug
>          Components: Core: Objectstore: JDO
>    Affects Versions: objectstore-jdo-1.4.0
>         Environment: jdo objectstore on in-memory hsqldb
>            Reporter: Thomas Koren
>            Assignee: Dan Haywood
>             Fix For: core-1.6.0
>
>
> when trying to override lifecycle callbacks, only some of them fire as expected.
> working:
> - created()
> - saving()
> - persisting()
> - saved()
> - persisted()
> - updated()
> missing:
> - updating()
> - loading()
> - loaded()
> no yet tested:
> - removing()
> - removed()
> test scenario:
> - create new entity of class X
> - list all entities of X
> - open created instance
> - edit property
> - click 'ok'
> result:
> according to the logfile, "updated" is called right after the corresponding datastore UPDATE (as expected), but "updating" is missing.



--
This message was sent by Atlassian JIRA
(v6.2#6252)