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 written, I come

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 SelectionHandlerSuggestion() { @Override public void onSelection(SelectionEventSuggestion event) { System.out.println(event.getSelectedItem

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

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 unknown

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

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

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 florian.rhomb...@nettania.at wrote: Hello! I need to implement a suggest box. Therefor I found a

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

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: populating suggestions in SuggestBox using eventHandler than overriding SuggestOracle

2010-09-23 Thread Thomas Broyer
to SuggestBox. For some reason it happened to be a private method. Not sure whats the design strategy to make it private. There are several constructor overloads that take a SuggestOracle. If you really need to change the oracle during the use of SuggestBox, then give it a SuggestOracle proxy

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

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

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 sebastian.rothbuc...@clarities.de wrote: Hi, I guess you have to

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 croja...@googlemail.com wrote: Hi, I am

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 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 croja...@googlemail.com 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

Re: SuggestBox showing all options on Enter key

2010-06-18 Thread Rashmi
...@gmail.com 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 implementation and let me know if it will cause problems in any

Re: SuggestBox showing all options on Enter key

2010-06-18 Thread Jaroslav Záruba
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, Rashmi guptara...@gmail.com wrote: I need to create a SuggestBox that will show all options on pressing

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(CollectionSuggestion suggestionList) so I can pass a nice list

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

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 guptara...@gmail.com 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

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

2010-04-23 Thread Andy
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 SuggestBox, you find that you can do the following: public

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

2010-04-22 Thread googelybear
unfortunately not, as the popup is not exposed to the outside world: code private final PopupPanel suggestionPopup; /code On Mar 19, 9:10 pm, Paul Stockley pstockl...@gmail.com wrote: Can't you justadda scrollPanel as the first child of thePopup? -- You received this message because you are

How to add a scrollbar to a SuggestBox popup?

2010-03-19 Thread googelybear
Hi, I would like to display a scrollbar in the popup panel shown by the SuggestBox (Imagine there might be 100 entries in the list and you don't want to display a huuuge popup, instead you want to add a nice vertical scrollbar to it). Does anyone know how to achieve this with gwt 2.0? I have

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

2010-03-19 Thread Paul Stockley
Can't you just add a scrollPanel as the first child of the Popup? -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to

Help on SuggestBox

2010-02-22 Thread Sudeep S
Hi All, I have a use case wherein there are 2 suggestboxes and the requirement is such that the user can either select one of the suggestions or can even input his own. When a suggestion is selected from box1, box2 is populated. Now if the user types his own then its called as non standard

Re: How to get unpublished events from a SuggestBox?

2010-02-10 Thread phb
Okay, as I think about it, this approach won't work anyway, because I don't want to change the drop down menu here. I only want to fill in the suggestion textbox, like the Google suggestbox does. So short of cloning the class and all its support (yuck) I guess this ends up being a feature

Re: How to get unpublished events from a SuggestBox?

2010-02-10 Thread Isaac Truett
There was a SuggestBox enhancement in trunk last month that abstracts out a SuggestionDisplay. You should be able to implement a SuggestionDisplay that gives you the access you need. On Wed, Feb 10, 2010 at 1:21 PM, phb ghuenem...@gmail.com wrote: Okay, as I think about it, this approach won't

Re: SuggestBox and HasBlurHandlers

2010-02-09 Thread Thomas Broyer
On Feb 9, 6:32 am, bestey bes...@gmail.com wrote: Just wondering if there is an easy way to know when focus is lost from a SuggestBox? It doesn't implement HasFocusHandlers and HasBlurHandlers but it does have HasFocus! Any advice would be appreciated. Attach your handlers

How to get unpublished events from a SuggestBox?

2010-02-09 Thread phb
SuggestBox is an opaque grouping of several underlying widgets which *nearly* does exactly what I want. What it doesn't do is update the textbox with suggested text as you arrow up or down through the list, or as you hover over suggestions with the mouse. For an example of why this is useful

SuggestBox and HasBlurHandlers

2010-02-08 Thread bestey
Just wondering if there is an easy way to know when focus is lost from a SuggestBox? It doesn't implement HasFocusHandlers and HasBlurHandlers but it does have HasFocus! Any advice would be appreciated. Thanks, Brian -- You received this message because you are subscribed to the Google Groups

popup form with a suggestbox...

2010-02-07 Thread golfdude
I have a form which gets displayed in a popup panel. One of the fields is a suggestbox. When I type in this suggestbox, I am not able to type more than one character because the first item from the suggestions get automatically filled up. For example, if my items are John Jim Jack When I type

Re: popup form with a suggestbox...

2010-02-07 Thread golfdude
Figured it. Set Auto enabled helped. gd -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to

Re: SuggestBox hides RootLayoutPanel and all its contents

2010-02-04 Thread hriess
Thank you, Stefano. I've seen this solution already in Issue 4352 - but I don't understand, how it works. Unfortunately it solves only the problem with the SuggestBox , not with some of my PopupPanel based widgets. -- You received this message because you are subscribed to the Google Groups

[gwt-contrib] [google-web-toolkit] r7529 committed - Use the getText() from SuggestBox instead of the one present in the Te...

2010-02-04 Thread codesite-noreply
Revision: 7529 Author: jlaba...@google.com Date: Thu Feb 4 04:43:03 2010 Log: Use the getText() from SuggestBox instead of the one present in the TextBoxBase implementation. http://gwt-code-reviews.appspot.com/132812/show Patch by: manolo.carrasco Review by: jlabanca http://code.google.com

Re: SuggestBox hides RootLayoutPanel and all its contents

2010-02-03 Thread Stefano Ciccarelli
a DockLayoutPanel for the layout of the application. A SuggestBox (and other PopupPanels) blanks the complete screen in IE7. After upgrade to GWT 2.0, UiBinder and LayoutPanels I haven't tested my application with IE7 for a long time. Have I to go back in time and check out a rather old SVN version of my

Re: SuggestBox doesnt work in IE 6

2010-02-01 Thread Thomas Broyer
AsyncCallbackArrayList() {           public void onSuccess(ArrayList result){             ...             // my function works fine             SuggestBox sbb = getSuggestBoxByElementId (innerSuggesterId);             // suggestbox value and 'success1' appear successfully             Window.alert

Re: SuggestBox doesnt work in IE 6

2010-02-01 Thread Bogdan Maryniuck
of course. IE7 and all other browsers work fine. AsyncCallbackArrayList callback = new AsyncCallbackArrayList() {          public void onSuccess(ArrayList result){            ...            // my function works fine            SuggestBox sbb = getSuggestBoxByElementId (innerSuggesterId

Re: SuggestBox hides RootLayoutPanel and all its contents

2010-02-01 Thread hriess
Is there in the meantime a solution for this problem? I am using a DockLayoutPanel for the layout of the application. A SuggestBox (and other PopupPanels) blanks the complete screen in IE7. After upgrade to GWT 2.0, UiBinder and LayoutPanels I haven't tested my application with IE7 for a long time

Re: SuggestBox hides RootLayoutPanel and all its contents

2010-01-31 Thread Carlo
);                 main.addNorth(text,20);                 //SuggestBox                 MultiWordSuggestOracle oracle = new MultiWordSuggestOracle();                 oracle.add(Cat);                 oracle.add(Dog);                 oracle.add(Bird);                 SuggestBox suggest = new SuggestBox(oracle

SuggestBox doesnt work in IE 6

2010-01-31 Thread forewar
result){ ... // my function works fine SuggestBox sbb = getSuggestBoxByElementId (innerSuggesterId); // suggestbox value and 'success1' appear successfully Window.alert(sbb.getValue()); Window.alert(success1

@UiHandler SuggestBox

2010-01-30 Thread dk
Hi, I'm trying to attach a selectionHandler on a SuggestBox using the UIHandler annotation; as per; @UiHandler(vehicleClass) void handleSelection(SelectionEvent e) { Window.alert(selection Event!); } The console tells me that 03:35:01.456 [ERROR] Parameter 'SelectionEvent

Re: SuggestBox: how to change suggestions sort order?

2010-01-29 Thread forewar
Still cant find a solution. Is it possible at all? -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to

Re: SuggestBox: how to change suggestions sort order?

2010-01-29 Thread Miroslav Genov
You have to extend SuggestOracle and to implement your own Oracle that is sorting your results as you like. Regards, Miroslav forewar wrote: Still cant find a solution. Is it possible at all? -- You received this message because you are subscribed to the Google Groups Google Web

SuggestBox: how to change suggestions sort order?

2010-01-28 Thread forewar
Hello! I have the following problem: I have created SuggestBox element and filled it`s MultiWordSuggestOracle. But when I use showSuggestionList(), my suggestions are displaying in alphabetic order instead of original order. I want to show suggestions depends on their rating, not in alphabetic

SuggestBox drop down button

2010-01-25 Thread Semir Elezovikj
Has anyone encountered an alternative GWT SuggestBox which has a button for showing all the possible values ? Something like the following ComboBox ( http://advanced-gwt.sourceforge.net/faq/combo-box-faq.html ) but which would load data on text change ? I am looking for a combination of combo box

Re: SuggestBox drop down button

2010-01-25 Thread Isaac Truett
have. A little outside interest might be just what I need to get back into it. SimpleGWT ComboBox http://code.google.com/p/simple-gwt/wiki/ComboBoxModule - Isaac On Mon, Jan 25, 2010 at 8:38 AM, Semir Elezovikj semir.elezo...@gmail.com wrote: Has anyone encountered an alternative GWT SuggestBox

Force SuggestBox value initialization on page load

2010-01-24 Thread olive
Hi! I'm please using SuggestBox and Oracle from GWT during standard usage. Now, I'd like to initialize the SuggestBox at launch page time so it display a chosen value. I've got a SuggestBox that helps finding products names. The idea is to a) get a product id from the URL, then b) make a call

Re: Force SuggestBox value initialization on page load

2010-01-24 Thread Thomas Broyer
On 24 jan, 20:06, olive i5w81a...@sneakemail.com wrote: Hi! I'm please using SuggestBox and Oracle from GWT during standard usage. Now, I'd like to initialize the SuggestBox at launch page time so it display a chosen value. I've got a SuggestBox that helps finding products names

[gwt-contrib] Re: SuggestBox loses focus when hovering over suggestions

2010-01-22 Thread John LaBanca
ping - can you get to this today? It should go into GWT 2.0.1 Thanks, John LaBanca jlaba...@google.com On Wed, Jan 20, 2010 at 2:32 PM, jlaba...@google.com wrote: Reviewers: jgw, Description: The SuggestBox loses focus when the mouse hovers over the list of suggestions because MenuBar

[gwt-contrib] Re: SuggestBox loses focus when hovering over suggestions

2010-01-22 Thread Joel Webber
, Description: The SuggestBox loses focus when the mouse hovers over the list of suggestions because MenuBar steals keyboard focus on hover. This is particularly annoying if a user leaves the cursor just beneath the text box. As soon as the suggestions are shown, the text box loses focus. In fact

[gwt-contrib] Re: SuggestBox loses focus when hovering over suggestions

2010-01-22 Thread jgw
On 2010/01/20 19:32:04, jlabanca wrote: LGTM. http://gwt-code-reviews.appspot.com/132816 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] SuggestBox loses focus when hovering over suggestions

2010-01-20 Thread jlabanca
Reviewers: jgw, Description: The SuggestBox loses focus when the mouse hovers over the list of suggestions because MenuBar steals keyboard focus on hover. This is particularly annoying if a user leaves the cursor just beneath the text box. As soon as the suggestions are shown, the text box

[gwt-contrib] Use the getText() from SuggestBox instead of the one present in the TextBoxBase implementation

2010-01-19 Thread manuel . carrasco . m
getText, to the constructor, the way of extending SuggestBox is easier. - This patch does not modifies the original behaviour of the widget. Please review this at http://gwt-code-reviews.appspot.com/132812 Affected files: src/com/google/gwt/user/client/ui/SuggestBox.java test/com/google/gwt/user

Re: SuggestBox does not have an addClickHandler

2010-01-18 Thread Matt Moriarity
to add different handlers using the @UiHandler annotation for UiBinder based layouts. Unfortunately I'm not able to add a click hander to a SuggestBox:     @UiField(provided = true)     SuggestBox mySearchBox;     @UiHandler(mySearchBox)     void handleClick(final ClickEvent e

SuggestBox does not have an addClickHandler

2010-01-16 Thread Alexander
Hi there, as stated at [1] and [2] it is easily possible to add different handlers using the @UiHandler annotation for UiBinder based layouts. Unfortunately I'm not able to add a click hander to a SuggestBox: @UiField(provided = true) SuggestBox mySearchBox; @UiHandler(mySearchBox

[gwt-contrib] [google-web-toolkit] r7400 committed - Adding SuggestionDisplay interface to SuggestBox to allow custom displ...

2010-01-14 Thread codesite-noreply
Revision: 7400 Author: jlaba...@google.com Date: Thu Jan 14 11:49:54 2010 Log: Adding SuggestionDisplay interface to SuggestBox to allow custom display implementations. Patch by: jlabanca Review by: jgw http://code.google.com/p/google-web-toolkit/source/detail?r=7400 Added: /trunk/user

Re: SuggestBox hides RootLayoutPanel and all its contents

2010-01-13 Thread Jorge
() { DockLayoutPanel main = new DockLayoutPanel(Unit.EM); //Some text Label text = new Label(This text is going to dissapear); text.setStyleName(big-text); main.addNorth(text,20); //SuggestBox

Re: SuggestBox hides RootLayoutPanel and all its contents

2010-01-12 Thread UJ
I have never experienced this but its seems a browser specific problem. Specially when we try to populate GWT content in DIV, the display creates one or other problem for sure :-). The GWT is in itself a dynamic content so my personal suggestion is to render your code directly using GWT API only

Re: SuggestBox hides RootLayoutPanel and all its contents

2010-01-12 Thread Isaac Truett
Jorge, Can you use a DOM inspector to examine that white overlay? I would guess that you have an opaque glass panel and you just need to set some CSS to make it transparent. Knowing what that white thing really is would help. - Isaac On Mon, Jan 11, 2010 at 10:38 PM, Jorge jsle...@gmail.com

Re: SuggestBox MVP problem

2010-01-12 Thread 4F2E4A2E
this is so annoying! i cant bind my suggestBox to the view... is there any hope for this beeing fixed? or is suggestionBox just not supported? -- 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

Re: SuggestBox hides RootLayoutPanel and all its contents

2010-01-11 Thread Jorge
It's been a couple of weeks since I posted this, I wonder if I'm asking a dumb newbie cuestion. I've searched this group and I can't find any solutions. Could anyone be so kind to point me in to the right direction? Thank you. On Dec 30 2009, 3:46 pm, Jorge jsle...@gmail.com wrote: I'm running

Re: SuggestBox and DTO

2010-01-04 Thread eggsy84
Hi there, I made a blog post some time ago on this subject. It may be able to help you: http://eggsylife.co.uk/2008/08/25/gwt-suggestbox-backed-by-dto-model/ Eggsy On Jan 3, 9:02 pm, ale aleee...@gmail.com wrote: Hi, I would like to add object to a suggest box, and when selected I would

SuggestBox and DTO

2010-01-03 Thread ale
Hi, I would like to add object to a suggest box, and when selected I would like to get the object. Is it possible? My problem is that I have a some DTO, that have and id and a description, but the description is not unique: so, in the suggest I have some description repeated (and this is ok), but

Re: SuggestBox with server side update and UrlFetch Service

2010-01-01 Thread Ajax-Gadgets
by Result. Brian On Dec 31 2009, 9:09 am, Ajax-Gadgets brivi...@gmail.com wrote: Hello, I was wonder if anyone has implemented the SuggestBox with server side update using the following codehttp://groups.google.kg/group/google-web-toolkit/browse_thread/thread I updated

SuggestBox with server side update and UrlFetch Service

2009-12-31 Thread Ajax-Gadgets
Hello, I was wonder if anyone has implemented the SuggestBox with server side update using the following code http://groups.google.kg/group/google-web-toolkit/browse_thread/thread/56942afe0c404d86. I updated the ItemSuggestionImpl.java below to retrieve my suggestion box values using Url Fetch

SuggestBox hides RootLayoutPanel and all its contents

2009-12-31 Thread Jorge
I'm running 2.0 with Eclipse, plus IE 7. I created an application that uses UIBinder. The main object is a DockLayoutPanel that is added to the RootLayoutPanel, exactly like the Mail sample for 2.0. The Center container has a Widget that has a SuggestBox and some TextBoxes, my problem

Re: Pressing the enter key in the SuggestBox popup fire onKeyUp event! How to disable this?

2009-12-30 Thread Michael W
...@gmail.com wrote: Hi there! If I select an option in the SuggestBox popup by pressing the enter key then onKeyUp event fire. But I don't want that it happens because I already handle pressing the enter on the textbox by executing another code. My code below

Re: Pressing the enter key in the SuggestBox popup fire onKeyUp event! How to disable this?

2009-12-26 Thread dilbert
Have you tried checking isSuggestionListShowing() of the SuggestBox in the KeyUpHandler. If the method returns true You could skip processing the event. I haven't tried it but it could work. On Dec 22, 12:35 pm, ss.require ss.requ...@gmail.com wrote: Hi there! If I select an option

Re: Pressing the enter key in the SuggestBox popup fire onKeyUp event! How to disable this?

2009-12-23 Thread Michael W
Can you check following whether it is what you need? If yes, I will post our solution here. On Dec 22, 6:35 am, ss.require ss.requ...@gmail.com wrote: Hi there! If I select an option in the SuggestBox popup by pressing the enter key then onKeyUp event fire. But I don't want that it happens

Re: Pressing the enter key in the SuggestBox popup fire onKeyUp event! How to disable this?

2009-12-23 Thread golfdude
I had the same requirement and ended up writing my own SuggestBox ( started from the code of gwt suggestbox ). -- 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-tool...@googlegroups.com

Pressing the enter key in the SuggestBox popup fire onKeyUp event! How to disable this?

2009-12-22 Thread ss.require
Hi there! If I select an option in the SuggestBox popup by pressing the enter key then onKeyUp event fire. But I don't want that it happens because I already handle pressing the enter on the textbox by executing another code. My code below: suggestBox.addSelectionHandler(new

SuggestBox MVP problem

2009-12-21 Thread FKereki
Hi! Trying to work with a SuggestBox field and MVP, I found a problem. You can getSuggestOracle(...) but you cannot set an oracle unless you do it through its constructor, and this asymmetry poses a problem. In MVP, the View shouldn't deal with the oracle complexity; its logic should

Re: SuggestBox MVP problem

2009-12-21 Thread Matt Moriarity
The way I was planning on handling this is allowing dependency injection (GIN) to create the oracle and inject that into the view's constructor. On Dec 21, 7:03 am, FKereki fker...@gmail.com wrote: Hi! Trying to work with a SuggestBox field and MVP, I found a problem. You can getSuggestOracle

Re: SuggestBox MVP problem

2009-12-21 Thread FKereki
, then I must create the Presenter first -- but in that case I cannot inject the View!? I solved this --and am not happy about it-- by (1st) creating the View, WITHOUT the SuggestBox, (2nd) injecting the View into the Presenter, and (3rd) having the Presenter create the oracle and provide

Re: SuggestBox MVP problem

2009-12-21 Thread Paul Robinson
!? I solved this --and am not happy about it-- by (1st) creating the View, WITHOUT the SuggestBox, (2nd) injecting the View into the Presenter, and (3rd) having the Presenter create the oracle and provide it to the View, so the latter can add the missing SuggestBox. While this does work, it goes

Re: SuggestBox MVP problem

2009-12-21 Thread Nathan Wells
The way (I think) we do it is our View has a method: pre HasText getSuggestBox(SuggestOracle oracle) { if (oracle != this.oracle || this.suggestBox == null) //create a new suggest box with the oracle createOrReplaceSuggestBox(oracle); } return suggestBox; } /pre

Re: SuggestBox MVP problem

2009-12-21 Thread Matt Moriarity
The way I'm doing it will be to have the dependency injection framework create a SuggestOracle. Then have the view be injected with that oracle: @Inject MyView(MySuggestOracle oracle) { this.suggestBox = new SuggestBox(oracle); ... } Seems like a fairly simple solution, and does not require

Re: SuggestBox MVP problem

2009-12-21 Thread FKereki
Matt Moriarity's idea suggested another possibility: using @UiField (provided=true) and using a Factory method to actually deliver the widget to the view. I'll give it a bit more thinking; I want to make sure testing is still simple. -- You received this message because you are subscribed to the

SuggestBox like google search...

2009-12-13 Thread golfdude
I have a suggestbox which when the user types, I want to list the suggestions, and as the user scrolls down the list, the item's display string to be displayed in the textbox ( of the suggest box ). Similar to a google search. But in my case, only when I press return does the item get populated

Re: SuggestBox like google search...

2009-12-13 Thread golfdude
Wrote my own SuggestBox. Thx gd -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr

Customizing The SuggestBox to Change Background Color/Border

2009-11-30 Thread JAppetta
I would like to change the light blue background color (or is it a border?) that surrounds the dropdown items in a SuggestBox. I've tried changing the .gwt-SuggestBox and .gwt-SuggestBoxPopup options in my .css file but with no luck. What suggestBox rule controls this property? I am using GWT

Re: Customizing The SuggestBox to Change Background Color/Border

2009-11-30 Thread Thomas Broyer
On 30 nov, 21:42, JAppetta jennifer.appe...@sas.com wrote: I would like to change the light blue  background color (or is it a border?) that surrounds the dropdown  items in a SuggestBox. I've tried changing the .gwt-SuggestBox  and .gwt-SuggestBoxPopup options in my .css file

How to test suggestBox

2009-11-15 Thread zoe.Liao
Hi,I have got a problem when I use selenium to test suggestBox.I cann't ensureDebugId to the suggestBox popup's items.And the items ids changed everytime I clicked the box.It seems that the id are set some default values as gwt-uid-*. Thanks a lot. -- You received this message because you

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 itru...@gmail.com wrote: As Thomas said, you'll need to write a SuggestOracle that returns an empty

Re: gwt suggestbox.

2009-10-29 Thread Thomas Broyer
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

Re: gwt suggestbox.

2009-10-29 Thread Isaac Truett
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

Re: gwt suggestbox.

2009-10-29 Thread mdwarne
t.bro...@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

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

Showing image+text on SuggestBox() MultiWordSuggestOracle()

2009-10-03 Thread Pion
The default SuggestBox() shows the text as shown on http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/SuggestBox.html I'd like to display both small image/icons and text. Any pointer (doc, sample code, etc) is appreciated. Thanks in advance for your help

Re: SuggestBox manual override?

2009-09-25 Thread Nairutee
Hi Trevis, Can you please let me know how you managed to get it working. I dont have any custom suggest oracle class. I directly use MultiWordSuggestion and want a similar functionality of populating the suggestion box with all suggestions when the focus is on the suggestion box. Once the user

SuggestBox manual override?

2009-09-20 Thread Trevis
I have a suggestbox with a custom oracle. In some instances i would like to be able to automatically cause the suggestions to pop up just by the user setting focus to the suggestbox for instance. I figure that i should be able to use a FocusHandler to do that part but how do convince the thing

Re: SuggestBox manual override?

2009-09-20 Thread Thomas Broyer
On 20 sep, 09:18, Trevis trevistho...@gmail.com wrote: I have a suggestbox with a custom oracle.  In some instances i would like to be able to automatically cause the suggestions to pop up just by the user setting focus to the suggestbox for instance. I figure that i should be able to use

Re: SuggestBox manual override?

2009-09-20 Thread Trevis
Man, I must have been tired last night. I could have sworn that i'd tried that. Oh well, it's working now. Thanks a ton. Trevis On Sep 20, 5:49 am, Thomas Broyer t.bro...@gmail.com wrote: On 20 sep, 09:18, Trevis trevistho...@gmail.com wrote: I have a suggestbox with a custom oracle

Re: using suggestBox

2009-09-17 Thread jucimarjr
I think this can solve the problem. The problem now is that this method is only avaiable on gwt 1.6, and mine is 1.5. But I just have to change it. Thanks Thomas. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

using suggestBox

2009-09-15 Thread jucimarjr
Does anyone know if is possible, when I have a suggestBox and clicking at the button TAB the suggestion don't be selected? I mean, if I click at the TAB button, the word that I put in the box keep there. Regards, Jucimar. --~--~-~--~~~---~--~~ You received

Re: using suggestBox

2009-09-15 Thread Thomas Broyer
On 15 sep, 18:05, jucimarjr junior.juci...@gmail.com wrote: Does anyone know if is possible, when I have a suggestBox and clicking at the button TAB the suggestion don't be selected? I mean, if I click at the TAB button, the word that I put in the box keep there. First, you'd have to disable

Re: SuggestBox problem...any work-around to get the selection text when one is chosen?

2009-08-25 Thread ThomasWrobel
I meant googles home page, of course. Clearly googles moto is having its desired effect ;) On Aug 25, 10:24 pm, darkflame darkfl...@gmail.com wrote: Ive run into this issue;http://code.google.com/p/google-web-toolkit/issues/detail?id=1634 Anyone know any work-arounds? The usefulness of the

Re: SuggestBox problem...any work-around to get the selection text when one is chosen?

2009-08-25 Thread Isaac Truett
Could you use a SelectionHandler instead? On Tue, Aug 25, 2009 at 4:24 PM, darkflamedarkfl...@gmail.com wrote: Ive run into this issue; http://code.google.com/p/google-web-toolkit/issues/detail?id=1634 Anyone know any work-arounds? The usefulness of the suggest box is kinda crippled

<    1   2   3   4   >