Re: SuggestBox implementation

2012-08-26 Thread Deepak Singh
But after selecting a value, how do i get the id of the selected value? On Sun, Aug 26, 2012 at 4:42 AM, Jens wrote: > Create a small class that contains key/value and implements Suggestion and > then create a custom SuggestOracle for your SuggestBox to fetch suggestions > from yo

Re: SuggestBox implementation

2012-08-25 Thread Jens
Create a small class that contains key/value and implements Suggestion and then create a custom SuggestOracle for your SuggestBox to fetch suggestions from your server based on the search string. -- J. -- You received this message because you are subscribed to the Google Groups "Googl

SuggestBox implementation

2012-08-25 Thread Deepak Singh
Hi, I have thousands of key-value pairs in my database and i need to show the values in a suggestBox. when the suggestion is selected, i should be able to get the key of selected value. I dont want to load all the data on client machine. So what could be the best possible way to implement it

UiBinder and MVP: Problem with SuggestBox and CellBrowser

2012-07-17 Thread Oscar Perez
Hi, I am fairly new to GWT and still trying to figure out how things work. I am trying the activities and places tutorial and found a chicken-egg problem... I am trying to use a suggestbox but the problem is that takes a suggestoracle in the constructor. If I create the view beforehand (since

Re: Text of Suggestbox not seen in rendered code on some Browsers - strange?!

2012-07-12 Thread Thomas Broyer
On Thursday, July 12, 2012 4:24:24 PM UTC+2, tanteanni wrote: > > What should i say element.getText() returns "" and fails (this is used by > junit code gen) but element.getAttribute("value") works (using ff > webdriver). element.getValue(). (getText() returns the innerText, which is empty fo

Re: Text of Suggestbox not seen in rendered code on some Browsers - strange?!

2012-07-12 Thread tanteanni
i just read the javadoc for getAttribute: "...More exactly, this method will return the value of the given attribute, unless that attribute is not present, in which case the value of the property with the same name is returned..." So all is fine and work as intended :-) On Thursday, 12 July 20

Re: Text of Suggestbox not seen in rendered code on some Browsers - strange?!

2012-07-12 Thread tanteanni
What should i say element.getText() returns "" and fails (this is used by junit code gen) but element.getAttribute("value") works (using ff webdriver). but thx for the hint with InputElement: but i can't find class/ or interface "InputElement" and there is no getProperty(String) in "org.openqa

Re: Text of Suggestbox not seen in rendered code on some Browsers - strange?!

2012-07-12 Thread Thomas Broyer
On Thursday, July 12, 2012 12:20:58 PM UTC+2, tanteanni wrote: > > Thx Thomas > > this is working: assertThat(element.getAttribute("value"), > is("SomeText")); > It shouldn't. (except in IE because GWT simply calls getAttribute(name), and IE looks for the property in this case rather than th

Re: Text of Suggestbox not seen in rendered code on some Browsers - strange?!

2012-07-12 Thread tanteanni
Thx Thomas this is working: assertThat(element.getAttribute("value"), is("SomeText")); On Wednesday, 11 July 2012 15:32:18 UTC+2, Thomas Broyer wrote: > > > On Wednesday, July 11, 2012 12:41:11 PM UTC+2, tanteanni wrote: >> >> I've tried to make a Seleniumtest on the text content of a suggest

Re: Text of Suggestbox not seen in rendered code on some Browsers - strange?!

2012-07-11 Thread Thomas Broyer
On Wednesday, July 11, 2012 12:41:11 PM UTC+2, tanteanni wrote: > > I've tried to make a Seleniumtest on the text content of a suggest box. > The text is rendered correctly but don't shows up in rendered code > ("inspect element") and selenium also sees only an empty string. The Elment > look l

Text of Suggestbox not seen in rendered code on some Browsers - strange?!

2012-07-11 Thread tanteanni
I've tried to make a Seleniumtest on the text content of a suggest box. The text is rendered correctly but don't shows up in rendered code ("inspect element") and selenium also sees only an empty string. The Elment look like this in chrome and friefox: But it is rendered with correct text - i

Re: How to set and get value of SuggestBox

2012-07-09 Thread Arash
- Create an editor for the type being displayed by suggestBox - Wrap a suggestbox inside this editor - implement LeavValueEditor of the type being edited - usage in the editor using this suggest box @UiField SuggestBoxWrapper type; - SuggestBoxWrapper.ui.xml public class

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

Using SuggestBox for data binding of non String type

2012-05-14 Thread ian tabangay
Hi. Has anyone had any experience in using SuggestBox for data binding Objects or Enums? -- 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

Re: How to set and get value of SuggestBox

2012-05-14 Thread ian tabangay
nk I would try implementing ValueAwareEditor in the parent editor to > gain access to the value being edited and being notified about flush(). If > you add @Ignored to the SuggestBox field then you are able to handle the > SuggestionBox yourself. You could add a selection handler to the Sug

Re: How to set and get value of SuggestBox

2012-05-14 Thread Jens
Good question.. never used it with Editor Framework. I think I would try implementing ValueAwareEditor in the parent editor to gain access to the value being edited and being notified about flush(). If you add @Ignored to the SuggestBox field then you are able to handle the SuggestionBox

Re: How to set and get value of SuggestBox

2012-05-14 Thread ian tabangay
What about setting the value of the SuggestBox? Im trying to use the SuggestBox in an editor that is auto binded to a data object and the value of the SuggestBox can be an enum or some other object. On Mon, May 14, 2012 at 6:13 PM, Jens wrote: > Implement a class that extends SuggestOracle

Re: How to set and get value of SuggestBox

2012-05-14 Thread Jens
Implement a class that extends SuggestOracle and provide it to SuggestBox via its constructor. The type you want to suggest should implement the interface Suggestion and in your SuggestBox.addSelectionHandler() you have to cast the Suggestion back to your type. Mini Example: class

How to set and get value of SuggestBox

2012-05-14 Thread ian tabangay
Hi. Can anyone point me to the right direction on how I can set and get the value of SuggestBox when the Suggestion is not of type String? like an Enum or a data object? Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

Re: Suggestbox suggestions not displayed when navigating using arrow keys

2012-05-03 Thread ALB-PSP-DV1
-PSP-DV1: > > > > > > > > > > > We have a suggestbox with approx. 50 suggestions. We are displaying a > > scrollbar for the suggestbox using the following css > > > .suggestPopupContent{ > >         height:auto; > >         width:auto !impor

Re: Suggestbox suggestions not displayed when navigating using arrow keys

2012-05-02 Thread Jens
:39:16 UTC+2 schrieb ALB-PSP-DV1: > > We have a suggestbox with approx. 50 suggestions. We are displaying a > scrollbar for the suggestbox using the following css > > .suggestPopupContent{ > height:auto; > width:auto !important; > max-width:400p

Re: Suggestbox suggestions not displayed when navigating using arrow keys

2012-05-02 Thread ALB-PSP-DV1
Any help is appreciated. On May 2, 11:39 am, ALB-PSP-DV1 wrote: > We have asuggestboxwith approx. 50suggestions. We are displaying a > scrollbar for thesuggestboxusingthe following css > > .suggestPopupContent{ >         height:auto; >         width:auto !important; >         max-width:400px; >  

Suggestbox suggestions not displayed when navigating using arrow keys

2012-05-01 Thread ALB-PSP-DV1
We have a suggestbox with approx. 50 suggestions. We are displaying a scrollbar for the suggestbox using the following css .suggestPopupContent{ height:auto; width:auto !important; max-width:400px; max-height: 165px; overflow-y: auto; padding-right

Re: GWT SuggestBox and Selenium

2012-01-31 Thread Pedro Perez
ut for the SuggestBox it is handled a bit differently: spSelect.getElement().getElementsByTagName("input").getItem(0).setId("spSelect"); After grabbing the correct inner table, we are able to interact with this input with Selenium just fine. Hope this helps someone. Cheers Pedro On J

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+"\"]&quo

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 --

Re: SuggestBox doesn't work with Editor Framework (well not like ValueListBox does)

2011-12-26 Thread Elhanan Maayan
and btw here's what i thought of... it's still in the rough, but basically it's a combination between ValueListBox and SuggestionBox (hence ValueSuggestionBox :) ), i've tried in my small sourceforge project and seems to be working (at least with requestFactory EntityProxies), so now i can use an e

Re: SuggestBox doesn't work with Editor Framework (well not like ValueListBox does)

2011-12-25 Thread Elhanan Maayan
yes, it's called "too-much-values-to-be-displayed-in-one-list"... On Mon, Dec 26, 2011 at 8:36 AM, -sowdri- wrote: > Is there anything that 's preventing you from creating > a ValueListBox)?? > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit

Re: SuggestBox doesn't work with Editor Framework (well not like ValueListBox does)

2011-12-25 Thread -sowdri-
Is there anything that 's preventing you from creating a ValueListBox)?? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/TAz770R0QrkJ. To post

SuggestBox doesn't work with Editor Framework (well not like ValueListBox does)

2011-12-24 Thread Elhanan
(for example ValueListBox) SuggestBox is confined to a String, which means, SuggestionBox can never be used with anything more then a string Value (not even enumerated look up table. which i think severely limits it's options. -- You received this message because you are subscribed to the Goo

Re: SuggestBox with RequestFactory

2011-11-09 Thread Mark Wengranowski
ay 09 November 2011 05:14:41 AM IST, Mark Wengranowski wrote: > > > > > > > > > Hi Everyone, > > > I was wondering if anyone knows of a source code example that uses > > requestfactory, a suggestbox and a dynamic suggest oracle? > > > I already have suggestboxe

Re: SuggestBox with RequestFactory

2011-11-08 Thread Ashwin Desikan
. If you are interested can share my work. thanks Ashwin On Wednesday 09 November 2011 05:14:41 AM IST, Mark Wengranowski wrote: Hi Everyone, I was wondering if anyone knows of a source code example that uses requestfactory, a suggestbox and a dynamic suggest oracle? I already have suggestboxes

SuggestBox with RequestFactory

2011-11-08 Thread Mark Wengranowski
Hi Everyone, I was wondering if anyone knows of a source code example that uses requestfactory, a suggestbox and a dynamic suggest oracle? I already have suggestboxes that i populate with a list of strings from a RF call but need a more dynamic approach for a search tool. The list is way too

Re: Adding a collection of Suggestion to SuggestBox (replacement strings different from display strings)

2011-10-13 Thread Andrei Cosmin Fifiiţă
h will have the search query terms highlighted with >> tags. You can then go ahead and modify the strings, and create and >> return a MultiWordSuggestion object which will be returned to the >> SuggestBox. >> >> >> On Thu, Oct 6, 2011 at 1:14 PM, Ice13ill wrote:

Re: Adding a collection of Suggestion to SuggestBox (replacement strings different from display strings)

2011-10-13 Thread Andrei Cosmin Fifiiţă
tags. You can then go ahead and modify the strings, and create and > return a MultiWordSuggestion object which will be returned to the > SuggestBox. > > > On Thu, Oct 6, 2011 at 1:14 PM, Ice13ill wrote: > >> I also tried extending SuggestOracle, or Suggestion interface, but

Re: Adding a collection of Suggestion to SuggestBox (replacement strings different from display strings)

2011-10-06 Thread Aidan O'Kelly
u can then go ahead and modify the strings, and create and return a MultiWordSuggestion object which will be returned to the SuggestBox. On Thu, Oct 6, 2011 at 1:14 PM, Ice13ill wrote: > I also tried extending SuggestOracle, or Suggestion interface, but i > cannot access the methods neede

Re: Adding a collection of Suggestion to SuggestBox (replacement strings different from display strings)

2011-10-06 Thread Ice13ill
I also tried extending SuggestOracle, or Suggestion interface, but i cannot access the methods needed or fields, because they have private or default visibility. Is there something I'm missing ? On Oct 5, 1:29 pm, Ice13ill wrote: > Hello, I want to create a suggest box with suggestions that have

Adding a collection of Suggestion to SuggestBox (replacement strings different from display strings)

2011-10-05 Thread Ice13ill
Hello, I want to create a suggest box with suggestions that have replacement strings different from display strings I created a collection of MultiWordSuggestion(replString, displayString) but i cannot find how to add them to the SuggestOracle. I have methods add(string) or addAll(stringCollection)

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

Re: SuggestBox popup Z-Index issue (appears behind everything)

2011-08-16 Thread Thomas Wrobel
Yes, CSS seemed the best option and worked. Cheers. Still, its a strange issue to still be hanging around. ~~ Reviews of anything, by anyone; www.rateoholic.co.uk Please try out my new site and give feedback :) On 15 August 2011 23:51, Ben Imp wrote: > I suppose you could also use CSS, to

Re: SuggestBox popup Z-Index issue (appears behind everything)

2011-08-15 Thread Ben Imp
I suppose you could also use CSS, too. That would seem to be a bit less hacky. -Ben -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/0xAyuDytV

Re: SuggestBox popup Z-Index issue (appears behind everything)

2011-08-15 Thread Ben Imp
One of the SuggestBox constructors lets you pass in a custom SuggestionDisplay. You should be able to just extend the DefaultSuggestionDisplay, override the decorateSuggestionList method, and set the z-index of the widget it makes. -Ben -- You received this message because you are

SuggestBox popup Z-Index issue (appears behind everything)

2011-08-15 Thread darkflame
It seems this issue is still present; http://code.google.com/p/google-web-toolkit/issues/detail?id=1351 Using a SuggestBox in a composite which has had a zIndex value set means the popup of the suggestions appears behind everything else. (no Index seems to be set at all on the popup). So I

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

SuggestBox implementing Cell

2011-07-23 Thread J.Ganesan
I need to have a SuggestBox as an Editable component in a CellTable. I could not locate any extension of SuggestBox satisfying this requirement. Any pointers please. J.Ganesan www.DataStoreGwt.com -- You received this message because you are subscribed to the Google Groups "Google Web To

Re: SuggestBox not showing Suggestion

2011-06-02 Thread Myth17
The problem is with --> MultiWordSuggestOracle cityoracle=new MultiWordSuggestOracle(); cityoracle.addAll(citylist); The addAll() method fails to add Cities name from the ArrayList citylist which is Strange, also using a loop to manually add String from the list using add() method fails. -- Yo

Re: SuggestBox MVP problem

2011-06-02 Thread Myth17
I am trying to make a TextBox in the view and wrap it in Suggestbox in presenter. However my suggestbox wont show any suggestion. :( why isnt a "set" method availaible? :| -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit"

Re: SuggestBox MVP problem

2011-06-02 Thread Myth17
facing the same problem. what should be the best way around? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ZWgyTjRMZ2VGSjRK. To post to this g

SuggestBox not showing Suggestion

2011-06-02 Thread Myth17
I have a view with a TextBox, In my presenter I populate the suggestion list with an RPC call and wrap TextBox in a SuggestionBox. The Suggestion box is not showing any suggestion. Code goes like--> citysuggest=new SuggestBox(cityoracle,display.getCityBox());//wrapping in textbox+pass

Working with a SuggestBox

2011-06-01 Thread Myth17
I am working on a MVP+Event Bus Architecture. I have a SuggestBox declared in a view, I want presenter to fetch list of suggestion by an RPC call. However the SuggestBox only seems to take "MultiWordSuggestoracle" in its constructor. And no way to add it later in presenter.

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

SuggestBox in an HTML div

2011-05-27 Thread Gino Trinidad
Hi, I have posted this a while ago but I can seem to find my post. I am trying to add a GWT SuggestBox in a div tag in an HTML. The following shows the code on how I added it. I got his from an example in http://examples.roughian.com/index.htm#Widgets~SuggestBox. In the entry point class&#

SuggestBox cannot handle mouse clicks

2011-05-18 Thread Carrie
I have a SuggestBox which has a textfield. There is also a SuggestOracle class like this: package com.restclearcaseinterface.client.oracles; import java.util.ArrayList; import java.util.List; import com.google.gwt.user.client.ui.SuggestOracle; import

Re: IE9 and SuggestBox

2011-05-13 Thread Thomas Broyer
There's no deferred binding in SuggestBox proper. Are you talking about the one on PopupImpl, used by the DefaultSuggestionDisplay? if so, IE9 should use PopupImpl, just like IE8, not PopupImplIE6. BTW, setExpression throws in IE8 (AFAIK, it still exists there, contrary to IE9, but t

IE9 and SuggestBox

2011-05-13 Thread Marcel Karras
Hi, when using a "SuggestBox" in IE9 it won't work correctly as the generated code still contains "setExpression" calls - such css method calls are not available anymore since IE9 and should not be generated in general. Is this a known issue? (I don't want to set

Aw: Re: using SuggestBox with special Oracle and Suggestion - how to keep view "humble"

2011-04-27 Thread tanteanni
thx for this hint. the problem in my case is the DTO or the 1:n relationship between id and ambiguous names. i need every text/name keep bound to its id within the suggestion box. Probably that could be achieved by using HasValue together with HasText?? One solution that came to my mind is to pr

Re: using SuggestBox with special Oracle and Suggestion - how to keep view "humble"

2011-04-26 Thread Ben Imp
Most of the GWT widgets have predefined interfaces that will work just fine. HasValue, HasText, HasClickHandlers, etc. I rarely bother to extend these. Ideally, you wont need to generate too many of these extra interfaces. I think the only additional interface I have created is HasClickHand

Re: using SuggestBox with special Oracle and Suggestion - how to keep view "humble"

2011-04-25 Thread tanteanni
thx fo the tip (in particular the idea with "HasSuggestion" interface). but in long run i fear i 'll end up with many such interfaces and delegates to obey to some pattern :-| On 19 Apr., 15:16, Ben Imp wrote: > I ran into this issue as well - knowledge of the domain in the view.  I > ended u

How to force selection in a SuggestBox?

2011-04-25 Thread el_zako
I'm looking to implement a use case such that, as the user types in the SuggestBox, I would be able to obtain the first item in the list. This item would be dynamic (and would be shown in a seperate box), it will keep changing as the user types in more characters. The SuggestBox also nee

Re: using SuggestBox with special Oracle and Suggestion - how to keep view "humble"

2011-04-19 Thread Ben Imp
I ran into this issue as well - knowledge of the domain in the view. I ended up getting around it by creating a delegate for the suggest oracle. public class SuggestOracleDelegator extends SuggestOracle { private SuggestOracle delegate = null; public SuggestOracleDelegator() {}

using SuggestBox with special Oracle and Suggestion - how to keep view "humble"

2011-04-19 Thread tanteanni
with your (http://groups.google.com/group/google-web-toolkit/ browse_frm/thread/be1e8e363a6f0794/9ceb716e29a5b985) help i learned how to implement my own SuggestionOracle("AuSuggestOracle") and own Suggestions("AuMultiWordSuggestion"). In my case the suggestion object is constructed with a DTO. On

SuggestBox in a CellTable

2011-04-18 Thread Craig Day
Are there any ideas out there about how I might best add SuggestBox functionality to a CellTable and TextInputCell. Using an approach similar to what is happening inside SuggestBox.wrap() kinda works though it gets pretty hacky: @Override public void onBrowserEvent(Context context

two questions about SuggestBox and formPanel

2011-04-12 Thread Manvel Saroyan
Hi Dear Google Web Toolkit members, I'm new in http://groups.google.com. And I have two questions please help me with that questions. Question number one: I'm using suggestion box for search. And I have an ValueChangeHandler on that SuggestBox. And I'm making an RPC call on

Re: SuggestBox in Editor

2011-04-12 Thread Thomas Broyer
On Tuesday, April 12, 2011 3:08:25 PM UTC+2, coelho wrote: > > In fact in is an Entity but the SuggestBox should display a String from > (unique) so I'll have a try > > from what I've seen so far the widget must provide an asEditor method > > as well as getVa

Re: SuggestBox in Editor

2011-04-12 Thread Metronome & Basic
In fact in is an Entity but the SuggestBox should display a String from (unique) so I'll have a try from what I've seen so far the widget must provide an asEditor method as well as getValue an setValue and internally must be able to return an entity from the string "suggestion&

Re: SuggestBox in Editor

2011-04-12 Thread Thomas Broyer
It's hard to use a SuggestBox for anything else than a String value (believe me, we're struggling with it for weeks, regularly stumbling on a new edge case –well, we're asking our server for suggestions, and we need to dispatch ValueChangeEvents, so maybe it's a special use

SuggestBox in Editor

2011-04-12 Thread Metronome & Basic
I'd like to have a ValueSuggestBox to be used like ValueLisBox inside an Editor Could it be done ? How ? Thanks Patrick -- 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@googlegroup

Re: suggestbox selection handler and keypress handler

2011-03-08 Thread Nate Bauernfeind
ti-keyword suggestions). Though when I added a KeyDownHandler (as is used within the SuggestBox source code itself) the suggestDisplay.isSuggestionListShowing() always returned false even when it had just previously done so. Well, the trick is to add your handler before the suggest box adds i

Re: suggestbox selection handler and keypress handler

2011-03-08 Thread Nate Bauernfeind
Did you ever solve this problem? On Feb 10, 6:11 am, Torgeir wrote: > Am looking for an easy way to avoid a keypress from the textbox of a > suggestbox when the user selects an item from the suggested dropdown. > > I need to handle both in my application, but if the user selects an

Re: SuggestBox can't set Oracle

2011-02-17 Thread Ben Imp
I find it awkward as well. I have worked around it by providing a delegating oracle on creation of the suggest box. Not exactly ideal, but a rather simple fix. -Ben On Feb 17, 1:29 pm, Eric wrote: > So, SuggestBox.setOracle(SuggestOracle oracle) is private.  I can't > immediately see a good re

Re: SuggestBox can't set Oracle

2011-02-17 Thread Philippe Beaudoin
IIRC it's a relatively recent change in GWT and I cursed a little when I encountered it. I solved it by instantiating the SuggestBox using the 3-parameter constructor that let you specify an oracle. Using UiBinder and gin to inject my SuggestOracle this gives: public class M

SuggestBox can't set Oracle

2011-02-17 Thread Eric
So, SuggestBox.setOracle(SuggestOracle oracle) is private. I can't immediately see a good reason for it. I can work around it, but calling that method would be the most natural fit for my code. Thoughts? Eric -- You received this message because you are subscribed to the Google Groups "Googl

suggestbox selection handler and keypress handler

2011-02-10 Thread Torgeir
Am looking for an easy way to avoid a keypress from the textbox of a suggestbox when the user selects an item from the suggested dropdown. I need to handle both in my application, but if the user selects an item from the suggested drop down, i want to avoid the event from the keydown handler

Re: SuggestBox

2010-12-08 Thread Jon Vaughan
Hm have added a VCH to clear the other loaded stuff. VCH fires before the Suggestion picked. On Dec 6, 5:32 pm, Jon Vaughan wrote: > I have a suggest box > > the user selects something from it, causing other things to load in > the page > > they then go back to the suggest box and type some stuf

SuggestBox

2010-12-06 Thread Jon Vaughan
I have a suggest box the user selects something from it, causing other things to load in the page they then go back to the suggest box and type some stuff into it which doesn't result in a new selection how can i determine that the value has changed to clear the other loaded things in the page w

SuggestBox is overengineered

2010-12-03 Thread George Georgovassilis
So I've been on a webapp of mine that does RPC, Google Maps, MVP, uses a ton of stock and homebrewn widgets and plenty of other things, touching most of the GWT API and, like in every other GWT App I've done so far it also uses SuggestBox. And like in every other GWT App I've wri

SuggestBox not displayed on Tomcat Server

2010-12-02 Thread ben
Hello, I have encountered a problem using a SuggestBox when the application is deployed on a Tomcat server. My interface, which contains several SuggestBox widgets, displays the widgets correctly when I deploy using the Eclipse built-in server and when I deploy to the app engine server. But when

Re: array of suggestBox?

2010-11-16 Thread Jack
If you just want the selected item then use SuggestBox box = new SuggestBox(countryOracle); box.addSelectionHandler(new SelectionHandler() { @Override public void onSelection(SelectionEvent event) { System.out.println(event.getSelectedItem()); } }); Or SuggestBox box = new

Re: array of suggestBox?

2010-11-15 Thread seven.reeds
Thanks, I am still such a java newbie that I was not thinking about the what I was really trying to accomplish. I didn't need an array of suggest boxes. Duh, on me. What I do need though is the proper way to get to the "protected" methods of the nested class: SuggestBox.SuggestionDisplay In th

Re: array of suggestBox?

2010-11-11 Thread jhulford
You're not using a valid array constructor...To do so would look something like this: SuggestBox[] countries = new SuggestBox[]{new SuggestBox(countryOracle)}; However that just creates an array w/ a single SuggestBox in it. Since you indicate the user will potentially want to add an un

array of suggestBox?

2010-11-10 Thread seven.reeds
Hi, I am trying to play with SuggestBox in a small test. I am not a Java wizard though. In my test i have an oracle that holds all the countries in the world. The form I am building will ask for a country as a SuggestBox. Now, If I want the person filling out the form to enter all of the

Re: SuggestBox with huge amount of records

2010-10-21 Thread jhulford
It's actually really quite easy. You just need to create your own SuggestOracle that overrides the requestSuggestions method and executes some sort of code to contact your server/database to do the search (GWT-RPC, REST, simple GET request, etc..) then utilizes the Callback's onSuggestionsReady pa

Re: SuggestBox with huge amount of records

2010-10-21 Thread ep
why cant u use it? SuggestOracle allows async fetching of data, please read java doc on this interface com.google.gwt.user.client.ui.SuggestOracle.Suggestion On 21 Okt., 09:09, Florian Rhomberg wrote: > Hello! > > I need to implement a suggest box. Therefor I found a possibility to create > that

SuggestBox with huge amount of records

2010-10-21 Thread Florian Rhomberg
Hello! I need to implement a suggest box. Therefor I found a possibility to create that on this page: http://www.gwtapps.com/doc/html/com.google.gwt.user.client.ui.SuggestBox.html But however I cannot use this code with the oracle because I have more than 7 datas. Therefore I want to realis

Re: populating suggestions in SuggestBox using eventHandler than overriding SuggestOracle

2010-09-23 Thread Thomas Broyer
On Sep 23, 1:04 pm, chamarts wrote: > Hi, > > is there any action/event handler that I can implement actually gives > me a callback reference to populate the suggestions ? That's the role of the SuggestOracle. > and also is there any way to set the SuggestOracle object

populating suggestions in SuggestBox using eventHandler than overriding SuggestOracle

2010-09-23 Thread chamarts
Hi, is there any action/event handler that I can implement actually gives me a callback reference to populate the suggestions ? and also is there any way to set the SuggestOracle object to SuggestBox. For some reason it happened to be a private method. Not sure whats the design strategy to make

Re: SuggestBox + UiBinder question...

2010-08-13 Thread Prashant Hegde
The way I normally do this: In the Corresponding view class, @UiField(provided = true)SuggestBox suggestbox; In the constructor, before the initWidget() call, instantiate the suggestbox the way you want it. Prashant On 14-08-2010 00:13, Thamizharasu S wrote: Hi All, I have a

SuggestBox + UiBinder question...

2010-08-13 Thread Thamizharasu S
Hi All, I have a problem with SuggestBox with UiBinder. I have created a SuggestBox control using ui.xml binder file. How could I define the 'MultiWordSuggestOracle' object with my suggestBox object which is defined in the xml. Any idea? - Thamizharasu S -- You received this messa

Re: SuggestBox question - is it possible to react on sub sequences of the words?

2010-07-06 Thread crojay78
Thanks for your reponses. So now I know that it is addtionally effort to do it, so I can talk to my project manager :-) I just wanted to be sure, that there is not a easy/fast way to do it. On 4 Jul., 10:30, Sebastian Rothbucher wrote: > Hi, I guess you have to provide an own SuggestionOracle wh

Re: SuggestBox question - is it possible to react on sub sequences of the words?

2010-07-04 Thread Sebastian Rothbucher
Hi, I guess you have to provide an own SuggestionOracle which searches a List with a search algorithm that is a s good as possible... - I did provide an own suggestion oracle for another occation and it works quite well... On Jul 2, 5:21 pm, crojay78 wrote: > Hi, > > I am using the suggest box in

Re: SuggestBox question - is it possible to react on sub sequences of the words?

2010-07-02 Thread Isaac Truett
Sure. Just write your own SuggestOracle implementation. On Fri, Jul 2, 2010 at 11:21 AM, crojay78 wrote: > Hi, > > I am using the suggest box in my app. Now I'm searching for the > possibility to change the filter. Is it possible to change the > behaviour so that not only words which start with

SuggestBox question - is it possible to react on sub sequences of the words?

2010-07-02 Thread crojay78
Hi, I am using the suggest box in my app. Now I'm searching for the possibility to change the filter. Is it possible to change the behaviour so that not only words which start with the input will be suggested also words where the input occurs anywhere in the name. If I have a list like this Jim

Re: SuggestBox showing all options on Enter key

2010-06-18 Thread Jaroslav Záruba
andler} > and/or > > * {...@link com.google.gwt.event.dom.client.KeyPressHandler} > > instead > > */ > > @Deprecated > > public interface KeyboardListener extends EventListener { > > > > cheers > > JZ > > > > > > > > On Mon, Jun 14, 2010 at 2:00 PM

Re: SuggestBox showing all options on Enter key

2010-06-18 Thread Rashmi
Mon, Jun 14, 2010 at 2:00 PM, Rashmi wrote: > > I need to create a SuggestBox that will show all options on pressing > > the Enter key. > > I have written the following implementation, and it seems to be > > working fine. > > I would like someone to review my implem

SuggestBox MultiWordSuggestOracle autocomplete can't create suggestion/display pairs except for default

2010-06-15 Thread Marc Hacker
I have a GWT autocomplete new SuggestBox((new MultiWordSuggestOracle()); For the default suggestions which appears before the user types any prefix, there is a nice method MultiWordSuggestOracle.setDefaultSuggestions(Collection suggestionList) so I can pass a nice list of a Suggestion's

Re: SuggestBox showing all options on Enter key

2010-06-14 Thread Jaroslav Záruba
*/ @Deprecated public interface KeyboardListener extends EventListener { cheers JZ On Mon, Jun 14, 2010 at 2:00 PM, Rashmi wrote: > I need to create a SuggestBox that will show all options on pressing > the Enter key. > I have written the following implementation, and it seems to be

SuggestBox showing all options on Enter key

2010-06-14 Thread Rashmi
I need to create a SuggestBox that will show all options on pressing the Enter key. I have written the following implementation, and it seems to be working fine. I would like someone to review my implementation and let me know if it will cause problems in any particular scenario. Also, the

Re: How to add a scrollbar to a SuggestBox popup?

2010-05-01 Thread Eugene D
n Apr 22, 5:49 pm, Andy wrote: > We started using the trunk because of the refactoring that's been done > to SuggestBox. I considered copying it out and doing my own > refactoring but ran into the same dependency issues. > > If you are able to use the trunk with the refactored Su

<    1   2   3   4   >