Ilia Motornyi
d543e47bec
Enable Maven plugin for Eclipse formatting (#10829)
6 år sedan
Marco Collovati
1619d1f0bb
Treat fields as readonly when bound with null setter (#10477)
Fixes #10476
6 år sedan
Marco Collovati
b35d2ae872
Make Binder.setReadonly ignore effectively readonly bindings (#10368)
Binder.setReadonly will ignore bindings with null setter
or property without an accessible setter when changing
field read only flag.
Fixes #10252
6 år sedan
Ahmed Ashour
ccad305464
Use static import of Assert in tests (#10126)
Also removes dependency on junit.framework.TestCase .
6 år sedan
Ahmed Ashour
23718371f8
Remove unused methods. (#10058)
6 år sedan
Artur
2c5dd49f00
Only throw from Binder.bindInstanceFields if there are no bindings at all (#9487)
Fixes #8986
7 år sedan
Artur
a9fdc693a0
Fix bean validation when using sub property bindings (#9248)
Fixes #9242
7 år sedan
chrosim
8a6853c8f5
Binder with Nested Properties (#8923)
7 år sedan
Ilia Motornyi
23c3f22661
Fix some issues with Binder serialization (#8660)
Partial fix for #8640
7 år sedan
Denis
1309be6c20
Provide a way to configure bean binder to auto set required fields (#8460)
@NotNull, @Size(min>1), @NotEmpty annotations are handled via default
configuration which marks fields as required.
Fixes #8382
7 år sedan
Denis
fb2ceee075
Extract Bean validation logic from Binder to BeanValidationBinder
Fixes #8253
7 år sedan
Leif Åstrand
2fd7e13c42
Integrate BeanBinder functionality into Binder (#8096)
* Integrate BeanBinder functionality into Binder
7 år sedan
Aleksi Hietanen
0f39506e3c
Automatically complete custom bindings in BeanBinder#bindInstanceFields (#8012)
Closes vaadin/framework8-issues#511
7 år sedan
Leif Åstrand
95d016c085
Global java code cleanup using Eclipse Neon.1
7 år sedan
Pekka Hyvönen
ce26bf7c4c
Remove usage of Consumer from event listeners (#7985)
Touched event listeners are:
- SelectionListener
- MultiSelectionListener
- SingleSelectionListener
- ValueChangeListener
- ItemClickListener
- BindingValidationStatusHandler
- BinderValidationStatusHandler
- StatusChangeListener
Part of vaadin/framework8-issues#264
7 år sedan
Aleksi Hietanen
d0184c4ccd
Erase type of BeanBinder#bindInstanceFields parameter in equality test
Fixes vaadin/framework8-issues#466
7 år sedan
Leif Åstrand
c7b84bf51d
Separate Binding and BindingBuilder (#80)
BindingBinder is API that is used before calling bind()
Binding is API that is used after calling bind()
7 år sedan
Leif Åstrand
f586bc155f
Ensure all BeanBinding chaining methods return BeanBinding
Change-Id: Ifbd5f278c83fcadbe6cf21d6c1f40914b35c4aba
7 år sedan
Pekka Hyvönen
54e1edcfe0
Rename Binder methods
save -> writeBean, saveIfValid -> writeBeanIfValid,
load -> readBean, bind -> setBean, unbind -> removeBean.
Now setBean accepts null to reset the bean instead of throwing NPE.
Closes vaadin/framework8-issues#91
Change-Id: I42cbad5856cac11a03bfcefd0fa91a02c41b7234
7 år sedan
Denis Anisimov
53427c897c
Avoid explicit casting to getter return type in getDescriptor() (#292).
BeanBinder may throw a ClassCastException in some cases because of
explicit "cast" call which doesn't do boxing/unboxing.
Change-Id: I8fc61612c2912f2626c075a4fc19cb812adf8aa2
7 år sedan
Johannes Dahlström
41516b5435
Split Binder tests roughly by category
Change-Id: I7c1a55bd68097819e8091533df7232271af689c3
7 år sedan
Pekka Hyvönen
28f5c84579
Refactor Binder Status Handling API
BinderStatusHandler is now triggered only once per validation.
Unified ValidationError and BinderResult into BinderValidationStatus.
Renamed ValidationStatusChangeEvent into ValidationStatus.
Unified handler names for validation status.
Next patch will fix resetting of field errors on reset.
Change-Id: I9536d554d781fe599fbd7e5bcb5a9ffebe675ca0
7 år sedan
Denis Anisimov
ccaabe6db0
Add item level validator support to Binder
An item level validator is run on the item (bean) after field validators
have passed. A failed item level validator will block save operations,
just like field level validators.
Change-Id: I3b918b33371ceef07cdfbd0a8b6d477d4ac26b85
7 år sedan
Artur Signell
82806ef9b7
Format the project using Neon, remove trailing whitespace
Change-Id: I145e20226958910c243b9897bb1e9516919f55cd
7 år sedan
Johannes Dahlström
ec8904f6b0
Implement BeanBinder with JSR-303 validation
Change-Id: Ieaba56e9a26381d98b139845c30d65340dac0639
7 år sedan