Re: Getting item select events from suggestbox list

2009-05-05 Thread Thomas Broyer
On 4 mai, 15:16, "zame...@gmail.com" wrote: > Hi All, > > I am using SuggestBox, and there are DTO-s in list. When a user > selects items with up and down key, I need to get the selected element > to display all data of DTO item on a detail form. > > It seems

Re: Getting item select events from suggestbox list

2009-05-04 Thread nina
Hi Zamek Have you read the http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/SuggestOracle.Suggestion.html about the "Associating Data Transfer Objects (DTOs) with Suggestion Objects"? I've written my own SuggestBox, SuggestOracle and Sugges

Getting item select events from suggestbox list

2009-05-04 Thread zame...@gmail.com
Hi All, I am using SuggestBox, and there are DTO-s in list. When a user selects items with up and down key, I need to get the selected element to display all data of DTO item on a detail form. It seems to be, there are not a standard event for this. How can I implement this functionality? I

SuggestBox

2009-04-24 Thread CarlosBarrera
Hi, I using SuggestBox, but I need to the user select obligatory one data of that list, how can I do that? tks for yuo help. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.

Re: SuggestBox based on the last token

2009-04-18 Thread nevets1219
t.user.client.ui.SuggestBox$SuggestionMenu. > (SuggestBox.java:163) >         at com.google.gwt.user.client.ui.SuggestBox.(SuggestBox.java: > 318) >         at com.google.gwt.user.client.ui.SuggestBox.(SuggestBox.java: > 301) >         at xxx.onModuleLoad(xxx.java:148) > > Wher

Re: SuggestBox based on the last token

2009-04-18 Thread nevets1219
318) at com.google.gwt.user.client.ui.SuggestBox.(SuggestBox.java: 301) at xxx.onModuleLoad(xxx.java:148) Where xxx.java:148 is "_input = new SuggestBox(_tokenOracle);" and _tokenOracle is the class which extends MultiWordSuggestOracle. I haven't done anything fancy with TokenOracle yet either: pu

Re: SuggestBox based on the last token

2009-04-18 Thread Vitali Lovich
No - you need to write your own oracle. The ones that are there are for simple examples to handle most cases. On Sat, Apr 18, 2009 at 5:21 AM, nevets1219 wrote: > > I was wondering what steps I should go about showing suggestions based > on the last token.  At first, I was thinking that I neede

SuggestBox based on the last token

2009-04-18 Thread nevets1219
I was wondering what steps I should go about showing suggestions based on the last token. At first, I was thinking that I needed to specify the white space but that doesn't seem to be the case (or maybe I have used the incorrect white space). Example: I have the following words in the oracle: "

Re: SuggestBox addFocusHandler :? (GWT 1.6)

2009-04-17 Thread Darkflame
> > > On Fri, Apr 17, 2009 at 1:33 PM, darkflame wrote: > > > I'm updateing my code for 1.6,but having trouble changing my > > > SuggestBox.addFocusListener to a handeler :? > > > It tells me to use addFocusHandler etc...only it isnt defined for > > s

Re: SuggestBox addFocusHandler :? (GWT 1.6)

2009-04-17 Thread Alex Rudnick
changing my > > SuggestBox.addFocusListener to a handeler :? > > It tells me to use addFocusHandler etc...only it isnt defined for > suggestBox. > > So what do I do :? > > I converted most of my other stuff just fine, so I'm not sure whats > special about this widget t

SuggestBox addFocusHandler :? (GWT 1.6)

2009-04-17 Thread darkflame
I'm updateing my code for 1.6,but having trouble changing my SuggestBox.addFocusListener to a handeler :? It tells me to use addFocusHandler etc...only it isnt defined for suggestBox. So what do I do :? I converted most of my other stuff just fine, so I'm not sure whats special

Re: SuggestBox and RichTextArea

2009-04-13 Thread Vitali Lovich
nope - you don't want a suggestbox. you have to actually do the popup yourself based on triggers you set up (i.e. user presses a .) Dunno how easy that would be if you want it positioned somewhat relative to the cursor. On Mon, Apr 13, 2009 at 4:46 AM, Edoardo Ceccarelli wrote: > >

Re: SuggestBox and RichTextArea

2009-04-13 Thread Edoardo Ceccarelli
I already have a class that extends suggestbox and override the setText method, it would be easy to filter out html and have accurate suggestions. My main problem is that textarea is not really versatile to have a suggestbox (for example the box is always appearing in the lower left angle of it

Re: SuggestBox and RichTextArea

2009-04-13 Thread Darkflame
x? On 13 apr, 01:08, Eddy wrote: > Hello, > > anybody tried to use the SuggestBox (with a SuggestOracle) using a > RichTextArea instead of  a normal TextArea? > I am trying to use SuggestBox with the TextArea but I'm having several > problems, so I was wondering that maybe the

SuggestBox and RichTextArea

2009-04-12 Thread Eddy
Hello, anybody tried to use the SuggestBox (with a SuggestOracle) using a RichTextArea instead of a normal TextArea? I am trying to use SuggestBox with the TextArea but I'm having several problems, so I was wondering that maybe the RichTextArea should be the way to go (even thoug

SuggestBox focuslistener problem with Chrome

2009-04-08 Thread Sandeep
Hi all, I am using a SuggestBox but i have added a prompt on it. It shows "Enter a number" when focus is not on SuggestBox and when focus is set on suggestbox i set the text to "" using focuslistner. This works fine on all other browsers but when i try it on Chrome i have to

Re: Reverse direction of suggestions in suggestBox

2009-03-22 Thread matttai
Hi Thomas, sorry I actually meant the direction in which the suggestion suggest popup flips. So i want the suggestions to flip up instead of down - So this is a change in the actual display of the box as opposed to the content inside it. On Mar 23, 2:22 am, Thomas Broyer wrote: > On 21 mar, 12:1

Re: Reverse direction of suggestions in suggestBox

2009-03-22 Thread Thomas Broyer
On 21 mar, 12:11, matttai wrote: > Hi everyone, just wondering is this possible? > I haven't been able to find a way to get this to work. "Just" use a SuggestOracle that returns the suggestions in the order you like. If you want the "default" oracle behavior, but in reverse order, write a Sugge

Reverse direction of suggestions in suggestBox

2009-03-21 Thread matttai
Hi everyone, just wondering is this possible? I haven't been able to find a way to get this to work. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Go

SuggestBox info

2009-02-27 Thread bond
Hi, I've a question: is possible with a suggestBox + MultiWordSuggestOracle display all the results when the suggestBox get focus? So the idea is: I give focus to the suggestBox, is displayed the box with all the results and the list change when I type some character on the textBox. Now re

Re: SuggestBox on a textarea

2008-12-22 Thread Eddy
yes this could be a solution, on the other hand I am just finished exploring the svn repository for the SuggestBox class: the class we are using r3877 http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/client/ui/SuggestBox.java?r=3877 is declared final

Re: SuggestBox on a textarea

2008-12-22 Thread eggsy84
as long as the object hangs around?! Would that solve the problem? Eggsy On Dec 22, 8:40 am, Eddy wrote: > Yes, I thought about that but unfortunately SuggestBox class was > declared final ... > > On Dec 22, 4:55 am, "todd.sei...@gmail.com" > wrote: > > &g

Re: SuggestBox on a textarea

2008-12-22 Thread Eddy
Yes, I thought about that but unfortunately SuggestBox class was declared final ... On Dec 22, 4:55 am, "todd.sei...@gmail.com" wrote: > Create your own class which extends SuggestBox. Override the setText > (String text) method with you own implementation. > > On Dec 21

Re: SuggestBox on a textarea

2008-12-21 Thread todd.sei...@gmail.com
Create your own class which extends SuggestBox. Override the setText (String text) method with you own implementation. On Dec 21, 5:37 pm, Eddy wrote: > If I create a SuggestBox based on a textarea, like this: > > new SuggestBox(myoracle, new TextArea()); > > is there a way t

SuggestBox on a textarea

2008-12-21 Thread Eddy
If I create a SuggestBox based on a textarea, like this: new SuggestBox(myoracle, new TextArea()); is there a way to make sure the suggestbox doesn't do a setText on the whole textarea everytime a suggestion is selected? any help appreciated t

Re: SuggestBox list in another Panel

2008-11-12 Thread El Mentecato Mayor
If I remember well, the Incubator has an RPC/Remote SuggestBox/Oracle that can take any widget to display the list. Search this group or the incubator project website/code to find out more details. I haven't tried doing this, so I can't provide more help. Good luck, and report back i

Re: SuggestBox list in another Panel

2008-11-11 Thread zujee
t;); >    oracle.add("india"); >    oracle.add("Canada"); >    oracle.add("France"); >    oracle.add("uk"); >    oracle.add("Japan"); >    oracle.add("Russia"); > >    SuggestBox box = new SuggestBox(oracle); >  

SuggestBox list in another Panel

2008-11-11 Thread zujee
uot;France"); oracle.add("uk"); oracle.add("Japan"); oracle.add("Russia"); SuggestBox box = new SuggestBox(oracle); RootPanel.get().add(box); The list is showing like a combo box. But i want to display that list in another panel ac

SuggestBox and TextBox.wrap() combination

2008-10-27 Thread igm
I find it very restrictive not to use TextBox.wrap(...) result in combination with SuggestBox. When trying to use wrapped TextBox an exception is thrown: java.lang.IllegalStateException: Should only call onAttach when the widget is detached from the browser's document

Re: SuggestBox

2008-10-20 Thread Isaac Truett
I am not aware of a published Widget that would do this for you. On the surface, nothing you're asking for appears especially difficult to accomplish. Have you tried implementing this yourself with the GWT SuggestBox and a custom SuggestOracle? On Sun, Oct 19, 2008 at 2:42 PM, Sumved &l

SuggestBox

2008-10-19 Thread Sumved
Hi All, I wanted a SuggestBox, but with more feature like Address TextBox in Compose mail section of GMail. I will define the step: 1. Login to your GMail account. 2. Click on Compose Mail. 3. Type in something Address Box(with label "To"). You will see that whenever someone type 2

Re: SuggestBox something wrong with style

2008-10-15 Thread Ian Bambury
...so... The jsp produces HTML and doesn't work properly, but if you use the generated HTML, then it does, right? Looking at the demo (which I didn't before...) it seems that the only missing things are the right and bottom border and the corners. And the text-box is grey. That would suggest that

Re: SuggestBox something wrong with style

2008-10-15 Thread kaspar.ru
you right Ian I use I use my own server in hosted mode (http:// code.google.com/support/bin/answer.py?answer=55200) and use jsp page for keeping some json data. So when I replace jsp with html everything works fine but in case of jsp there is this error. On 15 окт, 17:26, "Ian Bambury" <[EMAIL P

Re: SuggestBox something wrong with style

2008-10-15 Thread Ian Bambury
Mmm. Well, if you hadn't changed anything, then it would look the same. And it doesn't. So you have. And it's in the css. Posting your code doesn't help pin it down unless you were setting css in code. Check that the defauld css you are using is the same as the default css that they are using, and

Re: SuggestBox something wrong with style

2008-10-15 Thread Ian Bambury
3) Nick the css from here http://examples.roughian.com/#GWT/Input/SuggestBox Ian http://examples.roughian.com 2008/10/15 walden <[EMAIL PROTECTED]> > > Yup, two things you can do: > > 1. Look at the Javadoc for the SuggestBox API and note the > various .gwt-* css rules use

Re: SuggestBox something wrong with style

2008-10-15 Thread kaspar.ru
I've not changed anything in and use defauld css style so it should be as in Showcase samples On 15 окт, 16:57, walden <[EMAIL PROTECTED]> wrote: > Yup, two things you can do: > > 1. Look at the Javadoc for the SuggestBox API and note the > various .gwt-* css rules used

Re: SuggestBox something wrong with style

2008-10-15 Thread walden
Yup, two things you can do: 1. Look at the Javadoc for the SuggestBox API and note the various .gwt-* css rules used by default to style the widget and start using them. 2. Your screenshot is of Hosted Mode. Run your application is Web Mode and use Firebug or equivalent to get down and dirty

SuggestBox something wrong with style

2008-10-15 Thread kaspar.ru
Hello, I'm trying to use a SuggestBox but it shows incorrectly, something is broken in css http://farm4.static.flickr.com/3045/2943471769_a3b8e77e48_o.jpg here is the code MultiWordSuggestOracle oracle= new MultiWordSuggestOracle(); List candidats=new Arra

Re: Problems with using Selenium with SuggestBox

2008-10-06 Thread joel
For future reference, using the keyUp command on the input box did the trick. On Sep 15, 5:39 pm, joel <[EMAIL PROTECTED]> wrote: > I useSeleniumRC for functional testing which generally works great > but I am having inconsistent results with  testing a SuggestBox.  I > simulat

Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-16 Thread jakob.korherr
nd a workaround: using DeferredCommand solves > > > the problem." does not work for me. > > > > On Sep 15, 4:33 pm, walden <[EMAIL PROTECTED]> wrote: > > > > > Jakob, > > > > > I was just playing around with SuggestBox, selecting with mo

Problems with using Selenium with SuggestBox

2008-09-15 Thread joel
I use Selenium RC for functional testing which generally works great but I am having inconsistent results with testing a SuggestBox. I simulate entering some text that should have a corresponding list of suggestions but the suggestion list does not appear. I've made sure the suggest bo

Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-15 Thread jakob.korherr
, but "I found a workaround: using DeferredCommand solves > > the problem." does not work for me. > > > On Sep 15, 4:33 pm, walden <[EMAIL PROTECTED]> wrote: > > > > Jakob, > > > > I was just playing around with SuggestBox, selecting with mouse

Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-15 Thread jakob.korherr
> wrote: > It seems like, but "I found a workaround: using DeferredCommand solves > the problem." does not work for me. > > On Sep 15, 4:33 pm, walden <[EMAIL PROTECTED]> wrote: > > > Jakob, > > > I was just playing around with SuggestBox, selecting wi

Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-15 Thread jakob.korherr
It seems like, but "I found a workaround: using DeferredCommand solves the problem." does not work for me. On Sep 15, 4:33 pm, walden <[EMAIL PROTECTED]> wrote: > Jakob, > > I was just playing around with SuggestBox, selecting with mouse vs > selecting with keyboar

Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-15 Thread walden
Jakob, I was just playing around with SuggestBox, selecting with mouse vs selecting with keyboard, and I see the problem. I think it's a bug, and it seems to be covered by issue 1634: http://code.google.com/p/google-web-toolkit/issues/detail?id=1634&q=SuggestBox "The suggest

Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-15 Thread jakob.korherr
In my case it really is. I am using the SuggestBox as a kind of quick navigation. I am hosting a little social network with many forums, clubs, picture galleries and so on and if the user wants to go e.g. to the club 'Programming', he just has to type e.g. 'program' in

Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-15 Thread walden
gt; > > > > On Sun, Sep 14, 2008 at 11:05 AM, jakob.korherr > > > <[EMAIL PROTECTED]> wrote: > > > Has anyone got an idea to solve this problem? > > > Why are you disabling the SuggestBox on loss of focus?  

Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-14 Thread jakob.korherr
! Thanks again for your answer. Jakob On Sep 14, 9:02 pm, "Ian Petersen" <[EMAIL PROTECTED]> wrote: > On Sun, Sep 14, 2008 at 12:43 PM, jakob.korherr > > <[EMAIL PROTECTED]> wrote: > > Hmm. This would maybe help, although the SuggestBox is final and not > >

Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-14 Thread Ian Petersen
On Sun, Sep 14, 2008 at 12:43 PM, jakob.korherr <[EMAIL PROTECTED]> wrote: > Hmm. This would maybe help, although the SuggestBox is final and not > really designed for extending. You can work around that by maintaining your own version of SuggestBox. If you extract SuggestBox.j

Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-14 Thread jakob.korherr
Hmm. This would maybe help, although the SuggestBox is final and not really designed for extending. A great way would be changing the order of the events, so that the click event fires before the focus event. Do you thinkt this is possible - or even better: do you know a way to do this? On Sep

Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-14 Thread Ian Petersen
On Sun, Sep 14, 2008 at 11:56 AM, jakob.korherr <[EMAIL PROTECTED]> wrote: > Any other ideas? Not really. I haven't used SuggestBox, yet, so I'm really just guessing. Could you subclass SuggestBox or some part of the SuggestBox system to work around the behaviour y

Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-14 Thread jakob.korherr
5 AM, jakob.korherr > > <[EMAIL PROTECTED]> wrote: > > Has anyone got an idea to solve this problem? > > Why are you disabling the SuggestBox on loss of focus?  Can you > disable it on change of value, instead? > > Ian --~--~-~--~~~---~--~~

Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-14 Thread Ian Petersen
On Sun, Sep 14, 2008 at 11:05 AM, jakob.korherr <[EMAIL PROTECTED]> wrote: > Has anyone got an idea to solve this problem? Why are you disabling the SuggestBox on loss of focus? Can you disable it on change of value, instead? Ian --~--~-~--~~~---~--~

Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-14 Thread jakob.korherr
I am using a SuggestBox which I enable or disable with the help of a FocusListener on the TextBox and a flag in the SuggestOracle. This works very fine when I select a Suggestion via keyboard. However if I select a Suggestion via mouse click the onLostFocus method closes the SuggestionPopup

<    1   2   3   4