Wicket
  1. Wicket
  2. WICKET-4993

Add a minInputLength parameter to AutoCompleteTextField

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 6.4.0
    • Fix Version/s: 6.10.0, 7.0.0-M1
    • Component/s: wicket-extensions
    • Labels:
      None

      Description

      We should add a parameter to AutoCompleteTextField to set the minimum input length required to display the autocomplete list.
      See patch.

      1. WICKET-4993.patch
        4 kB
        Andrea Del Bene

        Activity

        Andrea Del Bene created issue -
        Andrea Del Bene made changes -
        Field Original Value New Value
        Attachment WICKET-4993.patch [ 12565528 ]
        Hide
        Martin Grigorov added a comment -

        Hi Andrea,

        Please update your patch to latest Wicket 6 and we will add it for 6.10.
        Thanks!

        Show
        Martin Grigorov added a comment - Hi Andrea, Please update your patch to latest Wicket 6 and we will add it for 6.10. Thanks!
        Andrea Del Bene made changes -
        Attachment WICKET-4993.patch [ 12565528 ]
        Andrea Del Bene made changes -
        Attachment WICKET-4993.patch [ 12595749 ]
        Hide
        Andrea Del Bene added a comment -

        I've updated the patch. You can add it or wait for me to commit it when I will have commitment grant

        Show
        Andrea Del Bene added a comment - I've updated the patch. You can add it or wait for me to commit it when I will have commitment grant
        Hide
        Martin Grigorov added a comment -

        The default value should be 1 to be backward compatible, right ?
        In your patch I see 3.

        I'll test it now.

        Show
        Martin Grigorov added a comment - The default value should be 1 to be backward compatible, right ? In your patch I see 3. I'll test it now.
        Martin Grigorov made changes -
        Assignee Martin Grigorov [ mgrigorov ]
        Hide
        Martin Grigorov added a comment -

        Changed the default to be 1, so it the same behavior as before.
        Additionally added functionality to hide the drop-down when the precondition fails.

        Thanks!

        Show
        Martin Grigorov added a comment - Changed the default to be 1, so it the same behavior as before. Additionally added functionality to hide the drop-down when the precondition fails. Thanks!
        Martin Grigorov made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 7.0.0 [ 12322958 ]
        Fix Version/s 6.10.0 [ 12324643 ]
        Resolution Fixed [ 1 ]
        Hide
        Andrea Del Bene added a comment -

        yes sorry, I left 3 instead of 1. Thank you!

        Show
        Andrea Del Bene added a comment - yes sorry, I left 3 instead of 1. Thank you!

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Andrea Del Bene
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development