Creating a GWT SuggestOracle with custom object suggestions

后端 未结 1 1231
-上瘾入骨i
-上瘾入骨i 2021-01-16 17:23

I\'m trying to convert a drop down box widget into a SuggestionBox because the current drop down menu has 100+ choices. It seems like you can only add String suggestions to

1条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-16 18:22

    Yes as i know you can not use pair of values i.e Id and Value. You have to add your strings in suggestion box perhaps you can use different solution other then suggestion box i.e. Create a List of values popup. And add as many fields as you like. display your data in flex table with pagination. update your form with the selected row by using selecition handler. for reference how to use FlexTable and handle events please see able Single Row Click Event

    SuggestOracle is the parent class of MultiWordSuggestOracle which you are already yousing.

    public class MultiWordSuggestOracle   extends SuggestOracle
    

    see MultiWordSuggestOracle

    0 讨论(0)
提交回复
热议问题