Where can i put the images

2009-09-23 Thread mohan

Hi All,
As i m new to the GWT, i dont know where to put the images for my
site.

com.test.gwt.contactus.client is my package structure of my client and
contactus.java has the following code:

Image jimmyFull = new Image(bold.jpg);
final PopupPanel imagePopup = new PopupPanel(true);
imagePopup.setAnimationEnabled(true);
imagePopup.ensureDebugId(cwBasicPopup-imagePopup);
imagePopup.setWidget(jimmyFull);
jimmyFull.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
  imagePopup.hide();
   }
});

Basically where can i have the image, so that when i compile it should
go with my site.
Kindly guide me.Thanks  :)

Cheers!!!
Mohan
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Google Chrome Frame GWT

2009-09-23 Thread Niklas Derouche
So here comes Google Chrome Frame. A brilliant idea and sorely needed by IE.(if
you don't know what it is then:
http://code.google.com/chrome/chromeframe/ )

Ok. So IE will be running content as if it was chrome based on a tag in the
page.
How do we deal with that? I am sure there are multiple strategies but
someone
has probably thought of some very smart way of doing this and I am too lazy
to
come up with one.

BR

Niklas Derouche

-- 
---
Ave bossa nova, similis bossa seneca

--~--~-~--~~~---~--~~
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 In implementing Right Click for Mozilla in smartgwt

2009-09-23 Thread Niks

Hi,

Can anywone please tell how to avoid default menu in mozilla . I have
created one application and implemented right click mouse event in
smartgwt but when clicking right mouse button mozilla is not showing
the pop up which i created it is showing its default how to resolve
the issue in smartgwt...

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



Best way to pass value to

2009-09-23 Thread dannhila...@gmail.com

My GWT app is embedded inside a tab view of a JSP page and I wanted to
render the GWT module based on the content/context of the parent
HTML.

This requires passing initial value to the GWT app entry point and
from there the GWT app can fetch values to server using RPC.  I was
able to do this using com.google.gwt.i18n.client.Dictionary
approach.

My question is, is this the best way to do it or is there better
alternative/s?

Thanks,
Dann
--~--~-~--~~~---~--~~
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: Running Apache Hupa sample of GWT MVP

2009-09-23 Thread Roman Ilin

I changed the color many times.
If I change it to 'red' Hupa works, back to 'grey' - App won't start.

Regards

On Tue, Sep 22, 2009 at 4:36 PM, Daniel Simons daniel.simo...@gmail.com wrote:
 Actually what is most likely happening is that when you changed the color
 property value it kicked off a fresh buildtry changing the color value
 back to grey to see if that was the case.

 Regards,
 daniel

 On Tue, Sep 22, 2009 at 9:32 AM, purplehaze roman.i...@gmail.com wrote:

 Hi *,

 I have jdk 1.6 only installed.
 So I set
                        plugin
                                groupIdorg.apache.maven.plugins/
 groupId
                                artifactIdmaven-compiler-plugin/
 artifactId
                                configuration
                                        source1.6/source
                                        target1.6/target
                                /configuration
                        /plugin
 and told to eclipse-maven plugin to update project configuration.
 It helps. No restricted thing more...

 But I have got one exception in GWT Log console:

 [ERROR] Unable to load module entry point class
 org.apache.hupa.client.Hupa (see associated exception for details)
 com.google.gwt.core.client.JavaScriptException: (Error): Ungültiger
 Eigenschaftswert.
  number: -2146827908
  description: Ungültiger Eigenschaftswert.
        at com.google.gwt.dom.client.Style$.setPropertyImpl$(Native Method)
        at com.google.gwt.dom.client.Style$.setProperty$(Style.java:43)
        at org.apache.hupa.widgets.ui.EnableHyperlink.init
 (EnableHyperlink.java:57)
        at org.apache.hupa.widgets.ui.EnableHyperlink.init
 (EnableHyperlink.java:43)
        at org.apache.hupa.client.mvp.IMAPFolderView.init
 (IMAPFolderView.java:77)
        at
 org.apache.hupa.client.gin.HupaGinjectorImpl.org$apache$hupa$client
 $mvp$IMAPFolderView_IMAPFolderView_methodInjection(transient source
 for org.apache.hupa.client.gin.HupaGinjectorImpl:66)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org
 $apache$hupa$client$mvp$IMAPFolderView$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:70)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org
 $apache$hupa$client$mvp$IMAPFolderView$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:76)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org
 $apache$hupa$client$mvp$IMAPFolderPresenter$Display$_annotation$$none$$
 (transient source for org.apache.hupa.client.gin.HupaGinjectorImpl:
 237)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org
 $apache$hupa$client$mvp$IMAPFolderPresenter$Display$_annotation$$none$$
 (transient source for org.apache.hupa.client.gin.HupaGinjectorImpl:
 241)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org
 $apache$hupa$client$mvp$IMAPFolderPresenter$_annotation$$none$$
 (transient source for org.apache.hupa.client.gin.HupaGinjectorImpl:
 433)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org
 $apache$hupa$client$mvp$IMAPFolderPresenter$_annotation$$none$$
 (transient source for org.apache.hupa.client.gin.HupaGinjectorImpl:
 439)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org
 $apache$hupa$client$mvp$MainPresenter$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:305)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org
 $apache$hupa$client$mvp$MainPresenter$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:311)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org
 $apache$hupa$client$mvp$AppPresenter$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:263)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org
 $apache$hupa$client$mvp$AppPresenter$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:269)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.getAppPresenter
 (transient source for org.apache.hupa.client.gin.HupaGinjectorImpl:7)
        at org.apache.hupa.client.Hupa.onModuleLoad(Hupa.java:34)


 I found out that if I change
 org.apache.hupa.widgets.ui.EnableHyperlink    line 57
 from html.getElement().getStyle().setProperty(color, grey);
 to    html.getElement().getStyle().setProperty(color, #8d8d8d);

 Hupa works as expected.

 Regards

 Roman



 


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

FileUpload Service????

2009-09-23 Thread GumbyGWTBeginner

Hi,

The example below uses the FileUpload Class for sending a file to the
Server.

My question (being very new at this) where and how do I write my
Service  (in this case form.setAction(/myFormHandler);).

If my question is clear.

Stephan



public class FormPanelExample implements EntryPoint {

  public void onModuleLoad() {
// Create a FormPanel and point it at a service.
final FormPanel form = new FormPanel();
form.setAction(/myFormHandler);

// Because we're going to add a FileUpload widget, we'll need to
set the
// form to use the POST method, and multipart MIME encoding.
form.setEncoding(FormPanel.ENCODING_MULTIPART);
form.setMethod(FormPanel.METHOD_POST);

// Create a panel to hold all of the form widgets.
VerticalPanel panel = new VerticalPanel();
form.setWidget(panel);

// Create a TextBox, giving it a name so that it will be
submitted.
final TextBox tb = new TextBox();
tb.setName(textBoxFormElement);
panel.add(tb);

// Create a ListBox, giving it a name and some values to be
associated with
// its options.
ListBox lb = new ListBox();
lb.setName(listBoxFormElement);
lb.addItem(foo, fooValue);
lb.addItem(bar, barValue);
lb.addItem(baz, bazValue);
panel.add(lb);

// Create a FileUpload widget.
FileUpload upload = new FileUpload();
upload.setName(uploadFormElement);
panel.add(upload);

// Add a 'submit' button.
panel.add(new Button(Submit, new ClickListener() {
  public void onClick(Widget sender) {
form.submit();
  }
}));

// Add an event handler to the form.
form.addFormHandler(new FormHandler() {
  public void onSubmit(FormSubmitEvent event) {
// This event is fired just before the form is submitted. We
can take
// this opportunity to perform validation.
if (tb.getText().length() == 0) {
  Window.alert(The text box must not be empty);
  event.setCancelled(true);
}
  }

  public void onSubmitComplete(FormSubmitCompleteEvent event) {
// When the form submission is successfully completed, this
event is
// fired. Assuming the service returned a response of type
text/html,
// we can get the result text here (see the FormPanel
documentation for
// further explanation).
Window.alert(event.getResults());
  }
});

RootPanel.get().add(form);
  }
}

--~--~-~--~~~---~--~~
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: DTO and Compound Objects

2009-09-23 Thread olivier nouguier
Hi,
http://code.google.com/events/io/sessions/GoogleWebToolkitBestPractices.html

AFAIK DTO should not be composed.

HIH


On Tue, Sep 22, 2009 at 11:06 PM, Thomas Holmes
thomas.j.hol...@gmail.comwrote:


 I am working on a test GWT_RPC application.   I have Hibernate POJO's
 that use annotations, and I have declared those in the Spring 2.5.6
 applicationContext xml file.

 So, I also created a bunch of DTO POJO's, and my question is ... do
 these RPC POJO's need to be VERY basic, or can they be compound
 objects.  For example, I have the following:

 webapp.client.dto.ADTO
 webapp.client.dto.BDTO
 webapp.client.dto.TestDTO

 public class TestDTO implements Serializable {

   private int id;
   private String name;
   private Date date;
   private ADTO a;
   private BDTO c;

  ... public getters/setters ...
 }

 Will this be ok to define?   A and B DTO might also be a compound
 objects, but they still ALL live under the client umbrella.

 Thanks!
 Tom
 



-- 
A coward is incapable of exhibiting love; it is the prerogative of the
brave.
--
Mohandas Gandhi

--~--~-~--~~~---~--~~
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 Chrome Frame GWT

2009-09-23 Thread PhillipB

Using Chrome Frame with GWT is discussed on the GWT blog...
http://googlewebtoolkit.blogspot.com/2009/09/delivering-faster-richer-gwt.html

I think it will answer your question.

/PhillipB
--~--~-~--~~~---~--~~
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: Running Apache Hupa sample of GWT MVP

2009-09-23 Thread Norman Maurer

Hy Roman,

it was a typo... It should be fixed now.

Thx for reporting :)

Bye,
Norman

2009/9/23 Roman Ilin roman.i...@gmail.com:

 I changed the color many times.
 If I change it to 'red' Hupa works, back to 'grey' - App won't start.

 Regards

 On Tue, Sep 22, 2009 at 4:36 PM, Daniel Simons daniel.simo...@gmail.com 
 wrote:
 Actually what is most likely happening is that when you changed the color
 property value it kicked off a fresh buildtry changing the color value
 back to grey to see if that was the case.

 Regards,
 daniel

 On Tue, Sep 22, 2009 at 9:32 AM, purplehaze roman.i...@gmail.com wrote:

 Hi *,

 I have jdk 1.6 only installed.
 So I set
                        plugin
                                groupIdorg.apache.maven.plugins/
 groupId
                                artifactIdmaven-compiler-plugin/
 artifactId
                                configuration
                                        source1.6/source
                                        target1.6/target
                                /configuration
                        /plugin
 and told to eclipse-maven plugin to update project configuration.
 It helps. No restricted thing more...

 But I have got one exception in GWT Log console:

 [ERROR] Unable to load module entry point class
 org.apache.hupa.client.Hupa (see associated exception for details)
 com.google.gwt.core.client.JavaScriptException: (Error): Ungültiger
 Eigenschaftswert.
  number: -2146827908
  description: Ungültiger Eigenschaftswert.
        at com.google.gwt.dom.client.Style$.setPropertyImpl$(Native Method)
        at com.google.gwt.dom.client.Style$.setProperty$(Style.java:43)
        at org.apache.hupa.widgets.ui.EnableHyperlink.init
 (EnableHyperlink.java:57)
        at org.apache.hupa.widgets.ui.EnableHyperlink.init
 (EnableHyperlink.java:43)
        at org.apache.hupa.client.mvp.IMAPFolderView.init
 (IMAPFolderView.java:77)
        at
 org.apache.hupa.client.gin.HupaGinjectorImpl.org$apache$hupa$client
 $mvp$IMAPFolderView_IMAPFolderView_methodInjection(transient source
 for org.apache.hupa.client.gin.HupaGinjectorImpl:66)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org
 $apache$hupa$client$mvp$IMAPFolderView$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:70)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org
 $apache$hupa$client$mvp$IMAPFolderView$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:76)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org
 $apache$hupa$client$mvp$IMAPFolderPresenter$Display$_annotation$$none$$
 (transient source for org.apache.hupa.client.gin.HupaGinjectorImpl:
 237)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org
 $apache$hupa$client$mvp$IMAPFolderPresenter$Display$_annotation$$none$$
 (transient source for org.apache.hupa.client.gin.HupaGinjectorImpl:
 241)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org
 $apache$hupa$client$mvp$IMAPFolderPresenter$_annotation$$none$$
 (transient source for org.apache.hupa.client.gin.HupaGinjectorImpl:
 433)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org
 $apache$hupa$client$mvp$IMAPFolderPresenter$_annotation$$none$$
 (transient source for org.apache.hupa.client.gin.HupaGinjectorImpl:
 439)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org
 $apache$hupa$client$mvp$MainPresenter$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:305)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org
 $apache$hupa$client$mvp$MainPresenter$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:311)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.create_Key$type$org
 $apache$hupa$client$mvp$AppPresenter$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:263)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.get_Key$type$org
 $apache$hupa$client$mvp$AppPresenter$_annotation$$none$$(transient
 source for org.apache.hupa.client.gin.HupaGinjectorImpl:269)
        at org.apache.hupa.client.gin.HupaGinjectorImpl.getAppPresenter
 (transient source for org.apache.hupa.client.gin.HupaGinjectorImpl:7)
        at org.apache.hupa.client.Hupa.onModuleLoad(Hupa.java:34)


 I found out that if I change
 org.apache.hupa.widgets.ui.EnableHyperlink    line 57
 from html.getElement().getStyle().setProperty(color, grey);
 to    html.getElement().getStyle().setProperty(color, #8d8d8d);

 Hupa works as expected.

 Regards

 Roman



 


 


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

Re: Google Chrome Frame GWT

2009-09-23 Thread Niklas Derouche
Yep. Thanks.

On Wed, Sep 23, 2009 at 9:39 AM, PhillipB phillip.ba...@gmail.com wrote:


 Using Chrome Frame with GWT is discussed on the GWT blog...

 http://googlewebtoolkit.blogspot.com/2009/09/delivering-faster-richer-gwt.html

 I think it will answer your question.

 /PhillipB
 



-- 
---
Ave bossa nova, similis bossa seneca

--~--~-~--~~~---~--~~
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 In implementing Right Click for Mozilla in smartgwt

2009-09-23 Thread Sanjiv Jivan
Please use the SmartGWT forums for SmartGWT specific questions :
http://forums.smartclient.com/forumdisplay.php?f=14
Try event.cancel() to prevent the default behavior of the browser context
menu showing upon right-click.

Sanjiv

On Wed, Sep 23, 2009 at 2:12 AM, Niks sharma.sweet...@gmail.com wrote:


 Hi,

 Can anywone please tell how to avoid default menu in mozilla . I have
 created one application and implemented right click mouse event in
 smartgwt but when clicking right mouse button mozilla is not showing
 the pop up which i created it is showing its default how to resolve
 the issue in smartgwt...

 


--~--~-~--~~~---~--~~
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: Where can i put the images

2009-09-23 Thread Thomas Broyer



On 23 sep, 08:18, mohan yen.mo...@gmail.com wrote:
 Hi All,
 As i m new to the GWT, i dont know where to put the images for my
 site.

 com.test.gwt.contactus.client is my package structure of my client and
 contactus.java has the following code:

 Image jimmyFull = new Image(bold.jpg);
 final PopupPanel imagePopup = new PopupPanel(true);
 imagePopup.setAnimationEnabled(true);
 imagePopup.ensureDebugId(cwBasicPopup-imagePopup);
 imagePopup.setWidget(jimmyFull);
 jimmyFull.addClickHandler(new ClickHandler() {
 public void onClick(ClickEvent event) {
       imagePopup.hide();
    }

 });

 Basically where can i have the image, so that when i compile it should
 go with my site.
 Kindly guide me.Thanks  :)

If you don't use ImageBundle, then either:
 - you put them in your package's public subfolder (com/test/gwt/
contactus/public) and use new Image(GWT.getModuleBaseURL() +
bold.jpg);
 - or put them in your war/ folder and use new Image
(GWT.getHostPageBaseURL() + bold.jpg)

You can of course use subfolders...

The advantage of the first approach is if your module is reusable
(inherit/ed in another module), you'll always have the images right
(that's how the GWT themes work for example).
The advantage of the second approach is that it's easy to change the
image being used: just change the image in the war/, or even have
multiple war folders each with a different bold.jpg in them. That's
generally how you'd do themed versions for, e.g., different clients
(e.g. the client's logo); provided it won't affect the app's layout.
And you wouldn't even have to compile the app for each and every
client: compile it once and just copy the generated code over and over
in your different war/ folders.
--~--~-~--~~~---~--~~
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: Why Not Bypass The Middle Man

2009-09-23 Thread Thomas Broyer



On 23 sep, 06:24, lusus l...@fishbytedesign.com wrote:
 First I would like to point out a few important facts:
 1) I think that GWT is a fantastic idea, and that the developers
 deserve awards and ice cream and funny hats and should be carried
 through the streets.
 2) I am just throwing this out as a discussion point.
 3) I am not a classically trained programmer, and some of my
 terminology may be technically errant. Try to go with the overarching
 idea, and not just write me off because I thought REST meant nap
 time.

 Now with that said, here's my question/thought.

 Isn't it time that we finally quit trying to warp the WWW into what we
 really want it to be, and come up with a new protocol all together?
 More specifically, isn't it time we made a browser that simply
 interprets the major programming languages - not riding on the WWW,
 but with it's own network protocols?

Just like any computer's native apps, just with the ease of
deployment of web apps?
Well, have a look at Java Web Start, .NET ClickOnce or Adobe AIR
install badge.

 It could exist like a stub on an individual client computer, run over
 it's own public port, and allow push AND pull communication.

Something like Opera Unite?

 Programmers would need only to learn the proper communication methods,
 and could then write unbridled applications that are served directly
 to the clients, bypassing the rube-goldberg system of manipulation
 required to make it understandable by the CURRENT browsers.

 What if you could write a JAVA program where main() was served to the
 client browser and that's that. As cool as GWT is, when you step
 back and think about the actual structure, it's conjures (at least for
 me) images of popsicle sticks and duct tape. First you write the JAVA
 code, and add CSS styles. Those are combined and interpreted to
 Javascript which is optimized to several (currently used) browsers,
 which is in turn interpreted to HTML and displayed in the browser,
 which is based on a protocol that does not REALLY allow push
 communication. *** Again, nothing against the GWT developers. They did
 a fine job of contorting the existing structures to bring us closer to
 the goal. ***

That'd be a Java applet, or a Java desktop app served with Java Web
Start.

 I realize that, as far as cloud computing is concerned, the GWT
 outcome is (almost) the same as what I'm talking about. You write JAVA
 code, and it gets displayed in the browsers. Who cares what torture it
 has to go through to get there. right?

 Looking back, it was oh so simple to get virtually everyone using the
 WWW. Would it be that hard to get the general public to accept a new
 internet that involves application browsers?

Yes!

 And finally, the browsers could be made to understand multiple
 programming languages. It could basically be an omni- (and slightly
 upgraded for communication purposes) Virtual Machine.

Who would you do it? using a plug-in for each language? how would it
be different from Flash, Silverlight or Java applets?

 Here is my list of key points:
 1) Cut out the middle man. No more Rube-Goldberg.
 2) Allow Push communication.

Have a look at server-sent events in HTML5 and the WebSockets
protocol and API.

 3) No worries about upgraded or new browsers, and cross-browser
 compatibility. (The App-Browsers would just keep up with the current
 programming language upgrades.)

Why do you think we're all dealing with x-browser compat? because
people don't upgrade their browsers; so why would it be different?

 4) Use the layout tools that belong the the program language you are
 using.
 5) Wouldn't it possibly even be more secure? (maybe not)

No, why would it be?

 6) Let the kids play in the WWW kiddy pool. Let the real programmers
 swim in the deep end, away from the yellow water.

Hey, the WWW kiddy pool, you're a few years late!
--~--~-~--~~~---~--~~
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: Where can i put the images

2009-09-23 Thread mohan
Thanks for ur guidance... it worked :)

On Wed, Sep 23, 2009 at 4:13 PM, Thomas Broyer t.bro...@gmail.com wrote:




 On 23 sep, 08:18, mohan yen.mo...@gmail.com wrote:
  Hi All,
  As i m new to the GWT, i dont know where to put the images for my
  site.
 
  com.test.gwt.contactus.client is my package structure of my client and
  contactus.java has the following code:
 
  Image jimmyFull = new Image(bold.jpg);
  final PopupPanel imagePopup = new PopupPanel(true);
  imagePopup.setAnimationEnabled(true);
  imagePopup.ensureDebugId(cwBasicPopup-imagePopup);
  imagePopup.setWidget(jimmyFull);
  jimmyFull.addClickHandler(new ClickHandler() {
  public void onClick(ClickEvent event) {
imagePopup.hide();
 }
 
  });
 
  Basically where can i have the image, so that when i compile it should
  go with my site.
  Kindly guide me.Thanks  :)

 If you don't use ImageBundle, then either:
  - you put them in your package's public subfolder (com/test/gwt/
 contactus/public) and use new Image(GWT.getModuleBaseURL() +
 bold.jpg);
  - or put them in your war/ folder and use new Image
 (GWT.getHostPageBaseURL() + bold.jpg)

 You can of course use subfolders...

 The advantage of the first approach is if your module is reusable
 (inherit/ed in another module), you'll always have the images right
 (that's how the GWT themes work for example).
 The advantage of the second approach is that it's easy to change the
 image being used: just change the image in the war/, or even have
 multiple war folders each with a different bold.jpg in them. That's
 generally how you'd do themed versions for, e.g., different clients
 (e.g. the client's logo); provided it won't affect the app's layout.
 And you wouldn't even have to compile the app for each and every
 client: compile it once and just copy the generated code over and over
 in your different war/ folders.
 


--~--~-~--~~~---~--~~
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: Is there a tool to convert my GWT RemoteServiceServlet into the correct Service and ServiceAsync interfaces?

2009-09-23 Thread Thomas Broyer



On 23 sep, 03:39, AsaAyers asa.ay...@gmail.com wrote:
 I have the Google Eclipse plugin and if I update the service interface
 it will underline it and complain about the lack of an Async
 interface, but I don't see any settings to make it automagically
 update my Async interface. I checked my installed plugins and i'm
 running  Google Plugin for Eclipse 3.5 version 
 1.1.0.v200907291526.http://code.google.com/eclipse/docs/gwt_rpc.htmlindicates 
 that I
 should be getting the quick fix tips. Is there a setting I have to
 change somewhere to make that work?

No, you have to click the error mark in the left gutter in the code
editor, then you're proposed to update the Async interface.

As for adding your method in the servlet first rather than the
interface, you can then use Eclipse's Refactor - Pull Up... wizard
(then use the Set Action... button and select declare abstract in
the destination type instead of pull up)
--~--~-~--~~~---~--~~
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: Why Not Bypass The Middle Man

2009-09-23 Thread lusus

On Sep 23, 1:00 am, Daniel Jue teamp...@gmail.com wrote:
 You've essentially described the JVM which is on some 4 billion
 machines.  Have you programmed with Swing or Applets?

The idea that I am suggesting is, yes, essentially like the JVM. But
in my world, it would be a JVM running on a specific public port with
it's own protocols that differ from the web. And I'm talking about a
shift in public perception. No one (or let least not many people)
block port 80, or port 23. But companies do block other ports (for
various valid reasons). But if the general public could be convinced
to use the App-Browser idea, and it was known to be reliable and
secure, and a specific port was assumed to be used, it could open up
many new programming avenues. Or more to the point close some others -
like  Browser Incompatibility, lack of push, and the multi-layered
contortions necessary to make rich applications web ready.

Yes, I have used Swing and Applets. Applets are still confined to http
protocols. I realize that it's really mostly only the lack of push
that I am referring to on this point, but I believe it would make a
significant difference in web apps.

--~--~-~--~~~---~--~~
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: Why Not Bypass The Middle Man

2009-09-23 Thread lusus



On Sep 23, 1:25 am, DuoCentillion duocentill...@gmail.com wrote:
 I think currently the browser is more general, more secure, and more
 streamlined a model for broadcasting and communication than anything
 else yet proposed.  We dont rely exclusively on java programs or
 applets to do everything because it is not general and is not secure
 and certainly came after the World Wide Web which is again more
 general, more secure, and more streamlined.  Than requiring everyone
 to have java installed or adobe air or AOL, Prodigy, or Compuserve or
 whatever just to do the same basic function.

 Push for AJAX would be useful for some things, but it might I suspect
 sacrifice some security.

 Anyone else agree?


I'm not necessarily suggesting that the WWW go away. If what you want
to publish needs to be more general and streamlined, then use the
existing web. What I am talking about is an end to trying to mangle
the existing technologies to meet the less general rich application
needs. For that we have this new internet with an App-Browser.

And one of the main points of this idea is, as I said in my reply to
Daniel, a shift in the public view. We don't talk about requiring
people to have Internet Explorer, or FireFox, or Safari. It's assumed
that you have A browser, and that the browser will handle the
standards of the web. I'm looking at the idea of a browser that
becomes the necessary plug in for various programming languages, and
lives on a new internet.

And yes, push.
--~--~-~--~~~---~--~~
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: Why Not Bypass The Middle Man

2009-09-23 Thread lusus



 Well, have a look at Java Web Start, .NET ClickOnce or Adobe AIR
 install badge.

Java Web Start is in the right direction, but is still limited pull
communication, unless you use sockets on other ports, which may or may
not be available. I am starting to realize that my want for push is
driving much of my thoughts, but I think it would make a significant
difference.


 Something like Opera Unite?

I am not familiar with Opera Unite. I'll check it out.



 That'd be a Java applet, or a Java desktop app served with Java Web
 Start.

refer back to my earlier point. push, push, push.


 Yes!

Though yes is technically an answer, I was hoping for a bit more
discussion. : )


 Who would you do it? using a plug-in for each language? how would it
 be different from Flash, Silverlight or Java applets?

Basically, yes. The browser could have different VMs built into it.
AND run on it's own port with it's own protocols in order to
streamline the process. Discussion.

 Have a look at server-sent events in HTML5 and the WebSockets
 protocol and API.

I will. Thanks.


 Why do you think we're all dealing with x-browser compat? because
 people don't upgrade their browsers; so why would it be different?

But this new idea would halt the need for upgrades. As long as the
browser understood the language, the display of the application would
be handled by the programmer.


 No, why would it be?

It would of course depend on the implementation of the browser. But
I see Java (for instance) as being more encapsulated than things like
javascript, PHP, css, and html. You could control access to the client
computer's resources, etc. I will admit (and did) that this is my
least effective point. I again was looking for discussion.

 Hey, the WWW kiddy pool, you're a few years late!

??? I'm not sure what you are suggesting here.
--~--~-~--~~~---~--~~
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: Why Not Bypass The Middle Man

2009-09-23 Thread Yanick

Hi lusus,
I'm not a a guru in all web technologies, but I think knowing enough
to comment on this.


On Sep 23, 12:24 am, lusus l...@fishbytedesign.com wrote:
 First I would like to point out a few important facts:
 1) I think that GWT is a fantastic idea, and that the developers
 deserve awards and ice cream and funny hats and should be carried
 through the streets.
 2) I am just throwing this out as a discussion point.
 3) I am not a classically trained programmer, and some of my
 terminology may be technically errant. Try to go with the overarching
 idea, and not just write me off because I thought REST meant nap
 time.

 Now with that said, here's my question/thought.

 Isn't it time that we finally quit trying to warp the WWW into what we
 really want it to be, and come up with a new protocol all together?
 More specifically, isn't it time we made a browser that simply
 interprets the major programming languages - not riding on the WWW,
 but with it's own network protocols?


What do you mean by major programming languages? Javascript is a
major programming language. (more on this below) I understand,
however, that HTTP was originally created to display content
(documents) in standardized way, as BBS were insufficient, and there
was a need to, well, please the user and make it more attractive and
user friendly. Hypertext markup language (HTML) was born to satisfy
the problem, and it is still a proof of concept design even today with
web applications. XSLT tried to change that and allow custom markups,
and all, but my opinion is, why changing something that works and is
general enough to support nearly any kind of data representation? On
the same thought, I believe that the language is not faulty, but the
renderers that interprets it...

 It could exist like a stub on an individual client computer, run over
 it's own public port, and allow push AND pull communication.
 Programmers would need only to learn the proper communication methods,
 and could then write unbridled applications that are served directly
 to the clients, bypassing the rube-goldberg system of manipulation
 required to make it understandable by the CURRENT browsers.

 What if you could write a JAVA program where main() was served to the
 client browser and that's that. As cool as GWT is, when you step
 back and think about the actual structure, it's conjures (at least for
 me) images of popsicle sticks and duct tape. First you write the JAVA
 code, and add CSS styles. Those are combined and interpreted to
 Javascript which is optimized to several (currently used) browsers,
 which is in turn interpreted to HTML and displayed in the browser,
 which is based on a protocol that does not REALLY allow push
 communication. *** Again, nothing against the GWT developers. They did
 a fine job of contorting the existing structures to bring us closer to
 the goal. ***



Push communication is evil as it allows servers to send data to the
client, and I certainly don't want to end up on a web page having data
uploaded to me without my consent, or knowing about it. What about
push techniques? you might say, well, at least we see a Loading...
message while the page push is being made. Furthermore, the amount
of work to simply allow this, supposing it's really implemented, and
to keep track of all users connected to the web page is too great for
the trouble. I mean, we're not talking about enterprise applications
only here, but world wide web applications. How could a busy web
server keep track of all the thousands users, if not millions,
connected to it's content and knowing when it's no longer necessary to
send data? The overall process would simply slow the server down.
Except keeping track of session data between calls and have a garbage
collection system to cleanup all this on inactive data is quit enough
trouble already. On the other hand, you can actually use third party
software (ie. Java) to do this; Applets may keep a socket open in TCP
to the origin and receive push from it, if you really need to.

GWT actually solves a big issue for many big project; a standardized
way to communicate to the server(s) throughout the whole application.
And even re-use the system in all projects. I personally consider text/
XML/JSON responses as legacy, and RPC as the new way of
communicating with the server side part of the application. There are
still improvements to be made, about protocol and especially on the
software layer design patterns, but the general idea is there, and it
works. There are actually existing projects being developped to allow
GWT and PHP to communicate through RPC, and the idea is sound and
looks promissing. This means that it won't matter what language your
servers can support; your GWT application will be able to communicate
using RPCs with PHP, Java, etc. in a seamless fashion.


 I realize that, as far as cloud computing is concerned, the GWT
 outcome is (almost) the same as what I'm talking about. You write JAVA
 code, and it 

