BeanValidator allows to set a self-defined message key

XMLWordPrintable

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Normal
    • 8.5.0
    • Affects Version/s: None
    • Component/s: Databind 2
    • None
    • 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>
      

            Assignee:
            rudyhuang
            Reporter:
            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