GWT SuggestBox PopupPanel with word wrap

2013-10-17 Thread Johann
i´ve build an gwt suggestbox and anything is working fine. I want to add a second result value to the displayString(). I saw in the sourcecode that the popuppanel contain a html table with Thomas i want that the row is display like Thomad University in the same row. Is there

Re: gwt suggestbox.

2012-11-24 Thread Jan Vladimir Mostert
Spent some time on it today and got it working, thanks Thomas!! public class PietSuggestOracle extends SuggestOracle { public static class PietSuggestion implements SuggestOracle.Suggestion { private String displayString = ""; private String replacementString = ""; public PietSuggestion(Strin

Re: gwt suggestbox.

2012-11-22 Thread Thomas Broyer
On Thursday, November 22, 2012 6:03:57 AM UTC+1, Jan Vladimir Mostert wrote: > > Hi, sorry for re-opening a topic from 2009. > > In the above code, you said nameCallback = callBack, where is this > nameCallback being used? > I don't quite understand how to use the callback. > > I was just wonder

Re: gwt suggestbox.

2012-11-21 Thread Jan Vladimir Mostert
ctionality 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 anywa

Re: GWT SuggestBox mapping of European characters to American keyboard

2012-06-23 Thread Jens
Not sure if the result would be good in your case but instead of mapping european words, I would start and just strip out characters with european meaning. E.g. if the server receives "francais" as search string I would replace "c" with "_" because "c" can be a special european character and th

GWT SuggestBox mapping of European characters to American keyboard

2012-06-22 Thread Jonathan
I have a GWT SuggestBox that contains a mix of European and American words as suggestions. For example, some words have European characters, such as français. My target audience is American so I would like to allow automatic mapping of similar letters on an American keyboard to the European

Re: GWT SuggestBox and Selenium

2012-01-31 Thread Pedro Perez
Thanks everyone for your help. We ended up finding the problem: We were setting explicit IDs on our elements, so our tests can grab them easier, in GWT this is done via: usernameLabel.getElement().setId("consoleLoginPageUserNameInput"); This works fine for most GWT inputs, but for the SuggestBox

Re: GWT SuggestBox and Selenium

2012-01-30 Thread Evgeny Mayzel
#Python Script: def suggestBox(self,text): driver = self.driver d=driver.find_element_by_id("suggestion_box").send_keys(text) time.sleep(3) #wait fo suggestions to appear (could take longer) path="//tr/td[text() = "+"\""+text+"\"]" #choosing the inputed text from the suggestion Bo

Re: GWT SuggestBox and Selenium

2012-01-26 Thread l3dx
IIRC, you need two selectors/webelements 1. The textbox - here you sendKeys() and click() 2. The suggestPopup - where you select a suggestion I used CSS to select the textbox, and XPath to select the desired suggestion. I don't have the source code available right now, but I hope this h

GWT SuggestBox and Selenium

2012-01-26 Thread Pedro Perez
ues out of a GWT suggestBox...not sendKeys, not selenium.keyUp, anything. I've tried executing Javascript directly to get those values to populate. Is there a better way? If not, what is the "best" way to get values out of a GWT suggest Box? Many thanks in advance. Cheers Pedro --

Handle OnClick of GWT SuggestBox ?

2011-08-26 Thread Santosh kumar
Hi, *onClick of the SuggestBox* i want to display some of the default suggestions. Some how i am managing to get response from the server. @Override public void onClick(ClickEvent event) { - - - - // here

gwt SuggestBox clear problem

2011-08-08 Thread Somaye Khalili
Hi everybody i need to use suggestbox as it gets (String id , String value), so i made my own MultiWordSuggestion and my own SuggestionOracle and it seems to work fine but now i have problem with emptying the suggestbox , i have tried both suggestBox.setText("") and suggestBox.getTextBox().setText(

AttachDettachExpection in using GWT SuggestBox

2011-05-27 Thread Gino Trinidad
Hi, I am using the SuggestBox and following how it was used in http://examples.roughian.com/index.htm#Widgets~SuggestBox However, I am encountering a AttachDetachException (in Developer Tools window) as shown below. "Uncaught com.google.gwt.user.client.ui.AttachDetachException: One or more exce

Re: gwt suggestbox.

2009-11-02 Thread kss
Thanks a lot. I followed the approach of extending SuggestOracle and delegating the requestSuggestions to MultiWordSuggestOracle. It seems to be working fine. On Oct 29, 8:47 am, Isaac Truett wrote: > As Thomas said, you'll need to write a SuggestOracle that returns an > empty list of suggestion

Re: gwt suggestbox.

2009-10-29 Thread mdwarne
t; > On Thu, Oct 29, 2009 at 5:27 AM, Thomas Broyer wrote: > > > On 28 oct, 21:46, kss 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 suggestbo

Re: gwt suggestbox.

2009-10-29 Thread Isaac Truett
tance 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 wrote: > > > > On 28 oct, 21:46, kss wrote: >> I am using the gwt suggestbox c

Re: gwt suggestbox.

2009-10-29 Thread Thomas Broyer
On 28 oct, 21:46, kss 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 wa

gwt suggestbox.

2009-10-28 Thread kss
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

Re: GWT SuggestBox or MUltipleWordBox style changes!

2009-08-14 Thread Trevis
tried that? Trevis On Aug 13, 2:16 pm, ART wrote: > Hi All, > How can I change the font size or font-family inside a GWT > SuggestBox , I tried > MultiWordSuggestOracle multi  = null; > SuggestBox    txtS   = null; > >  multi = new MultiWordSuggestOracle(); >          

GWT SuggestBox or MUltipleWordBox style changes!

2009-08-13 Thread ART
Hi All, How can I change the font size or font-family inside a GWT SuggestBox , I tried MultiWordSuggestOracle multi = null; SuggestBoxtxtS = null; multi = new MultiWordSuggestOracle(); txtS = new SuggestBox(multi); txtS.setAnimationEnabled(true