Package com.vaadin.flow.templatemodel
Annotation Interface AllowClientUpdates
@Retention(RUNTIME)
@Target(METHOD)
@Repeatable(Container.class)
@Documented
@Deprecated
public @interface AllowClientUpdates
Deprecated.
Defines the access control setting for a model property. By default, updates
are allowed only for properties that are defined with a two-way binding in
the template. Two-way bindings are defined using the
{{propertyName}} or {{propertyName:updatingEvent
syntax in templates.
Use this annotation on accessors in your TemplateModel class to
define whether it's allowed for the client to update server-side model values
- Since:
- 1.0
- Author:
- Vaadin Ltd
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceDeprecated.Internal annotation to enable use of multipleAllowClientUpdatesannotations. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDeprecated.A dot separated path of the sub property that this access control setting applies to.Deprecated.The client update mode to use for the designated property.
-
Element Details
-
value
ClientUpdateMode valueDeprecated.The client update mode to use for the designated property.- Returns:
- the client update mode to use.
- Default:
- ALLOW
-
path
String pathDeprecated.A dot separated path of the sub property that this access control setting applies to. Empty string by default, which will apply the access control directly to the annotated property.- Returns:
- the dot separated path to the bean property for which the access control applies, empty string by default
- Default:
- ""
-
@Idmapping and the component API or the element API with property synchronization instead. Polymer template support is deprecated - we recommend you to useLitTemplateinstead. Read more details from the Vaadin blog.