Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Sometimes you have some logic that you want to execute after an attribute has been changed. For this we introduced the PostAttributeChange annotation to be used on a method in your Customization Java Class

This annotation will monitor an attribute based on the method signature. 

 

Code Block
languagejava
    @PostAttrChange
    public void salaryChanged(AttrChangeEvent event) {
        event.getElement().putInternal("commissionPercentage", null);
    }

 

...