Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-2563

Autocomplete MinLength not always handled correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0-M5
    • Core
    • None

    Description

      Also MinLength is not picked up by the facet.

       

      Seeing this with mixin (autocomplete not available in UI)

      @Action
      @ActionLayout(promptStyle = PromptStyle.DIALOG_MODAL)
      public class ApplicationRole_addPermission {
      
          @Value @Accessors(fluent = true)           
          public static class Parameters {
              ApplicationPermissionRule rule; // ALLOW/VETO
              ApplicationPermissionMode mode; // r/w
              String feature;
          }
      
          public ApplicationRole act(
                  
                  @Parameter(optionality = Optionality.MANDATORY)
                  @ParameterLayout(named="Rule")
                  final ApplicationPermissionRule rule,
                  
                  @Parameter(optionality = Optionality.MANDATORY)
                  @ParameterLayout(named="Mode")
                  final ApplicationPermissionMode mode,
                  
                  @Parameter(optionality = Optionality.MANDATORY)
                  @ParameterLayout(named="Feature")
                  final String feature) {
              //...    
          }
      
          @Model
          public java.util.Collection<String> autoCompleteFeature(
                  Parameters params,
                  @MinLength(3) String search) {
          }
      
      }
      

      Attachments

        Activity

          People

            hobrom Andi Huber
            hobrom Andi Huber
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: