Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-626

Support for wildcards and cascading when registering property change handlers

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.4.0.Final, 3.0.0.M2
    • Component/s: None
    • Labels:
      None

      Description

      We should allow for wildcards and cascading when adding property change handlers to data binder instances.

      Examples:

      Wildcards: Listen for changes of any property in customer.address (e.g. customer.address.street, customer.address.postalCode)

      binder.addPropertyChangeHandler("customer.address.*", handler);
      

      Cascading: Listen for changes of any property in customer and any property of nested bindables recursively. (e.g. customer.name and customer.address.street)

      binder.addPropertyChangeHandler("customer.**", handler);
      

      Note that

      binder.addPropertyChangeHandler("*", handler)
      

      should be equivalent to

      binder.addPropertyChangeHandler(handler)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                csa Christian Sadilek
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: