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

Default value of Suggestions method parameter is ignored

Apply templateInsert Lucidchart Diagram
    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.0.4
    • None
    • None
    • All
    • Small

    Description

      Consider following option:
      @Option
      private String primitiveField = "default value";

      @Option
      @Suggestable(value = "basedOnPrimitive", parameters =

      {"primitiveField"}

      )
      private String basedOnPrimitive;

      and suggestions method:
      @Suggestions("basedOnPrimitive")
      public SuggestionValues basedOnPrimitive(@Option("p") final String primitive) {

      If user doesn't set new value for primitiveField option and pushes button which calls Suggestions method, the method gets null value on input. Default value is ignored.

      Attachments

        Activity

          People

            Unassigned Unassigned
            igonchar Ivan Gonchar
            Ivan Gonchar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: