Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-1299

@ViewModel and @XmlRootElement view models should automatically support isCloneable.

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.11.1
    • Fix Version/s: 1.12.0
    • Component/s: Core
    • Labels:
      None

      Description

      per http://isis.markmail.org/thread/qfexzpfknnue2rnr

      QN: Is there another way to automagically implement clone for view models? We are currently using MementoService with
      DomainObjectContainer#newViewModelInstance based on the not-yet-released isis-wicket-wizard module.

      ANS: At the moment the RecreateableObjectFacet impl for @ViewModel and also @XmlRootElement (1.11.0) return false for isCloneable(), but my thinking is that these could probably transparently support cloning.

        Activity

        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 2c3a04cb9b647938ec67eafcdb5d09e82ce2651f in isis's branch refs/heads/master from Dan Haywood
        [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=2c3a04c ]

        ISIS-1299: updated documentation.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 2c3a04cb9b647938ec67eafcdb5d09e82ce2651f in isis's branch refs/heads/master from Dan Haywood [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=2c3a04c ] ISIS-1299 : updated documentation.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 981d731f3642ccbe67c3a8c78c677c1bf1794a4f in isis's branch refs/heads/master from Dan Haywood
        [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=981d731 ]

        ISIS-1299: JAXB-annotated view models are now edited.

        I suspect that ISIS-993 also had broken other directly cloneable view models; anyway, is now fixed.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 981d731f3642ccbe67c3a8c78c677c1bf1794a4f in isis's branch refs/heads/master from Dan Haywood [ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=981d731 ] ISIS-1299 : JAXB-annotated view models are now edited. I suspect that ISIS-993 also had broken other directly cloneable view models; anyway, is now fixed.

          People

          • Assignee:
            danhaywood Dan Haywood
            Reporter:
            danhaywood Dan Haywood
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development