aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/main/java/com/vaadin/data/Binder.java
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year range (#12507)Anna Koskinen2022-01-111-1/+1
|
* Remove obsolete comment and assert in Binder (#12456)Tatu Lund2021-10-281-3/+1
|
* fix: avoid ConcurrentModificationException in Binder (#12458)Tatu Lund2021-10-271-7/+14
|
* fix: don't update bean property which is read-only bound (#12457)Tatu Lund2021-10-271-1/+1
|
* fix: Ensure that side effects of readBean does not set hasChanges true (#12455)Tatu Lund2021-10-271-1/+1
|
* fix: Avoid processing value change event due writing back of converted value ↵Tatu Lund2021-08-061-1/+4
| | | | | (#12360) This is both a optimization by skipping duplicate validation round and avoids ConcurrentModificationExpectation being thrown certain corner cases.
* feat: Add API to control whether Binder converts back to presentation (#12246)Tatu Lund2021-03-181-3/+40
| | | #12132 fixed an old bug, conversion was not done back, which was a regression from Vaadin 7. However since the bug has been present long time, it has become established behavior, thus there may be need to disable conversion back to presentation sometimes, thus this API as added.
* Prevent NPE in comparison (#12218)Tatu Lund2021-03-051-1/+1
| | | Fixes: https://github.com/vaadin/framework/issues/12207
* Update copyright year range. (#12215)Anna Koskinen2021-03-041-1/+1
| | | | * Update copyright year range.
* Binder: Also use converter for user-changed values (#12132)Tatu Lund2020-12-031-1/+9
| | | See: https://vaadin.com/forum/thread/15931682
* Add missing since tag (#11957)8.11.0.alpha1Zhe Sun2020-04-231-5/+5
|
* Add methods to control validation (#11945)Tatu Lund2020-04-211-8/+114
| | | | | | | | | - Enable / disable all validators on Binder level - Enable / disable validators on Binding level - add writeBeanAsDraft(bean,boolean) for writing draft bean with validators disabled Fixes https://github.com/vaadin/framework/issues/10709 Co-authored-by: Zhe Sun <31067185+ZheSun88@users.noreply.github.com>
* Added @since tags, some tweaks to formatting. (#11839)Anna Koskinen2019-12-041-15/+25
|
* Make asRequired conditional on binding.setAsRequiredEnabled(..) (#11834)Tatu Lund2019-12-021-1/+54
| | | | | It is a very common use case in complex form that whether a field is required or not, it depends on input on other fields. Hypothetical use case sample could be that we have form for a Product and price of the product is needed except in case the Product's type is Sample. So in that kind of scenarios it would be needed to turn off asRequired() validation easily. The purpose of this enhancement and new binding.setAsRequiredEnabled(..) API is to help implementation of this kind of use cases more easily. https://github.com/vaadin/framework/issues/10709
* Add method writeBeanAsDraft(bean) in Binder (#11833)Tatu Lund2019-11-291-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add method writeBeanAsDraft(bean) in Binder With current Binder implementation it is not easy to support Forms, which you want to save as draft, i.e. incomplete. For example there can be big text areas, that require time to fill, or lot of fields. Therefore it is needed to that form can be saved, e.g. to other bean in incomplete state when it is not yet passing validation and this other bean can be persisted to draft storage for further editing in the future. This method helps to achieve that easily. * Add test case for Binder.writeBeanAsDraft(bean) Bind a field with validator, set value that does not pass validator and save, assert that value was saved. * Updating test * Fixing logic flaw in test * Further improvement of the test case * Clarification of the JavaDoc * Fixing typo * JavaDoc language check * Fixing whitespace issue * Fixing whitespaces * Fixing whitespaces * Updating JavaDoc
* Cherry picks of Binder fixes in Flow (#11758)Tatu Lund2019-11-131-8/+49
| | | | | | | | | | * Cherry picks of Binder fixes in Flow Addresses: https://github.com/vaadin/framework/issues/9000 Addresses: https://github.com/vaadin/framework/issues/11109 These changes are adopted from https://github.com/vaadin/flow/pull/4138 and https://github.com/vaadin/flow/pull/6757
* Add javadoc for validate() call in Binder (#11318)Sun Zhe2018-11-151-0/+6
| | | | * Add javadoc for validate() call in Binder
* Fixing NPE in Binder, ported from Flow (#11290)Mehdi Javan2018-11-061-5/+19
|
* Improving javadoc of Binder.removeBinding (#11107)Mehdi Javan2018-08-091-1/+18
| | | Fixes #11091
* Fix small formatting issues (#10960)Ilia Motornyi2018-06-011-2/+2
|
* Fix Binder javadocs (#10907)Ilia Motornyi2018-05-091-1/+3
| | | Fixes #10399
* Enable Maven plugin for Eclipse formatting (#10829)Ilia Motornyi2018-04-191-2/+2
|
* Update release notes and since tags for 8.4 (#10760)Teemu Suo-Anttila2018-03-271-14/+13
|
* Update copyright year (#10761)Ilia Motornyi2018-03-271-1/+1
|
* Added method asRequired with a custom required validator to BindingBuilder. ↵Márcio P. Dantas2018-03-261-3/+27
| | | | (#10724)
* Fix ValueChangeListener order changes with Binder (#10745)Teemu Suo-Anttila2018-03-241-8/+10
| | | Fixes #9917
* Add missing null check to Binding (#10726)Teemu Suo-Anttila2018-03-191-3/+5
| | | | * Add missing null check to Binding
* Add setReadOnly for Bindings (#10482)Teemu Suo-Anttila2018-02-081-23/+95
|
* Treat fields as readonly when bound with null setter (#10477)Marco Collovati2017-12-291-0/+15
| | | Fixes #10476
* Make Binder.setReadonly ignore effectively readonly bindings (#10368)Marco Collovati2017-12-281-5/+13
| | | | | | | Binder.setReadonly will ignore bindings with null setter or property without an accessible setter when changing field read only flag. Fixes #10252
* Improve Binder JavaDocs and APIs (#10347)Teemu Suo-Anttila2017-11-211-7/+22
| | | This patch also adds ValueChangeEvent as a parameter to field value change method in Binder.
* Extract AbstractBeanPropertyDefinition and PropertyFilterDefinition (#10344)Aleksi Hietanen2017-11-211-1/+0
| | | | | This commit extracts the private nested class AbstractBeanPropertyDefinition from BeanPropertySet to a public class of package com.vaadin.data. Additionally, the nested protected class PropertyFilterDefinition is extracted from NestedBeanPropertyDefinition to a public class in package com.vaadin.data.
* Update since tags in JavaDoc (#10325)8.2.0.alpha3Teemu Suo-Anttila2017-11-151-1/+1
|
* Improve nested property support for Binder (#9925)Olli Tietäväinen2017-11-141-5/+20
| | | Fixes #9210
* Add API to read Binding value from bean (#10316)Teemu Suo-Anttila2017-11-131-3/+22
|
* Remove trailing spaces (#10224)Ahmed Ashour2017-10-261-2/+2
|
* Added utility method Binder#asRequired() (#9873)Stephan Knitelius2017-10-201-0/+25
| | | | | | | | | * Added the possiblity of defining a Field as Required without setting an error message. * Added @since to asRequired() * Add droped paragraphs and see tag for asRequired(String)
* Use .toLowerCase and .toUpperCase(Locale.ROOT) (#10182)Ahmed Ashour2017-10-201-1/+1
| | | | | | | | * Use .toLowerCase and .toUpperCase(Locale.ROOT) * Spaces * add spaces after if(
* Add ErrorLevel to Validators and results (#10099)Teemu Suo-Anttila2017-10-111-17/+104
| | | Fixes #9792
* Fix Binder bean writing to only validate and write given bindings (#10162)Teemu Suo-Anttila2017-10-111-27/+53
|
* Don't use synthetic methods for listener classes. (#10135)Ahmed Ashour2017-10-041-2/+2
| | | Fixes #9504
* Fix typos (#10124)Ahmed Ashour2017-10-041-4/+7
|
* First sentence of javadoc should end with a period (#10114)Ahmed Ashour2017-10-021-2/+2
| | | Also includes minor other javadoc and formatting fixes.
* Add since tags and update release notes (#10109)Henri Sara2017-09-281-23/+21
|
* Use interface instead of implementation (#10073)Ahmed Ashour2017-09-281-4/+7
|
* Fix BindingBuilder to always use the same instance (#10004)Teemu Suo-Anttila2017-09-261-13/+14
| | | | | | This allows using BindingBuilder either in a type safe chained manner or with separate calls for the same instance at the cost of less strict type checking. Fixes #9927 Fixes #9619
* Improve Binder value change handling with bean validation (#9988)Teemu Suo-Anttila2017-09-251-100/+163
| | | | | | | Changed values are now only applied to the bean when they pass both field and bean validation. Any change that breaks validation will be pending and is attempted to apply when another change event comes. This patch also makes the order of status change event handler and listener call order. This addresses some of the issues raised in #9955.
* Add API for running BindingValidationStatusHandlers (#9966)Teemu Suo-Anttila2017-09-191-6/+13
| | | This patch adds an API to Binding for accessing the validation status handlers from a custom BinderValidationStatusHandler.
* Fix removeBinding logic (#10002)Piotr Wilkin2017-09-191-5/+51
| | | Fixes and improves on PR #9932.
* Add methods to remove Bindings from Binder (#9932)Teemu Suo-Anttila2017-09-051-0/+46
|