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

SimpleConstraint problem using its int constructor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Normal Normal
    • None
    • 8.6.0.1
    • None
    • OS: Windows 7 64 bit SP1
      Browser: Google Chrome 71.0.3578.98
      ZK: 8.6.0.1

      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

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

              Created:
              Updated:
              Resolved: