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

Support custom error message for input element that has multiple constraints

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: 7.0.4
    • Fix Version/s: 8.0.0
    • Component/s: Components
    • Security Level: Jean
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.0.1

      Description

      According to document, currently only last constraint can define custom error message. It is better to let every constraint has its own custom error message.

      For example,

      <datebox constraint="no empty: please select a date, no future: now or never" />
      

        Issue Links

          Activity

          Hide
          jumperchen jumperchen added a comment -

          Ready since 4/16/2015

          Show
          jumperchen jumperchen added a comment - Ready since 4/16/2015
          Hide
          ChunfuChang ChunfuChang added a comment - - edited

          should support comma in constraint,
          ex. no empty: {please select a date, if any}, no future: ...

          Show
          ChunfuChang ChunfuChang added a comment - - edited should support comma in constraint, ex. no empty: {please select a date, if any}, no future: ...
          Show
          ChunfuChang ChunfuChang added a comment - ready since 2015/07/17 http://books.zkoss.org/wiki/ZK_Component_Reference/Base_Components/InputElement#Constraint

            People

            • Assignee:
              ChunfuChang ChunfuChang
              Reporter:
              vincentjian vincentjian
            • 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 - 1 day
                1d

                  Agile