Uploaded image for project: 'Talend Component Kit'
  1. Talend Component Kit
  2. TCOMP-778

DefaultValue annotation does not set a default value for parameter

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Minor
    • 0.10.0
    • None
    • None
    • All
    • Hide

      Already fixed on master

      Show
      Already fixed on master
    • Small

    Description

      Found the usage of DefaultValue annotation in tutorial code snippets (e.g. https://talend.github.io/component-runtime/main/0.0.4/tutorial-create-components-rest-api.html)
      And in documentation:

      @Documentation("Provide a default value the UI can use - only for primitive fields.")
      ...
      public @interface DefaultValue {
      

      but as clarified with igonchar currently the only way to provide a default value is to initialize the field explicitly:

      private Boolean configurationValue = true;
      

      Need to clarify what is the correct way to set default value and the purpose of DefaultValue annotation.

      Attachments

        Activity

          People

            akhabali Anas Khabali
            ovarnavina Olha Varnavina (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: