Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2701

serialization callbacks called multiple times

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Normal
    • 7.0.6
    • 6.5.7, 7.0.5
    • Components
    • Security Level: Jimmy
    • session serialization activated

    • ZK 7.0.7

    Description

      the attached mvn project has session serialization enabled in the maven jetty plugin, and uses a serializable session factory in zk.xml
      run with

      mvn clean package
      mvn jetty:run
      

      open the URL

      http://localhost:8080/test/generic-forward-composer.zul
      http://localhost:8080/test/selector-composer.zul

      wait a minute and observe the logs. when session passivation occurs, the "willPassivate" callback is called 3 times for the page using SelectorComposer and 7 times for the SelectorComposer.
      Refreshing the page after session passivation, will call the didActivate listener equally often, each time with the same parameter. (Window)

      Expected:

      the listeners are only called once, or at least with unique parameters.

      related forum topic http://forum.zkoss.org/question/97136/zk-653-session-serialization-didactivate-invoked-many-times

      Attachments

        Activity

          People

            ChunfuChang ChunfuChang
            cor3000 cor3000
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours
                5h