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 DiagramXMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: