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

BeanValidator allows to set a self-defined message key

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.5.0
    • None
    • Databind 2
    • None

      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>
      

            rudyhuang rudyhuang
            rudyhuang rudyhuang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 30 minutes
                1h 30m