Skip to content

Binder

Pre-release
Pre-release

Choose a tag to compare

@pleku pleku released this 03 Nov 11:48
· 2183 commits to master since this release

Binder is feature implementation is now done. Still lacks documentation and examples for being feature complete.

Added Features in alpha 6

  • Support for null representation in Binder
    • Maps null value to given representation and back to null for model
  • ValueContext for localization support in Converters and Validators
    • Localized error messages, unified easy-to-use Java 8 APIs
  • Binder.bindInstanceFields(Object) for reflection based field-property binding
  • Grid headers support html/components
  • Binding.setRequired(ErrorMessageProvider) for making sure field cannot be empty
    • HasValue:setRequiredIndicator (replaces setRequired)
    • Adds validator for verifying field is not empty

Other fixes

  • Components are serializable (and tested for that)
  • ValueChangeEvent name fixed and now provides Component/HasValue
  • HasValue:setValue(null) semantics, javadocs are fixed and unified
  • Binder methods renamed from load, save, bind… to writeBean, loadBean, setBean.
    • This breaks lots of existing API
  • Focus/Blur events for RadioButtonGroup, CheckBoxGroup, NativeSelect
  • Validators return a ValidationResult instead of Result
  • HasValue:setReadOnly instead of Component:setReadOnly

Other stuff

  • Utility for outputting full declarative syntax of components (for designer)
  • GWT 2.8.0 final is in use
  • SelectionModel APIs have been removed from client side, except for Grid