Deprecated API
Contents
- Terminally Deprecated
- Interfaces
- Classes
- Annotation Interfaces
- Fields
- Methods
- Constructors
- Annotation Interface Elements
-
Terminally Deprecated ElementsElementDescriptionuse
ComponentUtil.resolveOrGenerateIdLater(Element, Component, String, SerializableSupplier, SerializableConsumer)instead. Without a getter, a value set after this call is overwritten when the resolution runs, and the target of a superseded resolution is still assigned a generated id. In addition, the pending resolution is stored in the state tree, or as an attach listener whilesourceElementis detached, so a consumer that is not serializable makes the session fail to serialize.since 25.1, for removal in 26.useExtendedClientDetails.getBrowserTime()instead, which returns a time-zone independentInstantUseElement.scrollIntoView(ScrollIntoViewOption...)withScrollIntoViewOption.Behavior,ScrollIntoViewOption.Block, andScrollIntoViewOption.Inlineoptions insteadUseUIInternals.getWrapperElement()throughgetInternals().getWrapperElement()instead.UseElement.scrollIntoView(ScrollIntoViewOption...)insteaduseFileIOUtils.deleteQuietly(File)instead, which also deletes directory contents and logs why a deletion failed instead of failing silentlyuseFileRouterRequestUtil.isAnonymousRoute(HttpServletRequest)to match requests to anonymous routesthe router never reads this value; useBeforeEvent.getRerouteTarget()insteadreroute from aBeforeEnterObserverorBeforeLeaveObserverwithBeforeEvent.rerouteTo(NavigationHandler, NavigationState)insteadreroute from aBeforeEnterObserverorBeforeLeaveObserverwithBeforeEvent.rerouteTo(NavigationState)insteaduseRpcInvocationStartedEvent,RpcInvocationFailedEventandRpcInvocationEndedEventon theservice event businsteadadd listeners forRpcInvocationStartedEvent,RpcInvocationFailedEventandRpcInvocationEndedEventon theservice event businstead. The callbacks of this listener are served by those events, one instance each, so an implementation that correlates the callbacks of an invocation has to do so through the thread they are delivered on rather than through the identity of the eventusePwaRegistry.getRuntimeServiceWorkerJs(VaadinRequest)instead. Without a request the app shell stylesheet URLs cannot be resolved, so those entries are left out.useSessionLockRequestedEvent,SessionLockAcquiredEventandSessionLockReleasedEventon theservice event businsteadadd listeners forSessionLockRequestedEvent,SessionLockAcquiredEventandSessionLockReleasedEventon theservice event businsteaduseUploadHandlerinsteaduseDownloadHandlerinsteaduseUploadHandlerinsteadadd listeners forRpcInvocationStartedEvent,RpcInvocationFailedEventandRpcInvocationEndedEventthroughVaadinService.getEventBus()insteadadd listeners forSessionLockRequestedEvent,SessionLockAcquiredEventandSessionLockReleasedEventthroughVaadinService.getEventBus()insteadfire aUIInitEventthroughVaadinService.getEventBus()insteaduseHttpServletRequest.changeSessionId()instead, which changes the session id in place without copying the session attributesThe name refers to WebJars, which are not handled here. This method only delegates toStaticFileHandler.serveStaticResource(HttpServletRequest, HttpServletResponse), whichVaadinServlet.service(HttpServletRequest, HttpServletResponse)now calls directly, so overriding this method no longer affects request handling. OverrideVaadinServlet.createStaticFileHandler(VaadinService)to customize how static resources are served.the GWT client engine this folder held has been removed, the client is served as part of the application bundle and nothing writes to or serves this path any moreuseAbstractSharedSignal.fromJson(JsonNode, JavaType)instead, which also retains the type arguments of a parameterized type such asSet<String>useAbstractSharedSignal.nodeValue(Node, JavaType)instead, which also retains the type arguments of a parameterized type such asSet<String>useSharedListSignal(SignalTree, Id, CommandValidator, JavaType)instead, which also retains the type arguments of a parameterized element type such asSet<String>useSharedMapSignal(SignalTree, Id, CommandValidator, JavaType)instead, which also retains the type arguments of a parameterized element type such asSet<String>useSharedValueSignal(SignalTree, Id, CommandValidator, JavaType)instead, which also retains the type arguments of a parameterized value type such asSet<String>base url will not be translated to the theme url anymorebase url will not be translated to the theme url anymoreNo translation of the url will be done in 25UseColorSchemeannotation instead
-
Deprecated InterfacesInterfaceDescriptionsince 25.1, for removal in 26.Polymer template support is deprecated - we recommend you to use
LitTemplateinstead. Read more details from the Vaadin blog.Polymer template support is deprecated - we recommend you to useLitTemplateinstead. Read more details from the Vaadin blog.add listeners forRpcInvocationStartedEvent,RpcInvocationFailedEventandRpcInvocationEndedEventon theservice event businstead. The callbacks of this listener are served by those events, one instance each, so an implementation that correlates the callbacks of an invocation has to do so through the thread they are delivered on rather than through the identity of the eventadd listeners forSessionLockRequestedEvent,SessionLockAcquiredEventandSessionLockReleasedEventon theservice event businsteaduseUploadHandlerinstead
-
Deprecated ClassesClassDescriptionUse
Element.scrollIntoView(ScrollIntoViewOption...)withScrollIntoViewOption.Behavior,ScrollIntoViewOption.Block, andScrollIntoViewOption.Inlineoptions insteadUseBrowserLiveReloadAccessorinsteadPolymer template support is deprecated - we recommend you to useLitTemplateinstead. Read more details from the Vaadin blog.useRpcInvocationStartedEvent,RpcInvocationFailedEventandRpcInvocationEndedEventon theservice event businsteaduseSessionLockRequestedEvent,SessionLockAcquiredEventandSessionLockReleasedEventon theservice event businsteaduseUploadHandlerinsteaduseDownloadHandlerinsteadFor browser information users should parse the user-agent using a parsing library like ua-parser/uap-java
-
Deprecated Annotation InterfacesAnnotation InterfaceDescriptionAs of Vaadin 25, this annotation is deprecated together with
Theme, since the theming system has been reworked and no theme is applied to the application unless it is explicitly requested. OmittingThemehas the same effect as using this annotation, so it can simply be removed. Styles are now loaded withStyleSheetfrom public static resources locations orCssImportfrom asrc/main/frontend/folder, together with mechanisms native to HTML, CSS and React (e.g.@import url("morestyles.css")in CSS).As of Vaadin 25, this annotation is deprecated. The theming system has been reworked to useStyleSheetto load one or more stylesheets from public static resources locations orCssImportto load one or more stylesheets from asrc/main/frontend/folder and use mechanisms native to HTML, CSS and React (e.g.@import url("morestyles.css")in CSS).
-
Deprecated FieldsFieldDescriptionUse
UIInternals.getWrapperElement()throughgetInternals().getWrapperElement()instead.useInitParameters.URL_SAFE_SCHEMESinsteadthe GWT client engine this folder held has been removed, the client is served as part of the application bundle and nothing writes to or serves this path any more
-
Deprecated MethodsMethodDescriptionuse
ComponentUtil.resolveOrGenerateIdLater(Element, Component, String, SerializableSupplier, SerializableConsumer)instead. Without a getter, a value set after this call is overwritten when the resolution runs, and the target of a superseded resolution is still assigned a generated id. In addition, the pending resolution is stored in the state tree, or as an attach listener whilesourceElementis detached, so a consumer that is not serializable makes the session fail to serialize.The generated 'dom-module' relies on the legacy Polymer styling mechanism. Component styling can be done entirely with normal "light DOM" CSS: drop this attribute and import the CSS file given asCssImport.value()as plain CSS.The generated 'custom-style' relies on the legacy Polymer styling mechanism. Component styling can be done entirely with normal "light DOM" CSS: drop this attribute and put the rules that were pulled in from the included module into the CSS file given asCssImport.value().Component styling can be done entirely with normal "light DOM" CSS.useExtendedClientDetails.getBrowserTime()instead, which returns a time-zone independentInstantuse feature detection instead of platform detection, or inspectExtendedClientDetails.getNavigatorPlatform()directlyuse feature detection instead of platform detection, or inspectExtendedClientDetails.getNavigatorPlatform()directlyusePage.addJavaScript(String, LoadMode, JavaScript.Type)withJavaScript.Type.MODULEinstead. The new overload also accepts aLoadMode.UsePage.executeJs(String, Object...)instead. This method exists only for binary compatibility.UsePage.getExtendedClientDetails()to get the cached details, orExtendedClientDetails.refresh(SerializableConsumer)to refresh the cached values.UseElement.callJsFunction(String, Object...)instead. This method exists only for binary compatibility.UseElement.executeJs(String, Object...)instead. This method exists only for binary compatibility.UseElement.scrollIntoView(ScrollIntoViewOption...)insteaduseFileIOUtils.deleteQuietly(File)instead, which also deletes directory contents and logs why a deletion failed instead of failing silentlyuseFileRouterRequestUtil.isAnonymousRoute(HttpServletRequest)to match requests to anonymous routesuseUrlUtil.validateUrl(Component, String, String, String, SerializableRunnable)instead, as it uses the configuration of the application that the component belongs to instead of relying on the current thread having a locked sessionthe router never reads this value; useBeforeEvent.getRerouteTarget()insteadreroute from aBeforeEnterObserverorBeforeLeaveObserverwithBeforeEvent.rerouteTo(NavigationHandler, NavigationState)insteadreroute from aBeforeEnterObserverorBeforeLeaveObserverwithBeforeEvent.rerouteTo(NavigationState)insteadusePwaRegistry.getRuntimeServiceWorkerJs(VaadinRequest)instead. Without a request the app shell stylesheet URLs cannot be resolved, so those entries are left out.add listeners forRpcInvocationStartedEvent,RpcInvocationFailedEventandRpcInvocationEndedEventthroughVaadinService.getEventBus()insteadadd listeners forSessionLockRequestedEvent,SessionLockAcquiredEventandSessionLockReleasedEventthroughVaadinService.getEventBus()insteadfire aUIInitEventthroughVaadinService.getEventBus()insteaduseHttpServletRequest.changeSessionId()instead, which changes the session id in place without copying the session attributesThe name refers to WebJars, which are not handled here. This method only delegates toStaticFileHandler.serveStaticResource(HttpServletRequest, HttpServletResponse), whichVaadinServlet.service(HttpServletRequest, HttpServletResponse)now calls directly, so overriding this method no longer affects request handling. OverrideVaadinServlet.createStaticFileHandler(VaadinService)to customize how static resources are served.useWebBrowser.getUserAgent()method to get user-agent stringuse a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()use a parsing library like ua-parser/uap-java to parse the user agent fromWebBrowser.getUserAgent()useAbstractSharedSignal.fromJson(JsonNode, JavaType)instead, which also retains the type arguments of a parameterized type such asSet<String>useAbstractSharedSignal.nodeValue(Node, JavaType)instead, which also retains the type arguments of a parameterized type such asSet<String>base url will not be translated to the theme url anymorebase url will not be translated to the theme url anymoreNo translation of the url will be done in 25UseColorSchemeannotation instead
-
Deprecated ConstructorsConstructorDescriptionuse
SharedListSignal(SignalTree, Id, CommandValidator, JavaType)instead, which also retains the type arguments of a parameterized element type such asSet<String>useSharedMapSignal(SignalTree, Id, CommandValidator, JavaType)instead, which also retains the type arguments of a parameterized element type such asSet<String>useSharedValueSignal(SignalTree, Id, CommandValidator, JavaType)instead, which also retains the type arguments of a parameterized value type such asSet<String>
-
Deprecated Annotation Interface ElementsAnnotation Interface ElementDescriptionThe generated 'dom-module' relies on the legacy Polymer styling mechanism. Component styling can be done entirely with normal "light DOM" CSS: drop this attribute and import the CSS file given as
CssImport.value()as plain CSS.The generated 'custom-style' relies on the legacy Polymer styling mechanism. Component styling can be done entirely with normal "light DOM" CSS: drop this attribute and put the rules that were pulled in from the included module into the CSS file given asCssImport.value().Component styling can be done entirely with normal "light DOM" CSS.UseColorSchemeannotation instead