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

a date pattern like error message for a constraint causes an exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Normal
    • 9.0.1
    • 9.0.1
    • None
    • Security Level: Jimmy
    • None

    Description

      Steps to Reproduce

      1.

       <datebox constraint="after 20191017: {必須大於2019-10-17}"/>
      

      Current Result

      org.zkoss.zk.ui.UiException: Invalid constraint: after 20191017: {????2019-10-17} (the constraint should be formatted in yyyyMMdd)
      at org.zkoss.zul.SimpleDateConstraint.<init>(SimpleDateConstraint.java:123)
      at org.zkoss.zul.Datebox.setConstraint(Datebox.java:844)

      Expected Result

      no error

      Debug Information

      • the date string is part of the constraint error message, it's no need to match the pattern yyyyMMdd.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: