SimpleConstraint problem using its int constructor

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Normal
    • None
    • Affects Version/s: 8.6.0.1
    • Component/s: None
    • Environment:

      OS: Windows 7 64 bit SP1
      Browser: Google Chrome 71.0.3578.98
      ZK: 8.6.0.1

    • None

      I'm migrating from zk 7.0.8.1 to 8.6.0.1 and I'm facing a problem with SimpleConstraint.
      Unlike zk7 version, there is a problem instantiating a SimpleConstraint using its int constructor.
      For example, I want a "no empty" constraint in a datebox.
      If I create it in this way everything works fine --> constraintByString = new SimpleConstraint("no empty");
      But if I create it in this way it doesn't work --> constraintByFlag = new SimpleConstraint(256);
      See attachments for a simple example.

        1. test.zul
          0.9 kB
        2. TestViewModel.java
          1 kB

            Assignee:
            Unassigned
            Reporter:
            filippoluchini
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: