Re: Doing a mailto: with a gwt button

2009-05-31 Thread Dean S. Jones

depending on the platform, this works, but always pops up a blank
browser window,... I was trying to avoid that

On May 31, 11:40 pm, Ian Bambury  wrote:
>         final Button button = new Button("button", new ClickHandler()
>         {
>             @Override
>             public void onClick(final ClickEvent event)
>             {
>                 Window.open("mailto:x...@x.x";, "_blank", "");
>             }
>         });
>
> Ian
>
> http://examples.roughian.com
>
> 2009/6/1 Dean S. Jones 
>
>
>
> > this is a little hackey, and doesnt work in hosted mode, but...
>
> > public void onModuleLoad() {
> >                final Button sendButton = new Button("Send");
>
> >                RootPanel.get("sendButtonContainer").add(sendButton);
>
> >                sendButton.addClickHandler(new ClickHandler()
> >                {
> >                        public void onClick(ClickEvent event) {
> >                                mailto("whate...@gmail.com","hello");
> >                        }
> >                });
> >        }
>
> >        public void mailto(String address, String subject)
> >        {
> >                this.mailtoImpl(address, URL.encode(subject));
> >        }
>
> >        private native void mailtoImpl(String address, String subject) /*-{
> >                $wnd.location = "mailto:"; + address + "?subject=" +
> > subject;
> >        }-*/;
>
> > On May 31, 10:13 pm, "Donald.W.Long"
> >  wrote:
> > > Hi all,
>
> > > Most likely this is a stupid question but what I need to do is have a
> > > button that the user hits and then it does the normal mailto: href.
>
> > > What is the code to accompilish this?
>
> > > Thanks and sorry for such a simple question.
>
> > > Donald W. Long
--~--~-~--~~~---~--~~
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: Doing a mailto: with a gwt button

2009-05-31 Thread Ian Bambury
final Button button = new Button("button", new ClickHandler()
{
@Override
public void onClick(final ClickEvent event)
{
Window.open("mailto:x...@x.x";, "_blank", "");
}
});

Ian

http://examples.roughian.com


2009/6/1 Dean S. Jones 

>
> this is a little hackey, and doesnt work in hosted mode, but...
>
> public void onModuleLoad() {
>final Button sendButton = new Button("Send");
>
>RootPanel.get("sendButtonContainer").add(sendButton);
>
>sendButton.addClickHandler(new ClickHandler()
>{
>public void onClick(ClickEvent event) {
>mailto("whate...@gmail.com","hello");
>}
>});
>}
>
>public void mailto(String address, String subject)
>{
>this.mailtoImpl(address, URL.encode(subject));
>}
>
>private native void mailtoImpl(String address, String subject) /*-{
>$wnd.location = "mailto:"; + address + "?subject=" +
> subject;
>}-*/;
>
> On May 31, 10:13 pm, "Donald.W.Long"
>  wrote:
> > Hi all,
> >
> > Most likely this is a stupid question but what I need to do is have a
> > button that the user hits and then it does the normal mailto: href.
> >
> > What is the code to accompilish this?
> >
> > Thanks and sorry for such a simple question.
> >
> > Donald W. Long
> >
>

--~--~-~--~~~---~--~~
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: Doing a mailto: with a gwt button

2009-05-31 Thread Dean S. Jones

this is a little hackey, and doesnt work in hosted mode, but...

public void onModuleLoad() {
final Button sendButton = new Button("Send");

RootPanel.get("sendButtonContainer").add(sendButton);

sendButton.addClickHandler(new ClickHandler()
{
public void onClick(ClickEvent event) {
mailto("whate...@gmail.com","hello");
}
});
}

public void mailto(String address, String subject)
{
this.mailtoImpl(address, URL.encode(subject));
}

private native void mailtoImpl(String address, String subject) /*-{
$wnd.location = "mailto:"; + address + "?subject=" + subject;
}-*/;

On May 31, 10:13 pm, "Donald.W.Long"
 wrote:
> Hi all,
>
> Most likely this is a stupid question but what I need to do is have a
> button that the user hits and then it does the normal mailto: href.
>
> What is the code to accompilish this?
>
> Thanks and sorry for such a simple question.
>
> Donald W. Long
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Doing a mailto: with a gwt button

2009-05-31 Thread Donald.W.Long

Hi all,

Most likely this is a stupid question but what I need to do is have a
button that the user hits and then it does the normal mailto: href.

What is the code to accompilish this?

Thanks and sorry for such a simple question.

Donald W. Long
--~--~-~--~~~---~--~~
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: Button.click() not working

2009-05-31 Thread Ian Bambury
Because you haven't added it to the DOM?
Maybe GWT should throw an error if it's not attached, but it doesn't.

Ian

http://examples.roughian.com


2009/6/1 Josué 

>
> Hello All,
>
> The following code is not throwing a RuntimeException. Someone here
> know why?
>
> button = new Button("button");
>
> button.addClickHandler(new ClickHandler(){
>@Override
>public void onClick(ClickEvent event) {
>throw new RuntimeException(".onClick() not implemented");
>}});
>
> button.click();
> ...
>
> My version of GWT is 1.6.4. The one that came with google eclipse
> plugin for Eclipse.
>
> Thanks for any help.
> >
>

--~--~-~--~~~---~--~~
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: SuggestBox:How to show suggestion list when clicking?

2009-05-31 Thread Alex Luya

Yes,I have,but only got some usefulness info:
Roshan a écrit :
> Hi Alex,
> Check the source code of the suggest box example that comes in the
> Showcase application included in the samples bundled with the gwt
> distribution.
>
> Best regards,
> Roshan.
>
> On May 31, 2:01 pm, Alex Luya  wrote:
>   
>> I tried to get it work:
>> suggestBox.getTextBox().addClickHandler(new ClickHandler(){
>> suggestBox.showSuggestionTionList();
>>
>> });
>>
>> But failed.
>> 
> >
>
>   


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



Button.click() not working

2009-05-31 Thread Josué

Hello All,

The following code is not throwing a RuntimeException. Someone here
know why?

button = new Button("button");

button.addClickHandler(new ClickHandler(){
@Override
public void onClick(ClickEvent event) {
throw new RuntimeException(".onClick() not implemented");
}});

button.click();
...

My version of GWT is 1.6.4. The one that came with google eclipse
plugin for Eclipse.

Thanks for any help.
--~--~-~--~~~---~--~~
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: GWT 1.6.4 on Linux amd64 architecture fails

2009-05-31 Thread Matías Costa

On Mon, Apr 27, 2009 at 7:51 PM, marco  wrote:
>
> This seems a similar issue as with GWT 1.5.3, in that both seem to
> require a 32bit JVM to run properly.

The 32b JVM is needed for the hosted mode. In production we are using
64b pure server.

--~--~-~--~~~---~--~~
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: DatePicker and setting the time

2009-05-31 Thread Kwame Iwegbue
Have you tried the new DatePicker in GWT 1.6?
http://gwt.google.com/samples/Showcase/Showcase.html#CwDatePicker



On Sun, May 31, 2009 at 3:23 PM, Thad  wrote:

>
> I understand that DatePicker will allow setting the hour, minute, etc.
> if that is set in the Date.  What I'm looking for is a UI like the
> incubator's now deprecated DateTimePicker class had.  Otherwise users
> are left having to enter a time format correctly in text boxes.
>
> To my mind, DateTimePicker should not be deprecated because the
> DateTime widget does not have the full functionality of the former.
> As DateTime has CalenderModel/View, I think there should be a
> TimeModel/View and the option to display a TimePicker in the
> DatePicker.
>
> On May 29, 1:42 pm, Kwame  wrote:
> > Hi Thad,
> > Have you tried datePicker.setValue(new Date(year, month, date)) or
> > to format the output, maybe something like:
> >
> > String dateString = DateTimeFormat.getMediumDateFormat().format
> > (datePicker.getValue());
> >
> > I have a similar problem. I think the 1.6 DateBox/DatePicker lets you
> > format the Date using something called DateBox.Format, but I'm not
> > sure how. I've spent many hours looking at the API, and still can't
> > figure out how to format the default DateBox textField value)
> >
> > On May 29, 1:20 pm, Thad  wrote:
> >
> > > The incubator's DateTimePicker (now deprecated) allowed for setting
> > > hour, minute, and AM/PM, a feature my application requires.  I don't
> > > see this feature in GWT 1.6's DatePicker.  Am I missing something?  Is
> > > this capability coming and when?
> >
>

--~--~-~--~~~---~--~~
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: DateBox DatePicker popup is not showing up!

2009-05-31 Thread John_Idol

my BAD --> had a look with firebug and it was there behind the rest of
the stuff, I just had to define the following css class:

.dateBoxPopup {
z-index: 100;
}

On May 31, 8:32 pm, John_Idol  wrote:
> When I said *this* example I meant to include the link but I didn't --
>
> >http://gwt.google.com/samples/Showcase/Showcase.html#CwDatePicker
>
> On May 31, 8:30 pm, John_Idol  wrote:
>
>
>
> > Hi All,
>
> > I am following this example and the example in the DateBox
> > specification - so I have smt like this in my OnModuleLoad:
>
> >   public void onModuleLoad() {
> >     _dateBox = new DateBox();
> >     _dateBox.setValue(new Date());
> >     RootPanel.get().add(_dateBox);
> >   }
>
> > Problem is when I click on the DateBox nothing happens - I'd expect
> > the popup with the DatePicker to show up (this is happening on hosted
> > browser (IE), chrome and firefox).
>
> > Is there any init step I am missing?
>
> > I tried a search on this group but couldn't find anything similar
>
> > Any help appreciated!
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Nike dunk high shoes wholesale\retail

2009-05-31 Thread avan

Nike dunk high shoes wholesale\retail
Our company mainly deal with the import and export of the brand sports
shoes, clothes, jewelry, bags , glasses, etc . Products such as Nike
Jordan sell well in America , Canada , as well as Europe and other
countries. Our objective is to supply products of first-class quality
and advanced technology. Customers satisfaction is our greatest
pursuit. We thank you for your attention and wish having a long time
business relationship with all buyers from all over the world.

we take PAYPAL as the method of payment!
please kindly visite our website: http://www.cnnshoe.com
msn: cnnshoe2...@hotmail.com
email: wcl...@gmail.com

--~--~-~--~~~---~--~~
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: DateBox DatePicker popup is not showing up!

2009-05-31 Thread John_Idol

When I said *this* example I meant to include the link but I didn't --
> http://gwt.google.com/samples/Showcase/Showcase.html#CwDatePicker

On May 31, 8:30 pm, John_Idol  wrote:
> Hi All,
>
> I am following this example and the example in the DateBox
> specification - so I have smt like this in my OnModuleLoad:
>
>   public void onModuleLoad() {
>     _dateBox = new DateBox();
>     _dateBox.setValue(new Date());
>     RootPanel.get().add(_dateBox);
>   }
>
> Problem is when I click on the DateBox nothing happens - I'd expect
> the popup with the DatePicker to show up (this is happening on hosted
> browser (IE), chrome and firefox).
>
> Is there any init step I am missing?
>
> I tried a search on this group but couldn't find anything similar
>
> Any help appreciated!
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



DateBox DatePicker popup is not showing up!

2009-05-31 Thread John_Idol

Hi All,

I am following this example and the example in the DateBox
specification - so I have smt like this in my OnModuleLoad:

  public void onModuleLoad() {
_dateBox = new DateBox();
_dateBox.setValue(new Date());
RootPanel.get().add(_dateBox);
  }

Problem is when I click on the DateBox nothing happens - I'd expect
the popup with the DatePicker to show up (this is happening on hosted
browser (IE), chrome and firefox).

Is there any init step I am missing?

I tried a search on this group but couldn't find anything similar

Any help appreciated!
--~--~-~--~~~---~--~~
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: GWT 1.6.4 on Linux amd64 architecture fails

2009-05-31 Thread Pablo

I was having similar problems on 64 bit Ubuntu Jaunty; adding the
GTK_PATH environment variable made the error message disappear.

However, now that I've added a new service that tries to persist some
objects using JPA, I get the following errors when the service is
called:

The server is running at http://localhost:8080/
/usr/lib/gio/modules/libgioremote-volume-monitor.so: wrong ELF class:
ELFCLASS64
Failed to load module: /usr/lib/gio/modules/libgioremote-volume-
monitor.so
/usr/lib/gio/modules/libgiogconf.so: wrong ELF class: ELFCLASS64
Failed to load module: /usr/lib/gio/modules/libgiogconf.so
/usr/lib/gio/modules/libgvfsdbus.so: wrong ELF class: ELFCLASS64
Failed to load module: /usr/lib/gio/modules/libgvfsdbus.so

Any help would be much appreciated. Thanks!


On May 13, 12:53 pm, Yuri C  wrote:
> To fix the problem:
> Eclipse -> Launch/Run Configuration Dialog -> Environment Variables ->
> set GTK_PATH=/usr/lib32/gtk-2.0
>
> On Apr 27, 3:00 pm, Alex Rudnick  wrote:
>
> > Hey marco,
>
> > I've seen that same message -- it seems to coincide with upgrading to
> > Ubuntu 9.04. Which distribution are you using?
>
> > If it's causing any particular problems, please let us know!
>
> > Thanks!
>
> > On Mon, Apr 27, 2009 at 1:51 PM, marco  wrote:
>
> > > This seems a similar issue as with GWT 1.5.3, in that both seem to
> > > require a 32bit JVM to run properly.
> > > I have applied the same workaround (downloaded and installed a 32bit
> > > JRE 1.6.0) and used it in the Eclipse project as well as in the Run
> > > Configuration.
>
> > > This seems to be doing the trick (I can get the sample app up and
> > > running) but I still do get the following error messages:
>
> > > Gtk-Message: Failed to load module "canberra-gtk-module": /usr/lib/
> > > gtk-2.0/modules/libcanberra-gtk-module.so: wrong ELF class:ELFCLASS64
> > > /usr/lib/gio/modules/libgioremote-volume-monitor.so: wrong ELF class:
> > >ELFCLASS64
> > > Failed to load module: /usr/lib/gio/modules/libgioremote-volume-
> > > monitor.so
> > > /usr/lib/gio/modules/libgiogconf.so: wrong ELF class:ELFCLASS64
> > > Failed to load module: /usr/lib/gio/modules/libgiogconf.so
> > > /usr/lib/gio/modules/libgvfsdbus.so: wrong ELF class:ELFCLASS64
> > > Failed to load module: /usr/lib/gio/modules/libgvfsdbus.so
>
> > > So I am just wondering whether there is more than ought to be done,
> > > and/or I'm missing something.
> > > Thanks.
>
> > --
> > Alex Rudnick
> > swe, gwt, atl
>
>

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



Cofounder needed for start-up building with GWT

2009-05-31 Thread langoLAB

A young start-up at a prominent seed capital program needs a smart,
imaginative, resourceful GWT developer to join us as cofounder. We've
used GWT to build a website that helps people learn foreign languages
with the help of captioned video.

The seed capital program connects us to a bunch of serial
entrepreneurs and venture capitalists from the Boston area. If you've
been wondering what it's like to work in the dynamic world of start-
ups, join us. We attend lectures almost every day with successful
entrepreneurs and investors, and have access to a wide network of
other mentors in the field. We're in an ideal environment to make fast
progress, so to be with us you need to scale a steep learning curve.

You should be an absolute maniac about writing great code. Smart and
creative, driven, and able to dream up cool things and bring them into
existence. Ready to work for sweat equity and the role of founder in
our company.

Please email us at cofound...@langolab.com. You must be Boston-based
(or prepared to relocate).

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



thank you

2009-05-31 Thread sat

to the people who created gwt ..
thank you..
you people make web programming such a pleasure

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



How to GWT enable Spring MVC Web Application

2009-05-31 Thread Neeraj

Hello,

I have a largish Spring MVC Web Application deployed as a .war file.
Can some one give me pointers as to how to GWT enable this? Is it as
simple as dropping a jar file into the lib folder and tweaking the ant
build file? It is not possible to start from the GWT template
application and move all existing stuff. How easily can GWT fit into
the existing structure and how easy would it be to develop, debug and
deploy?

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

2009-05-31 Thread Greg

I'm having the same problem as the OP. I'm working through the
StockWatcher tutorial, and I set breakpoints on the specified lines in
updateTable. Eclipse shows checkmarks on the breakpoint indicators
after the hosted-mode browser starts. Extra calls to GWT.log
demonstrate that control is passing through the marked lines, but
execution does not stop. Eclipse's perspective never changes to Debug.

OS: Vista
Eclipse v3.4.2 (Ganymede + EE)
GWT Plugin 1.0.1.v200905131143
GWT SDK for Win32 1.6.4.v200904062334
JDK 1.6.0_14

Thanks,
Greg

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



How to use GWT to build a bottom bar with pop up menu

2009-05-31 Thread Tharindu Madushanka

Hi All,

I am new to GWT and just started to study about it. I am reading 'GWT
in Practice' book as a start. What I am planning to do while learning
GWT is to implement a web chat client and server. I need to add this
to a web site, some thing similar to what FB does. But I don't need it
to be much advanced like that. Only displaying a list of contacts as a
popup menu or even in a stack panel or something. Still I have no idea
on how to implement, but I know GWT is the tool I should learn.

I would be really thankful, if any of you kindly point me some
instructions on how to continue with my work, it would be helpful if
some one just point me some steps to work on.

Kind Regards,
-Tharindu

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



Facebook-like AJAX using GWT

2009-05-31 Thread xyyzzzer

Hi

I am interested in how to add AJAX behavior like on Facebook to action-
based site (eg. site on Struts, Stripes, etc.) using GWT.

For example site has such action URLs:
http://site.com/user/add
http://site.com/user/edit?id=1
http://site.com/user/1/delete?id=1

and in Facebook manner, it would also have support for URLs:
http://site.com/#/user/add
http://site.com/#/user/edit?id=1
http://site.com/#/user/delete?id=1
etc.

I was trying to implement this feature preventing default link
behavior and sending request with GWT RPC help, then replacing current
page content by returned one from GWT request response. But I
encountered issue, that I cannot reload GWT module “on the fly”
without page reloading.

Why I am interested in such kind of functionality, it’s because simple
to develop large sites as action-based. But it would be nice to add
AJAX auto support to form submits or link clicks.

Any suggestions?

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



GWT VS GWT-EXT

2009-05-31 Thread Fitrah Elly Firdaus
Dear All,

I'm New Member, I want Ask about this,

what's differences GWT and GWT-EXT?

Which one the best between GWT and GWT-EXT?

Regards,

Firdaus

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

begin:vcard
fn:Fitrah Elly Firdaus
n:Firdaus;Fitrah Elly
email;internet:firdaus.li...@gmail.com
tel;cell:+6287878443394
version:2.1
end:vcard



GWT: HostedModeException: Expected primitive type int; actual value was undefined

2009-05-31 Thread igor.khd

Hello guys!

I am using GWT-1.6 + gwt-ext-2.0.5 +  gilead (previous name is
hibernate4gwt).

I encountered next problem:

I am getting next exception when sending to the client an instance of
class bellow which extends form LightEntity:

com.google.gwt.dev.shell.HostedModeException: Expected primitive type
int; actual value was undefined
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:51)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt
(ModuleSpace.java:209)
at
com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.readInt
(Native Method)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject
(AbstractSerializationStreamReader.java:46)
at net.sf.gilead.pojo.java5.LightEntity_FieldSerializer.deserialize
(LightEntity_FieldSerializer.java:5)
at by.orwest.oms.core.entity.Insurance_FieldSerializer.deserialize
(Insurance_FieldSerializer.java:91)
at
by.orwest.oms.gwt.client.rpc.IInsuranceRemote_TypeSerializer.deserialize
(Native Method)
at
com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize
(ClientSerializationStreamReader.java:116)


Here is my class:

@Entity
@Table(name="INSURANCE")
public class Insurance extends LightEntity implements Serializable
{
private long id;
private String sn;
private Date createdDate;
private Date startDate;
private Date endDate;
private String insuranceCompany;
private String insurer;
private long price;
private String comment;

public Insurance() {
}

@Id
@GeneratedValue
@Column(name="ID")
public long getId() {
return id;
}

public void setId(long id) {
this.id = id;
}

@Column(name="SN",unique = true, nullable = true, length = 20)
public String getSN() {
return sn;
}

public void setSN(String sn) {
this.sn = sn;
}

@Column(name="CREATED_DATE", nullable = true)
@Temporal(TemporalType.DATE)
public Date getCreatedDate() {
return createdDate;
}

public void setCreatedDate(Date createdDate) {
this.createdDate = createdDate;
}

@Column(name="START_DATE", nullable = false)
@Temporal(TemporalType.DATE)
public Date getStartDate() {
return startDate;
}

public void setStartDate(Date startDate) {
this.startDate = startDate;
}

@Column(name="END_DATE", nullable = false)
@Temporal(TemporalType.DATE)
public Date getEndDate() {
return endDate;
}

public void setEndDate(Date endDate) {
this.endDate = endDate;
}

@Column(name="INSURANCE_COMPANY", nullable = true, length = 30)
public String getInsuranceCompany() {
return insuranceCompany;
}

public void setInsuranceCompany(String insuranceCompany) {
this.insuranceCompany = insuranceCompany;
}

@Column(name="INSURER", nullable = true, length = 30)
public String getInsurer() {
return insurer;
}

public void setInsurer(String insurer) {
this.insurer = insurer;
}

@Column(name="PRICE", nullable = true)
public long getPrice() {
return price;
}

public void setPrice(long price) {
this.price = price;
}

@Column(name="COMMENT", nullable = true, length = 400)
public String getComment() {
return comment;
}

public void setComment(String comment) {
this.comment = comment;
}
}


LightEntity is abstract class from gilead library (adapter-core.jar).
It is serializable class which contains only one protected field
Map

public abstract class LightEntity implements ILightEntity,
Serializable
{
private static final long serialVersionUID = 1061336746068017740L;
protected Map _proxyInformations;

public Map getProxyInformations()
{
return _proxyInformations;
}

@SuppressWarnings("unchecked")
public void setProxyInformations(Map informations)
{
_proxyInformations = informations;
}

public LightEntity()
{
super();
}

public void addProxyInformation(String property,
String 
proxyInfo)
{...}

public void removeProxyInformation(String property)
{...}

public String getProxyInformation(String property)
{...}
public String getDebugString()
{...}
}

I now that the problem in deserialization process of
Map field. But I don't understand the reason?

I found out that this problem reproduced only in hosted mode. In
browser it works fine.

Any ideas how to fix it?

Thanks.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, se

Error while adding a third party jar like Ext-Gwt

2009-05-31 Thread Abhay Singh

Hello,

In my project, I am using the Ext-Gwt jar files for creating the GWT
app
and when I am going to compile so, it gives me the following error,
I saw in the some forums, they answered like add classpath to your
project,
but I am already add the jar file into my project and in  tag
of gwt.xml file,
but still getting error please give me step by step solution,

java.lang.NoSuchMethodError:
org.eclipse.jdt.internal.compiler.lookup.ProblemReferenceBinding.closestReferenceMatch
()Lorg/eclipse/jdt/internal/compiler/lookup/ReferenceBinding;
at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.findClass
(JsniChecker.java:231)
at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.checkRefs
(JsniChecker.java:142)
at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.endVisit
(JsniChecker.java:65)
at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse
(MethodDeclaration.java:247)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse
(TypeDeclaration.java:1222)
at
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse
(CompilationUnitDeclaration.java:518)
at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java:350)
at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java:340)
at
com.google.gwt.dev.javac.CompilationUnitInvalidator.validateCompilationUnits
(CompilationUnitInvalidator.java:159)
at com.google.gwt.dev.javac.CompilationState.compile
(CompilationState.java:198)
at com.google.gwt.dev.javac.CompilationState.refresh
(CompilationState.java:178)
at com.google.gwt.dev.javac.CompilationState.
(CompilationState.java:93)
at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
(ModuleDef.java:264)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:283)
at com.google.gwt.dev.Compiler.run(Compiler.java:170)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:124)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
84)
at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
(CompileTaskRunner.java:78)
at com.google.gwt.dev.Compiler.main(Compiler.java:131)

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



Cannot get Application to Compile and run in Firefox 3

2009-05-31 Thread Adrian

Hello,

I am new to GWT and currently have it running in Eclipse 3.4 with the
GWT plugin:http://code.google.com/appengine/docs/java/tools/
eclipse.html

I seem to have everything running fine in the Hosted Browser (and even
IE for that matter) but I cannot figure out what is wrong when I try
to run the same app in Firefox. Here are a few snippets of my code:

The program has a login page that authenticates a user and returns the
user ID if successful.

Here is the EventHandler class that is in use for the textfield and
also button on the login form.

// Create a handler for the sendButton and nameField
class MyHandler implements ClickHandler, KeyUpHandler {
public void onClick(ClickEvent event) {
sendNameToServer();
}
public void onKeyUp(KeyUpEvent event) {
if (event.getNativeKeyCode() == 
KeyCodes.KEY_ENTER) {
sendNameToServer();
}
}
private void sendNameToServer() {
sendButton.setEnabled(false);
String textToServer = nameField.getText();
textToServerLabel.setText(textToServer);
serverResponseLabel.setText("");
authService.adminLogin(textToServer,new 
AsyncCallback() {


public void onFailure(Throwable caught) {
// Show the RPC 
error message to the user

dialogBox.setText("Admin Login - Failure");

serverResponseLabel.addStyleName("serverResponseLabelError");

serverResponseLabel.setHTML(SERVER_ERROR);

dialogBox.center();

closeButton.setFocus(true);
}

public void onSuccess(Integer result) {
loginUpdate(result);

}
});
}
}

Login Update does the following:

private void loginUpdate(Integer result) {
//need to authenticate
dialogBox.setText("Admin Login");
serverResponseLabel.removeStyleName("serverResponseLabelError");
serverResponseLabel.setHTML("results - "+result);
dialogBox.center();
closeButton.setFocus(true);

try{
if(result!=null&&result==1){
//successful login
RootPanel.get("loginForm").setVisible(false);

// Create table for stock data.
twebFlexTable.setText(0, 0, "Title");
twebFlexTable.setText(0, 1, "Date");
twebFlexTable.setText(0, 2, "Host(s)");
twebFlexTable.setText(0, 3, "Options");
// Add styles to elements in the stock list table.
twebFlexTable.setCellPadding(6);

twebFlexTable.getRowFormatter().addStyleName(0,
"twebListHeader");
twebFlexTable.addStyleName("twebList");

twebFlexTable.getCellFormatter().setWidth(0, 0, 
"35%");
twebFlexTable.getCellFormatter().setWidth(0, 1, 
"15%");
twebFlexTable.getCellFormatter().setWidth(0, 2, 
"35%");
twebFlexTable.getCellFormatter().setWidth(0, 3, 
"15%");

twebFlexTable.getCellFormatter().setHorizontalAlignment(0, 3,
VerticalPanel.ALIGN_CENTER);

mainPanel = new VerticalPanel();
mainPanel.add(twebFlexTable);

// Associate the Main panel with the HTML host page.
RootPanel.get("twebList").add(mainPanel);
RootPanel.get("twebList").setVisible(true);

refreshTwebList("upcoming");

}
else if(result!=null&&result==2){
//need to authenticate
dialogBox.setText("Admin Login - Failed");

serverResponseLabel.removeStyleName("serverResponseLabelError");
serverResponseLabel.setHT

Accessing external widgets from my Handler

2009-05-31 Thread Trevor Allred

Sorry in advance if this topic has already been covered before, but I
just can't seem to find the answer to this.

Because I'd like to have manageable code, I'm trying not to place
everything in one single class (like I see in all the basic examples).
So I have several Component classes that cover pages, buttons, tabs,
tables, etc. But how do I get the events to talk to each other when
each of the components are in different classes?

For example, let's say I have a new Page widget that I create from my
Entrypoint. That page contains a button and a table. The button is
supposed to do something to the table such as load it with data. How
do I get the button's handler object to access the table?

Here are my options:
1) Pass in the table to the button.
2) Pass in the page to the button (like a parent object?)
3) Have some sort of global event bus on the entrypoint that marshals
events back and forth???

None of these have worked particularly well.

Is everyone else just including all your objects as finals in a single
class? Or is there some sort of simple design principle I'm missing
here?

Trevor

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



Tab Panel does not resize for FlexTable

2009-05-31 Thread KodeMaestro

Hi Everyone,

I'm hoping someone can help me out with a really frustrating issue
I've been having. I've searched the web for days on this and have
found nothing. My issue is that I have a TabPanel with a number of
tabs on it. Each tab has a similar sort of layout with a text box, a
button, and a flextable. The flextable initially starts out invisible
(.setVisible(false)). When the user clicks on the button a simple
database lookup is performed and the flextable is populated and made
visible. The problem is, the TabPanel does not expand to accomodate
it.  I only see the first couple of rows of the tab panel. There is no
scrollbar, but I can scroll the window by selecting the table and
dragging the mouse inside of it. Changing tabs and changing back
causes the window to resize.

