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

serialization callbacks called multiple times

XMLWordPrintable

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

    • ZK 7.0.7

      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

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

              Created:
              Updated:
              Resolved:

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