You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.templatemodel.

Annotation Type AllowClientUpdates

  • @Retention(RUNTIME)
    @Target(METHOD)
    @Repeatable(Container.class)
    @Documented
    @Deprecated
    public @interface AllowClientUpdates
    Deprecated.
    This functionality is bound to template model which is not supported for lit template. You can use @Id mapping and the component API or the element API with property synchronization instead. Polymer template support is deprecated - we recommend you to use LitTemplate instead. Read more details from the Vaadin blog.

    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:

    ClientUpdateMode

    • Optional Element Summary

      Optional Elements
      Modifier and Type Optional Element Description
      String path

      Deprecated.

      A dot separated path of the sub property that this access control setting applies to.

      ClientUpdateMode value

      Deprecated.

      The client update mode to use for the designated property.

    • Element Detail

      • value

        ClientUpdateMode value
        Deprecated.

        The client update mode to use for the designated property.

        Returns:

        the client update mode to use.

        Default:

        com.vaadin.flow.templatemodel.ClientUpdateMode.ALLOW

      • path

        String path
        Deprecated.

        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:

        ""