I have not been able to find a redraw method or any other way to force
the widget to update to accommodate the larger child. I've tried
setting it to invisible and back to visible again to cause it to
resize, but nothing I can do from code seems to have any effect. I
can't have the users clicking another tab every time to get their
window to resize. Is there any solution to this problem? What can I
do?

Thanks,
Troy.

--~--~-~--~~~---~--~~
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: DatePicker and setting the time

2009-05-31 Thread Thad

I understand that DatePicker will allow setting the hour, minute, etc.
if that is set in the Date.  What I'm looking for is a UI like the
incubator's now deprecated DateTimePicker class had.  Otherwise users
are left having to enter a time format correctly in text boxes.

To my mind, DateTimePicker should not be deprecated because the
DateTime widget does not have the full functionality of the former.
As DateTime has CalenderModel/View, I think there should be a
TimeModel/View and the option to display a TimePicker in the
DatePicker.

On May 29, 1:42 pm, Kwame  wrote:
> Hi Thad,
> Have you tried datePicker.setValue(new Date(year, month, date)) or
> to format the output, maybe something like:
>
> String dateString = DateTimeFormat.getMediumDateFormat().format
> (datePicker.getValue());
>
> I have a similar problem. I think the 1.6 DateBox/DatePicker lets you
> format the Date using something called DateBox.Format, but I'm not
> sure how. I've spent many hours looking at the API, and still can't
> figure out how to format the default DateBox textField value)
>
> On May 29, 1:20 pm, Thad  wrote:
>
> > The incubator's DateTimePicker (now deprecated) allowed for setting
> > hour, minute, and AM/PM, a feature my application requires.  I don't
> > see this feature in GWT 1.6's DatePicker.  Am I missing something?  Is
> > this capability coming and when?
--~--~-~--~~~---~--~~
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: Google Wave in GWT

2009-05-31 Thread twdarkflame

Hay, maybe it will tip more people to stop using IE with any luck ;)

Might give Opera a bit of a boast actualy, seeing as they seem quite
ahead in the html5 support.

On May 29, 3:57 am, "Dean S. Jones"  wrote:
> The announcement does say it was built with GWT and 
> HTML5http://googleblog.blogspot.com/2009/05/went-walkabout-brought-back-go...
>
> Interesting, a new major Google app that will only work on a few
> browsers that are still in beta that have HTML5 support.
>
> On May 28, 3:52 pm, Evan Ruff  wrote:
>
>
>
> > Hey guys,
>
> > I've been reading through the Google Wave announcements coming out of
> > Google I/O today. I see that it is built on GWT and uses HTML5. I was
> > wondering if there might be any chance of getting that HTML5 storage
> > library natively into GWT?
>
> > Anybody have any visibility into this?
>
> > Thanks!
>
> > E
--~--~-~--~~~---~--~~
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 include java project to GWT1.6 Module

2009-05-31 Thread vogella

Hi,

How to include classes from other projects (and jars) is described
here: http://www.vogella.de/articles/GWT/article.html

Best regards, Lars

On 30 Mai, 14:10, Sagar  wrote:
> Hello All,
> I am having a GWT1.6 module running fine. But now i want to add some
> external java projects to this as inherited modules.
> I am using eclipse and have updated classpath with the inherited
> projects in build path setting.
>
> Kindly suggest me how to make the necessary changes.
>
> Regards,
> Sagar
--~--~-~--~~~---~--~~
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: Returning to Java after a long lapse and starting with GWT. Any recommended books that cover both?

2009-05-31 Thread vogella

Hi,

I recommed to start with a few GWT online tutorials and see what your
learning need is.

Best regards, Lars

On 30 Mai, 20:50, paw  wrote:
> I've read a few posts with recommended books for GWT, but I haven't
> touched Java since around 1996.  Should I study up on Java before
> learning GWT or do any of the GWT books cover enough Java to learn as
> I go?
>
> Thanks for any help and suggestions.
--~--~-~--~~~---~--~~
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 download IFRAME

2009-05-31 Thread Thad

In my application I want users to be able to download a file from the
server (via a servlet), but **not** require them to enable pop-ups, as
they do if I use

native void openURLInNewWindow(String url) /*-{
$wnd.open(url);
}-*/;

I tried this class.  It works under Firefox, but not with IE or
Safari:

public class DownloadIFrame extends Frame
implements LoadHandler, HasLoadHandlers {

public DownloadIFrame(String url) {
super();
setSize("0px", "0px");
setVisible(false);
addLoadHandler(this);
RootPanel.get("__gwt_downloadFrame").add(this);
setUrl(url);
}

public HandlerRegistration addLoadHandler(LoadHandler handler) {
return addHandler(handler, LoadEvent.getType());
}

public void onLoad(LoadEvent event) {
}
}

On my application's HTML page, I have



My application is loaded into a separate 

Any ideas how to make this work in IE and Safari?
--~--~-~--~~~---~--~~
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: JSNI: JavaScriptException: (ReferenceError):

2009-05-31 Thread Paul van Hoven

Thanks Adam, that was exactly the problem. Now it works fine.

On 31 Mai, 15:38, Adam T  wrote:
> Hi Paul,
>
> You most likely want to write your JSNI call to the external
> Javascript function using the $wnd scope, i.e.
>
> public static native void initGoogleMaps() /*-{
>   $wnd.initializeGoogleMaps();
>
> }-*/;
>
> //Adam
>
> On 30 Maj, 20:10, Paul van Hoven 
> wrote:
>
> > I need some javascript in my page that can't be done by GWT.
> > Therefore, i wrote some javascript and stored it in a js file. I
> > tested the javascript code and it works. Then, i wanted to integrate
> > the javascript into my gwt widget by using JSNI. I did this in the
> > following way:
>
> > JSNI method in my gwt code SearchMobileWidget:
>
> > public static native void initGoogleMaps() /*-{
> >   initializeGoogleMaps();
>
> > }-*/;
>
> > my module xml file mobile.gwt.xml (extract):
>
> > 
> >  > EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.6.4/distro-
> > source/core/src/gwt-module.dtd">
> > 
> >         ...
> >         
>
> >         

Re: jsni getting rewritten

2009-05-31 Thread rjcarr

For what it is worth, I solved the problem by doing this:

private static native int eval(int x, int y, int z) /*-{
  eval("var x = " + x);
  eval("var y = " + y);
  eval("var z = " + z);
  return parseInt(eval("x + y * z"));
}-*/;

And it seems to work, but seems there could be a smarter way.  This
method is called *very* often so it's in my best interest for it to be
as efficient as possible.

A bit more explanation, I'm allowing users to define expressions that
I want to evaluate (think of a calculator).  Rather than writing my
own lexical analyzer I thought I'd use the one built into javascript.
--~--~-~--~~~---~--~~
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: Google Wave in GWT

2009-05-31 Thread Evan Ruff

Yeah the browser support is currently limited, but I think that it
might be preferable to forcing people to download gears? Either way,
I'd imagine it degrades gracefully from HTML5 -> Gears -> Nada
depending on the browser. I'd really like to see this kind of support
in GWT.

Additionally, I read an article from Google I/O that the Gmail client
for iPhone/Android is written in GWT, which is also awesome.

E

On May 29, 10:10 am, denis56  wrote:
> "The Google Wave product (available as a developer preview) is the web
> application people will use to access and edit waves. It's an HTML 5
> app, built on Google Web Toolkit. It includes a rich text editor and
> other functions like desktop drag-and-drop (which, for example, lets
> you drag a set of photos right into a wave). "
>
> On May 29, 3:57 am, "Dean S. Jones"  wrote:
>
> > The announcement does say it was built with GWT and 
> > HTML5http://googleblog.blogspot.com/2009/05/went-walkabout-brought-back-go...
>
> > Interesting, a new major Google app that will only work on a few
> > browsers that are still in beta that have HTML5 support.
>
> > On May 28, 3:52 pm, Evan Ruff  wrote:
>
> > > Hey guys,
>
> > > I've been reading through the Google Wave announcements coming out of
> > > Google I/O today. I see that it is built on GWT and uses HTML5. I was
> > > wondering if there might be any chance of getting that HTML5 storage
> > > library natively into GWT?
>
> > > Anybody have any visibility into this?
>
> > > Thanks!
>
> > > E
>
>
--~--~-~--~~~---~--~~
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: JSNI: JavaScriptException: (ReferenceError):

2009-05-31 Thread Adam T

Hi Paul,

You most likely want to write your JSNI call to the external
Javascript function using the $wnd scope, i.e.

public static native void initGoogleMaps() /*-{
  $wnd.initializeGoogleMaps();
}-*/;

//Adam

On 30 Maj, 20:10, Paul van Hoven 
wrote:
> I need some javascript in my page that can't be done by GWT.
> Therefore, i wrote some javascript and stored it in a js file. I
> tested the javascript code and it works. Then, i wanted to integrate
> the javascript into my gwt widget by using JSNI. I did this in the
> following way:
>
> JSNI method in my gwt code SearchMobileWidget:
>
> public static native void initGoogleMaps() /*-{
>   initializeGoogleMaps();
>
> }-*/;
>
> my module xml file mobile.gwt.xml (extract):
>
> 
>  EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.6.4/distro-
> source/core/src/gwt-module.dtd">
> 
>         ...
>         
>
>         

Re: Returning to Java after a long lapse and starting with GWT. Any recommended books that cover both?

2009-05-31 Thread Paul Grenyer
Don't forget Java 6.

Sent from my BlackBerry® wireless device

-Original Message-
From: rjcarr 

Date: Sun, 31 May 2009 02:12:17 
To: Google Web Toolkit
Subject: Re: Returning to Java after a long lapse and starting with GWT. Any  
recommended books that cover both?



You could probably learn as you go but you might get frustrated
quickly as java has added quite a few features since your last use.

I'd read a what's new to java 1.4 and then a what's new to java 1.5
and then read over the gwt getting started guides and a few other
examples and you should be fine, assuming you're an otherwise
competent programmer.

On May 30, 11:50 am, paw  wrote:
> I've read a few posts with recommended books for GWT, but I haven't
> touched Java since around 1996.  Should I study up on Java before
> learning GWT or do any of the GWT books cover enough Java to learn as
> I go?
>
> Thanks for any help and suggestions.


--~--~-~--~~~---~--~~
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: Breaking monolithic module into small modules

2009-05-31 Thread rjcarr

You're going to want to read the developer guide about modules.  They
are pretty easy to create, just create a module xml file.  Then, when
you have multiple modules, you'll need to define which modules inherit
from which others, but again, it is quite simple.

However, there really isn't much of a performance problem with one
large module.  If you only have a single application then I'd just
stick with one module to keep things simple.
--~--~-~--~~~---~--~~
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: JSNI: JavaScriptException: (ReferenceError):

2009-05-31 Thread Paul van Hoven

Hi Eric,

i build a widget that uses maps for gwt that should run on the iphone.
I tried this with my own device which uses this version of the safari
browser:

"Mozilla/5.0 (iPhone; U; CPU iPhone OS 2_2 like Mac OS X; de-de)
AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.1 Mobile/5G77
Safari/525.20"

I tested the widget on the iphone. The map is displayed correctly but
after performing some actions on the map like tapping it or zooming in
and out the safari either crashes or hangs up. Therefore, i tried it
the traditional way without maps for gwt. I build a simple html page
that implemented my desired functionality via javascript. In that case
it works fine and i have no problems with my iphone. Actually i didn't
make something special with the maps object instead placeing a marker
and use some geocoding functionality. On a desktop browser like
Firefox, Safari etc it works fine.

And now i'm trying to integrate this javascript into my gwt app but i
don't understand what i'm doing wrong.



On May 30, 11:02 pm, Eric Ayers  wrote:
> I am the maintainer of the Google API libraries for GWT and am curious
> about what case you have that is isn't covered by gwt-maps
> (http://code.google.com/p/gwt-google-apis) .  I know the apis aren't
> exhaustive, but I want to know what people find to be useful.
>
> On Sat, May 30, 2009 at 2:10 PM, Paul van Hoven
>
>
>
>  wrote:
>
> > I need some javascript in my page that can't be done by GWT.
> > Therefore, i wrote some javascript and stored it in a js file. I
> > tested the javascript code and it works. Then, i wanted to integrate
> > the javascript into my gwt widget by using JSNI. I did this in the
> > following way:
>
> > JSNI method in my gwt code SearchMobileWidget:
>
> > public static native void initGoogleMaps() /*-{
> >  initializeGoogleMaps();
> > }-*/;
>
> > my module xml file mobile.gwt.xml (extract):
>
> > 
> >  > EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.6.4/distro-
> > source/core/src/gwt-module.dtd">
> > 
> >        ...
> >        
>
> >        

Re: svn - mac/windows/linux?

2009-05-31 Thread rjcarr

Could you better describe the problems you're seeing on the different
platforms?

The only thinks I can think of is you'll need to include *all* the
platform jars in your ant file (I do this with gwt-dev-*.jar) and then
add that special "XstartOnFirstThread" when you detect a mac.

Other than that, I don't know of any platform issues.  I have a GWT
project that is worked on by mac, windows, and linux developers
(although it was originally created in the GWT 1.3 days).
--~--~-~--~~~---~--~~
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: SuggestBox:How to show suggestion list when clicking?

2009-05-31 Thread Roshan

Hi Alex,
Check the source code of the suggest box example that comes in the
Showcase application included in the samples bundled with the gwt
distribution.

Best regards,
Roshan.

On May 31, 2:01 pm, Alex Luya  wrote:
> I tried to get it work:
> suggestBox.getTextBox().addClickHandler(new ClickHandler(){
>     suggestBox.showSuggestionTionList();
>
> });
>
> But failed.
--~--~-~--~~~---~--~~
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: debugging doesn't work with -noserver

2009-05-31 Thread Ed

I do exactly this and can put a breakpoint where ever I want, on the
server/client side and it stops as well...

Can you debug in hosted mode without the  -noserver option ?
Do you start the hosted mode correctly (in debug mode)?

Btw: I am using MyEclipse, tomcat 6.x, gwt 1.6.4.

-- Ed
--~--~-~--~~~---~--~~
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: Returning to Java after a long lapse and starting with GWT. Any recommended books that cover both?

2009-05-31 Thread rjcarr

You could probably learn as you go but you might get frustrated
quickly as java has added quite a few features since your last use.

I'd read a what's new to java 1.4 and then a what's new to java 1.5
and then read over the gwt getting started guides and a few other
examples and you should be fine, assuming you're an otherwise
competent programmer.

On May 30, 11:50 am, paw  wrote:
> I've read a few posts with recommended books for GWT, but I haven't
> touched Java since around 1996.  Should I study up on Java before
> learning GWT or do any of the GWT books cover enough Java to learn as
> I go?
>
> Thanks for any help and suggestions.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



SuggestBox:How to show suggestion list when clicking?

2009-05-31 Thread Alex Luya

I tried to get it work:
suggestBox.getTextBox().addClickHandler(new ClickHandler(){
suggestBox.showSuggestionTionList();
});

But failed.

--~--~-~--~~~---~--~~
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: jsni getting rewritten

2009-05-31 Thread rjcarr

To include a quick example, say I have this:

private static native int eval(int x, int y, int z) /*-{
  return parseInt(eval("x + y * z));
}-*/;

But this gets rewritten to something like this:

function q(a,b,c) { return parseInt(eval("x + y * z")); }

So I get errors saying "can't find variable: x".  Any ideas?

On May 31, 1:42 am, rjcarr  wrote:
> I have a jsni method and when it is translated it is getting
> rewritten.  I thought I read somewhere that this shouldn't happen, but
> now I can't find where I read that.
>
> I'm using the javascript eval() function (nasty, I know), and it works
> fine in hosted mode, but when the java gets translated it doesn't work
> because the variables in my eval() have been rewritten to something
> else.
>
> Other than changing the output from obfuscated are there any other
> solutions?  Is there any way to tell it to not mess with my native
> javascript?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



jsni getting rewritten

2009-05-31 Thread rjcarr

I have a jsni method and when it is translated it is getting
rewritten.  I thought I read somewhere that this shouldn't happen, but
now I can't find where I read that.

I'm using the javascript eval() function (nasty, I know), and it works
fine in hosted mode, but when the java gets translated it doesn't work
because the variables in my eval() have been rewritten to something
else.

Other than changing the output from obfuscated are there any other
solutions?  Is there any way to tell it to not mess with my native
javascript?
--~--~-~--~~~---~--~~
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: debugging doesn't work with -noserver

2009-05-31 Thread ahhat...@gmail.com

Debugging the jruby on rails code on the server works correctly so the
server backend runs and debugs correctly.
the problem is that the code client package that runs in the hosted
mode, does not stop at the break points...
It runs correctly, but no breakpoints...
Do I have to make any configuration at the server to fix the hosted
mode debugging problem? and if yes, how come? what is the relation?
Thank you so much for the help, I am new to gwt and I do need the
help..
Thanks again..

On May 31, 6:26 am, Bakulkumar  wrote:
> Are you trying to debug code with in module.client.* package or code
> out side of that module (Serer code)?
>
> If you want to debug code out side of module.client.* package, you
> need to start server in debug mode, if its in module.client.* package
> hosted mode will stop at the specified breakpoint.
>
> Thanks,
> Bakul
>
> On May 30, 11:31 am, "ahhat...@gmail.com"  wrote:
>
> > Hello,
> > When I use -noserver and use the gwt app with another server, in
> > hosted mode it works normally but doesn't stop at the breakpoints set
> > from eclipse.
> > Is there anything  I may have missed ? Or anything I could do?
> > Thank you in advance.
> > Ahmed
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---