Re: FileUpload Service????

2009-09-23 Thread monk3y

Hi

myFormHandler would be your server side class name.

in your xml file you would write something like this

servlet-namemyFormHandler/servlet-name
  servlet-classnet.myapp.server.servlets.myFormHandler/servlet-
class
  /servlet
 servlet-mapping
  servlet-namemyFormHandler/servlet-name
  url-pattern/myFormHandler/url-pattern
  /servlet-mapping

So every time you submit your form it would go to that server mapping.

Something along those lines.
HTH
:).
On Sep 23, 9:06 am, GumbyGWTBeginner stephan.gump...@gmail.com
wrote:
 Hi,

 The example below uses the FileUpload Class for sending a file to the
 Server.

 My question (being very new at this) where and how do I write my
 Service  (in this case     form.setAction(/myFormHandler);).

 If my question is clear.

 Stephan

 public class FormPanelExample implements EntryPoint {

   public void onModuleLoad() {
     // Create a FormPanel and point it at a service.
     final FormPanel form = new FormPanel();
     form.setAction(/myFormHandler);

     // Because we're going to add a FileUpload widget, we'll need to
 set the
     // form to use the POST method, and multipart MIME encoding.
     form.setEncoding(FormPanel.ENCODING_MULTIPART);
     form.setMethod(FormPanel.METHOD_POST);

     // Create a panel to hold all of the form widgets.
     VerticalPanel panel = new VerticalPanel();
     form.setWidget(panel);

     // Create a TextBox, giving it a name so that it will be
 submitted.
     final TextBox tb = new TextBox();
     tb.setName(textBoxFormElement);
     panel.add(tb);

     // Create a ListBox, giving it a name and some values to be
 associated with
     // its options.
     ListBox lb = new ListBox();
     lb.setName(listBoxFormElement);
     lb.addItem(foo, fooValue);
     lb.addItem(bar, barValue);
     lb.addItem(baz, bazValue);
     panel.add(lb);

     // Create a FileUpload widget.
     FileUpload upload = new FileUpload();
     upload.setName(uploadFormElement);
     panel.add(upload);

     // Add a 'submit' button.
     panel.add(new Button(Submit, new ClickListener() {
       public void onClick(Widget sender) {
         form.submit();
       }
     }));

     // Add an event handler to the form.
     form.addFormHandler(new FormHandler() {
       public void onSubmit(FormSubmitEvent event) {
         // This event is fired just before the form is submitted. We
 can take
         // this opportunity to perform validation.
         if (tb.getText().length() == 0) {
           Window.alert(The text box must not be empty);
           event.setCancelled(true);
         }
       }

       public void onSubmitComplete(FormSubmitCompleteEvent event) {
         // When the form submission is successfully completed, this
 event is
         // fired. Assuming the service returned a response of type
 text/html,
         // we can get the result text here (see the FormPanel
 documentation for
         // further explanation).
         Window.alert(event.getResults());
       }
     });

     RootPanel.get().add(form);
   }





 }
--~--~-~--~~~---~--~~
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-FX cover flow demo source ?

2009-09-23 Thread monk3y

when you download the jar...the source is in there with it.

On Sep 22, 8:45 am, Frank frank.wyna...@gmail.com wrote:
 Onhttp://code.google.com/p/gwt-fx/there is a demo of a coverflow
 widget.
 I am interested in using such a coverflow widget on my website.

 Is the source code for this widget available somewhere ?
--~--~-~--~~~---~--~~
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: Input Validation

2009-09-23 Thread monk3y

Expanding on what Geraldo already said you can have the following

Button saveBtn = new Button(Save)
saveBtn.addClickHandler( new ClickHandler() {
  public void onClick(Event event) {
if(checkData()){
  form.submit();
}else{
//no submit
}
  }
 }

});

public boolean checkData(){
  if(nameEditBox.getText().trim().equals()){
 Window.alert(Name can not be blank);
 return false;
  }
 if(phoneBox.getText().trim().equals()){
 Window.alert(Phone can not be blank);
 return false;
  }

return true;
}

You get the idea :).

On Sep 23, 3:27 am, Geraldo Lopes geraldo...@gmail.com wrote:
 mohan,

 At client you can put an event on button that advises the user to
 enter proper information.

 Button saveBtn = new Button(Save)
 saveBtn.addClickHandler( new ClickHandler() {
   public void onClick(Event event) {
       if (nameEditBox.getText().equals()) {
           Window.alert(bla bla bla)
         return;
       }
  }

 });

 if the validation depends on the server you can use gwt rpc mechanism
 to achieve that

 http://code.google.com/intl/en/webtoolkit/doc/1.6/DevGuideServerCommu...

 Good Luck,

 Geraldo

 On 22 set, 06:49, mohan yen.mo...@gmail.com wrote:

  Hi,
   I am very new to GWT. I have a form with Name,phone and email. I need
  to validate the input. How can i do that? Kindly guide me.
  Thanks in advance.

  Cheers!!!
  Mohan
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Refresh content of Dictionary object

2009-09-23 Thread Steven De Groote

Hi,

is there some way to dynamically refresh/change the content of the
Dictionary i18n object?
I currently have a script src=lang.js/script that provides for
the content of my dictionary.

This works fine, but now the lang.js content has changed (through some
actions).
Unfortunately, the changes are not reflected in my Dictionary.

I tried this too:

Element e = DOM.getElementById(MSGS_JS_TAG_NAME);
if(e != null) {
DOM.removeChild(RootPanel.get().getElement(), e);
}

e = DOM.createElement(script);
DOM.setElementProperty(e, language, JavaScript);
DOM.setElementProperty(e, src, url);
DOM.setElementProperty(e, id, MSGS_JS_TAG_NAME);
DOM.appendChild(RootPanel.get().getElement(), e);

But still the values I get from Dictionary are not the same as those
in the JS, until I eventually refresh the page.

Is there a way I can do this without refreshing?


Thanks,
Steven
--~--~-~--~~~---~--~~
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: Why Not Bypass The Middle Man

2009-09-23 Thread Trevis

  Would it be that hard to get the general public to accept a new  internet 
 that involves application browsers?
I think that you dramatically underestimate people’s reluctance to
install something new.  It took a long time for the web and its
protocols to reach the levels of saturation that they currently have.
Trying to create a brand new one would just about be an exercise in
futility.
But about GWT specifically... think about it like this.  GWT is the
evolution of web development.  It does what computer languages and
development technologies have always done. They took a look at what
was needed Javascript, CSS, html, Ajax and they encapsulated it
allowing the developer to compose solutions to their specific needs
without (or with little) regard for the underlying complexities.
Compare that what a high level language like C or Fortran are.  They
allow you to compose solutions to your problems in relatively easy to
manage functions.  You don’t care what it takes in assembly language
to get user input from a keyboard you just create an input stream.
This level of encapsulation is what GWT brings to the table for the
web and in my opinion it is simply brilliant in its execution.
I’ve been doing web and app development professionally for over 12
years now and I can’t remember the last time I was this excited about
a new technology.  I find that being able to compose web UI’s with a
rich programming language to be liberating.
Now that I’ve gone completely off track, to address your concern more
directly: what would a new protocol mean for me as a developer? If all
it provides is a way for me to execute Java (or some other high level
language) on the client then for one thing it’s not really giving me
anything fundamentally new.  Especially if the UI Widget set was still
based on Swing or AWT or the like.  What it really does is limits
where my app can be used because no one (or very few people) will have
the ability to connect to it.  The inherent ability to push from the
server is pretty trivial in comparison to not having an app that can
be used by the majority of people without requiring them to install
new software and potentially modify firewall or other hardware
settings.  I mean, I’d rather just fake push by polling the server and
have it usable to everyone. Ajax makes that trivial.  And GWT makes
Ajax trivial.



On Sep 23, 8:32 am, lusus l...@fishbytedesign.com wrote:
  Well, have a look at Java Web Start, .NET ClickOnce or Adobe AIR
  install badge.

 Java Web Start is in the right direction, but is still limited pull
 communication, unless you use sockets on other ports, which may or may
 not be available. I am starting to realize that my want for push is
 driving much of my thoughts, but I think it would make a significant
 difference.



  Something like Opera Unite?

 I am not familiar with Opera Unite. I'll check it out.



  That'd be a Java applet, or a Java desktop app served with Java Web
  Start.

 refer back to my earlier point. push, push, push.



  Yes!

 Though yes is technically an answer, I was hoping for a bit more
 discussion. : )



  Who would you do it? using a plug-in for each language? how would it
  be different from Flash, Silverlight or Java applets?

 Basically, yes. The browser could have different VMs built into it.
 AND run on it's own port with it's own protocols in order to
 streamline the process. Discussion.

  Have a look at server-sent events in HTML5 and the WebSockets
  protocol and API.

 I will. Thanks.



  Why do you think we're all dealing with x-browser compat? because
  people don't upgrade their browsers; so why would it be different?

 But this new idea would halt the need for upgrades. As long as the
 browser understood the language, the display of the application would
 be handled by the programmer.



  No, why would it be?

 It would of course depend on the implementation of the browser. But
 I see Java (for instance) as being more encapsulated than things like
 javascript, PHP, css, and html. You could control access to the client
 computer's resources, etc. I will admit (and did) that this is my
 least effective point. I again was looking for discussion.

  Hey, the WWW kiddy pool, you're a few years late!

 ??? I'm not sure what you are suggesting here.
--~--~-~--~~~---~--~~
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: Refresh content of Dictionary object

2009-09-23 Thread Thomas Broyer



On 23 sep, 16:20, Steven De Groote stevendegro...@gmail.com wrote:
 Hi,

 is there some way to dynamically refresh/change the content of the
 Dictionary i18n object?
 I currently have a script src=lang.js/script that provides for
 the content of my dictionary.

 This works fine, but now the lang.js content has changed (through some
 actions).
 Unfortunately, the changes are not reflected in my Dictionary.

 I tried this too:

 Element e = DOM.getElementById(MSGS_JS_TAG_NAME);
 if(e != null) {
         DOM.removeChild(RootPanel.get().getElement(), e);

 }

 e = DOM.createElement(script);
 DOM.setElementProperty(e, language, JavaScript);
 DOM.setElementProperty(e, src, url);
 DOM.setElementProperty(e, id, MSGS_JS_TAG_NAME);
 DOM.appendChild(RootPanel.get().getElement(), e);

 But still the values I get from Dictionary are not the same as those
 in the JS, until I eventually refresh the page.

 Is there a way I can do this without refreshing?

To put it simply: no; because Dictionary hasn't been designed for this
use case (it has several levels of internal caching).

...but you can use JSNI and/or JavaScriptObject (overlays) instead of
Dictionary with the same result and more flexibility.
--~--~-~--~~~---~--~~
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: Allowing JavaScript injection using innerHTML

2009-09-23 Thread JohnJ

Thanks for you post Thomas.  You're right it's only working for me w/
JQuery.  I have created a wrapper method that uses JQuery under the
hood.

It *seems* to work.

Altho, Now it appears I have a display issue where it the embedded
gadget is the only thing displayed on the page (my host page seems to
vanish).

On to the next problem :-)



On Sep 23, 8:41 am, Thomas Broyer t.bro...@gmail.com wrote:
 On 23 sep, 02:27, JohnJ ufm...@gmail.com wrote:

  I would like to allow the following... (I know this could cause XSS
  issues but the users of this system are trusted).

  DOM.getElementById('someid').setInnerHTML(scriptalert('hello!');/
  script);

  If run this in hosted mode it appears to do nothing. If I compile and
  browse this with Firefox/Firebug it looks like the right markup is
  being added to the page but not executed.

  I am able to do this w/ JQuery or plain JavaScript I wonder if GWT is
  encoding the script tags?

 No, GWT isn't doing anything specific here; but jQuery does (using ./
 html(...), it scans for script elements in the parsed DOM and then
 execute their content with an eval()).
 As for plan JavaScript, well, I don't know how you tested it but I
 can't get it to run in any browser (tested: Chrome 4(dev), Firefox
 3.5.3, IE8 and Opera 10) with the following code:
 !DOCTYPE html
 body
 button type=button onclick=document.body.innerHTML +=
 'fooscriptalert(quot;hello!quot;)/script'Click me!/button

 Well, note that you *can* make the script run in IE if you use the
 'defer' attribute: script deferalert(hello);/script, as
 explained on the 
 MSDN:http://msdn.microsoft.com/en-us/library/ms533897(VS.85).aspx
 ...but HTML5 specs it as not executing 
 scripts:http://www.w3.org/TR/2008/WD-html5-20080610/dom.html#innerhtml0
--~--~-~--~~~---~--~~
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 a GWT module can be loaded dynamically?

2009-09-23 Thread bgoetzmann

Thank you Thomas,

I searched on the GWT source code, and learnt several things on
linkers. For the moment, what can interest me is how I could modify
the ...Main.nocache.js file. I thought find a template...
Any idea about this?

- Bertrand.


On 19 sep, 00:53, Thomas Broyer t.bro...@gmail.com wrote:
 On 17 sep, 18:32, bgoetzmann bertrand.goetzm...@gmail.com wrote:





  Hello,

  I'm developing a GWT 1.6 application with SmartGWT; the application
  works well! The web page's body I use has of course the code bellow to
  load the application:

  script language=javascript src=/...Main.nocache.js/script

  I search a way to dynamically load the application but without
  success; for example, on a link with code like this, in order to add a
  script tag to the page's document:

  a href=javascript:f()test/a

  Having f defined like this:
  function f() {
              var script = document.createElement('script');
              script.setAttribute('type', 'text/javascript');
              script.setAttribute('src', '/...Main.nocache.js');
              document.getElementsByTagName('body')[0].appendChild
  (script);

  }

  But it soesn't work;the behavior is even strange because the entire
  page content is replaced by the tag html containg a sery of script
  tags.

 That's because the selection scripts (nocache.js) use document.write()

  How can I achieve a dynamic load?

 You'd have to write your own selection script. Search the group
 archives and look at Linkers.
--~--~-~--~~~---~--~~
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: Why Not Bypass The Middle Man

2009-09-23 Thread lusus


 What do you mean by major programming languages? Javascript is a
 major programming language. (more on this below) I understand,
 however, that HTTP was originally created to display content
 (documents) in standardized way, as BBS were insufficient, and there
 was a need to, well, please the user and make it more attractive and
 user friendly. Hypertext markup language (HTML) was born to satisfy
 the problem, and it is still a proof of concept design even today with
 web applications. XSLT tried to change that and allow custom markups,
 and all, but my opinion is, why changing something that works and is
 general enough to support nearly any kind of data representation? On
 the same thought, I believe that the language is not faulty, but the
 renderers that interprets it...

The semantics about which programs are Major is for a different
discussion. That was me be purposely general.
And yes, the renderers are most of the problem. What I am proposing is
(partially) a new rendering model. JAVA (and other languages) have the
ability to render graphics themselves. Why do we need to then convert
that code to javascript, and then to html to then be interpreted by
any number of different browsers. It's a long walk to get a short
distance.



 Push communication is evil as it allows servers to send data to the
 client, and I certainly don't want to end up on a web page having data
 uploaded to me without my consent, or knowing about it. What about
 push techniques? you might say, well, at least we see a Loading...
 message while the page push is being made. Furthermore, the amount
 of work to simply allow this, supposing it's really implemented, and
 to keep track of all users connected to the web page is too great for
 the trouble. I mean, we're not talking about enterprise applications
 only here, but world wide web applications. How could a busy web
 server keep track of all the thousands users, if not millions,
 connected to it's content and knowing when it's no longer necessary to
 send data? The overall process would simply slow the server down.
 Except keeping track of session data between calls and have a garbage
 collection system to cleanup all this on inactive data is quit enough
 trouble already. On the other hand, you can actually use third party
 software (ie. Java) to do this; Applets may keep a socket open in TCP
 to the origin and receive push from it, if you really need to.

I think I can safely say that push is NOT evil. Not in itself. Perhaps
there are evil things that can be done with it, but push is actually
very useful for number of purposes. It is absolutely possible/
plausible. We are talking about rich applications not just banner ads.
And yes, sockets can be used, but that brings up my point about ports.
(see my other responses).

 GWT actually solves a big issue for many big project; a standardized
 way to communicate to the server(s) throughout the whole application.
 And even re-use the system in all projects. I personally consider text/
 XML/JSON responses as legacy, and RPC as the new way of
 communicating with the server side part of the application. There are
 still improvements to be made, about protocol and especially on the
 software layer design patterns, but the general idea is there, and it
 works. There are actually existing projects being developped to allow
 GWT and PHP to communicate through RPC, and the idea is sound and
 looks promissing. This means that it won't matter what language your
 servers can support; your GWT application will be able to communicate
 using RPCs with PHP, Java, etc. in a seamless fashion.

Again, and I can't say it enough, I think that GWT is great, and a
huge step in the right direction. I think that GWT points directly to
what we have been slowly moving toward since the beginning of the WWW
- the idea of serving real and robust applications. I think that,
instead of continuing to contort the web, and stack new technologies
on top of it, perhaps we should look at the idea of a new internet
that takes into account the technologies and discovered needs that
didn't exist when the web was originally created.

 Many optimizations have been made on the engines that runs
 Javascripts. The language itself has evolved and tends to have a more
 rebust structure (http://en.wikipedia.org/wiki/JavaScript. see
 versions table). The problem is that there is not a general consensus
 on this and browsers may implement the specification they want. It
 will take time, a very long time, but I believe that eventually we'll
 get to a point where Javascript will be as fast as Java. (Same with
 CSS.)

 I personally do not like the idea of a browser natively supporting
 many languages, as it is hard enough for all browsers to all support
 one single up-to-date language. Javascript is a great language for
 client side programming. There is this idea laying around for many
 years now, that a server and client might execute and communicate both
 sides with 

Re: Why Not Bypass The Middle Man

2009-09-23 Thread lusus


   Would it be that hard to get the general public to accept a new  internet 
  that involves application browsers?

 I think that you dramatically underestimate people’s reluctance to
 install something new.  It took a long time for the web and its
 protocols to reach the levels of saturation that they currently have.
 Trying to create a brand new one would just about be an exercise in
 futility.
 But about GWT specifically... think about it like this.  GWT is the
 evolution of web development.  It does what computer languages and
 development technologies have always done. They took a look at what
 was needed Javascript, CSS, html, Ajax and they encapsulated it
 allowing the developer to compose solutions to their specific needs
 without (or with little) regard for the underlying complexities.
 Compare that what a high level language like C or Fortran are.  They
 allow you to compose solutions to your problems in relatively easy to
 manage functions.  You don’t care what it takes in assembly language
 to get user input from a keyboard you just create an input stream.
 This level of encapsulation is what GWT brings to the table for the
 web and in my opinion it is simply brilliant in its execution.
 I’ve been doing web and app development professionally for over 12
 years now and I can’t remember the last time I was this excited about
 a new technology.  I find that being able to compose web UI’s with a
 rich programming language to be liberating.
 Now that I’ve gone completely off track, to address your concern more
 directly: what would a new protocol mean for me as a developer? If all
 it provides is a way for me to execute Java (or some other high level
 language) on the client then for one thing it’s not really giving me
 anything fundamentally new.  Especially if the UI Widget set was still
 based on Swing or AWT or the like.  What it really does is limits
 where my app can be used because no one (or very few people) will have
 the ability to connect to it.  The inherent ability to push from the
 server is pretty trivial in comparison to not having an app that can
 be used by the majority of people without requiring them to install
 new software and potentially modify firewall or other hardware
 settings.  I mean, I’d rather just fake push by polling the server and
 have it usable to everyone. Ajax makes that trivial.  And GWT makes
 Ajax trivial.

Good input. And the funny thing is I agree with most of what you say.
I definitely agree that GWT is the most exciting thing that has
happened in the web world in a long long time. And yes, who cares
what's under the hood (or in the cloud). But I still say two things:
1) even with GWT, you still have to rely on CSS, and therefore, deal
with all the browser incompatibilities. 2) I still think that having
push abilities would be a great step forward.
oh, and I'm not saying it would be simple, but I believe that we could
eventually get the world to accept a new browser (and network). Just
thinking.
--~--~-~--~~~---~--~~
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 Chrome Frame GWT

2009-09-23 Thread Duong BaTien

Wow. let us know when the market (i.e. user has Google Chrome Frame
installed or HTML-5) is large enough for this technology.

Duong BaTien
DBGROUPS and BudhNet

On Wed, 2009-09-23 at 08:22 +0200, Niklas Derouche wrote:
 So here comes Google Chrome Frame. A brilliant idea and sorely needed
 by IE.
 (if you don't know what it is then:
 http://code.google.com/chrome/chromeframe/ )
 
 
 Ok. So IE will be running content as if it was chrome based on a tag
 in the page.
 How do we deal with that? I am sure there are multiple strategies but
 someone
 has probably thought of some very smart way of doing this and I am too
 lazy to
 come up with one.
 
 
 BR
 
 
 Niklas Derouche
 
 -- 
 ---
 Ave bossa nova, similis bossa seneca
 
 
  


--~--~-~--~~~---~--~~
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 Chrome Frame GWT

2009-09-23 Thread Duong BaTien

Hello Phillip:

Thanks, the blog is helpful. The next round of our GWT Apps will have
the tag.

Duong BaTien
DBGROUPS and BudhNet


On Wed, 2009-09-23 at 00:39 -0700, PhillipB wrote:
 Using Chrome Frame with GWT is discussed on the GWT blog...
 http://googlewebtoolkit.blogspot.com/2009/09/delivering-faster-richer-gwt.html
 
 I think it will answer your question.
 
 /PhillipB
  


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



login page

2009-09-23 Thread osquitranki

Hi,
I have a login page. This page is my entry-point.

When the login is ok then I want go to other jsp page. But when I go
to the page I lost the control of gwt.

who can make this?


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: A well-behaved, browser independent layout framework

2009-09-23 Thread kozura

Thanks for the pointer to LayoutPanel, at first glance it looks like
it is trying to address some of this, so I'll certainly join in the
discussion there!

As for UiBinder, it really doesn't solve the problem, just punts it
to...html.  GWT solves most every problem in cross-browser
compatibility, allowing the building of great coherent applications in
browsers - except for a good layout framework.  Relegating GWT to
widgets sprinkled throughout a web of html, while a fine usage model,
takes a step backwards and drops on many of the benefits of building a
sophisticated, dynamic application in GWT.

--~--~-~--~~~---~--~~
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 + mysql (noob questions)

2009-09-23 Thread PJ Gray
I am writing a fairly large web app using GWT in Eclipse.My background
is as a c++ desktop developer, so while I have used java before, sometimes I
stumble on easy stuff.

Anyway, I am currently attempting to implement a database to store data from
my webapp.   I am far from an expert in SQL, but I have done some desktop
programming of SQL before, so I feel comfortable enough doing SELECTs and
whatnot.   (Most recently I did some development using the iPhone Sqlite
stuff).

Can someone point me to a good tutorial or something that gives an example
of storing simple user data in a database from a GWT app?  I found a servlet
based java/mysql example, so I am concentrating on classes like datasource
right now.   I can only assume the SQL stuff needs to be contained on the
server side of a GWT app anyway, so I was going to start there.  But I had
questions like:

- what is the process for connecting to a database in hosted mode? Is
just left to me to get something like MySql installed locally, and then
follow instructions like listed here (
http://humblecode.blogspot.com/2009/05/gwt-16-using-jndi-datasource.html) in
order to connect?

- when I do deploy to a live webserver, is it just a matter of switching the
database config (username/password, database name etc)? (as long as I have
everything setup in mysql on my live webserver obviously)

- how does 'Hibernate' fit into all this?   I read about it, and see it
mentioned everywhere.It looks like a library for persisting my java
objects in the database, rather than pulling information out of my objects
and storing the data only?  Is that accurate?If so, I could write my
persistance layer in such a way that I could start by storing the data raw
(Strings, longs whatever), then later as my app becomes more complex, I
could implement Hibernate to start storing my model objects directly?

Thanks in advance!

-pj

--~--~-~--~~~---~--~~
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: Why Not Bypass The Middle Man

2009-09-23 Thread Célio

On 23 set, 01:24, lusus l...@fishbytedesign.com wrote:
 Isn't it time that we finally quit trying to warp the WWW into what we
 really want it to be, and come up with a new protocol all together?

Mr. Lusus, let me shake your hand, that's exactly as my own feeling is
about the web today. We have tried to push the actual 'web' beyond its
capabilities. Our problems are conceptually simple:

- HTTP is a request/response protocol.
- HTML is a document presentation language.
- JavaScript is a poor scripting language.

That's the wrong foundation for actual web applications and using duct
tape is not the solution. I keep wondering when will people stop
making kludges upon that foundation.


On 23 set, 07:57, Thomas Broyer t.bro...@gmail.com wrote:
 Have a look at server-sent events in HTML5 and the WebSockets
 protocol and API.

HTML5, WebSockets, AJAX and all that new stuff are simply *kludges*,
IMHO. More than that, they are a *clear sign* that we need a new
foundation for web applications.

My 2 cents.

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



Eclipse client server separation

2009-09-23 Thread kilaka

Hi all,

GWT enables. among other things, the use of the same classes in client
and server code.
Client code is compiled to JavaScript and server code to Java byte-
code.

My problem is:
If a GWT application is developed in one eclipse project - both client
and server,
client code can directly invoke server code and vice versa.
The recommendation to help from making such a mistake is to use a
package convention:
- com.same.client for client code and
- com.sample.server for server code

This is not sufficient enough, for such mistake may still happen -
especially when the eclipse adds imports automatically to the head of
file in the imports section which is folded by default, causing you
not to notice the package name.

Also, there are classes that are shared by both the server and the
client, like the Greetings interface(client uses and server
implements). Where does it goes?

I tried creating a working development environment with 3 projects:
- Client
- Server
- Shared

It was very complicated and needed a symbolic link from Shared to
client - for the compilation to JavaScript.

Does anyone feels the need as I am?
Did anyone create such a hello world development environment?

Thanks,
 Alik.

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



Link static html elements with GWT

2009-09-23 Thread newUser

Hi All,

I am a newbie here so please excuse me if I write a silly question.

I have a html code like:

div id=navhome
ul
  lia href=Home.htmlHOME/a/li
/ul
/div
div id=navcontrol
ul
  lia href=CONTROL ROOM/a/li
/ul
/div

Now, what i want to do is, whenever the user clicks on the control
Room link (as above), only some part of the web page is updated.
However, i am unable to catch the click event on the Control Room
link. What I have tried is :

DOM.sinkEvents(DOM.getElementById(navcontrol), Event.ONCLICK);
DOM.setEventListener(DOM.getElementById(navcontrol), new
EventListener() {
public void onBrowserEvent(Event event) {
mainPanel.setSize(10px, 10px);
}
});

Can someone help me identify the mistake? 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: How to handle Multiple Modules at run time?

2009-09-23 Thread benjamin strappazzon

I group,

Just for information, I carry out a study on integrating GWT on an
home made framework and I have the same issue. Application written
with the framework can be quite huge and I'm wondering if it'is
possible to load module on demand?

On 23 sep, 04:12, ak kondal...@gmail.com wrote:
 Depending on user selection, I need to handle multiple applications at
 runtime. I don't want load all modules at startup, because this takes
 long time to load.

 Can some one help me to resolve this?

--~--~-~--~~~---~--~~
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: Link static html elements with GWT

2009-09-23 Thread Trevis

Wow.  Mixing custom html and GWT looks painful.   I would never do
this.  I'll be curious to see if someone clears up how to make this
work.


On Sep 23, 3:41 am, newUser diwakar...@gmail.com wrote:
 Hi All,

 I am a newbie here so please excuse me if I write a silly question.

 I have a html code like:

 div id=navhome
         ul
           lia href=Home.htmlHOME/a/li
         /ul
 /div
 div id=navcontrol
         ul
           lia href=CONTROL ROOM/a/li
         /ul
 /div

 Now, what i want to do is, whenever the user clicks on the control
 Room link (as above), only some part of the web page is updated.
 However, i am unable to catch the click event on the Control Room
 link. What I have tried is :

 DOM.sinkEvents(DOM.getElementById(navcontrol), Event.ONCLICK);
                 DOM.setEventListener(DOM.getElementById(navcontrol), new
 EventListener() {
                         public void onBrowserEvent(Event event) {
                                 mainPanel.setSize(10px, 10px);
                         }
                 });

 Can someone help me identify the mistake? 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: Allowing JavaScript injection using innerHTML

2009-09-23 Thread Thomas Broyer



On 23 sep, 16:50, JohnJ ufm...@gmail.com wrote:
 Thanks for you post Thomas.  You're right it's only working for me w/
 JQuery.  I have created a wrapper method that uses JQuery under the
 hood.

 It *seems* to work.

 Altho, Now it appears I have a display issue where it the embedded
 gadget is the only thing displayed on the page (my host page seems to
 vanish).

 On to the next problem :-)

document.write() somewhere in the executed script?
--~--~-~--~~~---~--~~
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 can I have a function in my button call back, call a function in another class?????

2009-09-23 Thread tedpottel

Hi,
I have a function that updates the display on my UI.  It creats del
buttons for each olomn.  I set the row index to be stored in the call
back class for each button.  When a person clicks on a button and is
in the callback class, how can they call my update function to show
the changes
The code
public cGetDatabase(String address,
VerticalPanel vname, VerticalPanel vemail,VerticalPanel 
vdel,
VerticalPanel vedit)
{
// set up final veribols
this.url=address;
this.vemail=vemail;
this.vname=vname;
this.vdel=vdel;
this.vedit=vedit;
}

// Main class calls this function
public boolean Send()
{

// Object to talk to server send http request
RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
URL.encode(this.url));
builder.setTimeoutMillis(5000);

// Call server using http
try {
// RequestCallback is a class
  Request request = builder.sendRequest(null, new 
RequestCallback()
{

  // this is in the RequestCallback class
  public void onError(Request request, Throwable 
exception)
  {
   // Couldn't connect to server (could be timeout, SOP
violation, etc.)
}

// when server returns string come here
public void HandleResponse(String data)
{
// return;

String lines[];
lines=data.split(\r);


String line[];

// Phrase the string
for(int i=0; ilines.length; i=i+1)
   {
if ( lines[i].charAt(0)'a' )
lines[i]=lines[i].substring(1);

line=lines[i].split(\t);
String name=line[0];
String email=line[1];

// vname is a UI vertical container

callback click = new callback(1);

Button but= new Button(del,click);

but.setPixelSize(40,25);

vdel.add(but);
vname.add(new Label(name));
vemail.add(new Label(email));

// add the buttons


   }


}

public void onResponseReceived(Request request, Response
response)
{
  if (200 == response.getStatusCode()) {
  HandleResponse(response.getText());

  } else {
// Handle the error.  Can get the status text from
response.getStatusText()
Window.alert(Server could not respond);
  }
}
  });

} catch (RequestException e) {
  // Couldn't connect to server
Window.alert(Could not connect to server);

}


return true;
}

--~--~-~--~~~---~--~~
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 handle Multiple Modules at run time?

2009-09-23 Thread Sripathi Krishnan
It is possible in GWT 2.0. Its hasn't been released, but you can grab a copy
by building from trunk.

You should see the presentation http://www.youtube.com/watch?v=GrHV54VhlSo
Also, you should read the documentation
http://code.google.com/p/google-web-toolkit/wiki/CodeSplitting


--Sri


2009/9/23 benjamin strappazzon benjamin.strappaz...@gmail.com


 I group,

 Just for information, I carry out a study on integrating GWT on an
 home made framework and I have the same issue. Application written
 with the framework can be quite huge and I'm wondering if it'is
 possible to load module on demand?

 On 23 sep, 04:12, ak kondal...@gmail.com wrote:
  Depending on user selection, I need to handle multiple applications at
  runtime. I don't want load all modules at startup, because this takes
  long time to load.
 
  Can some one help me to resolve this?

 


--~--~-~--~~~---~--~~
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: Best way to pass value to

2009-09-23 Thread Trevis

I'm not 100% sure i understand the question but it sounds like the
answer would be History.  That's how you tell a GWT app to show a
specific page.



On Sep 23, 1:38 am, dannhila...@gmail.com dannhila...@gmail.com
wrote:
 My GWT app is embedded inside a tab view of a JSP page and I wanted to
 render the GWT module based on the content/context of the parent
 HTML.

 This requires passing initial value to the GWT app entry point and
 from there the GWT app can fetch values to server using RPC.  I was
 able to do this using com.google.gwt.i18n.client.Dictionary
 approach.

 My question is, is this the best way to do it or is there better
 alternative/s?

 Thanks,
 Dann
--~--~-~--~~~---~--~~
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 + mysql (noob questions)

2009-09-23 Thread Trevis

I dont have any tutorials at hand but your understanding of where the
DB code lies is correct.  It's totally on the server side and has
nothing to do with GWT.  Your GWT app would get access to the data via
RPC.  The RPC methods would in turn get data from the DB.

Hibernate is an ORM (object relational mapper) which allows you to tie
Classes to DB tables in a way that is largely transparent to your
application.  One problem though in using hibernate with GWT is that
the classes created via hibernate cant be serialized to the client via
RPC (not that i know of anyway) so a lot of people use different
libraries to make clones of the faux-POJO's so that they can be
serialized.  (I do this in the project that i'm working on but i did
it by hand)  (um, POJO means plain old java object).

If you're interested in using hibernate you should probably use it
from the start because retrofitting the application after the fact
would on undoubtedly be extremely painful. But with that said and with
as much as i love hibernate if you're using all of these new
technologies together for the first time you may become overwhelmed
and hibernate is a fairly involved framework so you might be better
off getting a good grip on GWT and GWT's RPC mechanism first.

but as always, ymmv

On Sep 23, 10:53 am, PJ Gray pj4...@gmail.com wrote:
 I am writing a fairly large web app using GWT in Eclipse.    My background
 is as a c++ desktop developer, so while I have used java before, sometimes I
 stumble on easy stuff.

 Anyway, I am currently attempting to implement a database to store data from
 my webapp.   I am far from an expert in SQL, but I have done some desktop
 programming of SQL before, so I feel comfortable enough doing SELECTs and
 whatnot.   (Most recently I did some development using the iPhone Sqlite
 stuff).

 Can someone point me to a good tutorial or something that gives an example
 of storing simple user data in a database from a GWT app?  I found a servlet
 based java/mysql example, so I am concentrating on classes like datasource
 right now.   I can only assume the SQL stuff needs to be contained on the
 server side of a GWT app anyway, so I was going to start there.  But I had
 questions like:

 - what is the process for connecting to a database in hosted mode?     Is
 just left to me to get something like MySql installed locally, and then
 follow instructions like listed here 
 (http://humblecode.blogspot.com/2009/05/gwt-16-using-jndi-datasource.html) in
 order to connect?

 - when I do deploy to a live webserver, is it just a matter of switching the
 database config (username/password, database name etc)? (as long as I have
 everything setup in mysql on my live webserver obviously)

 - how does 'Hibernate' fit into all this?   I read about it, and see it
 mentioned everywhere.    It looks like a library for persisting my java
 objects in the database, rather than pulling information out of my objects
 and storing the data only?  Is that accurate?    If so, I could write my
 persistance layer in such a way that I could start by storing the data raw
 (Strings, longs whatever), then later as my app becomes more complex, I
 could implement Hibernate to start storing my model objects directly?

 Thanks in advance!

 -pj
--~--~-~--~~~---~--~~
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: Eclipse client server separation

2009-09-23 Thread David Durham

 I tried creating a working development environment with 3 projects:
 - Client
 - Server
 - Shared

 It was very complicated and needed a symbolic link from Shared to
 client - for the compilation to JavaScript.

I think you have a decent plan, creating 3 projects.  You should not
need symbolic links if you're using the GWT module concept properly.

http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideModules

-Dave

--~--~-~--~~~---~--~~
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 can I have a function in my button call back, call a function in another class?????

2009-09-23 Thread Trevis

Instead of defining the callback as an anonymous inner class you could
make it a regular class and pass an instance of the class containing
the method that updates your data into the constructor of the new
callback instance that you create before passing it to the RPC.  Then
when the response comes back from the server you could simply call
it.

You could also call the method directly from the anonymous inner class
but there are some limitations as to what an anonymous inner class can
call from the outer class.

Side question, what is that 5 sec timeout for?  You're not trying to
wait for the rpc to finish are you? That's bad voodoo.  Async is not
your enemy.

Also, one other question what's with the 'onResponseReceived' why not
just use onSuccess?

Trevis

On Sep 23, 11:23 am, tedpottel tedpot...@gmail.com wrote:
 Hi,
 I have a function that updates the display on my UI.  It creats del
 buttons for each olomn.  I set the row index to be stored in the call
 back class for each button.  When a person clicks on a button and is
 in the callback class, how can they call my update function to show
 the changes
 The code
 public cGetDatabase(String address,
                         VerticalPanel vname, VerticalPanel 
 vemail,VerticalPanel vdel,
 VerticalPanel vedit)
         {
         // set up final veribols
         this.url=address;
         this.vemail=vemail;
         this.vname=vname;
         this.vdel=vdel;
         this.vedit=vedit;
         }

         // Main class calls this function
         public boolean Send()
         {

                 // Object to talk to server send http request
                 RequestBuilder builder = new 
 RequestBuilder(RequestBuilder.GET,
 URL.encode(this.url));
                 builder.setTimeoutMillis(5000);

                 // Call server using http
                 try {
                         // RequestCallback is a class
                   Request request = builder.sendRequest(null, new 
 RequestCallback()
 {

                           // this is in the RequestCallback class
                           public void onError(Request request, Throwable 
 exception)
                           {
                        // Couldn't connect to server (could be timeout, SOP
 violation, etc.)
                     }

                         // when server returns string come here
                         public void HandleResponse(String data)
                         {
                                 // return;

                                 String lines[];
                                 lines=data.split(\r);

                                 String line[];

                                 // Phrase the string
                                 for(int i=0; ilines.length; i=i+1)
                                    {
                                         if ( lines[i].charAt(0)'a' )
                                                 
 lines[i]=lines[i].substring(1);

                                         line=lines[i].split(\t);
                                         String name=line[0];
                                         String email=line[1];

                                         // vname is a UI vertical container

                                         callback click = new callback(1);

                                         Button but= new Button(del,click);

                                         but.setPixelSize(40,25);

                                         vdel.add(but);
                                         vname.add(new Label(name));
                                         vemail.add(new Label(email));

                                         // add the buttons

                                    }

                         }

                     public void onResponseReceived(Request request, Response
 response)
                     {
                       if (200 == response.getStatusCode()) {
                           HandleResponse(response.getText());

                       } else {
                         // Handle the error.  Can get the status text from
 response.getStatusText()
                         Window.alert(Server could not respond);
                       }
                     }
                   });

                 } catch (RequestException e) {
                   // Couldn't connect to server
                         Window.alert(Could not connect to server);

                 }

                 return true;
         }
--~--~-~--~~~---~--~~
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 + mysql (noob questions)

2009-09-23 Thread PJ Gray
Thanks for the information.

I feel fairly comfortable with GWT and GWT-RPC now.  I implemented the
command pattern  MVP pattern as per Ray Ryans talk, for my communication
over RPC.   That gave me a pretty good crash course!  I am sure there are
details in there I'll be learning along the way though!

As for Hibernate, I am just trying to decide if its something to invest time
in now. Cause I really hate using technology just for
whiz-bang/bandwagon reasons.   It sounds like hibernate, when integrated
into my app, allows me to avoid having to worry about the lower level
SELECTs  parsing results etcetc?   All that code is handled by hibernate,
so I can just make calls to classes for accessing/storing data and
everything is persisted behind the scenes for me by hibernate?

Is that correct?


-pj

On Wed, Sep 23, 2009 at 12:30 PM, Trevis trevistho...@gmail.com wrote:


 I dont have any tutorials at hand but your understanding of where the
 DB code lies is correct.  It's totally on the server side and has
 nothing to do with GWT.  Your GWT app would get access to the data via
 RPC.  The RPC methods would in turn get data from the DB.

 Hibernate is an ORM (object relational mapper) which allows you to tie
 Classes to DB tables in a way that is largely transparent to your
 application.  One problem though in using hibernate with GWT is that
 the classes created via hibernate cant be serialized to the client via
 RPC (not that i know of anyway) so a lot of people use different
 libraries to make clones of the faux-POJO's so that they can be
 serialized.  (I do this in the project that i'm working on but i did
 it by hand)  (um, POJO means plain old java object).

 If you're interested in using hibernate you should probably use it
 from the start because retrofitting the application after the fact
 would on undoubtedly be extremely painful. But with that said and with
 as much as i love hibernate if you're using all of these new
 technologies together for the first time you may become overwhelmed
 and hibernate is a fairly involved framework so you might be better
 off getting a good grip on GWT and GWT's RPC mechanism first.

 but as always, ymmv

 On Sep 23, 10:53 am, PJ Gray pj4...@gmail.com wrote:
  I am writing a fairly large web app using GWT in Eclipse.My
 background
  is as a c++ desktop developer, so while I have used java before,
 sometimes I
  stumble on easy stuff.
 
  Anyway, I am currently attempting to implement a database to store data
 from
  my webapp.   I am far from an expert in SQL, but I have done some desktop
  programming of SQL before, so I feel comfortable enough doing SELECTs and
  whatnot.   (Most recently I did some development using the iPhone Sqlite
  stuff).
 
  Can someone point me to a good tutorial or something that gives an
 example
  of storing simple user data in a database from a GWT app?  I found a
 servlet
  based java/mysql example, so I am concentrating on classes like
 datasource
  right now.   I can only assume the SQL stuff needs to be contained on the
  server side of a GWT app anyway, so I was going to start there.  But I
 had
  questions like:
 
  - what is the process for connecting to a database in hosted mode? Is
  just left to me to get something like MySql installed locally, and then
  follow instructions like listed here (
 http://humblecode.blogspot.com/2009/05/gwt-16-using-jndi-datasource.html)
 in
  order to connect?
 
  - when I do deploy to a live webserver, is it just a matter of switching
 the
  database config (username/password, database name etc)? (as long as I
 have
  everything setup in mysql on my live webserver obviously)
 
  - how does 'Hibernate' fit into all this?   I read about it, and see it
  mentioned everywhere.It looks like a library for persisting my java
  objects in the database, rather than pulling information out of my
 objects
  and storing the data only?  Is that accurate?If so, I could write my
  persistance layer in such a way that I could start by storing the data
 raw
  (Strings, longs whatever), then later as my app becomes more complex, I
  could implement Hibernate to start storing my model objects directly?
 
  Thanks in advance!
 
  -pj
 


--~--~-~--~~~---~--~~
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: Eclipse client server separation

2009-09-23 Thread PJ Gray
I don't understand what the problem is that the original poster is having?

I have Client/Server/Shared folders for implementing the command pattern and
it seems to be working fine.  I have compiled to javascript and run under a
browser as well. I took most the ideas from the gwt-dispatch project (
http://code.google.com/p/gwt-dispatch/)   They also have a
client/server/shared structure in their code.

-pj



On Wed, Sep 23, 2009 at 12:33 PM, David Durham david.durham...@gmail.comwrote:


  I tried creating a working development environment with 3 projects:
  - Client
  - Server
  - Shared
 
  It was very complicated and needed a symbolic link from Shared to
  client - for the compilation to JavaScript.

 I think you have a decent plan, creating 3 projects.  You should not
 need symbolic links if you're using the GWT module concept properly.


 http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideModules

 -Dave

 


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



MVP for FastTree, TabPanel etc

2009-09-23 Thread Allahbaksh

Hi,
Is there any example on MVP for FastTree, FastTreeItem, TabPanel,
Vertical and Horizontal Split Pane etc.
Regards,
Allahbaksh
--~--~-~--~~~---~--~~
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: Lost runtime exceptions when in hosted mode

2009-09-23 Thread tieTYT

That doesn't sound right... what if an exception occurred on startup
on the client side?  There wouldn't even be an RPC Servlet involved
yet.

On Sep 22, 6:38 pm, Sripathi Krishnan sripathi.krish...@gmail.com
wrote:
 Override the doUnexpectedFailure(Throwable t)  method in your RPC Servlet.
 This method gets called whenever an exception escapes your method. You can
 log the stacktrace/message in this method.

 --Sri

 2009/9/22 tieTYT tie...@gmail.com



  When I'm in hosted mode, if my client code throws a runtime exception,
  it seems to be swallowed and not reported.  For example, if I put a
  throw new NullPointerException() at the end of a method.  I can use
  the debugger to find the exact line that's throwing the exception but
  when it occurs it just fails silently.  There's no info in the Shell
  or on the console and the app doesn't even necessarily act like there
  was an error.

  I'm not very familiar with our code or GWT so I have to ask: is this
  normal, expected GWT behavior or is our code failing to print a stack
  trace?

  If this is GWT's fault, what's the work around?  Someone on the irc
  channel suggested I wrap all my client code around a try/catch but
  that seems a little inconvenient and messy.
--~--~-~--~~~---~--~~
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: Link static html elements with GWT

2009-09-23 Thread Allahbaksh Asadullah

Hi,
You could simply use JSNI it would be much easier to do this. I am not
sure about syntax. But I have tried these thing previously and it
works.
Regards,
allahbaksh

Declare a JSNI function

a href=# onClick=abc('test');Control Room/a

public static native void test()/*

{

$wnd.abc = function(myVariable){
//Call Java method with myVariable passed

return false;
}

}






On Sep 23, 9:16 pm, Trevis trevistho...@gmail.com wrote:
 Wow.  Mixing custom html and GWT looks painful.   I would never do
 this.  I'll be curious to see if someone clears up how to make this
 work.

 On Sep 23, 3:41 am, newUser diwakar...@gmail.com wrote:



  Hi All,

  I am a newbie here so please excuse me if I write a silly question.

  I have a html code like:

  div id=navhome
          ul
            lia href=Home.htmlHOME/a/li
          /ul
  /div
  div id=navcontrol
          ul
            lia href=CONTROL ROOM/a/li
          /ul
  /div

  Now, what i want to do is, whenever the user clicks on the control
  Room link (as above), only some part of the web page is updated.
  However, i am unable to catch the click event on the Control Room
  link. What I have tried is :

  DOM.sinkEvents(DOM.getElementById(navcontrol), Event.ONCLICK);
                  DOM.setEventListener(DOM.getElementById(navcontrol), new
  EventListener() {
                          public void onBrowserEvent(Event event) {
                                  mainPanel.setSize(10px, 10px);
                          }
                  });

  Can someone help me identify the mistake? 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: Lost runtime exceptions when in hosted mode

2009-09-23 Thread Venkatesh Babu
If you client code has try catch blocks to catch the exceptions, then you
can use the GWT logging framework and put the exception logging statements
in the catch block. That'll log the exception into your server logs.
Otherwise, I'm not sure if GWT provides the infrastructure to show exception
stack trace on console because when the client code is running on browser as
javascript there is no underlying console. May be the exceptions get
translated into javascript errors.

Thank you,
Venkatesh


On Wed, Sep 23, 2009 at 12:54 PM, tieTYT tie...@gmail.com wrote:


 That doesn't sound right... what if an exception occurred on startup
 on the client side?  There wouldn't even be an RPC Servlet involved
 yet.

 On Sep 22, 6:38 pm, Sripathi Krishnan sripathi.krish...@gmail.com
 wrote:
  Override the doUnexpectedFailure(Throwable t)  method in your RPC
 Servlet.
  This method gets called whenever an exception escapes your method. You
 can
  log the stacktrace/message in this method.
 
  --Sri
 
  2009/9/22 tieTYT tie...@gmail.com
 
 
 
   When I'm in hosted mode, if my client code throws a runtime exception,
   it seems to be swallowed and not reported.  For example, if I put a
   throw new NullPointerException() at the end of a method.  I can use
   the debugger to find the exact line that's throwing the exception but
   when it occurs it just fails silently.  There's no info in the Shell
   or on the console and the app doesn't even necessarily act like there
   was an error.
 
   I'm not very familiar with our code or GWT so I have to ask: is this
   normal, expected GWT behavior or is our code failing to print a stack
   trace?
 
   If this is GWT's fault, what's the work around?  Someone on the irc
   channel suggested I wrap all my client code around a try/catch but
   that seems a little inconvenient and messy.
 


--~--~-~--~~~---~--~~
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: Why Not Bypass The Middle Man

2009-09-23 Thread lusus


 Mr. Lusus, let me shake your hand, that's exactly as my own feeling is
 about the web today. We have tried to push the actual 'web' beyond its
 capabilities.

Thank You Sir. Consider my hand shook. If only we could get others to
understand? Many of the replies (as expected) have focused on the
existing manipulations and seem to be missing the point. I know that
there are things out there that in essence already accomplish (some
of) what I'm talking about (GWT being by far the best one so far), but
it's all - as you so very aptly put it - kludges.

Cheers Célio
--~--~-~--~~~---~--~~
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: Lost runtime exceptions when in hosted mode

2009-09-23 Thread tieTYT

I appreciate the help.  I'm talking about a runtime exception from
client code while in hosted mode.  These exceptions are silent for
me.  How can I at least be informed that an error occurred?

On Sep 23, 10:11 am, Venkatesh Babu venkatbab...@gmail.com wrote:
 If you client code has try catch blocks to catch the exceptions, then you
 can use the GWT logging framework and put the exception logging statements
 in the catch block. That'll log the exception into your server logs.
 Otherwise, I'm not sure if GWT provides the infrastructure to show exception
 stack trace on console because when the client code is running on browser as
 javascript there is no underlying console. May be the exceptions get
 translated into javascript errors.

 Thank you,
 Venkatesh

 On Wed, Sep 23, 2009 at 12:54 PM, tieTYT tie...@gmail.com wrote:

  That doesn't sound right... what if an exception occurred on startup
  on the client side?  There wouldn't even be an RPC Servlet involved
  yet.

  On Sep 22, 6:38 pm, Sripathi Krishnan sripathi.krish...@gmail.com
  wrote:
   Override the doUnexpectedFailure(Throwable t)  method in your RPC
  Servlet.
   This method gets called whenever an exception escapes your method. You
  can
   log the stacktrace/message in this method.

   --Sri

   2009/9/22 tieTYT tie...@gmail.com

When I'm in hosted mode, if my client code throws a runtime exception,
it seems to be swallowed and not reported.  For example, if I put a
throw new NullPointerException() at the end of a method.  I can use
the debugger to find the exact line that's throwing the exception but
when it occurs it just fails silently.  There's no info in the Shell
or on the console and the app doesn't even necessarily act like there
was an error.

I'm not very familiar with our code or GWT so I have to ask: is this
normal, expected GWT behavior or is our code failing to print a stack
trace?

If this is GWT's fault, what's the work around?  Someone on the irc
channel suggested I wrap all my client code around a try/catch but
that seems a little inconvenient and messy.
--~--~-~--~~~---~--~~
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: Lost runtime exceptions when in hosted mode

2009-09-23 Thread Trevis

Hm, i think that tieTYE's question is more along the lines of is there
something like the doUnexpectedFailure(Throwable t) in the client
(which i'd like to know as well)

Trevis

On Sep 22, 8:25 pm, tieTYT tie...@gmail.com wrote:
 When I'm in hosted mode, if my client code throws a runtime exception,
 it seems to be swallowed and not reported.  For example, if I put a
 throw new NullPointerException() at the end of a method.  I can use
 the debugger to find the exact line that's throwing the exception but
 when it occurs it just fails silently.  There's no info in the Shell
 or on the console and the app doesn't even necessarily act like there
 was an error.

 I'm not very familiar with our code or GWT so I have to ask: is this
 normal, expected GWT behavior or is our code failing to print a stack
 trace?

 If this is GWT's fault, what's the work around?  Someone on the irc
 channel suggested I wrap all my client code around a try/catch but
 that seems a little inconvenient and messy.
--~--~-~--~~~---~--~~
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: Why Not Bypass The Middle Man

2009-09-23 Thread lusus

 Let me summarize: what you want is... Java applets, Silverlight, Flash/
 Flex, with a way to do server push. Well, you already have all this:
 Silverlight can use sockets [1], as well as Flash/Flex [2] (I don't
 know for Java/JavaFX, but as far as I'm concerned java on the web is
 dead for a long time (except on the server side)).
 If you want some form of standard protocol to transport typed
 values, instead of plain old binary sockets, you can implement
 WebSockets (or any other protocol) on top of them.

Thanks for adding to the discussion, but ...

•As I have already said in several different ways, I know that there
are solutions to the challenges I have mentioned. But as Célio
pointed out, they are all kludges. We have constructed a huge Rube-
Golberg machine to crack an egg. That's what originally started me
thinking about this new browser idea.

• Manipulating pull to simulate push is not the same as push.

• Sockets/ports can be blocked. But as I said earlier, hardly anyone
blocks port 80. If we had a standard port for serving application that
allowed push communication, you wouldn't have to worry about it being
blocked.
--~--~-~--~~~---~--~~
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: Lost runtime exceptions when in hosted mode

2009-09-23 Thread Sripathi Krishnan
There is -- See the method GWT.setUncaughtExceptionHandler().
Your ExceptionHandler will be called whenever you fail to catch an exception
on the client side.

--Sri


2009/9/23 Trevis trevistho...@gmail.com


 Hm, i think that tieTYE's question is more along the lines of is there
 something like the doUnexpectedFailure(Throwable t) in the client
 (which i'd like to know as well)

 Trevis

 On Sep 22, 8:25 pm, tieTYT tie...@gmail.com wrote:
  When I'm in hosted mode, if my client code throws a runtime exception,
  it seems to be swallowed and not reported.  For example, if I put a
  throw new NullPointerException() at the end of a method.  I can use
  the debugger to find the exact line that's throwing the exception but
  when it occurs it just fails silently.  There's no info in the Shell
  or on the console and the app doesn't even necessarily act like there
  was an error.
 
  I'm not very familiar with our code or GWT so I have to ask: is this
  normal, expected GWT behavior or is our code failing to print a stack
  trace?
 
  If this is GWT's fault, what's the work around?  Someone on the irc
  channel suggested I wrap all my client code around a try/catch but
  that seems a little inconvenient and messy.
 


--~--~-~--~~~---~--~~
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-23 Thread Raphael Milani

Hello,
Sri,

Yes, I used RPC(RequestCallback) call to app Grails.
I don´t have ideas about this issue.



Raphael Milani..

On Sep 15, 11:21 pm, Sripathi Krishnan sripathi.krish...@gmail.com
wrote:
 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 ramil...@gmail.com



  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: GWT + mysql (noob questions)

2009-09-23 Thread charlie
I've used hibernate extensively and have had serious issues with it.  The
actual SQL code is all generated auto-magically which can lead to problems.

I much prefer IBATIS, where the SQL is plainly visible and editable, and you
still get simple POJO manipulation.  IBATOR can generate most of the sql you
will need it also, it has been far less painful for me then hibernate.

Just my 2 cents.



On Wed, Sep 23, 2009 at 11:45 AM, PJ Gray pj4...@gmail.com wrote:

 Thanks for the information.

 I feel fairly comfortable with GWT and GWT-RPC now.  I implemented the
 command pattern  MVP pattern as per Ray Ryans talk, for my communication
 over RPC.   That gave me a pretty good crash course!  I am sure there are
 details in there I'll be learning along the way though!

 As for Hibernate, I am just trying to decide if its something to invest
 time in now. Cause I really hate using technology just for
 whiz-bang/bandwagon reasons.   It sounds like hibernate, when integrated
 into my app, allows me to avoid having to worry about the lower level
 SELECTs  parsing results etcetc?   All that code is handled by hibernate,
 so I can just make calls to classes for accessing/storing data and
 everything is persisted behind the scenes for me by hibernate?

 Is that correct?


 -pj


 On Wed, Sep 23, 2009 at 12:30 PM, Trevis trevistho...@gmail.com wrote:


 I dont have any tutorials at hand but your understanding of where the
 DB code lies is correct.  It's totally on the server side and has
 nothing to do with GWT.  Your GWT app would get access to the data via
 RPC.  The RPC methods would in turn get data from the DB.

 Hibernate is an ORM (object relational mapper) which allows you to tie
 Classes to DB tables in a way that is largely transparent to your
 application.  One problem though in using hibernate with GWT is that
 the classes created via hibernate cant be serialized to the client via
 RPC (not that i know of anyway) so a lot of people use different
 libraries to make clones of the faux-POJO's so that they can be
 serialized.  (I do this in the project that i'm working on but i did
 it by hand)  (um, POJO means plain old java object).

 If you're interested in using hibernate you should probably use it
 from the start because retrofitting the application after the fact
 would on undoubtedly be extremely painful. But with that said and with
 as much as i love hibernate if you're using all of these new
 technologies together for the first time you may become overwhelmed
 and hibernate is a fairly involved framework so you might be better
 off getting a good grip on GWT and GWT's RPC mechanism first.

 but as always, ymmv

 On Sep 23, 10:53 am, PJ Gray pj4...@gmail.com wrote:
  I am writing a fairly large web app using GWT in Eclipse.My
 background
  is as a c++ desktop developer, so while I have used java before,
 sometimes I
  stumble on easy stuff.
 
  Anyway, I am currently attempting to implement a database to store data
 from
  my webapp.   I am far from an expert in SQL, but I have done some
 desktop
  programming of SQL before, so I feel comfortable enough doing SELECTs
 and
  whatnot.   (Most recently I did some development using the iPhone Sqlite
  stuff).
 
  Can someone point me to a good tutorial or something that gives an
 example
  of storing simple user data in a database from a GWT app?  I found a
 servlet
  based java/mysql example, so I am concentrating on classes like
 datasource
  right now.   I can only assume the SQL stuff needs to be contained on
 the
  server side of a GWT app anyway, so I was going to start there.  But I
 had
  questions like:
 
  - what is the process for connecting to a database in hosted mode?
 Is
  just left to me to get something like MySql installed locally, and then
  follow instructions like listed here (
 http://humblecode.blogspot.com/2009/05/gwt-16-using-jndi-datasource.html)
 in
  order to connect?
 
  - when I do deploy to a live webserver, is it just a matter of switching
 the
  database config (username/password, database name etc)? (as long as I
 have
  everything setup in mysql on my live webserver obviously)
 
  - how does 'Hibernate' fit into all this?   I read about it, and see it
  mentioned everywhere.It looks like a library for persisting my java
  objects in the database, rather than pulling information out of my
 objects
  and storing the data only?  Is that accurate?If so, I could write my
  persistance layer in such a way that I could start by storing the data
 raw
  (Strings, longs whatever), then later as my app becomes more complex, I
  could implement Hibernate to start storing my model objects directly?
 
  Thanks in advance!
 
  -pj



 


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

Re: GWT + mysql (noob questions)

2009-09-23 Thread Trevis

It sounds like hibernate, when integrated into my app, allows me to avoid 
having to worry about the lower level
SELECTs  parsing results etcetc?

That is true for the most part but as Charlie said it's not a pure win
because getting it to do what you want, how you want it to do it can
be very tricky.  I've been using it for oh, maybe a year and a half
now and i still feel like i'm just getting my arms wrapped around it.

I haven't really dug into IBATIS but it sounds like it may be an
easier to use ORM.  For me, the hibernate full text search is very
valuable. It can be very fast but you really need to understand how it
works to get it to do things right.  The way the handle lazy
instantiation often feels obtuse to me and i'm continually getting a
better handle on it.  There are a few books out on it if you're really
interested as well as a lot of documentation online.  If you do use it
just never trust that it will query for data the way you expect it
to.  You have to stay on top of it or else it is very easy to cause
situations where it will query repeatedly for data that you should be
able to get with one round trip.

On and BTW, i'm also a huge fan of the MVP pattern.  I'm very glad
that i saw Ray Ryan's presentation before i got to far into my
project.  He saved me from having to write a *lot* of boilerplate
code.

Are you also using Gin? I was reluctant at first because i was getting
framework fatigue but it is pretty handy for being able to unittest
your presenters.


On Sep 23, 11:45 am, PJ Gray pj4...@gmail.com wrote:
 Thanks for the information.

 I feel fairly comfortable with GWT and GWT-RPC now.  I implemented the
 command pattern  MVP pattern as per Ray Ryans talk, for my communication
 over RPC.   That gave me a pretty good crash course!  I am sure there are
 details in there I'll be learning along the way though!

 As for Hibernate, I am just trying to decide if its something to invest time
 in now.     Cause I really hate using technology just for
 whiz-bang/bandwagon reasons.   It sounds like hibernate, when integrated
 into my app, allows me to avoid having to worry about the lower level
 SELECTs  parsing results etcetc?   All that code is handled by hibernate,
 so I can just make calls to classes for accessing/storing data and
 everything is persisted behind the scenes for me by hibernate?

 Is that correct?

 -pj

 On Wed, Sep 23, 2009 at 12:30 PM, Trevis trevistho...@gmail.com wrote:

  I dont have any tutorials at hand but your understanding of where the
  DB code lies is correct.  It's totally on the server side and has
  nothing to do with GWT.  Your GWT app would get access to the data via
  RPC.  The RPC methods would in turn get data from the DB.

  Hibernate is an ORM (object relational mapper) which allows you to tie
  Classes to DB tables in a way that is largely transparent to your
  application.  One problem though in using hibernate with GWT is that
  the classes created via hibernate cant be serialized to the client via
  RPC (not that i know of anyway) so a lot of people use different
  libraries to make clones of the faux-POJO's so that they can be
  serialized.  (I do this in the project that i'm working on but i did
  it by hand)  (um, POJO means plain old java object).

  If you're interested in using hibernate you should probably use it
  from the start because retrofitting the application after the fact
  would on undoubtedly be extremely painful. But with that said and with
  as much as i love hibernate if you're using all of these new
  technologies together for the first time you may become overwhelmed
  and hibernate is a fairly involved framework so you might be better
  off getting a good grip on GWT and GWT's RPC mechanism first.

  but as always, ymmv

  On Sep 23, 10:53 am, PJ Gray pj4...@gmail.com wrote:
   I am writing a fairly large web app using GWT in Eclipse.    My
  background
   is as a c++ desktop developer, so while I have used java before,
  sometimes I
   stumble on easy stuff.

   Anyway, I am currently attempting to implement a database to store data
  from
   my webapp.   I am far from an expert in SQL, but I have done some desktop
   programming of SQL before, so I feel comfortable enough doing SELECTs and
   whatnot.   (Most recently I did some development using the iPhone Sqlite
   stuff).

   Can someone point me to a good tutorial or something that gives an
  example
   of storing simple user data in a database from a GWT app?  I found a
  servlet
   based java/mysql example, so I am concentrating on classes like
  datasource
   right now.   I can only assume the SQL stuff needs to be contained on the
   server side of a GWT app anyway, so I was going to start there.  But I
  had
   questions like:

   - what is the process for connecting to a database in hosted mode?     Is
   just left to me to get something like MySql installed locally, and then
   follow instructions like listed here (
 

How to disable datanucleus and activate hibernate?

2009-09-23 Thread dikiyn

Hi together,

I downoaden Google plugin to eclipse.
I created simple GWT application with JPA on server side.

As jpa implementation I set hibernate.

=persincence.xml===
?xml version=1.0 encoding=UTF-8?
persistence version=1.0
xmlns=http://java.sun.com/xml/ns/persistence; xmlns:xsi=http://
www.w3.org/2001/XMLSchema-instance
xsi:schemaLocation=http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd;
persistence-unit name=mytest
providerorg.hibetnate.ejb.HibernatePersistence/provider
classcom.blalba.test.client.db.DBConnection/class
properties
property name=hibernate.connection.driver_class

value=com.microsoft.sqlserver.jdbc.SQLServerDriver /
property name=hibernate.connection.url

value=jdbc:sqlserver://localhost:1433;databaseName=mydb /
property name=hibernate.connection.username 
value=mydb /
property name=hibernate.connection.password 
value=mydb /
property name=hibernate.dialect
value=org.hibernate.dialect.SybaseDialect /
property name=hibernate.show_sql value=true /
/properties
/persistence-unit
/persistence


The persincence.xml itself is in /src/META-INF/persistence.xml



But each time I start my small project in the hosted mode I get
=
23.09.2009 20:43:32 org.datanucleus.plugin.NonManagedPluginRegistry
resolveConstraints
INFO: Bundle org.datanucleus has an optional dependency to
org.eclipse.equinox.registry but it cannot be resolved



INFO: ===
23.09.2009 20:43:35 org.datanucleus.jdo.NucleusJDOHelper
getJDOExceptionForNucleusException
INFO: Exception thrown
No available StoreManager found for the datastore URL key . Please
make sure you have all relevant plugins in the CLASSPATH (e.g
datanucleus-rdbms?, datanucleus-db4o?), and consider setting the
persistence property datanucleus.storeManagerType to the type of
store you are using e.g rdbms, db4o
org.datanucleus.exceptions.NucleusUserException: No available
StoreManager found for the datastore URL key . Please make sure you
have all relevant plugins in the CLASSPATH (e.g datanucleus-rdbms?,
datanucleus-db4o?), and consider setting the persistence property
datanucleus.storeManagerType to the type of store you are using e.g
rdbms, db4o
at org.datanucleus.store.FederationManager.initialiseStoreManager
(FederationManager.java:195)
at org.datanucleus.store.FederationManager.init
(FederationManager.java:68)
at org.datanucleus.ObjectManagerFactoryImpl.initialiseStoreManager
(ObjectManagerFactor
.



I've been fighting against datanucleus since 3 days but invain.
I deleted jdoconfig.xml

I disabled AppEngine in the project
I uninstalled AppEngine in eclipse
I cound not even find in what jar on my pc datanucleus classes are.


What is wrong and how could I remove this adware-datanucleus ?

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



Testing MVP Applications when using Overlay Types

2009-09-23 Thread Matt Raible
Hello all,

I've recently converted my GWT application to use MVP, specifically using
the gwt-presenter project. I'm also using Overlay Types and RequestBuilder
to talk to JSON-based services on the backend.

Since Overlay Types use JSNI, it's not possible to do any JSON parsing in
unit tests. The problem with not being able to do any JSON parsing is the
callbacks will often call eventBus.fireEvent(GwtEvent) after the JSON
parsing has happened. This means I can't fully test the flow of a presenter
if event firing happens in a callback.

I wrote up a detailed explanation of this issue on my blog[1]. Does anyone
here have any suggestions on how I might go about solving this problem?

Thanks,

Matt

[1] http://raibledesigns.com/rd/entry/building_gwt_applications_with_mvp

--~--~-~--~~~---~--~~
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 Issue with Internet Explorer works ok in Firefox Hostes mode

2009-09-23 Thread Rahul bhatt

Hi

I am quite new to GWT. I am trying to build an application using GWT
and Ext JS. I am facing issues in Page Navigation

This works fine in Hosted mode as well as Firefox 5.0

below are the steps when i am facing this issue.

1. user hits a url called http:\\localhost:8080\war\main.jsp in web
mode.

2. threr is a link to change settings like Theme color , Date format
etc.

3. User click on this and chages color this color gets saved in and
Config file for a user .

4. after saving it system tries to navigate to main page this does not
work with Internet explorer  but works absolutely ok with Firefox 5.0
and in Hosted mode as well. this is the native code I am calling to go
to Main page

private native void reloadApp(String locale) /*-{

$doc.getElementById('locale').value=locale;
$doc.getElementById('mainForm').submit();


}-*/;

I am not getting any java script error neither Exception.

Please help and do let me know if you need more info

Regards
Rahul

--~--~-~--~~~---~--~~
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 Issue with Internet Explorer works ok in Firefox Hostes mode

2009-09-23 Thread Rahul bhatt

to be more specific in case of IE it is not making server call at all.

As per my understanding GWT takes care of Cross browser compatablity
issues  as a Java devloper i dont have to bother abt this.

Please correct me if i am wrong.


On Sep 23, 12:27 pm, Rahul bhatt rahul.anubh...@googlemail.com
wrote:
 Hi

 I am quite new to GWT. I am trying to build an application using GWT
 and Ext JS. I am facing issues in Page Navigation

 This works fine in Hosted mode as well as Firefox 5.0

 below are the steps when i am facing this issue.

 1. user hits a url called http:\\localhost:8080\war\main.jsp in web
 mode.

 2. threr is a link to change settings like Theme color , Date format
 etc.

 3. User click on this and chages color this color gets saved in and
 Config file for a user .

 4. after saving it system tries to navigate to main page this does not
 work with Internet explorer  but works absolutely ok with Firefox 5.0
 and in Hosted mode as well. this is the native code I am calling to go
 to Main page

         private native void reloadApp(String locale) /*-{

                 $doc.getElementById('locale').value=locale;
                 $doc.getElementById('mainForm').submit();

         }-*/;

 I am not getting any java script error neither Exception.

 Please help and do let me know if you need more info

 Regards
 Rahul

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



Date-String, String-Date

2009-09-23 Thread Daniel

I have a class called DateFormatter, which currently lives in both the
client and server directories, because I haven't found a way to do
what it does within a single file, or rather what I want it to do
within a single file.

Here's what the code looks like on the server side:

**
(package name removed)

import java.text.DateFormat;

public class DateFormatter {
private static final DateFormat dateFormatter =
new SimpleDateFormat(-MM-dd HH:mm:ss);

public static final Date timeToDate(String time) {
Date date = null;
try {
date = dateFormatter.parse(time);
} catch(ParseException e) {}
return date;
}

public static final String dateToTime(Date date) {
return dateFormatter.format(date);
}
}
**

...and here's the code on the client side:


**
package org.codingventures.blog.client;

import com.google.gwt.i18n.client.DateTimeFormat;

public class DateFormatter {

private static DateTimeFormat dateFormatter =
DateTimeFormat.getFormat(-MM-dd HH:mm:ss);

public static final Date timeToDate(String time) {
Date date = null;
try {
date = dateFormatter.parse(time);
} catch(IllegalArgumentException e) {}
return date;
}

public static final String dateToTime(Date date) {
return dateFormatter.format(date);
}
}
**

Currently this is breaking just about everything because the client
code won't run on the server and the server code won't run on the
client.  This _wouldn't_ be an issue but because I have serializable
classes being sent across GWT's RPC which have to use one of these I'm
running into a lot of problems.

So, is there a way to combine these classes?
--~--~-~--~~~---~--~~
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: Testing MVP Applications when using Overlay Types

2009-09-23 Thread PJ Gray
Couldn't you do something like make the class that actually does the parsing
be a dependency of the callback (ie passed in).   Then create a mock version
of that class that just returns whatever data (for verification)?   This
mock version wouldn't be based off the JSNI overlay abstract class, while
your 'real' one was.Heck if you wanted, you could always implement the
JSON parsing by hand for the mock class, without using the overlay.it
is, after all, just a way of making parsing easier, correct?   Then your
testing could verify not only the flow of your app, but the JSON parsing as
well.

-pj





On Wed, Sep 23, 2009 at 3:05 PM, Matt Raible m...@raibledesigns.com wrote:

 Hello all,

 I've recently converted my GWT application to use MVP, specifically using
 the gwt-presenter project. I'm also using Overlay Types and RequestBuilder
 to talk to JSON-based services on the backend.

 Since Overlay Types use JSNI, it's not possible to do any JSON parsing in
 unit tests. The problem with not being able to do any JSON parsing is the
 callbacks will often call eventBus.fireEvent(GwtEvent) after the JSON
 parsing has happened. This means I can't fully test the flow of a presenter
 if event firing happens in a callback.

 I wrote up a detailed explanation of this issue on my blog[1]. Does anyone
 here have any suggestions on how I might go about solving this problem?

 Thanks,

 Matt

 [1] http://raibledesigns.com/rd/entry/building_gwt_applications_with_mvp

 


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



CSS Reference Book

2009-09-23 Thread James

Hello All,
I'm a java dev that is working with GWT now and was wondering if there
was a CSS book that would help me with the stylesheets as I've never
been a web designer and don't have much experience with it. Also, what
CSS version does GWT 1.6 support? That is the version we are using.

Thanks,
JamesEston
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



I'm running Win 7 and IE8, but hosted mode runs in IE7

2009-09-23 Thread ky

I used the Google Eclipse Plugin to create a new GWT 1.7.1 project,
ran it in Hosted Mode, and to my surprise, when I press Send in the
Web Application Start Project, I receive the following:

Server replies:
Hello, GWT User!

I am running jetty-6.1.x.

It looks like you are using:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0;
SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729;
Media Center PC 6.0)


Now, I am running Win 7 and I only have IE8, so I must be missing
something :) What do I need to do to get Hosted Mode to render in IE8
Standards Mode?
--~--~-~--~~~---~--~~
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: Testing MVP Applications when using Overlay Types

2009-09-23 Thread Thomas Broyer


On 23 sep, 21:05, Matt Raible m...@raibledesigns.com wrote:
 Hello all,

 I've recently converted my GWT application to use MVP, specifically using
 the gwt-presenter project. I'm also using Overlay Types and RequestBuilder
 to talk to JSON-based services on the backend.

 Since Overlay Types use JSNI, it's not possible to do any JSON parsing in
 unit tests. The problem with not being able to do any JSON parsing is the
 callbacks will often call eventBus.fireEvent(GwtEvent) after the JSON
 parsing has happened. This means I can't fully test the flow of a presenter
 if event firing happens in a callback.

 I wrote up a detailed explanation of this issue on my blog[1]. Does anyone
 here have any suggestions on how I might go about solving this problem?
[...]
 [1]http://raibledesigns.com/rd/entry/building_gwt_applications_with_mvp

Your proposed solutions all look good to me:
 - (except this one!) detect when unit tests are running: you actually
want to detect whether you're in pure Java or GWT client, use
GWT.isClient()
 - modify presenters and services: I'm experimenting a similar method:
I actually use a GWT-RPC Async interface but instead of having the
client stub generated (i.e. let GIN fallback to GWT.create()) I make
my own implementation using RequestBuilder and JSON parsing. You're
not forced to use GWT-RPC Async-like (using AsyncCalback) interfaces,
you can make your own callback interface if AsyncCallback doesn't fit
your needs; but all in all, what I mean is that the JSON parsing
should be hidden, an implementation detail of your service
implementation.
 - make JSOModel an interface: that's part of my experiment too;
except that I'm envisionning changing from a wrapper (similar to your
BaseModel, but mine isn't generic and entirely implemented using JSNI
methods) to a JSO overlay when I'll switch to GWT 2.0. Just that,
because I actually never used GWT-RPC, I don't know how it works (or
not) when arguments and return values are interfaces, so using
AsyncCallback and GWT-RPC-like interfaces might not be a good choice
after all (I even code the sync, RemoteService interface, to please
the Google Plug-in for Eclipse; I haven't used it yet, but I thought
about using dummy service servlets for some demo apps)

--~--~-~--~~~---~--~~
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: I'm running Win 7 and IE8, but hosted mode runs in IE7

2009-09-23 Thread ky

Hmm. I've added the meta tag but hosted mode still doesn't render in
IE8. This is what the top of my main HTML page looks like:

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/
TR/html4/strict.dtd
!-- The HTML 4.01 Transitional DOCTYPE declaration--
!-- above set at the top of the file will set --
!-- the browser's rendering engine into   --
!-- Quirks Mode. Replacing this declaration --
!-- with a Standards Mode doctype is supported, --
!-- but may lead to some differences in layout.   --

html
  head
  meta http-equiv=X-UA-Compatible content=IE=8 /

.
.
.

Is something wrong with that?

On Sep 23, 3:03 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 23 sep, 23:11, ky zane.t...@gmail.com wrote:



  I used the Google Eclipse Plugin to create a new GWT 1.7.1 project,
  ran it in Hosted Mode, and to my surprise, when I press Send in the
  Web Application Start Project, I receive the following:

  Server replies:
  Hello, GWT User!

  I am running jetty-6.1.x.

  It looks like you are using:
  Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0;
  SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729;
  Media Center PC 6.0)

  Now, I am running Win 7 and I only have IE8, so I must be missing
  something :)

 ...the fact that the IE control defaults to IE7 when embedded in an
 application, to not break 
 applications:http://msdn.microsoft.com/en-us/library/cc288325(VS.85).aspx#Defaults
 (just above the conclusion actually)

  What do I need to do to get Hosted Mode to render in IE8
  Standards Mode?

 Add a meta http-equiv=X-UA-Compatible content=IE=8 to your HTML host
 page.
 ...or add a registry key to set IE=8 as the default for HostedMode
 (java.exe?)
--~--~-~--~~~---~--~~
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: Date-String, String-Date

2009-09-23 Thread Daniel

Here's my quick, lame, unreliable implementation if anyone wants it.

package ...;

import java.util.Date;

/**
 * I had to roll my own implementation (and it's not particularly
good),
 * because a client solution and a server solution were mutually
exclusive.
 * This will only parse and return strings of the form:
 *  -MM-dd HH:mm:ss
 *
 * ...and I don't garuntee it's reliability.  Sorry.
 *
 *
 * @author doubleagent
 *
 */
public class DateFormatter {

public static final Date timeToDate(String input) {
String dateTime[] = input.split( );
String dateStr[] = dateTime[0].split(-);
String timeStr[] = dateTime[1].split(:);
int date[] = reduceToInt(dateStr);
int time[] = reduceToInt(timeStr);
// cavaets: year counts from 1900 and month starts from 0
return new Date(date[0] - 1900, date[1] - 1, date[2],
time[0], time[1], time[2]);
}

private static int[] reduceToInt(String[] strs) {
int ints[] = new int[strs.length];
for(int i=0;istrs.length - 1;i++)
ints[i] = Integer.parseInt(strs[i]);
// another caveat - mysql treats the seconds as a float
ints[ints.length - 1] = (int)Float.parseFloat(
strs[strs.length - 1]);
return ints;
}

public static final String dateToTime(Date d) {
String parts[] = {d.getYear() + 1900 + , d.getMonth() + 1 + 
,
 + d.getDate(),  + d.getHours(),
 + d.getMinutes(),  + d.getSeconds()};
for(int i=1;iparts.length;i++)
if(parts[i].length()2)
parts[i] = 0 + parts[i];
return parts[0] + - + parts[1] + - + parts[2] +   +
parts[3] + : + parts[4] + : + parts[5];
}
}

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



Serialization of Member Types

2009-09-23 Thread gmrolf

Hi all.

I am experiencing the dreaded was not serializable and has no
concrete serializable subtypes error in GWT... but... it's not the
typical issue... promise.

The class failing the 'IsSerializable' test is a member class inside
another IsSerializable class i.e. (using a dummy example):

public class Outer implements IsSerializable {
public class Inner implements IsSerializable {
public Inner(){}
}
private Inner myInner = new Inner();
public Outer() {}
}

Technically, in Java reflection terms, the Inner Class's constructor
has a single parameter, the instance of the Outer class that the Inner
is to be instantiated in. but, it is still a 'no-argument-
constructor' ... right?

If I change the Inner class to be declared as 'static' (public static
class Inner .) then RPC works fine.

My particular case is somewhat more complex, and the prospect of
having to externalize the inner class is messy... Am I missing
something about IsSerializable, or is it not possible to have an
IsSerializable Member Class?

Thanks in advance...

Rolf

--~--~-~--~~~---~--~~
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: Cookies and RPC

2009-09-23 Thread Dominik Steiner

Hi Tom,

not sure I understand your cookie question, but in GWT you can query
for cookies using the class

com.google.gwt.user.client.Cookie

and there have a look at the method

  /**
   * Gets the cookie associated with the given name.
   *
   * @param name the name of the cookie to be retrieved
   * @return the cookie's value, or codenull/code if the cookie
doesn't exist
   */
  public static String getCookie(String name)

So in your GWT code you would check if a cookie exists like this

String cookie = Cookie.getCookie(myCookieName);
if(cookie != null){
  // cookie exists
}

HTH

Dominik
On 23 Sep., 12:00, Thomas Holmes thomas.j.hol...@gmail.com wrote:
 I have the demo StockWatcher Application working.  I have client/
 server side code working for the most part.
 I can use a Spring DAO class, make a call to the database to get
 Hibernate POJO's, and then convert that data to GWT-RPC DTO
 classes ... seems to work ok.

 I am using a TestAdvDataSource demo app for SmartGWT and GWT-RPC
 DataSource, and it is coming along well.
 Just having a few issues getting the data to appear, but I am working
 on that.

 So ... the question is, in my existing Spring Application, a user is
 capable of signing on and I put the users ID in a cookie.  So, where
 do I get the cookie?

 Do I get it from the server/TestServiceImpl code?   I expect I would
 get the cookies from the request, and be able to use that data to
 filter what I want from the database.

 Or, would I get the cookie in the client/TestDataSource code and then
 pass that as an argument to the server/TestServiceImpl?

 Thanks!
                       Tom
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Inaccurate RPC Server-Client string transmission

2009-09-23 Thread Barry

Hi --

A strange thing. I'm creating a String on the server, and it's getting
mangled by GWT RPC before it gets to the client (I think).

I'm creating a 4 character String val1 = \0\0\u0032\u001b on the
server and returning to the client within an IsSerializable class.

I return the class as a function result to the client.

The client sees the string as 3 characters: \0 \u0002 \u001b

That is, the \0 \u0032 appears to be turned into \u0002 (yes, 2
characters turned into one)!

I'm guessing that this is some weird Unicode processing, though I'm
having trouble figuring it out.

Does anyone know what's going on here?

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: file download option in GWT

2009-09-23 Thread sathya

Hi Ian,
  Thanks very much for your IDEA.It worked for me and I am
able to proceed with next step.

On Sep 21, 6:13 pm, Ian Bambury ianbamb...@gmail.com wrote:
 http://en.wikipedia.org/wiki/Path_(computing)http://en.wikipedia.org/wiki/Path_(computing)
 Ian

 http://examples.roughian.com

 2009/9/21 sathya sathyavik...@gmail.com





  for eg, if d:/nas/local/results/xml_5.6_46.2.xls is absolute path,
  Then what will equivalent relative path that I can use in my code to
  where the link can pick it up.

  On Sep 21, 5:22 pm, sathya sathyavik...@gmail.com wrote:
   Hi Ian,
            I am not able to relate absolute path and relative path.

   Can you give example of both absolute path and its equivalent relative
   path whih I can use it in my code.

   On Sep 21, 3:21 pm, Ian Bambury ianbamb...@gmail.com wrote:

When you create thefile, you can use an absolute path (with a drive
  letter)
to where the link is picking it up with the relative path.
Ian

   http://examples.roughian.com-Hide quoted text -

   - Show quoted text -- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: Best way to pass value to

2009-09-23 Thread dann

Thanks for the reply.  My GWT module is part of classic web
application embedded inside an html (generated using jsp). There are
certain parameters (string type)  I'd like to pass a GWT module upon
initial load inside my page. So far, my solution is to use a
com.google.gwt.i18n.client.Dictionary. Is this the best way to pass
parameters to GWT module upon loading or there are better
alternatives?

e.g. in my JSP/XSL page

script type=text/javascript
   var ID = {
  identifier:xsl:value-of select=$path/@ID disable-output-
escaping=yes/
   };
/script

and on the GWT module entry point:

Dictionary dic = null;
String ID = null;

try {
   dic = Dictionary.getDictionary(ID);
   ID = dic.get(identifier);
} catch (Exception e) {
   Window.alert(No ID found!);
}

/* fetch some data based on the ID */

Thanks,
Dann

On Sep 24, 12:23 am, Trevis trevistho...@gmail.com wrote:
 I'm not 100% sure i understand the question but it sounds like the
 answer would be History.  That's how you tell a GWT app to show a
 specific page.

 On Sep 23, 1:38 am, dannhila...@gmail.com dannhila...@gmail.com
 wrote:

  My GWT app is embedded inside a tab view of a JSP page and I wanted to
  render the GWT module based on the content/context of the parent
  HTML.

  This requires passing initial value to the GWT app entry point and
  from there the GWT app can fetch values to server using RPC.  I was
  able to do this using com.google.gwt.i18n.client.Dictionary
  approach.

  My question is, is this the best way to do it or is there better
  alternative/s?

  Thanks,
  Dann


--~--~-~--~~~---~--~~
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-contrib] Re: Adds parsers for Dock Stack layout panels. Updates Mail sample to use UiBinder.

2009-09-23 Thread Joel Webber
Thanks, Isaac. If only it allowed us to have separate newline rules for
annotations on fields vs. methods. Unfortunately, turning off newlines for
annotations on members would have this unfortunate side-effect:
@Whatever @SomethingBig(blah) void foo() {
}

I'm not sure, but I think the cure might be worse than the disease...

On Tue, Sep 22, 2009 at 6:42 PM, Isaac Truett itru...@gmail.com wrote:

 Hey guys,

  The autoformater will change this to
 
 @UiField
 Button closeButton;
 
  which sucks. I want to fix that for annoations with no arguments, but
  have no
  idea how to. You have any clue to share?
 
  Bugs the crap out of me too. I can't find any annotation-related
  settings in the code formatter, unfortunately.
 

 Just in case you didn't see this: in Eclipse 3.5 (I haven't looked at
 earlier versions) there's an Annotations section on the New Lines tab.
 That will let you remove the new lines after annotations, but it
 doesn't let you decide based on whether or not the annotation has
 arguments.


 - Isaac

 On Tue, Sep 22, 2009 at 4:50 PM,  j...@google.com wrote:
 
 
  http://gwt-code-reviews.appspot.com/68805/diff/1/3
  File samples/mail/src/com/google/gwt/sample/mail/client/AboutDialog.java
  (right):
 
  http://gwt-code-reviews.appspot.com/68805/diff/1/3#newcode38
  Line 38: @UiField Button closeButton;
  On 2009/09/22 20:12:42, Ray Ryan wrote:
  The autoformater will change this to
 
 @UiField
 Button closeButton;
 
  which sucks. I want to fix that for annoations with no arguments, but
  have no
  idea how to. You have any clue to share?
 
  Bugs the crap out of me too. I can't find any annotation-related
  settings in the code formatter, unfortunately.
 
  http://gwt-code-reviews.appspot.com/68805/diff/1/8
  File samples/mail/src/com/google/gwt/sample/mail/client/Mail.java
  (right):
 
  http://gwt-code-reviews.appspot.com/68805/diff/1/8#newcode68
  Line 68: // Add the outer panel to the RootPanel, so that it will be
  On 2009/09/22 20:12:42, Ray Ryan wrote:
  RootLayoutPanel
 
  Done.
 
  http://gwt-code-reviews.appspot.com/68805/diff/1/10
  File samples/mail/src/com/google/gwt/sample/mail/client/MailDetail.java
  (right):
 
  http://gwt-code-reviews.appspot.com/68805/diff/1/10#newcode44
  Line 44: subject.setInnerHTML(item.subject);
  On 2009/09/22 20:12:42, Ray Ryan wrote:
  Should put a comment here explaining how shockingly dangerous it would
  be to
  take user provided text as innerHTML in a production app for XSS
  reasons, and
  that we're assuming that our server has done the appropriate escaping.
 
  Done.
 
  http://gwt-code-reviews.appspot.com/68805/diff/1/13
  File samples/mail/src/com/google/gwt/sample/mail/client/MailList.java
  (right):
 
  http://gwt-code-reviews.appspot.com/68805/diff/1/13#newcode236
  Line 236: table.setHTML(i, 0, nbsp;);
  On 2009/09/22 20:12:42, Ray Ryan wrote:
  ditto
 
  These are static strings, which are always safe.
 
  http://gwt-code-reviews.appspot.com/68805/diff/1/16
  File samples/mail/src/com/google/gwt/sample/mail/client/Shortcuts.ui.xml
  (right):
 
  http://gwt-code-reviews.appspot.com/68805/diff/1/16#newcode24
  Line 24: g:header size='4'g:Label styleName='{style.stackHeader}'
  text='Mailboxes'//g:header
  On 2009/09/22 20:12:42, Ray Ryan wrote:
  g:header size='4'g:Label styleName='{style.stackHeader}'
 Mailboxes
  /g:Label//g:header
 
  and likewise below
 
  Done.
 
  http://gwt-code-reviews.appspot.com/68805/diff/1/24
  File user/src/com/google/gwt/uibinder/parsers/DockLayoutPanelParser.java
  (right):
 
  http://gwt-code-reviews.appspot.com/68805/diff/1/24#newcode82
  Line 82: writer.die(Child must be one of {north, south, east, west,
  center});
  On 2009/09/22 20:12:42, Ray Ryan wrote:
  writer.die(In %s, child must be one of {north, south, east, west,
  center},
  elem);
 
  here and below and throughout the parsers
 
  Also, is it legal to have more than one child of a particular
  direction?
 
  die(): done.
 
  It is indeed legal to have more than one widget in a direction, in any
  order.
 
  http://gwt-code-reviews.appspot.com/68805/diff/1/24#newcode88
  Line 88: writer.die(Dock must contain a single child widget.);
  On 2009/09/22 20:12:42, Ray Ryan wrote:
  redundant, this check is performed by consumeSingleChildElement
 
  Done.
 
  http://gwt-code-reviews.appspot.com/68805/diff/1/25
  File
  user/src/com/google/gwt/uibinder/parsers/StackLayoutPanelParser.java
  (right):
 
  http://gwt-code-reviews.appspot.com/68805/diff/1/25#newcode80
  Line 80: return child.getNamespaceUri().equals(parent.getNamespaceUri())
  On 2009/09/22 20:12:42, Ray Ryan wrote:
  We need to bake this into an AbstractElementParser, don't we?
 
  Probably so. Would have been useful. Next time around...
 
  http://gwt-code-reviews.appspot.com/68805/diff/1/28
  File user/src/com/google/gwt/user/client/ui/DockLayoutPanel.java
  (right):
 
  http://gwt-code-reviews.appspot.com/68805/diff/1/28#newcode191
  Line 191: public void 

[gwt-contrib] Simple crawler

2009-09-23 Thread kprobst

Reviewers: Dan Rice,

Description:
Could you review this patch for me?

This simple crawler is intended to be used by users who crawl-enable
their apps.  It gives them an idea of what the crawler will see, without
making any guarantees about emulating the real google crawler.

It takes in either a sitemap file (get one from
http://j15r.com:8800/Showcase/Sitemap.xml) or a URL (e.g.,
http://j15r.com:8800/Showcase). Optionally, it also takes an output file
(by default, it prints to stdout).

Please review this at http://gwt-code-reviews.appspot.com/70802

Affected files:
   eclipse/tools/simple-crawler/.checkstyle
   eclipse/tools/simple-crawler/.classpath
   eclipse/tools/simple-crawler/.project
   tools/simple-crawler/build.xml
   tools/simple-crawler/src/com/google/gwt/crawler/Settings.java
   tools/simple-crawler/src/com/google/gwt/crawler/SimpleCrawler.java
   tools/simple-crawler/src/com/google/gwt/crawler/SimpleSitemapParser.java



--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Conditionalize rich text area tests for HTML Unit, use the initialize event for delays

2009-09-23 Thread galgwt . reviews

Reviewers: jlabanca, jgw,

Message:
I re-wrote some of the tests to use the new initialize event instead of
a timer to wait for the area to become available.

Htmlunit  has some issue with FF3 emulation, so I filtered out the
InitializeHandler out for Htmlunit.

I also found a bug in the IE implementation in that the initialize event
was called back before the cached HTML data was transferred over into
the iframe.



Please review this at http://gwt-code-reviews.appspot.com/70801

Affected files:
   M  
user/src/com/google/gwt/user/client/ui/impl/RichTextAreaImplStandard.java
   M user/test/com/google/gwt/user/client/ui/RichTextAreaTest.java



--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Conditionalize rich text area tests for HTML Unit, use the initialize event for delays

2009-09-23 Thread galgwt . reviews

Thanks for the review.
Committed as r6200

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

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---