Multi-Valued Auto-Complete With GWT and REST
Legacy GWT applications often need token-style auto-complete widgets for email lists or tags. The approach in Zack Grossbart’s tutorial remains one of the clearest examples for integrating SuggestBox with REST services.
Key Implementation Points
- Wrap
MultiWordSuggestOracle
to fetch suggestions asynchronously from your REST endpoint. - Use a
FlowPanel
and customTagWidget
to render each selected value with a remove icon. - Debounce network calls to prevent flooding the server as users type.
Reference Implementation
Modern Alternatives
- If you maintain a GWT 2.x codebase, evaluate
gwt-material
orSencha GXT TagField
for built-in multi-select widgets. - New projects should prefer React/Vue components with accessible ARIA patterns (
aria-multiselectable
) to meet current UX guidelines.