Best solution for a drop down list with over 300 rows?

后端 未结 3 534
迷失自我
迷失自我 2021-01-06 19:41

I have this problem, in a form I have a list of customers that could be more than 300 and, for me, it isn\'t very simple find over there because I should scroll all results

3条回答
  •  广开言路
    2021-01-06 20:33

    You basically want an autocomplete dropdown list. This does not exist in the standard JSF component set and it is also not exactly trivial to implement with JavaScript/jQuery on top of the standard JSF component set because the available values have to be present in the server side's state. You also basically want a dropdown list which is represented by a

    • instead of a doesn't allow the enduser to type text in. The standard JSF component set does not have a component which renders the desired HTML markup. You'd basically need to create a custom JSF component.

      There are 3rd party JSF component libraries which already offer a fullworthy JSF autocomplete dropdown list. It would be easier to use either of them instead of reinventing the wheel by a custom JSF component. Take your pick:

      • PrimeFaces - the component
      • RichFaces - the component
      • OpenFaces - the component
      • ICEfaces - the component

提交回复
热议问题