Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1846

Observer method in pseudo-scope bean not executed if notifyObserver=Reception.IF_EXISTS defined

    XMLWordPrintable

Details

    • Hide
      1. Download the sample application from the Vaadin ticket
      2. Extract the archive: tar -xvzf sample_project.tar.gz
      3. Create WAR file with maven: cd vaadin.cdievent.example && mvn package
      4. Deploy the WAR file to a JBoss EAP 6.3 server
      5. Access the application in a Web browser (/vaadin.cdievent.example-0.0.1-SNAPSHOT)
      6. Press the "View one" button.
      7. Press the "Raise event"
      8. If observer method executed then the "ViewOne event processor: Test event View instance:XXXX" message appears in the text area. If not execute then only the "RootView event processor: Test event View instance:XXXX" written into the text area by an observer method defined as notifyObserver=Reception.ALWAYS.
      Show
      Download the sample application from the Vaadin ticket Extract the archive: tar -xvzf sample_project.tar.gz Create WAR file with maven: cd vaadin.cdievent.example && mvn package Deploy the WAR file to a JBoss EAP 6.3 server Access the application in a Web browser (/vaadin.cdievent.example-0.0.1-SNAPSHOT) Press the "View one" button. Press the "Raise event" If observer method executed then the "ViewOne event processor: Test event View instance:XXXX" message appears in the text area. If not execute then only the "RootView event processor: Test event View instance:XXXX" written into the text area by an observer method defined as notifyObserver=Reception.ALWAYS.

    Description

      I have created a Vaadin application with Vaadin-CDI and observer method in a @ViewScoped bean not executed when an event fired when this observer declared as @Observes(notifyObserver=Reception.IF_EXISTS) and the bean exists in that scope.
      @ViewScoped is a Vaadin specific pseudo-scope created with DeltaSpike.
      I have created a Vaadin ticket, but that resolved to DeltaSpike issue and that resolved to WELD issue.

      I have tried to upgrade weld-core in JBoss to 1.1.28.Final but observer still not executed.

      I have tested it with WELD 2.1.2 on WildFly and there the observer is executed as excepted.

      Attachments

        Activity

          People

            rhn-engineering-jharting Jozef Hartinger
            zoltan.kukk@eisys.hu Zoltan Kukk (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: