Re: scrollable panel without scrollbars - scroll controlled with buttons?

2009-09-15 Thread Chad

Eric,

Not that I've ever done this, but something like this should work. Put
one panel inside of another panel. The outer panel would likely be an
AbsolutePanel. Obviously, the inner panel will be wider than the outer
panel. On your button clicks, adjust the horizontal position of the
inner panel (it can be negative). You'll probably want to keep track
of when the inner panel is all the way on either end and maybe disable
the buttons. It seems simple enough.

HTH,
Chad

On Sep 15, 4:11 pm, badgerduke  wrote:
> Hello:
>
> I have a panel whose contents I want to scroll horizontally, but I
> don't want scroll bars.  I want the scrolling to be controlled by
> buttons on either end of the panel.  I haven't been able to find a
> solution.  Does anybody know how this can be done?
>
> Thanks
> Eric
--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Regarding GWT

2009-09-15 Thread Jim Douglas

http://code.google.com/webtoolkit/doc/1.6/FAQ_GettingStarted.html
http://code.google.com/webtoolkit/gettingstarted.html
http://code.google.com/webtoolkit/tutorials/1.6/index.html

On Sep 15, 9:40 pm, anu  wrote:
> HI iam new to GWT and i started working on it ,i wanna develop some
> sample apps on gwt so please provide me with useful guides and books
> for working with GWT sample applications...
--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to get values in gwt externally

2009-09-15 Thread Saurabh Naik
Thanks Ian its working.. yogesh how about if we take value at runtime ...


On Tue, Sep 15, 2009 at 4:49 PM, Ian Bambury  wrote:

> You need to wrap it, e.g.
> TextBox t = TextBox.wrap(RootPanel.get("name").getElement());
>
> and then use that.
>
> Ian
>
> http://examples.roughian.com
>
>
> 2009/9/15 Saurabh Naik 
>
> Hello
>>
>>   suppose there is one textbox in my html form. and I want to take the
>> value which is entered in my gwt i.e in my onModuleLoad() function. how to
>> take value ?
>>
>> e.g there is textbox
>>
>> 
>>
>> String name = (String) rootpanel.get("name").getValue... but there is no
>> get value method...
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Regarding GWT

2009-09-15 Thread anu

HI iam new to GWT and i started working on it ,i wanna develop some
sample apps on gwt so please provide me with useful guides and books
for working with GWT sample applications...

--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Creating a wizard - Series of steps with GWT

2009-09-15 Thread karan sardana
Good idea, but I need to create a kind of framework, so that, it could be
used independently of the number/complexity of screens/panels.

 Screens should be able to gain access to all the data without having to
bother about all the other screens.


On Wed, Sep 16, 2009 at 2:07 PM, Zak  wrote:

>
> You could make one panel that contained all the "screens" as hidden
> panels, and just show the correct one based on the button the user
> pushed (next/prev).
>
> On Sep 15, 11:31 pm, Karan Sardana  wrote:
> > Let me add something to this -
> >
> > We would need the screens to interact with each other i.e. pass on
> > data back & forth; so, essentially, we could say, each of the screens
> > would have the complete data access.
> >
> > On Sep 16, 12:53 pm, karan sardana  wrote:
> >
> > > how can I do that?
> >
> > > On Wed, Sep 16, 2009 at 12:45 PM, Isaac Truett 
> wrote:
> >
> > > > Yes.
> >
> > > > On Tue, Sep 15, 2009 at 10:31 PM, Karan Sardana <
> karansard...@gmail.com>
> > > > wrote:
> >
> > > > > Scenario is -  The user needs to enter and submit a lot of
> > > > > information, & the mechanism to collect such information is often
> > > > > organized into many screens with next/previous/finish buttons.
> >
> > > > > Is there any way in which I can create this with GWT?
> >
> > > > > Thanks,
> > > > > Karan
> >
>

--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Creating a wizard - Series of steps with GWT

2009-09-15 Thread Zak

You could make one panel that contained all the "screens" as hidden
panels, and just show the correct one based on the button the user
pushed (next/prev).

On Sep 15, 11:31 pm, Karan Sardana  wrote:
> Let me add something to this -
>
> We would need the screens to interact with each other i.e. pass on
> data back & forth; so, essentially, we could say, each of the screens
> would have the complete data access.
>
> On Sep 16, 12:53 pm, karan sardana  wrote:
>
> > how can I do that?
>
> > On Wed, Sep 16, 2009 at 12:45 PM, Isaac Truett  wrote:
>
> > > Yes.
>
> > > On Tue, Sep 15, 2009 at 10:31 PM, Karan Sardana 
> > > wrote:
>
> > > > Scenario is -  The user needs to enter and submit a lot of
> > > > information, & the mechanism to collect such information is often
> > > > organized into many screens with next/previous/finish buttons.
>
> > > > Is there any way in which I can create this with GWT?
>
> > > > Thanks,
> > > > Karan
--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Creating a wizard - Series of steps with GWT

2009-09-15 Thread Karan Sardana

Let me add something to this -

We would need the screens to interact with each other i.e. pass on
data back & forth; so, essentially, we could say, each of the screens
would have the complete data access.

On Sep 16, 12:53 pm, karan sardana  wrote:
> how can I do that?
>
> On Wed, Sep 16, 2009 at 12:45 PM, Isaac Truett  wrote:
>
> > Yes.
>
> > On Tue, Sep 15, 2009 at 10:31 PM, Karan Sardana 
> > wrote:
>
> > > Scenario is -  The user needs to enter and submit a lot of
> > > information, & the mechanism to collect such information is often
> > > organized into many screens with next/previous/finish buttons.
>
> > > Is there any way in which I can create this with GWT?
>
> > > Thanks,
> > > Karan
--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Creating a wizard - Series of steps with GWT

2009-09-15 Thread karan sardana
how can I do that?

On Wed, Sep 16, 2009 at 12:45 PM, Isaac Truett  wrote:

>
> Yes.
>
>
> On Tue, Sep 15, 2009 at 10:31 PM, Karan Sardana 
> wrote:
> >
> > Scenario is -  The user needs to enter and submit a lot of
> > information, & the mechanism to collect such information is often
> > organized into many screens with next/previous/finish buttons.
> >
> > Is there any way in which I can create this with GWT?
> >
> > Thanks,
> > Karan
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Creating a wizard - Series of steps with GWT

2009-09-15 Thread Isaac Truett

Yes.


On Tue, Sep 15, 2009 at 10:31 PM, Karan Sardana  wrote:
>
> Scenario is -  The user needs to enter and submit a lot of
> information, & the mechanism to collect such information is often
> organized into many screens with next/previous/finish buttons.
>
> Is there any way in which I can create this with GWT?
>
> Thanks,
> Karan
> >
>

--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Creating a wizard - Series of steps with GWT

2009-09-15 Thread Karan Sardana

Scenario is -  The user needs to enter and submit a lot of
information, & the mechanism to collect such information is often
organized into many screens with next/previous/finish buttons.

Is there any way in which I can create this with GWT?

Thanks,
Karan
--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Many TextAreas with Long Text

2009-09-15 Thread Sripathi Krishnan
Need more details..

RequestException is only thrown if you are making a RPC call of some kind.
Just invoking the getText() method on text area is not going to throw a
RequestException



--Sri


2009/9/15 Raphael Milani 

>
> Hello
> Guys,
>
> I have page with 3 TextAreas, strange behavior happens when this
> textareas has 300 characters or more.
> When I retrieve the values of  3 textareas I received  this message:
>
> Ocorreu um erro de comunicação com o servidor.
> com.google.gwt.http.client.RequestException: O sistema não pode
> localizar o recurso especificado.
>
> Translate: com.google.gwt.http.client.RequestException:  The system
> can not locate the resource specified.
>
> My code:
>
> String tratativa = taTratativa.getText(); // TextArea
> String resposta = taResposta.getText(); // TextArea
> String planoAcao = taPlanoAcao.getText(); // TextArea
>
> Somebody help me?
>
>
>
>
> >
>

--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: inherit modul for hibernate

2009-09-15 Thread Sripathi Krishnan
In your RPC Servlet, extend the method doUnexpectedFailure(Throwable t), and
log the exception. If you have your debugger setup, but a breakpoint in that
method to see what the exception is.

--Sri


2009/9/15 Daniel Pomrehn 

> Hi!
> Thank you for your answer Diego!
> You solved my problem, I moved the class to the server side and there's no
> more error.
>
> But wenn I run the application through Eclipse I get Message "The call
> failed on the server; see server log for details" in the Console.
> But when I look in the server log I can't find any error. Any ideas?
>
>
> Yes, I'm quite new to GWT. 2 weeks ago I started with little applications
> and by now I'd like to integrate a database. I'll again at the giled
> Example, too.
>
> Best regards
> Daniel
>
>
>
> 2009/9/15 Diego Lovison 
>
>
>> donwload the example in gilead site and follow.. ;D
>>
>> I believe that you are calling the session factory into the package
>> "client" or other modelu that you define in the gwt.xml
>>
>> you is new in gwt?
>>
>> On 15 set, 13:59, Danny  wrote:
>> > Hello,
>> >
>> > I try to integrate hibernate into a GWT 1.6 project. I've done it with
>> > the help of:
>> http://code.google.com/intl/de-DE/webtoolkit/articles/using_gwt_with_...
>> > and used gilead.
>> >
>> > But when I run my application it says in the log:
>> > No source code is available for type org.hibernate.SessionFactory; did
>> > you forget to inherit a required module?
>> > No source code is available for type org.hibernate.cfg.Configuration;
>> > did you forget to inherit a required module?
>> > No source code is available for type
>> > java.lang.Exception.InInitializeError; did you forget to inherit a
>> > required module?
>> >
>> > But I've imported the mentioned classes and in my app.gwt.xml I've
>> > added: 
>> >
>> > Has anyone ideas what to check why it does not work?
>> >
>> > Thanks in advance
>> > Daniel
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Global onError handler

2009-09-15 Thread Sripathi Krishnan
Take a look at the method GWT.setUncaughtExceptionHandler(). It does what
you want..
--Sri


2009/9/15 Aldo Neto 

> Hi all,
>I need to get a global error handler for JS errors. According to the
> documentation, if I define a window.onError I should get what I need, so I
> did the following:
>
>
>   public void onModuleLoad()
>   {
> onError();
> getError();
>   }
>
>   public static native void onError()
>   /*-{
> $wnd.onerror=function()
> {
>   alert("error");
> }
>   }-*/;
>
>   public native void getError()
>   /*-{
> var a = null;
> a.b;
>   }-*/;
>
>
>
> As you can see I should have the alert to be shown, but it is not happening. 
> Does anybody knows what I'm doing wrong? I also tried to place the onError 
> just before the error itself (within the same function) and it still doesn't 
> work.
>
>
> Thanks in advance
>
>
> >
>

--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Add GWT to existing servlet application

2009-09-15 Thread Ben

If you have a lot of existing servlets, actually you can use
RequestBuilder to make calls to your servlets and just write your
front end in GWT.

-Ben

On Sep 15, 10:54 am, Greg  wrote:
> Hi all,
> I am extremely new to GWT, 1 day now, so please bare with me. I have
> an existing web application with many servlets and a view that is
> built on a single index.jsp page. The current app is completely
> stateless on the client side and I use a custom build xslt/rest
> framework to handle all the updates to the gui. I would like to move
> away from this approach as the view is very difficult to maintain. It
> seems that GWT should be easy to add to this app and gradually migrate
> different blocks of the gui over to ext components. So far I have
> added the gwt-server, gwt-dev-linux, and gwtext jar files to my
> deployable wars lib. I have added a compile gwt target to my ant build
> script which successfully compiles. I have an entry point which
> attemps to add a tab panel to my RootPanel. In my build-war task I
> copy all the artifacts generated from the gwt compile to my web root
> and I have added the javascript noscript call to my index.jsp. Right
> now I am at a point where it is loading a cache.html page and I am
> getting an error that "a" is null. I believe this has to do with my
> web.xml being misconfigured. Currently it only has
>
>  
>         greetServlet
>         ..gwt.server.GreetingServiceImpl class>
>     
>
>     
>         greetServlet
>         /gwtmain/greet
>     
>
> I would like to use the rpc. I am not asking for an entire solution
> just a few pointers to get myself rolling, unfortunately I am on a
> very very very tight deadline and if I can't get some results by
> tomorrow I will have to drop this effort for a while. Thanks.
--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Use GWT in my current project

2009-09-15 Thread Ben

Could you give more information? For example, what does your current
java project look like? What web framework you are using now?

-Ben

On Sep 15, 4:56 pm, wind  wrote:
> Hi There,
>
> I have a java project developed in Eclipse, i would like try something
> from gwt, like the calendar etc. Is there a easy way for me to
> integrate them together?
>
> Thanks a lot,
>
> Lynn
--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



iFrame + JSNI problem

2009-09-15 Thread Ben

I have a problem related to iFrame and JSNI problem. Basically the
scenario is like this:

I have an application written in GWT and in this application I have an
iFrame and the page inside iFrame is in the same domain as my GWT
application. When the iFrame content finishes loading, I need to
append a Panel (which is written in GWT) into the iFrame page. So I
write some JSNI codes to basically listen to iFrame onload event, once
this event is triggered, pass the Panel from Java to JavaScript and
append it to the iFrame.  The JSNI method to pass the Panel object
into JavaScript and append it is like this:

public static native void appendContent(Element panel) /*-{
   $ = $wnd.$; // convenient method to call jQuery library

   $('#iframID').contents().find('body').append(panel);
}-*/;

In Firefox, this code works fine. In IE7/8, the Panel written in GWT
can be appended into iFrame page, but all event handlers in the Panel
do not work. In WebKit-based browsers such as Chrome and Safari, the
Panel can not even be appended into iFrame page. I know the problem of
Chrome and Safari is probably because different browsers have
different ways to handle iFrame. But why all event handlers do not
work in IE? And is there a way to make it work in all browsers?

Thanks!
--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: EasyMock and MVP architecture testing

2009-09-15 Thread Ben

Thanks, Thomas. I will try it out and it seems that writing unit tests
costs a lot of time.

-Ben

On Sep 10, 5:28 am, Thomas Broyer  wrote:
> On 10 sep, 00:30, Ben  wrote:
>
> > Hi, I am using MVP architecture for my application, but I am trying to
> > use EasyMock to provide mock objects to test all my presenters. I have
> > a question about testing event handlers from GWT such as ClickHandler.
> > Does anyone try to use EasyMock to test click event? Or I should write
> > my own mock event and mock handler like it is mentioned in GWT blog.
>
> Here's an adapted excerpt from my code:
>
> MyPresenter.Display view = createMock(MyPresenter.Display.class);
> HasClickHandlers button = createMock(HasClickHandlers.class);
> expect(view.getSomeButton()).andStubReturn(button);
>
> Capture clickHandler = new Capture();
> HandlerRegistration clickRegistration = createNiceMock
> (HandlerRegistration.class);
> expect(button.addClickHandler(capture(clickHandler))).andReturn
> (clickRegistration);
>
> replay(view, button, clickRegistration);
>
> new MyPresenter(view);
>
> clickHandler.getValue().onClick(null);
>
> verify(view, button, clickRegistration);
>
> Here, I'm expecting a single ClickHandler to be registered on the
> view's getSomeButton() (afaict, from memory, the sample "hand-written
> mock" from Ray's preso behaves the same), and one that doesn't make
> use of the ClickEvent (if that's not your case, you can use
> org.easymock.classextension.createMock(ClickEvent.class) and some
> expect(clickEvent.getSource()).andStubReturn(button).
--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Help: Adding Login to an existing app.

2009-09-15 Thread Thomas Broyer



On 15 sep, 15:10, Greg  wrote:
> Well, I need some help.
> I've found lots of great posts on how to implement login.  (here's one
> of the 
> best:http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecur...
> )
> The problem I have is that none of them seem to apply to an existing
> app... they all seem to imply creating a new and seperate application
> just for login.

Er, that's not my impression...

> So I've got all the info I need to create  a Login page which shows a
> nice "you are logged in" dialog as a separate application
>
> The problem is that I want to login to a GWT application, so I'm
> looking on how to ADD a login page inside my existing GWT web
> application.
>
> Here are the problems I'm running into:
> 1. If the login page is just a sub-panel of my application, then the
> entire javascript is sent to the client, including presentation rules,
> regardless of if the user is logged in or not.

Yes, and?
If the user must log in to use the app, it'll have to download it
anyway.
...and GWT 2.0's runAsync would actually make it quite easy to only
send the "login screen" code first and have the rest of the app
retrieved when successfully logged in.

> 2. If the login page is in a full separate project, then I've got 2
> problems...
>       a. Transferring info (client session ID) between the two (I can
> read the cookie here, but I'm wondering if this works if the security
> of the client refuses cookies)

Use the query-string when redirecting to your app?
--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: using suggestBox

2009-09-15 Thread Thomas Broyer


On 15 sep, 18:05, jucimarjr  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 the "auto-select" behavior which is "on"
by default
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/SuggestBox.html#setAutoSelectEnabled(boolean)

Then, add a ChangeHandler to the text box (getTextBox
().addChangeHandler()) where you'll ask the SuggestOracle whether the
text in the box is a valid suggestion (taken in the list) and if not
clear the text box (or reset to the previous value that you'd have
cached in "on focus", for example):
public void onChange(ChangeEvent event) {
   suggestBox.getSuggestOracle().requestSuggestions(
  new SuggestOracle.Request(suggestBox.getValue(), 1),
  new SuggestOracle.Callback() {
 public void onSuggestionsReady(SuggestOracle.Request request,
SuggestOracle.Response response) {
if (response.getSuggestions() == null ||
response.getSuggestions().size() == 0) {
   suggestBox.setValue("", false);
}
 }
  }
   );
}

or did I misunderstand your need?
--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem with onKeyPress: Firefox treats cursor down as '(' character?

2009-09-15 Thread Thomas Broyer



On 15 sep, 22:58, Benjii  wrote:
> Does anyone know whats going on here?
>
> I have a KeyPressHandler and KeyDownHandler (see below) and I setup a
> simple VerticalPanel to view debug output. If I press the down arrow
> in IE / Safari / Chrome / Hosted Mode, I see:
>
> K. DOWN: 40
>
> If I press down arrow in FireFox, I see:
>
> K.Down: 40
> K.PRESS: 40 : (
>
> If I do the open bracket character (shift + 9) in Safari / Chrome /
> Hosted Mode, I see:
>
> K.DOWN: 16
> K.DOWN: 57
> K.PRESS: 40 : (
>
> and in Firefox:
> K.DOWN: 16
> K.DOWN: 57
> K.PRESS: 40 : (
>
> Why does Firefox give me a bracket character for the down cursor

Because of a bug in Firefox that fires a keypress event for such a key
(well, not really a bug if you consider there's no spec for those
events, but I believe that's how it should work, just as in IE and
Safari, just as the textInput event from DOM 3 Events)

> And why is the keycode for down cursor the same as bracket across all
> browsers?

Because you're actually not supposed to use the "keyCode" in a
"keypress" event (just because you pressed *two* keys for the one
character you wanted).

See http://code.google.com/p/google-web-toolkit/issues/detail?id=3753

It is acknowledged that GWT keyboard events are buggy ("not ideal" at
best) and that they need some work. Just that no-one actually spent
time on them for now (hmm, maybe I'll try making a patch if I find
some time...)
--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Use GWT in my current project

2009-09-15 Thread wind

Hi There,

I have a java project developed in Eclipse, i would like try something
from gwt, like the calendar etc. Is there a easy way for me to
integrate them together?

Thanks a lot,

Lynn


--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem connecting to a Postgresql Database under Google GWT when APP Engine enabled

2009-09-15 Thread Isaac Truett

Basically, no. You can't do what you want to do. You can't connect to
your database from App Engine. That has nothing to do with GWT.



On Thu, Sep 10, 2009 at 3:21 AM, Romeo Sanchez  wrote:
> My problem is exactly the same as the one described at:
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/244850e9cde1c733/da5c6bfeb61c8109?show_docid=da5c6bfeb61c8109
>
> Basically, I get the following exception when trying to establish a
> connection to a Postgresql Database from a GWT project using app engine.
>
> org.postgresql.util.PSQLException: Your security policy has prevented the
> connection from being attempted.  You probably need to grant the connect
> java.net.SocketPermission to the database server host and port that you wish
> to connect to.
>     at org.postgresql.Driver.connect(Driver.java:282)
>     at java.sql.DriverManager.getConnection(DriverManager.java:582)
>     at java.sql.DriverManager.getConnection(DriverManager.java:154)
> 
> ...
> Caused by: java.security.AccessControlException: access denied
> (java.net.SocketPermission myhost.com resolve)
>
> Users in the google group thread suggest to uncheck the App Engine feature
> of the project. It seems this simple action fixes the problem.
> Unfortunately, my project requires the App Engine feature. I have verified
> the configuration files of the database server, and everything seems to be
> fine. I made a simpler project (which does not use GWT) to test the
> connection to the DB server and to query the database, and it works well.
> However, the same code does not work when it is invoked inside the server
> side of my GWT/APP engine application.
>
> Is this a known bug of GWT? is App Engine conflicting with the DB Driver? I
> am using the latest DB driver for Postgresql.
>
> If I split my project and I create a GWT module that connects to the DB
> server  (and does not use App Engine), and then inherit this module into the
> main project (the one using App Engine), would that solve my problem? If so,
> is there any other solution instead of doing this??
>
> Thanks, I really appreciate any help from you guys. I am new on GWT/App
> Engine, and I really did not expect that connecting to Postgresql databases
> would be a problem.
>
> RSN
>
>
> >
>

--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: picklist avaliabe in GWT?

2009-09-15 Thread Isaac Truett

Parag,

PagingScrollTable in the GWT incubator project should get you started:

http://code.google.com/p/google-web-toolkit-incubator/

- Isaac

On Thu, Sep 3, 2009 at 10:34 PM, Parag  wrote:
>
> Hi All,
>
> I need ability to pick from a list ( paging list), does anyone know if
> GWT or some of its extension provide that functionality? my
> requirements are
>
> 1) user clicks on an image
> 2) opens up a panel with search fields, putting those fields in and
> clckign browse
> 3) opens up a grid with first 100 records, user does a next page to
> retrieve next 100 records..
> 4) once a user selects a record thepanel closes and value is popuated
> back to the main panel.
>
> I have not seen any standard class do that so let me know if anyone
> has seen or built anything like that.
>
> Thanks,
> Parag
>
> >
>

--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Offline GWT Applications

2009-09-15 Thread Paul Robinson
I just got bitten by this when trying to put my program onto a laptop for a
demo.

I found that by disabling my wireless card (or turning off the wireless
access point), I couldn't connect to my server. The server and database were
all on localhost.

The problem seemed to be that I was using firefox, and its "offline" mode
had been triggered - even though I didn't turn it on. Just unticking offline
mode meant the app would work again.

HTH
Paul

--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Any issues for cloud server deployment of gwt apps ?

2009-09-15 Thread Freller


We use a Apache2 + Tomcat solution, it is very stable. You just have
to configure your apache to
use sticky sessions to ensure that once the session is started in one
server, it will continue there.

Regards,
Freller

--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



scrollable panel without scrollbars - scroll controlled with buttons?

2009-09-15 Thread badgerduke

Hello:

I have a panel whose contents I want to scroll horizontally, but I
don't want scroll bars.  I want the scrolling to be controlled by
buttons on either end of the panel.  I haven't been able to find a
solution.  Does anybody know how this can be done?

Thanks
Eric
--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Problem with onKeyPress: Firefox treats cursor down as '(' character?

2009-09-15 Thread Benjii

Does anyone know whats going on here?

I have a KeyPressHandler and KeyDownHandler (see below) and I setup a
simple VerticalPanel to view debug output. If I press the down arrow
in IE / Safari / Chrome / Hosted Mode, I see:

K. DOWN: 40

If I press down arrow in FireFox, I see:

K.Down: 40
K.PRESS: 40 : (

If I do the open bracket character (shift + 9) in Safari / Chrome /
Hosted Mode, I see:

K.DOWN: 16
K.DOWN: 57
K.PRESS: 40 : (

and in Firefox:
K.DOWN: 16
K.DOWN: 57
K.PRESS: 40 : (

Why does Firefox give me a bracket character for the down cursor
And why is the keycode for down cursor the same as bracket across all
browsers?

CODE:

@Override
public void onKeyPress(KeyPressEvent event) {
AppletResources.getDebugPanel().add(new Label("K.PRESS: " +
event.getNativeEvent().getKeyCode() + " : " + event.getCharCode()));
}

@Override
public void onKeyDown(KeyDownEvent event) {
AppletResources.getDebugPanel().add(new Label("K.DOWN: " +
event.getNativeEvent().getKeyCode()));
}
--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Add Rich Text area callback after element has loaded and is editable

2009-09-15 Thread jlabanca

LGTM

http://gwt-code-reviews.appspot.com/64811

--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Installed GWT Plugin into Eclipse 3.5 Galileo and cannot find wizard

2009-09-15 Thread Bob Rozelle

I went back and followed the successful steps using Eclipse Galileo
JEE and it also worked.  I know at the time that it wasn't working
that I was working with Galileo.  I'm not sure, but I think I created
a conflict with the workspace by opening it in Galileo before I had
installed subclipse.  If I find time, I'll go back and try to recreate
my steps.  Sorry if this lead you down a rabbit hole.

On Sep 15, 11:40 am, Jason Parekh  wrote:
> Thanks Bob.
> Very strange that GPE was indeed installed but not exposing anything.
>
> One thing thats strange is the buildid for Eclipse in your logs is:
> eclipse.buildId=M20070212-1330
> .  This seems to be 3.2.2, could your OS-packaged Eclipse been launching
> instead of the downloaded Galileo?  Or perhaps that was from before you
> upgraded to Galileo?
>
> jason
>
> On Tue, Sep 15, 2009 at 7:58 AM, Bob Rozelle wrote:
>
>
>
> > I'm working off of memory from 2 days ago.
>
> > I had an existing project setup that was hooked to a main SVN branch
> > as an editor.
> > I installed Eclipse JavaEE and opened the workspace.  I didn't bother
> > to check the logs, but I bet there were errors with the project
> > wanting to hook up with subclipse and it not being there.  I then
> > installed subclipse, thought I had it working and then installed GPE.
> > I could not find anything Google in any of the perspectives (I
> > switched around, quite a bit). I did find Google stuff in the plugin
> > directory and google was present in the in Help->About->Installation
> > Details.  I did check the logs and found an error in relation to
> > eclipse after I did the original post.  I still had one of the log
> > files, I'll put the error at the bottom of my post.  Anyway, a little
> > searching on the internet and I found people with complaints about
> > Subclipse and Eclipse Java EE.  I decided to reinstall from scratch
> > with Eclipse Java.  This time I decided to not open my workspace but
> > instead open a dummy workspace until after I had installed Eclipse,
> > Subclipse and GPE.  I then opened an original version of my workspace
> > that I had backed up.  So in retrospect, it may not have anything to
> > do with Eclipse Java EE or it might.
>
> > !ENTRY org.eclipse.search 2 0 2009-08-22 17:43:09.314
> > !MESSAGE Problems encountered during text search.
> > !SUBENTRY 1 org.eclipse.search 2 2 2009-08-22 17:43:09.314
> > !MESSAGE File 'GWTCommerce/war/gwtCommerce/GWTCommerce.css' has been
> > skipped, problem while reading: ('Resource is out of sync with the
> > file system: /GWTCommerce/war/gwtCommerce/GWTCommerce.css.').
> > !STACK 1
> > org.eclipse.core.internal.resources.ResourceException: Resource is out
> > of sync with the file system: /GWTCommerce/war/gwtCommerce/
> > GWTCommerce.css.
> >        at
> > org.eclipse.core.internal.localstore.FileSystemResourceManager.read
> > (FileSystemResourceManager.java:606)
> >        at org.eclipse.core.internal.resources.File.getContents(File.java:
> > 290)
> >        at org.eclipse.core.internal.resources.File.getContents(File.java:
> > 279)
> >        at org.eclipse.search.internal.core.text.FileCharSequenceProvider
> > $FileCharSequence.getInputStream(FileCharSequenceProvider.java:282)
> >        at org.eclipse.search.internal.core.text.FileCharSequenceProvider
> > $FileCharSequence.initializeReader(FileCharSequenceProvider.java:276)
> >        at org.eclipse.search.internal.core.text.FileCharSequenceProvider
> > $FileCharSequence.reset(FileCharSequenceProvider.java:268)
> >        at
>
> > org.eclipse.search.internal.core.text.FileCharSequenceProvider.newCharSequence
> > (FileCharSequenceProvider.java:40)
> >        at
> > org.eclipse.search.internal.core.text.TextSearchVisitor.processFile
> > (TextSearchVisitor.java:254)
> >        at
> > org.eclipse.search.internal.core.text.TextSearchVisitor.processFiles
> > (TextSearchVisitor.java:189)
> >        at org.eclipse.search.internal.core.text.TextSearchVisitor.search
> > (TextSearchVisitor.java:170)
> >        at org.eclipse.search.internal.core.text.TextSearchVisitor.search
> > (TextSearchVisitor.java:182)
> >        at org.eclipse.search.core.text.TextSearchEngine$1.search
> > (TextSearchEngine.java:54)
> >        at org.eclipse.search.internal.ui.text.FileSearchQuery.run
> > (FileSearchQuery.java:122)
> >        at org.eclipse.search2.internal.ui.InternalSearchUI
> > $InternalSearchJob.run(InternalSearchUI.java:93)
> >        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
> > !SUBENTRY 2 org.eclipse.core.resources 4 274 2009-08-22 17:43:09.316
> > !MESSAGE Resource is out of sync with the file system: /GWTCommerce/
> > war/gwtCommerce/GWTCommerce.css.
> > !SESSION 2009-08-23 06:13:25.107
> > ---
> > eclipse.buildId=M20070212-1330
> > java.version=1.6.0_14
> > java.vendor=Sun Microsystems Inc.
> > BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
> > Command-line arguments:  -os linux -ws gtk -arch x86_64
>
> > !EN

Re: Add Rich Text area callback after element has loaded and is editable

2009-09-15 Thread galgwt . reviews

Added a test and fixed problems from previous patch.


http://gwt-code-reviews.appspot.com/64811/diff/17/1010
File user/src/com/google/gwt/user/client/ui/RichTextArea.java (right):

http://gwt-code-reviews.appspot.com/64811/diff/17/1010#newcode40
Line 40: * CSS Style Rules 
.gwt-RichTextArea { }
On 2009/09/15 19:48:48, jlabanca wrote:
> Can you change this to a dl list and remove the class="css" so it
doesn't get
> formatted again?

Done.

http://gwt-code-reviews.appspot.com/64811/diff/17/1009
File user/src/com/google/gwt/user/client/ui/impl/RichTextAreaImpl.java
(right):

http://gwt-code-reviews.appspot.com/64811/diff/17/1009#newcode92
Line 92: richTextWidget.fireEvent(new InitializeEvent() {
On 2009/09/15 19:48:48, jlabanca wrote:
> Does this compile?  InitializeEvent constructor is protected.  It
should be
> InitializeEvent.fire(richTextWidget) instead.

Obviously it didn't.  I was relying to heavily on the plugin.

Fixed.

http://gwt-code-reviews.appspot.com/64811

--~--~-~--~~~---~--~~
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 this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Setting javascript arguments implemented in java

2009-09-15 Thread Steve Sarver


  public static Color red() {

Color red = Color.create();

red.setStroke("red");

red.setFill("pink");

red.setStrokeSize(2);

return red;

  }

Thanks -

On Sep 15, 8:27 am, Steve Sarver  wrote:
> I have a Java application that uses the ColumnChart visualization with
> some simple options. Here is an example of the code to create the
> chart:
>
> ColumnChart.Options options = ColumnChart.Options.create();
> options.setBackgroundColor("rgb(246,251,251)");
> DataTable data = DataTable.create();
> // add some test data...
> data.addColumn(DataTable.ColumnType.STRING, "Column");
> data.addRows(2);
> data.setValue(0, 0, "row 1, column 1");
> data.setValue(1, 0, "row 2, column 1");
> ColumnChart view = new ColumnChart(model, options);
>
> This works well, but I would like to use more complex options to
> create the chart. Many samples using javascript look like this:
>
> http://www.google.com/jsapi";> script>
>