Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-3293

ViewModel implementations need Means of using Injection Points during Construction

    XMLWordPrintableJSON

Details

    Description

      Uwe Jäger:
      if you implement the ViewModel interface you have to have a constructor with a single String argument so the memento can be used for example to fetch some entities.
      But right now with 2.0.0-M9 this can not be done directly in the constructor (fetching an entity) since services that have to be injected haven't been injected when the constructor is executed.
      For now I have to have an extra action that the user can execute after the ViewModel is created.
      Is this by design and is there a way to fetch some entity directly in the view models constructor? There used to be a viewModelInit method which made that possible if I understand correctly.

      Attachments

        Activity

          People

            hobrom Andi Huber
            hobrom Andi Huber
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: