summaryrefslogtreecommitdiffstats
path: root/server/src/test/java
Commit message (Collapse)AuthorAgeFilesLines
* Fix possible NPE with MPR (#12040) (#12066)Anna Koskinen2020-08-101-0/+1
| | | | | | | | * Fix possible NPE with MPR (#12040) It is possible when Vaadin 8 is used with MPR, that ui.getCurrent().getSession() returns null. See: https://github.com/vaadin/multiplatform-runtime/issues/5
* Cherry pick 8.11.1 (#12046)Zhe Sun2020-07-014-0/+150
| | | | | | | | | | | | | | | | | | | * Fix rendering of TreeGrid's frozen columns after hierarchy-column reset (#12028) * Add tests * Fix getVisibleFrozenColumnCount() if SelectionMode is multi * Update ComboBox popup position comparison to use correct top value. (#12041) Fixes #12029 * Clear thread local instances on connection lost in push handler (#12042) Adopted from https://github.com/vaadin/flow/pull/8567 Co-authored-by: Tarek Oraby <42799254+tarekoraby@users.noreply.github.com> Co-authored-by: Anna Koskinen <Ansku@users.noreply.github.com> Co-authored-by: Tatu Lund <tatu@vaadin.com>
* Refresh DataProvider only once when reordering the grid using GridRowDragger ↵Martín López2020-05-111-0/+20
| | | | | (#11981) Fixes #10844
* Add methods to control validation (#11945)Tatu Lund2020-04-211-2/+77
| | | | | | | | | - 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>
* Set DateField value only if it passes range check (#11887)Tatu Lund2020-04-081-2/+11
| | | Fixes #11108
* TreeDataProvider: Apply filters to children (#11868)Tatu Lund2020-01-162-9/+56
| | | | | Fixes: https://github.com/vaadin/framework/issues/9933 Cherry pick from: https://github.com/vaadin/flow/pull/7317
* Make asRequired conditional on binding.setAsRequiredEnabled(..) (#11834)Tatu Lund2019-12-021-3/+6
| | | | | 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/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Decode path in getStaticFilePath (#11812)Tatu Lund2019-11-191-0/+2
| | | | | * Decode path in getStaticFilePath Some containers do not decode path when using getPathInfo, in case path has not been decoded there is a risk for path traversal vulnerability.
* Cherry picks of Binder fixes in Flow (#11758)Tatu Lund2019-11-132-13/+135
| | | | | | | | | | * 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
* Use APPLICATION_SCOPE for the session lock (#11792)Tatu Lund2019-11-121-2/+4
| | | | | | | | | | The Vaadin session itself is also stored in APPLICATION_SCOPE. The default scope is PORTLET_SCOPE, so lock would be otherwise not be in sync with the session. To be able to do this, relevant methods in VaadinService are made protected so that VaadinPortletService can override them. Fixes #11611
* Reduce Grid's sort complexity. (#11566)Anna Koskinen2019-05-151-4/+5
| | | | | | - limit DataCommunicator workaround from #11320 to ComboBox only - don't reset DataCommunicator before modifying all sorting data Fixes #11532
* Code format (#11548)Sun Zhe2019-04-291-1/+1
| | | | | | * Code format * Merge branch 'master' into code-format
* Custom serializers accessors (#10658)Olli Tietäväinen2019-02-221-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | * add accessor methods for CUSTOM_SERIALIZERS in JsonCodec * javadoc * removed removeCustomSerializer method, renamed putCustomSerializer to addCustomSerializer, added sanity checks and JavaDocs * refactored addCustomJsonSerializer to set, added test UI * move enums to be parsed after custom serializers * move adding custom serializer to static block * throw an exception if multiple serializers are registered for class * updated javadocs * changed CustomJSONSerializerTest to a SingleBrowserTest * moved CustomJSONSerializerTest to server/ and it's now not a browser test * removed CustomJSONSerializerTest
* Provide extensive error information on GridLayout.OutOfBoundsException and ↵Martin Vysny2019-02-211-0/+24
| | | | | | IllegalArgumentException (#11461)
* Update release note and since tag (#11386)Sun Zhe2018-12-201-23/+28
| | | | * Some formatting changes
* Checkbox allow customizing of input and label classNames. (#11372)Knoobie2018-12-181-0/+107
| | | | | | | | | * add client side integration for custom styles for checkbox.label and checkbox.input * add server side integration for checkbox element styling * add server side tests * add client side test
* Request data update before client response (#11341)Sun Zhe2018-12-111-5/+4
| | | | | | | | | * Request data update before client response * fix the accidental commit * add tests fixes #11320
* Fixing NPE in Binder, ported from Flow (#11290)Mehdi Javan2018-11-061-0/+54
|
* Remove objects from ActiveDataHandler that are no longer available in used ↵Ilia Motornyi2018-09-071-1/+64
| | | | | | DataProvider (#11167) Remove objects from DataCommunicator.ActiveDataHandler that are no longer available in used DataProvider.
* Add API to access features of SelectionModels (#10939)Teemu Suo-Anttila2018-09-041-0/+62
|
* Add fallback resolvers for CurrentInstance (#10974)Gilberto Torrezan2018-09-031-0/+120
| | | | | | | | | This allow applications to inject custom default instances when the current instances cannot be found by regular means. For example, when VaadinServlet.getCurrent() would return null, a fallback resolver could be invoked to properly create the servlet and return it.
* Fix Grid MultiSelectionModel to always use getId (#11086)Teemu Suo-Anttila2018-07-302-1/+102
| | | Fixes #11083
* Fix DataCommunicator not sending data on filter updates (#11068)Teemu Suo-Anttila2018-07-192-1/+44
|
* Fix formatting (#11023)Ilia Motornyi2018-07-042-4/+3
|
* Code cleanup and serialization test in compatibility package (#10977)Ilia Motornyi2018-06-211-5/+13
|
* Fix TabSheet attaching and detaching components (#10988)Teemu Suo-Anttila2018-06-191-9/+13
| | | | | | | This patch reverts the fix #10557 and replaces it with a proper solution from Grid perspective. Fixes #10987 Fixes #10985
* Fix temporal renderers serialization (#10929)Ilia Motornyi2018-06-134-15/+171
|
* Fix formatting of some files (#10972)Ilia Motornyi2018-06-121-11/+18
|
* Remove parse error when changing from invalid to empty date text (#10771)Alexander Nittka2018-06-071-0/+82
| | | Fixes #10673.
* Fix NPE check in BindingValidationStatus (#10964)Olli Tietäväinen2018-06-051-0/+13
|
* Fix small formatting issues (#10960)Ilia Motornyi2018-06-011-8/+16
|
* Fix Grid not removing columns from sort orderTeemu Suo-Anttila2018-05-281-4/+23
| | | | Fixes #10928
* Fix Grid clearSortOrder not updating state (#10917)Teemu Suo-Anttila2018-05-151-2/+9
| | | Fixes #9074
* URL encode file name in GlobalResourceHandler (#10751)Marco Collovati2018-05-091-0/+68
| | | Fixes #10747
* Fix using runo icons in FileTypeResolver (#10858)Ilia Motornyi2018-05-031-0/+1
| | | This patch adds a compatibility version of FileTypeResolver.
* Enable formatting in testbench-api module (#10852)Ilia Motornyi2018-05-022-15/+13
|
* Enable Maven plugin for Eclipse formatting (#10829)Ilia Motornyi2018-04-1936-144/+176
|
* Colorpicker validation handling (#10821)KatriHaapalinna2018-04-196-0/+433
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ColorTextField, helper methods, and regex for validating and handling text input * Refactored structure to avoid creating new component for validation * Style to adapt to error indicator * Tests for validating input in ColorPickerPreview component's TextField * Merge branch 'master' into colorpicker_validation * Fix path to server class * Fix test: Submit the new value * Fix test: ignore Phantom JS * Fix hsl+hsla validation patterns to accept '%', test value tweaking * Merge branch 'master' of github.com:vaadin/framework into colorpicker_validation * Fix: remove warning when color is updated from elsewhere * Revisions: input validation only once, Logging level WARN * Revisions: unit tests for color pattern matching * Revisions: moved parsing to utility class, tests for parsing all accepted input formats * Fixed import in tests, comments * Revisions: Logger as constant, ignore utility class in serialization test * Corner case tests * Revisions: protected method for parsing error text, fix to test * Revisions: NPE fix
* Fix AbstractSingleSelect selection and state updates (#10796)Teemu Suo-Anttila2018-04-191-1/+16
|
* Fixes declarative update of existing Composite (#10825)Ilia Motornyi2018-04-171-0/+29
| | | Fixes #10170
* Fix Grid Column not sortable with backend data and sort property (#10811)Teemu Suo-Anttila2018-04-131-1/+1
|
* Remove empty comments (#10789)Ilia Motornyi2018-04-0528-53/+0
|
* Added possibility to add listener for connectorMarkedDirty (#10773)caalador2018-04-041-0/+155
|
* Remove copyright headers from test code (#10770)Teemu Suo-Anttila2018-03-28235-3534/+0
|
* Update copyright year (#10761)Ilia Motornyi2018-03-27223-223/+223
|
* Added method asRequired with a custom required validator to BindingBuilder. ↵Márcio P. Dantas2018-03-261-0/+92
| | | | (#10724)
* Fix ValueChangeListener order changes with Binder (#10745)Teemu Suo-Anttila2018-03-241-0/+25
| | | Fixes #9917
* Always return a fresh copy of BeanPropertySet from cache (#10635)Ilia Motornyi2018-03-242-24/+134
|
* Correctly handle data providers with overriden getId (#10728)Anastasia Smirnova2018-03-221-0/+97
| | | | | Fixes #10647 Fixes #10498