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.UseElement.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 routesuseRpcInvocationStartedEvent,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 eventuseSessionLockRequestedEvent,SessionLockAcquiredEventandSessionLockReleasedEventon theservice event businsteadadd listeners forSessionLockRequestedEvent,SessionLockAcquiredEventandSessionLockReleasedEventon theservice event businsteaduseUploadHandlerinsteaduseDownloadHandlerinsteaduseUploadHandlerinsteadadd listeners forRpcInvocationStartedEvent,RpcInvocationFailedEventandRpcInvocationEndedEventthroughVaadinService.getEventBus()insteadadd listeners forSessionLockRequestedEvent,SessionLockAcquiredEventandSessionLockReleasedEventthroughVaadinService.getEventBus()insteadfire aUIInitEventthroughVaadinService.getEventBus()insteadThe 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.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>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_SCHEMESinstead
-
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.Component styling can be done entirely with normal "light DOM" CSS.use feature detection instead of platform detection, or inspectExtendedClientDetails.getNavigatorPlatform()directlyuse feature detection instead of platform detection, or inspectExtendedClientDetails.getNavigatorPlatform()directlyUsePage.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 sessionadd listeners forRpcInvocationStartedEvent,RpcInvocationFailedEventandRpcInvocationEndedEventthroughVaadinService.getEventBus()insteadadd listeners forSessionLockRequestedEvent,SessionLockAcquiredEventandSessionLockReleasedEventthroughVaadinService.getEventBus()insteadfire aUIInitEventthroughVaadinService.getEventBus()insteadThe 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 ElementDescriptionComponent styling can be done entirely with normal "light DOM" CSS.Use
ColorSchemeannotation instead