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

BeanValidator allows to set a self-defined message key

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.5.0
    • Component/s: Databind 2
    • Labels:
      None

      Description

      Currently, BeanValidator will add invalid messages by using the binding source component itself as a default key. Provide a way to set a self-defined key.

      <grid width="600px">
         <textbox value="@bind(vm.person.firstName) @validator('beanValidator', key='firstName')"/>
         <label value="@load(vmsgs['firstName'])"/> 
      </grid>
      

        Activity

        Hide
        DevChu DevChu added a comment -

        Ready since 2017/07/13

        Show
        DevChu DevChu added a comment - Ready since 2017/07/13

          People

          • Assignee:
            rudyhuang rudyhuang
            Reporter:
            rudyhuang rudyhuang
          • 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 hour, 30 minutes
              1h 30m