[gwt-contrib] Re: Breaking Change: Use ValueBoxBaseString instead of TextBox in SuggestBox (issue 6492092)

2012-09-10 Thread skybrian
LGTM. I'll commit this soon. https://codereview.appspot.com/6492092/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: SuggestBox causes native events to fire twice (issue1785803)

2012-09-05 Thread tuckerpmt
On 2012/07/19 20:48:12, tbroyer wrote: Can this patch be committed? https://gwt-code-reviews.appspot.com/1785803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

Re: SuggestBox implementation

2012-08-28 Thread Ümit Seren
ArrayListCustomSuggestion(); //get List of suggested from the backend with RPC } } And when you create the SuggestBox you pass your CustomSuggestOracle as a constructor parameter On Mon, Aug 27, 2012 at 8:50 PM, Deepak Singh deepaksingh...@gmail.com wrote: I would be using RPC

Re: SuggestBox implementation

2012-08-27 Thread Ümit Seren
: On Sunday, August 26, 2012 6:36:11 PM UTC+2, Deepak Singh wrote: But after selecting a value, how do i get the id of the selected value? SuggestBox works best if you use the ID as the replacementString and the label as the displayString of the Suggestions in your SuggestOracle. In that case, you

Re: SuggestBox implementation

2012-08-27 Thread Deepak Singh
+2, Deepak Singh wrote: But after selecting a value, how do i get the id of the selected value? SuggestBox works best if you use the ID as the replacementString and the label as the displayString of the Suggestions in your SuggestOracle. In that case, you don't have to do anything, the ID

Re: SuggestBox implementation

2012-08-27 Thread Ümit Seren
of the selected value? SuggestBox works best if you use the ID as the replacementString and the label as the displayString of the Suggestions in your SuggestOracle. In that case, you don't have to do anything, the ID will be set in the text box upon selecting a suggestion. (e.g. the replacement

Re: SuggestBox implementation

2012-08-27 Thread Deepak Singh
of the selected value? SuggestBox works best if you use the ID as the replacementString and the label as the displayString of the Suggestions in your SuggestOracle. In that case, you don't have to do anything, the ID will be set in the text box upon selecting a suggestion. (e.g

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 jens.nehlme...@gmail.com wrote: Create a small class that contains key/value and implements Suggestion and then create a custom SuggestOracle for your SuggestBox to fetch suggestions

Re: SuggestBox implementation

2012-08-26 Thread Jens
In your selection handler you have to cast the selected suggestion to your custom class. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: SuggestBox implementation

2012-08-26 Thread Thomas Broyer
On Sunday, August 26, 2012 6:36:11 PM UTC+2, Deepak Singh wrote: But after selecting a value, how do i get the id of the selected value? SuggestBox works best if you use the ID as the replacementString and the label as the displayString of the Suggestions in your SuggestOracle

Re: SuggestBox implementation

2012-08-26 Thread Deepak Singh
at 11:18 PM, Thomas Broyer t.bro...@gmail.com wrote: On Sunday, August 26, 2012 6:36:11 PM UTC+2, Deepak Singh wrote: But after selecting a value, how do i get the id of the selected value? SuggestBox works best if you use the ID as the replacementString and the label as the displayString

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

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

[gwt-contrib] Re: Fix incorrect SuggestBox documentation related to adding selection handlers. Fixes issue 4575. (issue1801803)

2012-08-01 Thread tuckerpmt
On 2012/07/31 18:48:57, skybrian wrote: LGTM http://gwt-code-reviews.appspot.com/1801803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Fix incorrect SuggestBox documentation related to adding selection handlers. Fixes issue 4575. (issue1801803)

2012-08-01 Thread rdayal
On 2012/08/01 12:06:09, Patrick Tucker wrote: On 2012/07/31 18:48:57, skybrian wrote: LGTM Committed in r11189. http://gwt-code-reviews.appspot.com/1801803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Fix incorrect SuggestBox documentation related to adding selection handlers. Fixes issue 4575. (issue1801803)

2012-07-31 Thread rdayal
Reviewers: Patrick Tucker, skybrian, Description: Fix incorrect SuggestBox documentation related to adding selection handlers. Fixes issue 4575. Please review this at http://gwt-code-reviews.appspot.com/1801803/ Affected files: M user/src/com/google/gwt/user/client/ui/SuggestBox.java

[gwt-contrib] SuggestBox causes native events to fire twice (issue1785803)

2012-07-19 Thread tuckerpmt
Reviewers: , Description: Issue 3533 Please review this at http://gwt-code-reviews.appspot.com/1785803/ Affected files: user/src/com/google/gwt/user/client/ui/SuggestBox.java Index: user/src/com/google/gwt/user/client/ui/SuggestBox.java

[gwt-contrib] Re: SuggestBox causes native events to fire twice (issue1785803)

2012-07-19 Thread tuckerpmt
On 2012/07/19 20:27:56, Patrick Tucker wrote: http://code.google.com/p/google-web-toolkit/issues/detail?id=3533 http://gwt-code-reviews.appspot.com/1785803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: SuggestBox causes native events to fire twice (issue1785803)

2012-07-19 Thread t . broyer
LGTM http://gwt-code-reviews.appspot.com/1785803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

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 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 box. The

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 the

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

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

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

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: input type=text class=PEB

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 like

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 g:HTMLPanel g:SuggestBox ui:field

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 then do a

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

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. To post

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

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 jens.nehlme...@gmail.com wrote: Implement a class

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
. 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 yourself. You could add a selection handler to the SuggestBox

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 from

Suggestbox suggestions not displayed when navigating using arrow keys

2012-05-02 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: 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 albpsp...@gmail.com wrote: We have asuggestboxwith approx. 50suggestions. We are displaying a scrollbar for thesuggestboxusingthe following css .suggestPopupContent{         height:auto;         width:auto !important;        

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:400px; max-height: 165px

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

[gwt-contrib] SuggestBox styling?

2012-01-30 Thread dflorey
There is no easy way to change the stylename of the suggest box popup and as such there is no (easy) way to use multiple suggest boxes with differently styled popups. It would be nice to have a setPopupStyle() method or some implicit logic changing the popup style according to

GWT SuggestBox and Selenium

2012-01-26 Thread Pedro Perez
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 -- You received this message

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

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

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 ValueListBoxDepartmentProxy)?? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

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- sow...@gmail.com wrote: Is there anything that 's preventing you from creating a ValueListBoxDepartmentProxy)?? -- You received this message because you are subscribed to the Google

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

2011-12-24 Thread Elhanan
(for example ValueListBoxDepartmentProxy) 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

Re: SuggestBox with RequestFactory

2011-11-09 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

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

[gwt-contrib] Re: Add HasEnabled to SuggestBox (issue1567803)

2011-10-14 Thread Ray Ryan
When I run your sample I never see the suggest box. What should I be typing? On Wed, Oct 12, 2011 at 9:10 PM, stephen.haber...@gmail.com wrote: I published a demo here: http://sh-hello.appspot.com/ http://gwt-code-reviews.**appspot.com/1567803/http://gwt-code-reviews.appspot.com/1567803/

[gwt-contrib] Re: Add HasEnabled to SuggestBox (issue1567803)

2011-10-14 Thread stephen . haberman
On 2011/10/14 16:30:07, rjrjr wrote: When I run your sample I never see the suggest box. What should I be typing? Crap--I set setSuggestionListHiddenWhenEmpty(false) thinking that would show the list if nothing was typed, hence be a hint of what was in the list, but I guess not. Yeah, sorry, I

[gwt-contrib] Re: Add HasEnabled to SuggestBox (issue1567803)

2011-10-14 Thread rjrjr
LGTM Nice tests there, thanks. I'll put this through the test gauntlet and submit. http://gwt-code-reviews.appspot.com/1567803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Re: Add HasEnabled to SuggestBox (issue1567803)

2011-10-14 Thread rjrjr
r10703 http://gwt-code-reviews.appspot.com/1567803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

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

2011-10-13 Thread Andrei Cosmin Fifiiţă
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 andrei.fifi...@gmail.com wrote: I also tried extending SuggestOracle, or Suggestion interface, but i cannot access

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

2011-10-13 Thread Andrei Cosmin Fifiiţă
with strong 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 andrei.fifi...@gmail.comwrote: I also tried extending SuggestOracle, or Suggestion interface

[gwt-contrib] Add HasEnabled to SuggestBox (issue1567803)

2011-10-12 Thread rjrjr
Thanks for taking this over Stephen. Could you extend SuggestBoxTest to cover it? Also, have you looked at the behavior manually? Does it actually work as expected? In particular I'm wondering what happens if the user tabs into the box. http://gwt-code-reviews.appspot.com/1567803/ --

[gwt-contrib] Re: Add HasEnabled to SuggestBox (issue1567803)

2011-10-12 Thread stephen . haberman
java.util.List; */ @SuppressWarnings(deprecation) public class SuggestBox extends Composite implements HasText, HasFocus, -HasAnimation, SourcesClickEvents, SourcesChangeEvents, +HasAnimation, HasEnabled, SourcesClickEvents, SourcesChangeEvents, SourcesKeyboardEvents

[gwt-contrib] Re: Add HasEnabled to SuggestBox (issue1567803)

2011-10-12 Thread stephen . haberman
http://gwt-code-reviews.appspot.com/1567803/diff/4001/user/src/com/google/gwt/user/client/ui/SuggestBox.java File user/src/com/google/gwt/user/client/ui/SuggestBox.java (left):

[gwt-contrib] Re: Add HasEnabled to SuggestBox (issue1567803)

2011-10-12 Thread stephen . haberman
I published a demo here: http://sh-hello.appspot.com/ http://gwt-code-reviews.appspot.com/1567803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

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 andrei.fifi...@gmail.com wrote: Hello, I want to create a suggest box

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

2011-10-06 Thread Aidan O'Kelly
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 andrei.fifi...@gmail.com wrote: I also tried extending SuggestOracle, or Suggestion interface, but i cannot access

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

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 benlee...@gmail.com wrote: I suppose you

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

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

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

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

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 Toolkit

Working with a SuggestBox

2011-06-02 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. :| As an Alternative

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

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

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 group. To view

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 ArrayListString citylist which is Strange, also using a loop to manually add String from the list using add() method fails.

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

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

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

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 IE8 fallback mode in order to get

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 throws

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

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 need

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 benlee...@gmail.com wrote: I ran into this issue as well - knowledge of the domain in the

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 a

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() {

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

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

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 case–). If you can

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

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 getValue an setValue Actually, it has

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 each value have

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

Re: suggestbox selection handler and keypress handler

2011-03-08 Thread Nate Bauernfeind
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 its handler

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

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 MyView

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 edimickeast...@gmail.com wrote: So, SuggestBox.setOracle(SuggestOracle oracle) is private.  I can't

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

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

<    1   2   3   4   >