Changes since 2.7.23
New features
-
Automatically use available converters in Binder
Commit · Pull requestBackporting #13373 When binding a field and a property which do not have the same value type an exception is thrown. With this change, an attempt is made to automatically pick a suitable converter from the ones provided by the framework.
-
HasLabel backporting to v14
Commit · Pull request -
Support Object type keys in Component#getTranslation
Commit · Pull request · Issue -
Add support for @eventdata of type Component
Commit · Pull requestMakes it possible to use event data expressions that map to any Component / Element from server side state tree. For example it will be possible to use: -
@EventData("event.target") Component eventTarget
for@DomEvent
-@EventData("event.target") Element eventTarget
for@DomEvent
-DomEventRegistration::addEventDataElement(String expression)
to get any element mapped, - and fetch it with `DomEvent::getEventDataElement(String expression) Follow up for #11992, #3356 -
Introduce event.target element to DOM event
Commit · Pull requestMakes is possible to obtain the Element instance on the server side that corresponds to
event.target
for a DOM event. The mapping needs to be explicitly enabled with DomListenerRegistration.mapEventTargetElement() for it to work. Next steps would be to introduce an API to certain component events that leverage the API, or generalizing the API so that one could give out an JS string that would be mapped instead ofevent.target
. Closes #3356 -
License checker in Java instead of browser
Commit · Pull request · IssueFor development mode:
- Checks the license from the Java side to avoid cookies
- Replaces commercial components with a login/validation link if the subscription could not be validated
For production mode:
- Requires a license during a production build for commercial components
- Removes commercial components from the fallback bundle if there is no license
- Speeds up production build for free users as charts/maps/... are not compiled in the fallback bundleNote that this feature is available only in npm mode and if dev mode tools are enabled (dev server and live-reload). Otherwise, the old license checking mechanism is used.
(cherry picked from commit d21f695)
-
Always set the strict offline flag and do not rely on default value
Commit · Pull requestProvides a way to use license checker when working offline, i.e. without internet connection, using license checker offline keys.
Note that this feature is available only in npm mode and if dev mode tools are enabled (dev server and live-reload). Otherwise, the old license checking mechanism is used.(cherry picked from commit 1d19a7d)
-
Check license also for jars with cvdlName
Commit · Pull requestCherry picked from commit 3005b87
-
Show version info in debug window
Commit · Pull requestShow version info in debug window and allow copying it to clipboard. (cherry picked from commit 5cb2290)
-
Move new license checker feature behind config parameter
Commit · Pull request · IssueOne can fallback to the old license checking mechanism with setting
vaadin.oldLicenseChecker=true
config parameter inapplication.properties
or by system property.
Fixes
-
Make linking to packages in the file system work
Commit · Pull requestthis is a cherry-pick based on #12424. as instructed by #12424 (comment)
-
Do not rely on web components calling the license checker
Commit · Pull request(cherry picked from commit 60a8728)
-
Return platform version as string
Commit · Pull requesttoJson method led to the extra quotes in the string, thus use asString instead.
-
Override connectedCallback in customElements.define
Commit · Pull requestThis is needed for the override to take effect, at least in Chrome
(cherry picked from commit f298ede)