Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-5262

Lifecycle of CDI object bound to wicket Page

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • 6.8.0, 6.9.0
    • None
    • wicket-cdi
    • None

    Description

      The wicket-cdi module injects object only on IBehaviorInstantiationListener.onInstantiation and IComponentInstantiationListener.onInstantiation. After this injection pass wicket-cdi does not manage the injected objects anymore. It relies on the normal wicket state management. So the lifecycle of any injected object is bound to the page (even if this page is serialized and the stored instance is no longer a cdi object).

      I think only the cdi implementation should manage these object. As a consequence wicket-cdi should inject object before every request is processed.

      Attachments

        Issue Links

          Activity

            People

              ivaynberg Igor Vaynberg
              shadowdz Daniel Zwicker
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: