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

UUID implementation change cause the context popup not work correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.5.0
    • Fix Version/s: 6.5.1
    • Component/s: Components
    • Security Level: Jimmy
    • Labels:
      None

      Description

      refer to the fiddle sample code

      http://zkfiddle.org/sample/3ala753/1-Workaround-for-changing-UUID#source-3

      The TestListbox.java need to reset the context menu by
      if( resetContext) {
      // COMMENT THIS OUT AND RUN IN ZK 6 AND THE CONTEXT MENU WILL NOT WORK.
      // IT WILL WORK FINE IN ZK 5 WITHOUT THIS LINE
      setContext(popup);
      }

      This is casue by from ZK 6, the uuid will be different when component is not attached to page, refer to the AbstractComponent.java getUuid() method.

      The git log mention the reason of the implementation

      • Use z__i for detached components if getUuid is called
        Reason: easy to know what happens

        Attachments

          Activity

            People

            Assignee:
            jumperchen jumperchen
            Reporter:
            samchuang samchuang
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: