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

allow JS overrides for onResponseReady callback

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.0.2
    • Fix Version/s: 8.5.0
    • Component/s: ZK Client Engine
    • Security Level: Jimmy
    • Labels:
      None

      Description

      it's complicated to override hidden JS functions which makes patching problems, or adjustments for conditions more difficult than necessary

      here some examples:
      onRespReady in serverpush - https://github.com/zkoss/zkcml/blob/master/zkex/src/archive/web/js/zkex/cmsp/serverpush.js#L19

      or
      onResponseReady in au.js - https://github.com/zkoss/zk/blob/4f24fc11451896b7c03f720a584aba509512a0f9/zk/src/archive/web/js/zk/au.js#L149

      both are huge methods containing lots of complex logic. please also consider breaking down the method into smaller parts to have multiple override hooks

        Attachments

          Activity

            People

            Assignee:
            rudyhuang rudyhuang
            Reporter:
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            2 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 - 7 hours
                7h