Thursday, October 29, 2009

Re: gwt suggestbox.

As Thomas said, you'll need to write a SuggestOracle that returns an
empty list of suggestions for queries shorter than x characters. And I
wanted to add: if you want to keep the functionality of the
MultiWordSuggestOracle then you can have your oracle delegate to a
MuliWordSuggestOracle instance for queries that are long enough. As I
recall MultiWordSuggestOracle is not amenable to subclassing, and
composition is a better strategy anyway.

On Thu, Oct 29, 2009 at 5:27 AM, Thomas Broyer <t.broyer@gmail.com> wrote:
>
>
>
> On 28 oct, 21:46, kss <kunjals...@gmail.com> wrote:
>> I am using the gwt suggestbox currently as a typeahead text box to
>> display suggestions from MultiSuggestOracle. Now I need a way to
>> enable the suggestbox to appear only after a fixed set of characters
>> are entered in the text box. Is there a way to do this ? Any
>> suggestions.
>
> Have your SuggestOracle return an empty response until the query is
> "long enough" ?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate