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
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
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
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
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
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
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
#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
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
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
--
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
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(
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
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
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
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
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
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
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();
>
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
20 matches
Mail list logo