Performance question: css images or incoded ?

2010-07-15 Thread grandanat
Which approach is better, to have images set in code (ImageResource
+ResBundle, etc...) or to have set them in css.

One string good reason is that in css u can set different images
according to screen resolution. You can have separated css's for
different screen resolution, to customize gui better.
What about performance ? for example fast switching images( e.g
enabled, disabled)
Set resource from code is faster vs addStyleName, and changing images
in css?

-- 
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-tool...@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.



can't seem to get spring-security and gwt going...

2010-07-15 Thread Henry HO
hi,
i've spent the past couple of days trying to add spring security to my
unsecured gwt app without success.
after researching spring docs and forums; i added the spring-
security.jar to the project.
and the following to my web.xml :

 AppsecurityContext
 /WEB-INF/AppContext-security.xml



  springSecurityFilterChain
  org.springframework.web.filter.DelegatingFilterProxy



  springSecurityFilterChain
  /*


i added this to AppContext-security.xml:

http://www.springframework.org/schema/security";
xmlns:beans="http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans$





  


i read that one way to add spring-security was to filter everything to
a login.html but i could be way off.
does anyone have any advice?

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-tool...@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 client as Maven module in multi-module project

2010-07-15 Thread andreas
Hey David,

I was trying to get our newly introduced maven based build cycle to
work with GPE a few months ago. At that time GPE had some issues
regarding flexibility in configuration to work with maven-gwt project
layout (in particular no "war/" directory, which GPE was expecting).

After all our solution was to drop usage of GPE and use only maven
together with maven gwt plugin and maven war plugin. We run our
application in Hosted Mode using a maven build configuration. We
configured our project to host static resources in src/main/webapp and
src/main/resources and use the project build directory for the hosted
web application. With this configuration which is basically default
maven(-gwt) project layout we run Hosted Mode with these goals in
maven build configuration: clean compile war:exploded gwt:run. That's
all.

There is no need to mix maven goals with launching of GPE or similar.
As I said in the beginning I was trying to get GPE run with maven but
that was actually because I did not know what maven and maven gwt
plugin can allready do for you. You might want to give this a try...

Andreas

On 16 Jul., 06:29, David Vree  wrote:
> Thanks -- makes sense, although I hate the idea of having to do a "mvn
> package" everytime before running in host mode.  If I punt on the
> maven directory structure and go with the "war" directory can I
> shorten my edit-debug cycle?  What do most maven users do?
>
> On Jul 15, 6:25 pm, Daniel  wrote:
>
>
>
> > The GWT Maven plugin deviates from the standard Maven directory
> > structure by default, to accommodate the Google Plugin for Eclipse's
> > default directory structure. If you want to use the standard Maven
> > directory layout (with the static resources for your War file in src/
> > main/webapp instead of the war directory) with the Google Plugin for
> > Eclipse, there are some things you need to make sure of.
>
> > 1. In the GWT Maven Plugin , add $
> > {project.build.directory}/${project.build.finalName}.
> > That will cause the plugin to use target/my-example-project-1.0.0-
> > SNAPSHOT (or whatever your project is called) instead of the war
> > directory.
> > 2. Configure the Google Plugin for Eclipse to use src/main/webapp
> > instead of war
> > 3. Before you can run the project in hosted mode, you'll need to run
> > mvn package, to copy your static resources from your GWT public
> > package and src/main/webapp to your hosted mode directory. You'll only
> > need to do this the first time.
>
> > On Jul 16, 5:17 am, David Vree  wrote:
>
> > > The documentation is very complex, but ultimately it provided the
> > > answer.  I needed to configure the maven-war-plugin to filter (e.g.
> > > copy) the files from my webapp directory to the war directory.  I
> > > accomplished this via the following snippet in my module level POM:
>
> > >                         
> > >                                 
> > > org.apache.maven.plugins
> > >                                 maven-war-plugin
> > >                                 
> > >                                         
> > > war
> > >                                 
> > >                         
>
> > > Thanks for the help.  The debugging stop points don't work, but I'll
> > > start a new thread on that
>
> > > On Jul 15, 11:19 am, SalvadorDiaz  wrote:
>
> > > > Hi,
>
> > > > You might want to take a look at the GWT maven plugin documentation
> > > > (there are lots of useful tips):
>
> > > >http://mojo.codehaus.org/gwt-maven-plugin/
>
> > > > Hope that helps,
>
> > > > Salvador
>
> > > > On 15 juil, 03:35, David Vree  wrote:
>
> > > > > Manually moving index.html to the WEB-INF directory solver the 404
> > > > > problem. But there is still something wrong.
>
> > > > > The pop-up window I get with the regular GWT application doesn't pop-
> > > > > up in my application.  And the debugging stop point I added for
> > > > > onModuleLoad doesn't catch.
>
> > > > > On Jul 14, 6:40 pm, Thomas Broyer  wrote:
>
> > > > > > On 14 juil, 19:25, David Vree  wrote:
>
> > > > > > > Total GWT newbie here trying to get the first app up and running. 
> > > > > > >  I'm
> > > > > > > using Eclipse 3.5.2 and have created and run the sample app you 
> > > > > > > get
> > > > > > > with New->Google->Web Application.  The app and the GWT plugin for
> > > > > > > Eclipse all work great.
>
> > > > > > > Now I am trying to add a GWT client module to my multi-module 
> > > > > > > maven
> > > > > > > project that already contains various server maven-modules.  I 
> > > > > > > used
> > > > > > > the the "gwt-maven-plugin" archetype to create the module and the
> > > > > > > directory structure seems fine, however, I cannot run in hosted 
> > > > > > > mode.
>
> > > > > > > When launching the debug web application I get an error in the
> > > > > > > console:
>
> > > > > > >      [WARN] No startup URLs supplied and no plausible ones found 
> > > > > > > --
> > > > > > > use -startupUrl
>
> > > > > > > I noticed that the working applicati

Re: Eclipse debugger not running in hosted mode?

2010-07-15 Thread David Vree
I should mention that the only jar I have in my WEB-INF/lib is "gwt-
servlet.jar" -- do I need any of the others?

On Jul 16, 12:36 am, David Vree  wrote:
> I did!  In fact it's only in the debug configurations menu...not the
> run configurations menu.
>
> I am using maven and am wondering if there is an issue there
> Although Eclipse is compiling my classes to "war/WEB-INF/classes"
>
> On Jul 15, 10:53 pm, lineman78  wrote:
>
> > You have to make sure you start it with "Debug As" not "Run As"
>
> > On Jul 15, 8:20 pm, David Vree  wrote:
>
> > > I believe so, but I don't know how to tell for sure.  I can tell you
> > > that the "Development Mode" tab in Eclipse gets focus, and provides me
> > > the following URL:
>
> > >http://127.0.0.1:/index.html?gwt.codesvr=127.0.0.1:9997
>
> > > When I put that URL in the browser the app runs.  But no stopping from
> > > within Eclipse!
>
> > > On Jul 15, 8:38 pm, lineman78  wrote:
>
> > > > Are you running in the embedded server?
>
> > > > On Jul 15, 2:05 pm, David Vree  wrote:
>
> > > > > I have tried to use the Eclipse debugger with the sample application
> > > > > in hosted mode, so I know it works.  But in my own application (a
> > > > > multi-module maven project) the stop point I put on OnModuleLoad isn't
> > > > > triggering.
>
> > > > > I've tried many different things.  Any ideas?

-- 
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-tool...@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: LayoutPanel: How to program cascade menuBar and rootLayoutPanel?

2010-07-15 Thread jim9
Thank you Magnus,

With your suggestion I have solved my menubar display problem as
follow:

==
public void onModuleLoad() {
// Make a command that we will execute from all leaves.
Command cmd = new Command() {
  public void execute() {
Window.alert("You selected a menu item!");
  }
};

MenuBar fooMenu = new MenuBar(true);
fooMenu.addItem("the", cmd);
fooMenu.addItem("foo", cmd);
fooMenu.addItem("menu", cmd);

MenuBar barMenu = new MenuBar(true);
barMenu.addItem("the", cmd);
barMenu.addItem("bar", cmd);
barMenu.addItem("menu", cmd);

MenuBar bazMenu = new MenuBar(true);
bazMenu.addItem("the", cmd);
bazMenu.addItem("baz", cmd);
bazMenu.addItem("menu", cmd);

// Make a new menu bar, adding a few cascading menus to it.
MenuBar menu = new MenuBar();
menu.addItem("foo", fooMenu);
menu.addItem("bar", barMenu);
menu.addItem("baz", bazMenu);

DockLayoutPanel p = new DockLayoutPanel(Unit.EM);

p.addNorth(new HTML("header"), 6);
p.addSouth(new HTML("footer"), 2);
p.addEast(new HTML("East"), 10);
p.addNorth(menu, 2);
p.add(new
HTML("content=="));

RootLayoutPanel rp = RootLayoutPanel.get();
rp.add(p);
}

=
On Jul 13, 9:27 pm, jim9  wrote:
> Hello GWTer:
>
> I am new to GWT, so please help.
>
> I can not get cascademenuBarand rootLayoutPanel/DockLayoutPanel to
> work. The cascade (second level) menubars do not display. The codes
> below compile with GWT 2.0.3 and GWT 2.1.M2. The same menus work and
> display properly when I used RootPanel or DockPanel.
>
> Please help,
> Jim
>
> ==
> public void onModuleLoad() {
>                 // Make a command that we will execute from all leaves.
>             Command cmd = new Command() {
>               public void execute() {
>                 Window.alert("You selected a menu item!");
>               }
>             };
>
>             // Make some sub-menus that we will cascade from the top menu.
>            MenuBarfooMenu = newMenuBar(true);
>             fooMenu.addItem("thefoo", cmd);
>             fooMenu.addItem("foo", cmd);
>             fooMenu.addItem("menu", cmd);
>
>            MenuBarbarMenu = newMenuBar(true);
>             barMenu.addItem("thebar", cmd);
>             barMenu.addItem("bar", cmd);
>             barMenu.addItem("menu", cmd);
>
>            MenuBarbazMenu = newMenuBar(true);
>
>             bazMenu.addItem("thebaz", cmd);
>             bazMenu.addItem("baz", cmd);
>             bazMenu.addItem("menu", cmd);
>
>             // Make a new menu bar, adding a few cascading menus to it.
>            MenuBarmenu = newMenuBar();
>             menu.addStyleName("demo-MenuBar");
>             menu.addItem("foo", fooMenu);
>             menu.addItem("bar", barMenu);
>             menu.addItem("baz", bazMenu);
>
>             // Add it to the root panel.  *** This works 
>             //RootPanel.get().add(menu);
>
> /* ==
>
>                 DockLayoutPanel p = new DockLayoutPanel(Unit.EM);
>                 p.addNorth(new HTML("header"), 6);
>                 p.addSouth(new HTML("footer"), 2);
>                 p.addEast(new HTML("Ads"), 10);
>                 //p.add(new HTML("content"));
>
>                 p.add(menu);
> */
>
>             RootLayoutPanel rp = RootLayoutPanel.get();
>             //rp.add(p);
>            rp.add(menu);
>         }
>  ==

-- 
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-tool...@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 debugger not running in hosted mode?

2010-07-15 Thread David Vree
I did!  In fact it's only in the debug configurations menu...not the
run configurations menu.

I am using maven and am wondering if there is an issue there
Although Eclipse is compiling my classes to "war/WEB-INF/classes"

On Jul 15, 10:53 pm, lineman78  wrote:
> You have to make sure you start it with "Debug As" not "Run As"
>
> On Jul 15, 8:20 pm, David Vree  wrote:
>
> > I believe so, but I don't know how to tell for sure.  I can tell you
> > that the "Development Mode" tab in Eclipse gets focus, and provides me
> > the following URL:
>
> >http://127.0.0.1:/index.html?gwt.codesvr=127.0.0.1:9997
>
> > When I put that URL in the browser the app runs.  But no stopping from
> > within Eclipse!
>
> > On Jul 15, 8:38 pm, lineman78  wrote:
>
> > > Are you running in the embedded server?
>
> > > On Jul 15, 2:05 pm, David Vree  wrote:
>
> > > > I have tried to use the Eclipse debugger with the sample application
> > > > in hosted mode, so I know it works.  But in my own application (a
> > > > multi-module maven project) the stop point I put on OnModuleLoad isn't
> > > > triggering.
>
> > > > I've tried many different things.  Any ideas?

-- 
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-tool...@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-servlet 2.0.4 in Maven repo

2010-07-15 Thread David Vree
It's literally being added RIGHT NOW

On Jul 15, 6:16 pm, hbf  wrote:
> Dear list,
>
> I hope this is the right place to ask Maven questions related to GWT.
>
> I see that
>
>  http://repo2.maven.org/maven2/com/google/gwt/gwt-user/
>
> contains the latest (2.0.4) release but that
>
>  http://repo2.maven.org/maven2/com/google/gwt/gwt-servlet/
>
> only contains releases up to 2.0.3.
>
> Does this mean that gwt-servlet-2.0.3 works together with gwt-
> user-2.0.4? Or is this just not yet upoaded?
>
> Thanks,
> Kaspar

-- 
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-tool...@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 client as Maven module in multi-module project

2010-07-15 Thread David Vree
Thanks -- makes sense, although I hate the idea of having to do a "mvn
package" everytime before running in host mode.  If I punt on the
maven directory structure and go with the "war" directory can I
shorten my edit-debug cycle?  What do most maven users do?

On Jul 15, 6:25 pm, Daniel  wrote:
> The GWT Maven plugin deviates from the standard Maven directory
> structure by default, to accommodate the Google Plugin for Eclipse's
> default directory structure. If you want to use the standard Maven
> directory layout (with the static resources for your War file in src/
> main/webapp instead of the war directory) with the Google Plugin for
> Eclipse, there are some things you need to make sure of.
>
> 1. In the GWT Maven Plugin , add $
> {project.build.directory}/${project.build.finalName}.
> That will cause the plugin to use target/my-example-project-1.0.0-
> SNAPSHOT (or whatever your project is called) instead of the war
> directory.
> 2. Configure the Google Plugin for Eclipse to use src/main/webapp
> instead of war
> 3. Before you can run the project in hosted mode, you'll need to run
> mvn package, to copy your static resources from your GWT public
> package and src/main/webapp to your hosted mode directory. You'll only
> need to do this the first time.
>
> On Jul 16, 5:17 am, David Vree  wrote:
>
> > The documentation is very complex, but ultimately it provided the
> > answer.  I needed to configure the maven-war-plugin to filter (e.g.
> > copy) the files from my webapp directory to the war directory.  I
> > accomplished this via the following snippet in my module level POM:
>
> >                         
> >                                 org.apache.maven.plugins
> >                                 maven-war-plugin
> >                                 
> >                                         
> > war
> >                                 
> >                         
>
> > Thanks for the help.  The debugging stop points don't work, but I'll
> > start a new thread on that
>
> > On Jul 15, 11:19 am, SalvadorDiaz  wrote:
>
> > > Hi,
>
> > > You might want to take a look at the GWT maven plugin documentation
> > > (there are lots of useful tips):
>
> > >http://mojo.codehaus.org/gwt-maven-plugin/
>
> > > Hope that helps,
>
> > > Salvador
>
> > > On 15 juil, 03:35, David Vree  wrote:
>
> > > > Manually moving index.html to the WEB-INF directory solver the 404
> > > > problem. But there is still something wrong.
>
> > > > The pop-up window I get with the regular GWT application doesn't pop-
> > > > up in my application.  And the debugging stop point I added for
> > > > onModuleLoad doesn't catch.
>
> > > > On Jul 14, 6:40 pm, Thomas Broyer  wrote:
>
> > > > > On 14 juil, 19:25, David Vree  wrote:
>
> > > > > > Total GWT newbie here trying to get the first app up and running.  
> > > > > > I'm
> > > > > > using Eclipse 3.5.2 and have created and run the sample app you get
> > > > > > with New->Google->Web Application.  The app and the GWT plugin for
> > > > > > Eclipse all work great.
>
> > > > > > Now I am trying to add a GWT client module to my multi-module maven
> > > > > > project that already contains various server maven-modules.  I used
> > > > > > the the "gwt-maven-plugin" archetype to create the module and the
> > > > > > directory structure seems fine, however, I cannot run in hosted 
> > > > > > mode.
>
> > > > > > When launching the debug web application I get an error in the
> > > > > > console:
>
> > > > > >      [WARN] No startup URLs supplied and no plausible ones found --
> > > > > > use -startupUrl
>
> > > > > > I noticed that the working application used the -startupUrl argument
> > > > > > to the launch and so I added "-startupUrl index.html" to mine but 
> > > > > > when
> > > > > > browsing to that location with firefox I get a 404.
>
> > > > > >      http://127.0.0.1:/index.html?gwt.codesvr=127.0.0.1:9997
>
> > > > > > I picked index.html as the URL because the archetype created that 
> > > > > > file
> > > > > > in the "src/main/mywebapp/" directory -- which also contains my WEB-
> > > > > > INF directory.   I'm not sure this part of the directory structure 
> > > > > > is
> > > > > > correct.  Another potential problem is that the "war" directory in
> > > > > > this module does not contain the index.html.  So perhaps the 
> > > > > > resources
> > > > > > are not getting copied correctly.   Any guidance here is 
> > > > > > appreciated!
>
> > > > > I'm primarily a GWT user, and only started using Maven very recently.
> > > > > My project uses a "standard GWT project" layout where there's a war/
> > > > > folder at the "top level", and "standard Maven project" otherwise 
> > > > > (src/
> > > > > main/java, src/test/java, etc.)
> > > > > It works with the Eclipse plugin because this one expects (by
> > > > > default!) a war/ folder with some HTML (or JSP) page in it.
> > > > > Unfortunately, I can't really tell if it works "in Maven", as I
> > > > > haven't really tried a "m

Basic purpose of onEnsureDebugId

2010-07-15 Thread Aditya
hello,

Can anyone has answer why is onEnsureDebugId() is used...?
how does it helps while creating custom widgets.

--
Aditya

-- 
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-tool...@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: Client session

2010-07-15 Thread Prashant Hegde
The way I would do is to define a application event (eg. 
LocationEvent) & handler encapsulating whatever data 
(ex. co ordinates) that you need to send and fire the event. First 
presenter fires the event when the mouse is clicked. Second Presenter 
handles the event and takes appropriate action.


Regards
Prashant


On 16-07-2010 03:41, munna kaka wrote:

You wrote that

On Thu, Jul 15, 2010 at 11:36 AM, Feldman, Nir (48Upper) 
mailto:nir.feld...@hp.com>> wrote:


Sharing of data is threw the bus. You should have your display
expose mouseClickedEvent. The presenter should capture it and fire
it to the bus.
The secondPresenter should get the event and notify the second
display on whatever required.

Plz let me know that how first presenter can send data (say user 
clicked item id in first display or any data) to second presenter?

Above is the question, I really need answer..thanks in advance...

-Original Message-
From: google-web-toolkit@googlegroups.com

[mailto:google-web-toolkit@googlegroups.com
] On Behalf Of Stefan
Bachert
Sent: Thursday, July 15, 2010 6:02 PM
To: Google Web Toolkit
Subject: Re: Client session

Hi,

I am not sure what you mean with client side sessions?

Do you mean to pass the HttpSession (maybe just the id) to the client
side?

But for what reason? It is already there. Either due to url-rewriting
or by cookie.


Stefan Bachert
http://gwtworld.de 


On 9 Jul., 19:48, mk mailto:munna.kaka.ch...@gmail.com>> wrote:
> How to implement a client side session ( and any best practices to
> implement them).
> Is it to just create a static variable ?
>
> How do two different MVP widgets share MODEL data (i.e. user input
> data).
>
> How do two different MVP widgets share VIEW data ( for example if
> display of one widget is dependent on mouse click location of second
> widget, than how do two widgets share view information i.e. mouse
> click location).
>
> Again, all widgets are designed using MVP and send events using
> EventBus.

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

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


--
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-tool...@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.


--
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-tool...@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: Can the GWT Eclipse Plugin use Maven downloaded artifacts for the SDK?

2010-07-15 Thread David Vree
BTW - The version of the plug-in I am using is 1.3.3.  I have also
noticed that I can delete the SDK from my build path and configure the
plug-in not to complain.  This takes care of the duplicate JARs in my
build path problem.

However, the plugin still demands I point it to an "SDK" directory
which I *seem* to have to manually create.

On Jul 15, 10:06 pm, David Vree  wrote:
> Thanks Kathrin -- I went ahead and tried that, but it wouldn't let
> me... Check this out -- the artifact is in this directory that was
> created by Maven:
>
> ~/.m2/repository/com/google/gwt/gwt-user/2.0.3
>
> But the plugin seems to be hard-coded to look for a file named "gwt-
> user.jar" but in this case, the maven artifact filename is "gwt-
> user-2.0.3.jar" and the GUI of the plugin won't let me select it!!!
>
> I did however, get it work with the UGLIEST of workarounds:
>
> I violated every principal of Maven and hand created a directory with
> symbolic links named after the SDK files that point to my 2.0.3
> artifacts.  I then pointed the Eclipse plugin to that.  It works, but
> it will break as soon as I upgrade anything!  Plus now I have two
> copies of the JARs on my classpath.
>
> Any other ideas?
>
> On Jul 15, 9:01 pm, Katharina Probst  wrote:
>
> > Hi David,
>
> > yes, you can point to any SDK you choose (maven, compile from trunk, ...).
> >  If you right-click on your project and go to Google->Web Toolkit Settings,
> > it'll let you configure where your SDK sits.  Click on "Configure SDKs..."
> > and then Add, point it to whatever directory your SDK sits in.
>
> > kathrin
>
> > On Thu, Jul 15, 2010 at 2:07 PM, David Vree  wrote:
> > > I am currently using Maven to download the GWT dependencies from the
> > > Maven central repository as follows:
>
> > >                
> > >                        com.google.gwt
> > >                        gwt-servlet
> > >                        ${gwt.version}
> > >                        runtime
> > >                
> > >                
> > >                        com.google.gwt
> > >                        gwt-user
> > >                        ${gwt.version}
> > >                        provided
> > >                
>
> > > At the same time, I am trying to use the Eclipse GWT plugin I
> > > installed from here:
>
> > >http://dl.google.com/eclipse/plugin/3.5
>
> > > I did NOT install the SDK from the update site.  However, the plugin
> > > wants to know the location of the GWT SDK.  Often when Eclipse plugins
> > > want to know the location of JAR files, I point them to my "~/.m2/
> > > repository" directories -- but so far I see no way to do this with
> > > GWT.
>
> > > I ask for two reasons:
>
> > > a) I don't want the plugin to mandate my version of the SDK (it
> > > downloads 2.0.4 right now).
> > > b) I don't want two copies of the JAR files lying around.
>
> > > Is this possible?
>
> > > --
> > > 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-tool...@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.

-- 
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-tool...@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: network data per second

2010-07-15 Thread mk
the requirement we are trying to meet is scalability...

To get scalability in our app we have to reduce network calls by each
user.

Thus we are bundling data of 3-4 web pages in one webpage transfer.
Or for autosuggestion box, we are transferring all possible
suggestions (in hundreds) in one transfer.
Or we are sending the heavy weight data model etc etc.

Now above works for users with reasonably high speed broadband but for
slow users this optimization may not work out ..

(btw: we have whole professional survey going on to get user's
broadband speed data but it will take 2 month before we get this
number)..
(thus we have to continue with wise guess instead of waiting)

Thus the original question




On Jul 15, 8:08 pm, Ian Petersen  wrote:
> I don't personally have an answer for you.  I'm not using GWT anymore
> these days--I've  moved on to a new project and it's got nothing to do
> with the web.  I stick around because I think it's cool tech and I'd
> like to come back one day.
>
> I think narrowing yourself to urban US and urban Europe, and assuming
> broadband means you might be able to get some useful numbers, but I
> don't feel qualified to tell you what they'll be.  I'm still curious
> to know the reason that you care about these numbers, though.  If, for
> the sake of argument, 1Mbps is a good average, what does that tell
> you?  I've seen "broadband" for sale anywhere from 128Kbps to 50Mbps.
> That's a range of at least three orders of magnitude there.  Do you
> really care what the arithmetic mean is?
>
> Ian
>
>
>
> On Thu, Jul 15, 2010 at 5:54 PM, munna kaka  
> wrote:
> > I was afraid that I will get the response you sent.
>
> > If I can add more to the original question than it's that US urban broadband
> > connected users will be served by servers in US and european urban broadband
> > connected users will be served by servers in europe.
>
> > thus what's your assumptions about speed and it's effect on web page speed.
> > (Is 1Mbps speed assumption low or ?)
>
> > On Thu, Jul 15, 2010 at 2:59 PM, Ian Petersen  wrote:
>
> >> I think that question is impossible to answer in general.  If you have
> >> a user base in mind, it might be possible to start generalizing, but
> >> the internet as a whole is too diverse for averages to have any
> >> utility.  For example, the Canadian government has (had?) a mandate to
> >> make its online properties accessible to 100% of online Canadians.
> >> Some huge percentage of Canada, by population, is urban and has
> >> broadband, but there are a heck of a lot of connected farmers in the
> >> middle of rural Canada dialing into the web at speeds like 56k.  In my
> >> experience, these facts combine to make the government's websites seem
> >> rather low-tech.  They do load nice and quickly, though.  :)  Anyway,
> >> my point is just that you need to ask your users what their connection
> >> speed is like, not the-internet-at-large, because the answers will
> >> almost certainly be different.
>
> >> Ian
>
> >> On Thu, Jul 15, 2010 at 4:39 PM, mk  wrote:
> >> > Any idea how much actual data we can send per second over boradband
> >> > connection?
>
> >> > Is this assumption true that a general internet user gets an average
> >> > of 1Mbps ( after http,tcp,ethernet ovrehead ) ?
> >> > Thus we can send 128KB of data (i.e.html, js, image, css) per second.
> >> > There is no ocean hop of packets.
>
> >> > Any corrections?
>
> >> > --
> >> > 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-tool...@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.
>
> >> --
> >> 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-tool...@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.
>
> > --
> > 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-tool...@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.- 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com

Re: Eclipse debugger not running in hosted mode?

2010-07-15 Thread lineman78
You have to make sure you start it with "Debug As" not "Run As"

On Jul 15, 8:20 pm, David Vree  wrote:
> I believe so, but I don't know how to tell for sure.  I can tell you
> that the "Development Mode" tab in Eclipse gets focus, and provides me
> the following URL:
>
> http://127.0.0.1:/index.html?gwt.codesvr=127.0.0.1:9997
>
> When I put that URL in the browser the app runs.  But no stopping from
> within Eclipse!
>
> On Jul 15, 8:38 pm, lineman78  wrote:
>
>
>
> > Are you running in the embedded server?
>
> > On Jul 15, 2:05 pm, David Vree  wrote:
>
> > > I have tried to use the Eclipse debugger with the sample application
> > > in hosted mode, so I know it works.  But in my own application (a
> > > multi-module maven project) the stop point I put on OnModuleLoad isn't
> > > triggering.
>
> > > I've tried many different things.  Any ideas?

-- 
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-tool...@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 debugger not running in hosted mode?

2010-07-15 Thread David Vree
I believe so, but I don't know how to tell for sure.  I can tell you
that the "Development Mode" tab in Eclipse gets focus, and provides me
the following URL:

http://127.0.0.1:/index.html?gwt.codesvr=127.0.0.1:9997

When I put that URL in the browser the app runs.  But no stopping from
within Eclipse!


On Jul 15, 8:38 pm, lineman78  wrote:
> Are you running in the embedded server?
>
> On Jul 15, 2:05 pm, David Vree  wrote:
>
> > I have tried to use the Eclipse debugger with the sample application
> > in hosted mode, so I know it works.  But in my own application (a
> > multi-module maven project) the stop point I put on OnModuleLoad isn't
> > triggering.
>
> > I've tried many different things.  Any ideas?

-- 
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-tool...@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: network data per second

2010-07-15 Thread Ian Petersen
I don't personally have an answer for you.  I'm not using GWT anymore
these days--I've  moved on to a new project and it's got nothing to do
with the web.  I stick around because I think it's cool tech and I'd
like to come back one day.

I think narrowing yourself to urban US and urban Europe, and assuming
broadband means you might be able to get some useful numbers, but I
don't feel qualified to tell you what they'll be.  I'm still curious
to know the reason that you care about these numbers, though.  If, for
the sake of argument, 1Mbps is a good average, what does that tell
you?  I've seen "broadband" for sale anywhere from 128Kbps to 50Mbps.
That's a range of at least three orders of magnitude there.  Do you
really care what the arithmetic mean is?

Ian

On Thu, Jul 15, 2010 at 5:54 PM, munna kaka  wrote:
> I was afraid that I will get the response you sent.
>
> If I can add more to the original question than it's that US urban broadband
> connected users will be served by servers in US and european urban broadband
> connected users will be served by servers in europe.
>
> thus what's your assumptions about speed and it's effect on web page speed.
> (Is 1Mbps speed assumption low or ?)
>
>
> On Thu, Jul 15, 2010 at 2:59 PM, Ian Petersen  wrote:
>>
>> I think that question is impossible to answer in general.  If you have
>> a user base in mind, it might be possible to start generalizing, but
>> the internet as a whole is too diverse for averages to have any
>> utility.  For example, the Canadian government has (had?) a mandate to
>> make its online properties accessible to 100% of online Canadians.
>> Some huge percentage of Canada, by population, is urban and has
>> broadband, but there are a heck of a lot of connected farmers in the
>> middle of rural Canada dialing into the web at speeds like 56k.  In my
>> experience, these facts combine to make the government's websites seem
>> rather low-tech.  They do load nice and quickly, though.  :)  Anyway,
>> my point is just that you need to ask your users what their connection
>> speed is like, not the-internet-at-large, because the answers will
>> almost certainly be different.
>>
>> Ian
>>
>> On Thu, Jul 15, 2010 at 4:39 PM, mk  wrote:
>> > Any idea how much actual data we can send per second over boradband
>> > connection?
>> >
>> > Is this assumption true that a general internet user gets an average
>> > of 1Mbps ( after http,tcp,ethernet ovrehead ) ?
>> > Thus we can send 128KB of data (i.e.html, js, image, css) per second.
>> > There is no ocean hop of packets.
>> >
>> > Any corrections?
>> >
>> > --
>> > 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-tool...@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.
>> >
>> >
>>
>> --
>> 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-tool...@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.
>>
>
> --
> 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-tool...@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.
>

-- 
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-tool...@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: Can the GWT Eclipse Plugin use Maven downloaded artifacts for the SDK?

2010-07-15 Thread David Vree
Thanks Kathrin -- I went ahead and tried that, but it wouldn't let
me... Check this out -- the artifact is in this directory that was
created by Maven:

~/.m2/repository/com/google/gwt/gwt-user/2.0.3

But the plugin seems to be hard-coded to look for a file named "gwt-
user.jar" but in this case, the maven artifact filename is "gwt-
user-2.0.3.jar" and the GUI of the plugin won't let me select it!!!

I did however, get it work with the UGLIEST of workarounds:

I violated every principal of Maven and hand created a directory with
symbolic links named after the SDK files that point to my 2.0.3
artifacts.  I then pointed the Eclipse plugin to that.  It works, but
it will break as soon as I upgrade anything!  Plus now I have two
copies of the JARs on my classpath.

Any other ideas?



On Jul 15, 9:01 pm, Katharina Probst  wrote:
> Hi David,
>
> yes, you can point to any SDK you choose (maven, compile from trunk, ...).
>  If you right-click on your project and go to Google->Web Toolkit Settings,
> it'll let you configure where your SDK sits.  Click on "Configure SDKs..."
> and then Add, point it to whatever directory your SDK sits in.
>
> kathrin
>
> On Thu, Jul 15, 2010 at 2:07 PM, David Vree  wrote:
> > I am currently using Maven to download the GWT dependencies from the
> > Maven central repository as follows:
>
> >                
> >                        com.google.gwt
> >                        gwt-servlet
> >                        ${gwt.version}
> >                        runtime
> >                
> >                
> >                        com.google.gwt
> >                        gwt-user
> >                        ${gwt.version}
> >                        provided
> >                
>
> > At the same time, I am trying to use the Eclipse GWT plugin I
> > installed from here:
>
> >http://dl.google.com/eclipse/plugin/3.5
>
> > I did NOT install the SDK from the update site.  However, the plugin
> > wants to know the location of the GWT SDK.  Often when Eclipse plugins
> > want to know the location of JAR files, I point them to my "~/.m2/
> > repository" directories -- but so far I see no way to do this with
> > GWT.
>
> > I ask for two reasons:
>
> > a) I don't want the plugin to mandate my version of the SDK (it
> > downloads 2.0.4 right now).
> > b) I don't want two copies of the JAR files lying around.
>
> > Is this possible?
>
> > --
> > 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-tool...@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.

-- 
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-tool...@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: Possible to access GWT-RPC serializer?

2010-07-15 Thread Yau
If you don't want to use JSON serialization (or can't use JSON because
you're using non-POJO object), you can try the following way.  It's
calling the RPC serialization method directly and it works!

http://www.techhui.com/profiles/blogs/simpler-and-speedier-gwt-with

On Jul 15, 3:41 am, Sekhar  wrote:
> Guys, I'm trying to use HTML5 Local Storage and am wondering how I can
> save the data from the server as a string. Since GWT-RPC already
> serializes/deserializes Java serializable objects, is there a way to
> access its serialization functions to marshal the data to/from the
> Local Storage strings? Basically any technique that can reliably
> marshal/unmarshal serializable Java objects to/from strings that I can
> store in Local Storage will do.
>
> I usually just use Java libraries, but none of the classes (like
> ByteArrayInputStream or Base64) is available on the client side. I did
> see some libs that move Java objects to/from JSON, but looks like
> there are strings attached and hoops I need to jump through - I'm
> still researching however. If you know of a good/reliable library
> (JSON/ByteArray/etc.), please help. Also, gwt-mobile-kit has a Local
> Storage API, but it's just a simple JSNI map, looks like (no
> marshaling).
>
> In general, Google: what are the plans for HTML5? Especially for
> Application Cache and Local Storage - those are harder since you can't
> just make simple maps to the JavaScript APIs with JSNI for them.

-- 
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-tool...@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: Can the GWT Eclipse Plugin use Maven downloaded artifacts for the SDK?

2010-07-15 Thread Katharina Probst
Hi David,

yes, you can point to any SDK you choose (maven, compile from trunk, ...).
 If you right-click on your project and go to Google->Web Toolkit Settings,
it'll let you configure where your SDK sits.  Click on "Configure SDKs..."
and then Add, point it to whatever directory your SDK sits in.

kathrin

On Thu, Jul 15, 2010 at 2:07 PM, David Vree  wrote:

> I am currently using Maven to download the GWT dependencies from the
> Maven central repository as follows:
>
>
>com.google.gwt
>gwt-servlet
>${gwt.version}
>runtime
>
>
>com.google.gwt
>gwt-user
>${gwt.version}
>provided
>
>
> At the same time, I am trying to use the Eclipse GWT plugin I
> installed from here:
>
> http://dl.google.com/eclipse/plugin/3.5
>
> I did NOT install the SDK from the update site.  However, the plugin
> wants to know the location of the GWT SDK.  Often when Eclipse plugins
> want to know the location of JAR files, I point them to my "~/.m2/
> repository" directories -- but so far I see no way to do this with
> GWT.
>
> I ask for two reasons:
>
> a) I don't want the plugin to mandate my version of the SDK (it
> downloads 2.0.4 right now).
> b) I don't want two copies of the JAR files lying around.
>
> Is this possible?
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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 debugger not running in hosted mode?

2010-07-15 Thread lineman78
Are you running in the embedded server?

On Jul 15, 2:05 pm, David Vree  wrote:
> I have tried to use the Eclipse debugger with the sample application
> in hosted mode, so I know it works.  But in my own application (a
> multi-module maven project) the stop point I put on OnModuleLoad isn't
> triggering.
>
> I've tried many different things.  Any ideas?

-- 
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-tool...@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: Which library for Money/Time-Format

2010-07-15 Thread Richard
Hi Alex,

http://code.google.com/p/gwt-java-math is a pure Java implementation
of BigDecimal for GWT and is the one that is getting merged into GWT
itself.

>From Richard.



On Jul 15, 7:01 pm, AlexG 
wrote:
> Hi,
>
> i got what I needed, thanks to you both.
>
> Greets
> Alex
>
> On 14 Jul., 18:10, Jaroslav Záruba  wrote:
>
>
>
> > I used gwt-math on my previous project. works fine.
> > 2.1 (m1, m2) has BigDecimal support built in.
>
> > On Wed, Jul 14, 2010 at 5:52 PM, Scott Fines  wrote:
> > > I don't know about the money situation, but gwttime(http://
> > > code.google.com/p/gwttime) is a port of JodaTime to GWT. Despite
> > > appearances, it is actually still being worked on.
>
> > > For Money, I have heard people talk about using gwt-math(http://
> > > code.google.com/p/gwt-math), which has the BigDecimal class emulated
> > > in it. I don't know much about it, though, so don't take my word as
> > > holy writ.
>
> > > (Disclaimer: I'm the principal committer of gwttime)
>
> > > Hope this helps,
>
> > > Scott Fines
>
> > > On Jul 14, 7:56 am, AlexG 
> > > wrote:
> > > > Hi,
>
> > > > I´m trying to develop some business applications in the cloud. To
> > > > calculate with money, I need a library, whicht provides a Money class
> > > > and methods, to calculate with it. The same for Date.
>
> > > > I tried to use JodaMoney and JodaTime, but there are some dependencies
> > > > on non-supported Java classes,
> > > > for example java.lang.reflect ...
>
> > > > Anybody knows a library that provides the desired functionality,
> > > > without using non-supported Java-classes?
>
> > > > Thanks.
>
> > > > Greets
>
> > > --
> > > 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-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com > >  cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@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: This is getting beyond a joke

2010-07-15 Thread Ben Harris
I build gwt with maven. I haven't checked if you do, but you don't/
shouldn't bundle the gwt-user dependencies with the artefact. Gwt-dev
needs all its dependencies bundled though; gwt-maven-plugin won't work
otherwise.

On Jul 15, 10:18 am, David Chandler  wrote:
> Hang tight, folks, we're on it. As has been noted in this thread, GWT
> itself is not built with maven, so it's not a 100% automated process
> to push to maven central. But we're working hard to get gwt-user-2.0.4
> and gwt-dev-2.0.4 uploaded by Friday and to make deployment to maven
> central a part of future releases.
>
> David Chandler
> GWT Developer Relations
> Atlanta, GA USA
>
> On Jul 14, 9:15 pm, David Vree  wrote:
>
>
>
> > Thanks for that.
>
> > On Jul 14, 6:37 pm, monkeyboy  wrote:
>
> > > Nice. From 23 to 37 stars in less than a day.
>
> > > On Jul 14, 9:09 am, monkeyboy  wrote:
>
> > > > On Wed, Jul 14, 2010 at 7:22 AM, Kasper Hansen 
> > > > wrote:
>
> > > > > I would also wish that Google would takeMavenmore seriously. I can
> > > > > only recommend all that agree to star the issues regardingMavenin
> > > > > the bug tracker.
>
> > > > Here it is (the issue 
> > > > regardingMaven):http://code.google.com/p/google-web-toolkit/issues/detail?id=4673
>
> > > > There are only 23 stars so far.- 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-tool...@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 client as Maven module in multi-module project

2010-07-15 Thread Daniel
The GWT Maven plugin deviates from the standard Maven directory
structure by default, to accommodate the Google Plugin for Eclipse's
default directory structure. If you want to use the standard Maven
directory layout (with the static resources for your War file in src/
main/webapp instead of the war directory) with the Google Plugin for
Eclipse, there are some things you need to make sure of.

1. In the GWT Maven Plugin , add $
{project.build.directory}/${project.build.finalName}.
That will cause the plugin to use target/my-example-project-1.0.0-
SNAPSHOT (or whatever your project is called) instead of the war
directory.
2. Configure the Google Plugin for Eclipse to use src/main/webapp
instead of war
3. Before you can run the project in hosted mode, you'll need to run
mvn package, to copy your static resources from your GWT public
package and src/main/webapp to your hosted mode directory. You'll only
need to do this the first time.

On Jul 16, 5:17 am, David Vree  wrote:
> The documentation is very complex, but ultimately it provided the
> answer.  I needed to configure the maven-war-plugin to filter (e.g.
> copy) the files from my webapp directory to the war directory.  I
> accomplished this via the following snippet in my module level POM:
>
>                         
>                                 org.apache.maven.plugins
>                                 maven-war-plugin
>                                 
>                                         war
>                                 
>                         
>
> Thanks for the help.  The debugging stop points don't work, but I'll
> start a new thread on that
>
> On Jul 15, 11:19 am, SalvadorDiaz  wrote:
>
>
>
> > Hi,
>
> > You might want to take a look at the GWT maven plugin documentation
> > (there are lots of useful tips):
>
> >http://mojo.codehaus.org/gwt-maven-plugin/
>
> > Hope that helps,
>
> > Salvador
>
> > On 15 juil, 03:35, David Vree  wrote:
>
> > > Manually moving index.html to the WEB-INF directory solver the 404
> > > problem. But there is still something wrong.
>
> > > The pop-up window I get with the regular GWT application doesn't pop-
> > > up in my application.  And the debugging stop point I added for
> > > onModuleLoad doesn't catch.
>
> > > On Jul 14, 6:40 pm, Thomas Broyer  wrote:
>
> > > > On 14 juil, 19:25, David Vree  wrote:
>
> > > > > Total GWT newbie here trying to get the first app up and running.  I'm
> > > > > using Eclipse 3.5.2 and have created and run the sample app you get
> > > > > with New->Google->Web Application.  The app and the GWT plugin for
> > > > > Eclipse all work great.
>
> > > > > Now I am trying to add a GWT client module to my multi-module maven
> > > > > project that already contains various server maven-modules.  I used
> > > > > the the "gwt-maven-plugin" archetype to create the module and the
> > > > > directory structure seems fine, however, I cannot run in hosted mode.
>
> > > > > When launching the debug web application I get an error in the
> > > > > console:
>
> > > > >      [WARN] No startup URLs supplied and no plausible ones found --
> > > > > use -startupUrl
>
> > > > > I noticed that the working application used the -startupUrl argument
> > > > > to the launch and so I added "-startupUrl index.html" to mine but when
> > > > > browsing to that location with firefox I get a 404.
>
> > > > >      http://127.0.0.1:/index.html?gwt.codesvr=127.0.0.1:9997
>
> > > > > I picked index.html as the URL because the archetype created that file
> > > > > in the "src/main/mywebapp/" directory -- which also contains my WEB-
> > > > > INF directory.   I'm not sure this part of the directory structure is
> > > > > correct.  Another potential problem is that the "war" directory in
> > > > > this module does not contain the index.html.  So perhaps the resources
> > > > > are not getting copied correctly.   Any guidance here is appreciated!
>
> > > > I'm primarily a GWT user, and only started using Maven very recently.
> > > > My project uses a "standard GWT project" layout where there's a war/
> > > > folder at the "top level", and "standard Maven project" otherwise (src/
> > > > main/java, src/test/java, etc.)
> > > > It works with the Eclipse plugin because this one expects (by
> > > > default!) a war/ folder with some HTML (or JSP) page in it.
> > > > Unfortunately, I can't really tell if it works "in Maven", as I
> > > > haven't really tried a "mvn gwt:compile" (I'm prototyping and haven't
> > > > yet committed enough things to our repo to know if it'd work on our
> > > > new Hudson CI server)
> > > > For now, I configured my Maven project following:
> > > >  - gwt-maven-plugin 
> > > > docs:http://mojo.codehaus.org/gwt-maven-plugin/user-guide/war-folder.html
> > > >  - GWT 2.1 Spring Roo integration (which generates a Maven project;
> > > > note that I haven't ever used Spring Roo,just looking at the SVN 
> > > > repo)https://fisheye.springsource.org/browse/spring-roo/addon-gwt/src/main...

Re: DockLayoutPanel MVP and events

2010-07-15 Thread Thomas Broyer


On 15 juil, 20:22, Nirmal  wrote:
> Thanks Thomas, your explanation puts the new Activity/Place into
> perspective.
>
> I have a question; how does the PlaceChange Event gets fired??

As of 2.1M2, PlaceController still isn't bound to History, so only
PlaceController#goTo will fire first a PlaceChangeRequestedEvent
(which can be rejected) and then (if the first hasn't been rejected by
listeners) a PlaceChangeEvent.

-- 
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-tool...@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-servlet 2.0.4 in Maven repo

2010-07-15 Thread hbf
Dear list,

I hope this is the right place to ask Maven questions related to GWT.

I see that

  http://repo2.maven.org/maven2/com/google/gwt/gwt-user/

contains the latest (2.0.4) release but that

  http://repo2.maven.org/maven2/com/google/gwt/gwt-servlet/

only contains releases up to 2.0.3.

Does this mean that gwt-servlet-2.0.3 works together with gwt-
user-2.0.4? Or is this just not yet upoaded?

Thanks,
Kaspar

-- 
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-tool...@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: Client session

2010-07-15 Thread munna kaka
You wrote that

On Thu, Jul 15, 2010 at 11:36 AM, Feldman, Nir (48Upper)  wrote:

> Sharing of data is threw the bus. You should have your display expose
> mouseClickedEvent. The presenter should capture it and fire it to the bus.
> The secondPresenter should get the event and notify the second display on
> whatever required.



Plz let me know that how first presenter can send data (say user clicked
item id in first display or any data) to second presenter?

Above is the question, I really need answer..thanks in advance...




>  -Original Message-
> From: google-web-toolkit@googlegroups.com [mailto:
> google-web-tool...@googlegroups.com] On Behalf Of Stefan Bachert
> Sent: Thursday, July 15, 2010 6:02 PM
> To: Google Web Toolkit
> Subject: Re: Client session
>
> Hi,
>
> I am not sure what you mean with client side sessions?
>
> Do you mean to pass the HttpSession (maybe just the id) to the client
> side?
>
> But for what reason? It is already there. Either due to url-rewriting
> or by cookie.
>
>
> Stefan Bachert
> http://gwtworld.de
>
>
> On 9 Jul., 19:48, mk  wrote:
> > How to implement a client side session ( and any best practices to
> > implement them).
> > Is it to just create a static variable ?
> >
> > How do two different MVP widgets share MODEL data (i.e. user input
> > data).
> >
> > How do two different MVP widgets share VIEW data ( for example if
> > display of one widget is dependent on mouse click location of second
> > widget, than how do two widgets share view information i.e. mouse
> > click location).
> >
> > Again, all widgets are designed using MVP and send events using
> > EventBus.
>
> --
> 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-tool...@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.
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: network data per second

2010-07-15 Thread munna kaka
I was afraid that I will get the response you sent.

If I can add more to the original question than it's that US urban broadband
connected users will be served by servers in US and european urban broadband
connected users will be served by servers in europe.

thus what's your assumptions about speed and it's effect on web page speed.
(Is 1Mbps speed assumption low or ?)



On Thu, Jul 15, 2010 at 2:59 PM, Ian Petersen  wrote:

> I think that question is impossible to answer in general.  If you have
> a user base in mind, it might be possible to start generalizing, but
> the internet as a whole is too diverse for averages to have any
> utility.  For example, the Canadian government has (had?) a mandate to
> make its online properties accessible to 100% of online Canadians.
> Some huge percentage of Canada, by population, is urban and has
> broadband, but there are a heck of a lot of connected farmers in the
> middle of rural Canada dialing into the web at speeds like 56k.  In my
> experience, these facts combine to make the government's websites seem
> rather low-tech.  They do load nice and quickly, though.  :)  Anyway,
> my point is just that you need to ask your users what their connection
> speed is like, not the-internet-at-large, because the answers will
> almost certainly be different.
>
> Ian
>
> On Thu, Jul 15, 2010 at 4:39 PM, mk  wrote:
> > Any idea how much actual data we can send per second over boradband
> > connection?
> >
> > Is this assumption true that a general internet user gets an average
> > of 1Mbps ( after http,tcp,ethernet ovrehead ) ?
> > Thus we can send 128KB of data (i.e.html, js, image, css) per second.
> > There is no ocean hop of packets.
> >
> > Any corrections?
> >
> > --
> > 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.
> >
> >
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: MyNamedFrame is better than GWT's NamedFrame

2010-07-15 Thread Sky
Make sure you modify the following native method to point to your own
package structure:

public native void setMyOnload(JavaScriptObject elm, MyNamedFrame
frame)/*-{

elm.myonload = function(event){

fra...@com.skystrider.subtabs.client.gwtutils.mynamedframe::onload(Lcom/
google/gwt/user/client/Event;)(event);
};
}-*/;

You need to modify "com.skystrider.subtabs.client.gwtUtils" to the
package structure location that you have MyNamedFrame stored.


On May 21, 12:43 pm, mmoossen  wrote:
> hi sky!
>
> that looks pretty much like our implementation...;)
> this is the problem of such a big toolkit likeGWT, there are too many
> 'features' (like widgets, rpc, jre emulation, java-to-js compilation,
> the new data driven widgets and so on) which is great for a fast start
> and even enough for many applications, but as soon as you get
> creative, you have to start doing things by yourself, which is inmy
> expirience really hard withGWTsince many, many (far too much)
> methods and classes are private or final, so it is really hard to
> extend the provided stuff, so at the end you finish hackingGWTand
> building your own framework on top of the toolkit based on the core
> feature, java-to-js compilation, which could be the idea.of the
> developers, i do not know...
>
> continue the good work!
>
> regards
> Michael
>
> On May 21, 9:04 am, Sky  wrote:
>
>
>
>
>
> > package com.skystrider.subtabs.client.gwtUtils;
>
> > import java.util.ArrayList;
>
> > import com.google.gwt.core.client.GWT;
> > import com.google.gwt.core.client.JavaScriptObject;
> > import com.google.gwt.dom.client.IFrameElement;
> > import com.google.gwt.user.client.DOM;
> > import com.google.gwt.user.client.Element;
> > import com.google.gwt.user.client.Event;
> > import com.google.gwt.user.client.ui.Frame;
>
> > /**
> >  * A {...@link com.google.gwt.user.client.ui.Frame} that has a 'name'
> > associated
> >  * with it. This allows theframeto be the target of a
> >  * {...@link com.google.gwt.user.client.ui.FormPanel}
> >  *
> >  * CSS Style Rules
> >  * 
> >  * .gwt-Frame{ }
> >  * 
> >  */
> > public class MyNamedFrame extendsFrame{
>
> >         private ArrayList loadHandlers = null;
>
> >           // Used inside JSNI, so please don't delete this field just 
> > because
> >           // your compiler or IDE says it's unused.
> >           @SuppressWarnings("unused")
> >           private static JavaScriptObject PATTERN_NAME;
>
> >           static {
> >             if (GWT.isClient()) {
> >               initStatics();
> >             }
> >           }
>
> >           /**
> >            * Creates an HTML IFRAME element with a src andname.
> >            *
> >            * @param src the src of theframe
> >            * @paramnamethenameof theframe, which must contain at least
> > one
> >            *          non-whitespace character and must not contain reserved
> > HTML markup
> >            *          characters such as '<', '> > code>',
> >            *          or '&'
> >            * @return the newly-created element
> >            * @throws IllegalArgumentException if the suppliednameis not
> > allowed
> >            */
> >           private static IFrameElement createIFrame(String src, Stringname)
> > {
> >             if (name== null || !isValidName(name.trim())) {
> >               throw new IllegalArgumentException(
> >                   "expecting one or more non-whitespace chars with no '<',
> > '>', or '&'");
> >             }
>
> >             // Use innerHTML to implicitly create the . This is
> > necessary
> >             // because most browsers will not respect a dynamically-set
> > iframename.
> >             Element div = DOM.createDiv();
>
> >             String onload = "onload=\"if(!event){event = window.event;}
> > this.myonload(event);\"";
>
> >             div.setInnerHTML(" > " + onload + ">");
> >             return div.getFirstChild().cast();
> >           }
>
> >           private static native void initStatics() /*-{
> >             @com.google.gwt.user.client.ui.NamedFrame::PATTERN_NAME = 
> > /^[^<>&
> > \'\"]+$/;
> >           }-*/;
>
> >           /**
> >            * @paramnamethe specifiedframenameto be checked
> >            * @return true if thenameis valid, false > code> if
> >            *         not
> >            */
> >           private static native boolean isValidName(Stringname) /*-{
> >             return
> > @com.google.gwt.user.client.ui.NamedFrame::PATTERN_NAME.test(name);
> >           }-*/;
>
> >           /**
> >            * Constructs aframewith the givenname.
> >            *
> >            * @paramnamethenameof theframe, which must contain at least
> > one
> >            *          non-whitespace character and must not contain reserved
> > HTML markup
> >            *          characters such as '<', '> > code>',
> >            *          or '&'
> >            *
> >            * @throws IllegalArgumentException if the suppliednameis not
> >

Re: network data per second

2010-07-15 Thread Ian Petersen
I think that question is impossible to answer in general.  If you have
a user base in mind, it might be possible to start generalizing, but
the internet as a whole is too diverse for averages to have any
utility.  For example, the Canadian government has (had?) a mandate to
make its online properties accessible to 100% of online Canadians.
Some huge percentage of Canada, by population, is urban and has
broadband, but there are a heck of a lot of connected farmers in the
middle of rural Canada dialing into the web at speeds like 56k.  In my
experience, these facts combine to make the government's websites seem
rather low-tech.  They do load nice and quickly, though.  :)  Anyway,
my point is just that you need to ask your users what their connection
speed is like, not the-internet-at-large, because the answers will
almost certainly be different.

Ian

On Thu, Jul 15, 2010 at 4:39 PM, mk  wrote:
> Any idea how much actual data we can send per second over boradband
> connection?
>
> Is this assumption true that a general internet user gets an average
> of 1Mbps ( after http,tcp,ethernet ovrehead ) ?
> Thus we can send 128KB of data (i.e.html, js, image, css) per second.
> There is no ocean hop of packets.
>
> Any corrections?
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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.



network data per second

2010-07-15 Thread mk
Any idea how much actual data we can send per second over boradband
connection?

Is this assumption true that a general internet user gets an average
of 1Mbps ( after http,tcp,ethernet ovrehead ) ?
Thus we can send 128KB of data (i.e.html, js, image, css) per second.
There is no ocean hop of packets.

Any corrections?

-- 
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-tool...@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 debugger not running in hosted mode?

2010-07-15 Thread David Vree
I have tried to use the Eclipse debugger with the sample application
in hosted mode, so I know it works.  But in my own application (a
multi-module maven project) the stop point I put on OnModuleLoad isn't
triggering.

I've tried many different things.  Any ideas?

-- 
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-tool...@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 send message from server to client without callback(RPC)

2010-07-15 Thread dolcra...@gmail.com
You're basically asking for server push, I'd look into either comet,
server events, or websockets.  Regardless none will be available
(except maybe comet, haven't checked this) in GWT since there isn't a
large base (IE) that supports those methods.

Also, you can use "real java codes", they're just compiled to
javascript.  You will always have to do some sort of setup to allow
the server to access a client side method, otherwise the browser would
be horrendously insecure.

On Jul 14, 3:33 pm, _MOD_  wrote:
> Hi. I want to send string messages from my gwtserviceservlet to my
> entrypoint directly. I mean without sending any request from
> entrypoint to Servlet.
>
> Becouse i cant use real java codes in entrypoint. Therefore i want to
> make something in myserviceservlet and then send the result as string
> to my entrypoint.
>
> Is there a way to reach any method in entrypoint via serviceservlet?
> Or entrypoint just can make request and recive these request's results?

-- 
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-tool...@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: newbie question: deploying the starter web project

2010-07-15 Thread Oby Sumampouw
I agree this seems to be some tomcat issue not GWT issue.
Ok I'll try and reply back.

Thanks
Oby

On Jul 15, 6:30 am, Katharina Probst  wrote:
> I think I know what the problem may be related to.
>
> When I navigate to:http://www.tuwuk.com/mainarea/
>
> I get nothing, but when I go to
>
> http://www.tuwuk.com
>
> Given what I've told you to do, I would expect the first one to work, not
> the second one.
>
> I get your starter project (with the error).  Because of the way you
> deployed it, it looks like the servlet will look for mainarea/greet, but
> it's not finding anything there (just like I didn't).  I think you have a
> problem with your tomcat setup - you say that public_html is your "webapps"
> folder.  Now I don't know enough tomcat hackery to know how to rename the
> webapps folder successfully (although I know you can make one project your
> "default" project, but the way I did it it still sat in the webapps folder),
> but it doesn't look like maybe you did it quite right.
>
> If you just have "stock" (i.e., unmodified) tomcat, you'll get a webapps
> directory, and you can dump your application (everything under war, like
> we'd discussed and you've done) there.  Can you give that a try and see if
> it works?
>
> kathrin
>
>
>
> On Thu, Jul 15, 2010 at 2:14 AM, Oby Sumampouw  wrote:
> > Hi Katharina,
>
> > Thanks for your help so far.
>
> > No I didn't have AppEngine enabled, I only have the GWT SDK clicked. I
> > also didn't change anything from the starter project.
> > I still have this line...
>
> > @RemoteServiceRelativePath("greet")
> > public interface GreetingService extends RemoteService
>
> > this is weird, the javascript RPC is pointing to the right servlet but
> > it says it cannot find the server... What can possibly go wrong. I
> > restarted the tomcat too.
>
> > In my CPanel error log I found this error
> > [Thu Jul 15 01:02:05 2010] [error] [client 99.185.43.174] File does
> > not exist: /home/osumampo/public_html/404.shtml, referer:
> >http://www.tuwuk.com/mainarea/F4DE64580EEC20A0487A6B1C498FA109.cache
> > [Thu Jul 15 01:02:05 2010] [error] [client 99.185.43.174] File does
> > not exist: /home/osumampo/public_html/mainarea/greet, referer:
> >http://www.tuwuk.com/mainarea/F4DE64580EEC20A0487A6B1C498FA109.cache
> > [Thu Jul 15 01:01:35 2010] [error] [client 99.185.43.174] File does
> > not exist: /home/osumampo/public_html/404.shtml
> > [Thu Jul 15 01:01:35 2010] [error] [client 99.185.43.174] File does
> > not exist: /home/osumampo/public_html/favicon.ico
>
> > So apparently the javascript is really pointing to the right URL
> > "mainarea/greet" but it seems the tomcat server does not translate
> > 'mainarea/greet' to the servlet but directly translate it to real
> > path.
> > I checked my web.xml in WEB_INF
>
> > 
> >  >    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> >    "http://java.sun.com/dtd/web-app_2_3.dtd";>
>
> > 
>
> >  
> >  
> >    greetServlet
> >     path.to.server.GreetingServiceImpl
> >   
>
> >  
> >    greetServlet
> >    /mainarea/greet
> >  
>
> >  
> >  
> >    MainArea.html
> >  
>
> > 
>
> > the url-pattern seems correct. Do you have any guess on why this
> > happen?
>
> > Thanks,
> > Oby
>
> > On Jul 14, 5:53 pm, Katharina Probst  wrote:
> > > When you created your project, did you have AppEngine enabled?  If you're
> > > trying to deploy with tomcat, you shouldn't have that option enabled.
>
> > > > does the javascript file generated by the GWT sends request to the
> > > > wrong servlet? does it point to /mainarea/greet all the time?
>
> > > Your client-side implementation of the RPC (what allows you to talk
> > between
> > > the client and the server) has an annotation that should look like
> > > this: @RemoteServiceRelativePath("greet")
>
> > > That's how it hooks up to the server side servlet (whose URL pattern is
> > > specified in the web.xml file). So, no, it doesn't have to point to
> > > /mainarea/greet. Did you modify anything from the starter project?
>
> > > kathrin
>
> > > > Thanks,
> > > > Oby
>
> > > > On Jul 14, 6:01 am, Katharina Probst  wrote:
> > > > > Try just taking the whole war directory that the compiler produces
> > (as
> > > > is)
> > > > > and copying it to your tomcat/webapps/ directory.  Rename the war
> > > > directory
> > > > > to the name of your webapp (say, public_html).
>
> > > > > Then do tomcat/bin/startup.sh
>
> > > > > and go to
>
> > > > > localhost:8080/public_html/MainArea.html
>
> > > > > That should do the trick...
>
> > > > > kathrinOn Wed, Jul 14, 2010 at 2:51 AM, Oby Sumampouw <
> > > > osumamp...@gmail.com> wrote:
> > > > > > Hi,
> > > > > > I am trying to see if I can deploy the web starter project to a web
> > > > > > server (which runs using tomcat)
>
> > > > > > The steps that I have done so far:
> > > > > > 0.) create new GWT application, so it's the default template for a
> > web
> > > > > > app
> > > > > > 1.) I compiled the starter project

JUnit to test if Class is gwt-serializable?

2010-07-15 Thread Eric
Hi All,

Can anyone point me to the part of the GWT compiler that determines if
a class is serializable such that it would go in the serialization
policy file?

I'd like to write some simple JUnits which assert that some of my
classes are serializable to GWT's liking.

I think this this could help me from accidentally breaking
serialization only to find it out later:  either when running a
GWTTestCase or during interactive testing.

Thanks,

Eric



-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@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 client as Maven module in multi-module project

2010-07-15 Thread David Vree
The documentation is very complex, but ultimately it provided the
answer.  I needed to configure the maven-war-plugin to filter (e.g.
copy) the files from my webapp directory to the war directory.  I
accomplished this via the following snippet in my module level POM:


org.apache.maven.plugins
maven-war-plugin

war



Thanks for the help.  The debugging stop points don't work, but I'll
start a new thread on that

On Jul 15, 11:19 am, SalvadorDiaz  wrote:
> Hi,
>
> You might want to take a look at the GWT maven plugin documentation
> (there are lots of useful tips):
>
> http://mojo.codehaus.org/gwt-maven-plugin/
>
> Hope that helps,
>
> Salvador
>
> On 15 juil, 03:35, David Vree  wrote:
>
> > Manually moving index.html to the WEB-INF directory solver the 404
> > problem. But there is still something wrong.
>
> > The pop-up window I get with the regular GWT application doesn't pop-
> > up in my application.  And the debugging stop point I added for
> > onModuleLoad doesn't catch.
>
> > On Jul 14, 6:40 pm, Thomas Broyer  wrote:
>
> > > On 14 juil, 19:25, David Vree  wrote:
>
> > > > Total GWT newbie here trying to get the first app up and running.  I'm
> > > > using Eclipse 3.5.2 and have created and run the sample app you get
> > > > with New->Google->Web Application.  The app and the GWT plugin for
> > > > Eclipse all work great.
>
> > > > Now I am trying to add a GWT client module to my multi-module maven
> > > > project that already contains various server maven-modules.  I used
> > > > the the "gwt-maven-plugin" archetype to create the module and the
> > > > directory structure seems fine, however, I cannot run in hosted mode.
>
> > > > When launching the debug web application I get an error in the
> > > > console:
>
> > > >      [WARN] No startup URLs supplied and no plausible ones found --
> > > > use -startupUrl
>
> > > > I noticed that the working application used the -startupUrl argument
> > > > to the launch and so I added "-startupUrl index.html" to mine but when
> > > > browsing to that location with firefox I get a 404.
>
> > > >      http://127.0.0.1:/index.html?gwt.codesvr=127.0.0.1:9997
>
> > > > I picked index.html as the URL because the archetype created that file
> > > > in the "src/main/mywebapp/" directory -- which also contains my WEB-
> > > > INF directory.   I'm not sure this part of the directory structure is
> > > > correct.  Another potential problem is that the "war" directory in
> > > > this module does not contain the index.html.  So perhaps the resources
> > > > are not getting copied correctly.   Any guidance here is appreciated!
>
> > > I'm primarily a GWT user, and only started using Maven very recently.
> > > My project uses a "standard GWT project" layout where there's a war/
> > > folder at the "top level", and "standard Maven project" otherwise (src/
> > > main/java, src/test/java, etc.)
> > > It works with the Eclipse plugin because this one expects (by
> > > default!) a war/ folder with some HTML (or JSP) page in it.
> > > Unfortunately, I can't really tell if it works "in Maven", as I
> > > haven't really tried a "mvn gwt:compile" (I'm prototyping and haven't
> > > yet committed enough things to our repo to know if it'd work on our
> > > new Hudson CI server)
> > > For now, I configured my Maven project following:
> > >  - gwt-maven-plugin 
> > > docs:http://mojo.codehaus.org/gwt-maven-plugin/user-guide/war-folder.html
> > >  - GWT 2.1 Spring Roo integration (which generates a Maven project;
> > > note that I haven't ever used Spring Roo,just looking at the SVN 
> > > repo)https://fisheye.springsource.org/browse/spring-roo/addon-gwt/src/main...
>
> > > FWIW, I'm using the 1.3.1.google version of the gwt-maven-plugin that
> > > you can find in the GWT repo 
> > > athttp://google-web-toolkit.googlecode.com/svn/2.1.0.M2/gwt/maven/
> > > (I'm also using GWT 2.1.0.M2 from that repo)
>
> > > Oh, the 404 *is* due to the index.html not being in the war/ folder.
> > > Running DevMode from the Eclipse plugin doesn't do anything Maven-
> > > related, so it won't try copying files around.

-- 
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-tool...@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: Menu Item and MVP (2)

2010-07-15 Thread Eric Landry
Thanks! That's exactly what I was looking for. I added a few things.

I added 2 methods to the HasCommandHandlers interface:
- void setHandlerEnabled(boolean isEnabled);
- boolean isHandlerEnabled();

This way, my presenter can disable MenuItems using:
display.getExportCmd().setHandlerEnabled(false);

Cheers,
Eric
=)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@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: DockLayoutPanel MVP and events

2010-07-15 Thread Nirmal
Thanks Thomas, your explanation puts the new Activity/Place into
perspective.

I have a question; how does the PlaceChange Event gets fired??


Regards,
Nirmal

On Jul 14, 8:07 pm, Thomas Broyer  wrote:
> On 8 juil, 10:39, xworker  wrote:
>
> > Hi
>
> > Very new to GWT and MVP. Trying to expand the contacts example with a
> > DockLayoutPanel with a tree navigation in the west section. Using MVP
> > and ui:bindings.
>
> > Got an DockLayoutPanelView and Presenter. Inside is a tree component
> > to the west and a content component in center. How will I get the
> > events from the tree component?
>
> The generally adopted way of doing things in GWT is to have custom
> events go through the event bus. In this case, you're talking about
> "navigation", so maybe the concept of "place" would be better than
> "just" some custom event. I encourage you to look at gwt-platform, gwt-
> presenter and other MVP frameworks for GWT, and/or look at the
> Activity concept from the upcoming GWT 2.1.
>
> Using actvities, you'd have an ActivityManager managing your "center".
> The tree would use the PlaceController.goTo to navigate to a new
> "place". An ActivityMapper (that you passed to the ActivityManager in
> the constructor) would map the place to an Activity (a presenter), and
> the ActivityManager will manage the current Activity for the display
> it manages, i.e.it will stop() the current activity if its ok
> (willStop returns true) and then only start the new Activity, which
> will call the Display back to show its view.
> The tree would probably also listen to PlaceChangeEvent on the event
> bus to update the selected item depending on the current place (in
> case some other component calls the PlaceController.goTo)
>
>
>
> > My DockViewPresenter:
>
> > public class DockPresenter implements Presenter {
>
> >         public interface Display {
> >                 Widget asWidget();
> >         }
>
> >         private final ContactsServiceAsync rpcService;
> >         private final HandlerManager eventBus;
> >         private final Display display;
> >         private ContactsPresenter contactsPresenter;
> >         private TreePresenter treePresenter;
>
> >         public DockPresenter(ContactsServiceAsync rpcService,
> >                         HandlerManager eventBus, Display view) {
> >                 this.rpcService = rpcService;
> >                 this.eventBus = eventBus;
> >                 this.display = view;
>
> >                 contactsPresenter = new ContactsPresenter(rpcService, 
> > eventBus,
> >                                 new ContactsView());
> >                 treePresenter = new TreePresenter(rpcService, eventBus, new
> > MyTree());
> >         }
>
> >         public void bind() {
> >                 contactsPresenter.bind();
> >                 treePresenter.bind();
> >         }
>
> >         public void go(final HasWidgets container) {
> >                 bind();
> >                 container.clear();
> >                 container.add(display.asWidget());
>
> >         }
>
> > }
>
> > As you can see I am creating the two presenters for the content and
> > the tree, but I dont know how to get the events (clicks, selections)
> > from them. They seem to be swallowed be the dock.  I'm guessing I
> > should register handlers in the bind() method, but how? When
> > navigating to the tree component without the dock, events works fine.
>
> > TreePresenter:
>
> > public class TreePresenter implements Presenter {
>
> >   public interface Display {
>
> >         HasSelectionHandlers  getTree();
> >     Widget asWidget();
> >   }
>
> >   private final ContactsServiceAsync rpcService;
> >   private final HandlerManager eventBus;
> >   private final Display display;
>
> >   public TreePresenter(ContactsServiceAsync rpcService, HandlerManager
> > eventBus, Display view) {
> >     this.rpcService = rpcService;
> >     this.eventBus = eventBus;
> >     this.display = view;
>
> >   }
>
> >   public void bind() {
>
> >           display.getTree().addSelectionHandler(new
> > SelectionHandler() {
>
> >           public void onSelection(SelectionEvent event) {
> >               TreeItem item = (TreeItem) event.getSelectedItem();
> >               GWT.log("Node selected "+item.getText());
> >           }
>
> >       });
>
> >   }
>
> > 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-tool...@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: JAXB & GWT How I can use JAXB generated classes on client side

2010-07-15 Thread lineman78
Personally, I prefer to use Jersey vs GWT RPC because it is more
flexible and exposes standard interfaces.  For instance, in our group
there are both Java and C# guys, so if our webservices have the
ability to support multiple standards everyone can use them.  I have
Jersey set up so that depending on the Accept header it will serve
your either XML, JSON or Java serialization.  Also, with very little
work I can also create SOAP services.  I think GWT-RPC is a very nice
protocol and is nice for people on small project or don't have to
worry about flexability or external interfaces and have complete
control of all design decisions in their project, but when you are
working in large groups where you don't always have a say in all
potential interfaces, then it is better to just use open standards.  I
have done a few personal GWT projects where I have used RPC, so I am
not against it by any means.

On Jul 15, 12:10 pm, David Vree  wrote:
> I don't want to hijack your thread, but I am new to this and am
> wondering why you don't use GWT-RPC to do the client/server
> communication?
>
> On Jul 15, 12:40 pm, lineman78  wrote:
>
> > It is not possible to convert POJO to XML without using some sort of
> > library, but Jersey does have the ability to do JSON.  I use JAXB to
> > generate my server side classes and JAX-RS to marshal to XML and JSON
> > depending on the Accepts header.  This is fairly easy to do using a
> > services context resolver annotated with provider and consumes/
> > produces application/json.  I then have written a generator(no I can't
> > provide it, but it is possible) so that I can write an interface for a
> > POJO and it will generate the overlay type for me, but if you are
> > working on a smaller project manually writing the overlay types is the
> > best solution.
>
> > On Jul 15, 8:27 am, chris  wrote:
>
> > > Thank you for the advice and it appears that this would work for
> > > server but not for client marshalling. I have been investigating a way
> > > to use JAXB to marshall soap requests on the client side but have not
> > > found a way as of yet. I would love to get rid of soap all together
> > > but unfortunately that will not be possible. Has anyone found a way to
> > > marshall the POJO to XML on the client?
>
> > > Thanks,
> > > Chris Hinshaw
>
> > > On Jul 15, 1:27 am, Frederic Conrotte 
> > > wrote:
>
> > > > There is no problem in using JAXB along with GWT.
>
> > > > See this thread for 
> > > > explanations:http://code.google.com/p/google-web-toolkit/issues/detail?id=4020&q=J...
>
> > > > On Jul 15, 2:57 am, Shyam Visamsetty  wrote:
>
> > > > > I think you cannot use JAXB with GWT. JAXB uses a lot of classes which
> > > > > GWT cant compile. So, you may not be able to use it. You can use the
> > > > > standard xml packages that come with GWT.
>
> > > > > Thanks,
> > > > > Shyam Visamsetty.
>
> > > > > On Jul 14, 8:29 am, Alberto Rugnone 
> > > > > wrote:
>
> > > > > > Hi all,
> > > > > > I have to use classes with jaxb annotation on client side, but GWT
> > > > > > compiler refuse to work throwing following exception
>
> > > > > > No source code is available for type javax.xml.namespace.QName
> > > > > >  No source code is available for type javax.xml.bind.JAXBElement
>
> > > > > > etc...
>
> > > > > > someone can help me
>
> > > > > > Thank you very much in advanced

-- 
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-tool...@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: JAXB & GWT How I can use JAXB generated classes on client side

2010-07-15 Thread David Vree
I don't want to hijack your thread, but I am new to this and am
wondering why you don't use GWT-RPC to do the client/server
communication?

On Jul 15, 12:40 pm, lineman78  wrote:
> It is not possible to convert POJO to XML without using some sort of
> library, but Jersey does have the ability to do JSON.  I use JAXB to
> generate my server side classes and JAX-RS to marshal to XML and JSON
> depending on the Accepts header.  This is fairly easy to do using a
> services context resolver annotated with provider and consumes/
> produces application/json.  I then have written a generator(no I can't
> provide it, but it is possible) so that I can write an interface for a
> POJO and it will generate the overlay type for me, but if you are
> working on a smaller project manually writing the overlay types is the
> best solution.
>
> On Jul 15, 8:27 am, chris  wrote:
>
> > Thank you for the advice and it appears that this would work for
> > server but not for client marshalling. I have been investigating a way
> > to use JAXB to marshall soap requests on the client side but have not
> > found a way as of yet. I would love to get rid of soap all together
> > but unfortunately that will not be possible. Has anyone found a way to
> > marshall the POJO to XML on the client?
>
> > Thanks,
> > Chris Hinshaw
>
> > On Jul 15, 1:27 am, Frederic Conrotte 
> > wrote:
>
> > > There is no problem in using JAXB along with GWT.
>
> > > See this thread for 
> > > explanations:http://code.google.com/p/google-web-toolkit/issues/detail?id=4020&q=J...
>
> > > On Jul 15, 2:57 am, Shyam Visamsetty  wrote:
>
> > > > I think you cannot use JAXB with GWT. JAXB uses a lot of classes which
> > > > GWT cant compile. So, you may not be able to use it. You can use the
> > > > standard xml packages that come with GWT.
>
> > > > Thanks,
> > > > Shyam Visamsetty.
>
> > > > On Jul 14, 8:29 am, Alberto Rugnone 
> > > > wrote:
>
> > > > > Hi all,
> > > > > I have to use classes with jaxb annotation on client side, but GWT
> > > > > compiler refuse to work throwing following exception
>
> > > > > No source code is available for type javax.xml.namespace.QName
> > > > >  No source code is available for type javax.xml.bind.JAXBElement
>
> > > > > etc...
>
> > > > > someone can help me
>
> > > > > Thank you very much in advanced

-- 
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-tool...@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.



Can the GWT Eclipse Plugin use Maven downloaded artifacts for the SDK?

2010-07-15 Thread David Vree
I am currently using Maven to download the GWT dependencies from the
Maven central repository as follows:


com.google.gwt
gwt-servlet
${gwt.version}
runtime


com.google.gwt
gwt-user
${gwt.version}
provided


At the same time, I am trying to use the Eclipse GWT plugin I
installed from here:

http://dl.google.com/eclipse/plugin/3.5

I did NOT install the SDK from the update site.  However, the plugin
wants to know the location of the GWT SDK.  Often when Eclipse plugins
want to know the location of JAR files, I point them to my "~/.m2/
repository" directories -- but so far I see no way to do this with
GWT.

I ask for two reasons:

a) I don't want the plugin to mandate my version of the SDK (it
downloads 2.0.4 right now).
b) I don't want two copies of the JAR files lying around.

Is this possible?

-- 
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-tool...@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: Qt for Mobile Application Development for Education v1.0 Beta

2010-07-15 Thread Jeff Chimene
On 07/15/2010 08:02 AM, Stefan Bachert wrote:
> Hi,
> 
> I do not see any relevance to this forum?
> Could someone help me?
> 
> Stefan Bachert
> http::/gwtworld.de
> 
> On 15 Jul., 03:54, James Baker  wrote:
>> A really comprehensive knowledge enhancing training material from
>> Forum Nokia, you guys should check out!!
>> This training material is intended for educational purposes. The
>> objective of the course is to teach students all the essential
>> knowledge and skills to develop well-written cross-platform Qt
>> applications for Symbian and Maemo platforms. This ZIP package
>> includes training documentation in four lectures, exercises, and a
>> teacher’s guide. This is a Beta release of this package.
>> Topics Include:
>> • Cross-Platform Development
>> • Maemo
>> • MeeGo
>> • Qt , Mobility , Qt for Maemo, Qt for Symbian
>> • Symbian
>> • Symbian C++
>>
>> Download it herehttp://bit.ly/cauRXi
> 

I'm guessing the issue is that code at the other end of the obfuscated
link is malware. "James Baker" is trying a bit of social engineering to
get inquisitive types to Follow That Link. "James Baker" has been
spamming the list for some time using this M.O.

-- 
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-tool...@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 2.0.4 caused Class Not Found, TransformerFactoryImpl

2010-07-15 Thread Jeff Chimene
On 07/15/2010 01:47 AM, Jan wrote:
> In my case even the workaround suggested by google fails. The error
> message is the following: java.lang.IllegalAccessException: Reflection
> is not allowed on public
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl()
> 
> I am really looking forward to a bugfix or a reliable workaround
> Best regards
> 

Are you trying to use xalan on the client side? If so, it won't work, as
Java reflection isn't supported on the client side code.

-- 
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-tool...@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 write good performance code?

2010-07-15 Thread Sebastian Rothbucher
You might have a look @ 
http://code.google.com/events/io/2010/sessions/faster-apps-faster-gwt-compiler.html
and @ 
http://code.google.com/events/io/2010/sessions/architecting-performance-gwt.html
Some patterns are really helpful, esp. when it comes to minimizing we
objects (so it's not just a micro-optimization) or esp. when it comes
to compiler options you might want to tune...

On Jul 15, 4:04 am, mP  wrote:
> This sort of micro optimisation is pointless as it will happen a few
> times here and there and costs nearly nothing in terms of CPU time.
> Creating a local variable or not, makes no difference. Local and other
> types of variables are being created all over the place. The browser
> is doing a thousand other *more costly* things like painting a screen
> with a million pixels, that worrying about a small thing like the
> snippet makes no sense.

-- 
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-tool...@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: Timer to Refresh a Table View

2010-07-15 Thread Ian Petersen
The footprint is both small and probably constant.  It's not actually
recursive.  You're effectively registering a pointer to the run()
function with a scheduler in the browser.  Every interval, the browser
will invoke the function, wait for it to return, and then move on.  I
don't know how t.schedule() is implemented and there are at least two
options that I'm aware of, each with its own pros and cons, but
neither is burdensome.

Ian

On Thu, Jul 15, 2010 at 1:44 PM, Irving Ruan  wrote:
> Hi,
>
> That solved my problem. Thanks!
>
> So, what's the memory footprint like? It seems that it's just creating
> more stacks.
>
> Thanks,
> Irving
>
> On Jul 15, 6:32 am, AgitoM  wrote:
>> You can use this:
>>
>> public void refreshTable() {
>>     Timer t = new Timer() {
>>        public void run() {
>>          //Retrieve Data
>>          //Refresh table
>>          refreshTable();
>>       }
>>     };
>>     // Schedule the timer to run once in 5 minutes.
>>     t.schedule(30);
>>
>> }
>>
>> This essentially this creates a recursive loop, that will halt for 5
>> minutes every time it starts a loop cycle.
>> This will not hang your single treated Javascript like your earlier
>> approach.
>>
>> On Jul 15, 2:41 am, Irving Ruan  wrote:
>>
>>
>>
>> > Hi all,
>>
>> > So I understand that onModuleLoad() method in the class that
>> > implements EntryPoint is the method that basically initiates the GWT
>> > web app. On this web app, I have some headers and metadata info, such
>> > as the main title. However, I have a Table which dynamically pulls in
>> > data from a local SQL DB. While I am able to successfully read from
>> > the DB and display the data, I want the table to automatically reload
>> > ever 5 minutes, which in return, refreshes the view if the DB changes
>> > info.
>>
>> > I tried implementing a sleep timer function within the onModuleLoad()
>> > within an infinite while loop but that does not work and the page
>> > never completely loads because onModuleLoad() needs to finish being
>> > called before the view gets loaded. Any ideas on how to implement an
>> > automatic table or page refresher ever X minutes?
>>
>> > Here's the code in my onModuleLoad() function:
>>
>> > public void onModuleLoad() {
>>
>> >                 // Set alignment and size
>> >                 DockPanel mainPanel = new DockPanel();
>> >                 mainPanel.setSize("100%", "100%");
>> >                 mainPanel.setVerticalAlignment(HasAlignment.ALIGN_MIDDLE);
>> >                 
>> > mainPanel.setHorizontalAlignment(HasAlignment.ALIGN_CENTER);
>>
>> >                 final AppTableView tableView = new AppTableView();
>> >                 final AppFrameView frameView = new AppFrameView();
>>
>> >                 // Add view modules to the page
>> >                 mainPanel.add(appFrameView, DockPanel.NORTH);
>> >                 mainPanel.add(appTableView, DockPanel.CENTER);
>>
>> >                 RootPanel.get().add(mainPanel);
>>
>> >                 while (true)
>> >                 {
>>
>> >                         // This method pulls in data from the SQL db
>> > and displays it
>> >                         tableView.draw();
>>
>> >                         timer(500);
>> >                 }
>> >         }
>>
>> > The tableView.draw() method is the one that pulls in data from the SQL
>> > DB and displays it.
>>
>> > Thanks in advance,
>> > -I.
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: Mixed content warning on Chrome (skull and bones)

2010-07-15 Thread Chris Conroy
On Thu, Jul 15, 2010 at 12:17 PM, Danny Goovaerts  wrote:

>  Speedtracer shows "From cache :false" but I
> do find the components in the cache.
> I don't know how the mobile browser handle it, but the js files are
> probably too big anyway to be cached.
>
> Danny


There have been some known issues recently with webkit properly reporting
items as coming from cache which in turn affects SpeedTracer. Note that just
because the file is in the cache doesn't mean the browser used the cached
copy. (Cache invalidation != Cache eviction)

If you happen to observe SpeedTracer reporting cache status badly, please
provide your Chrome version and, if possible, a way to reproduce at
http://code.google.com/p/speedtracer/issues/detail?id=19


-- 
Chris Conroy
Software Engineer
Google, Atlanta

-- 
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-tool...@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: Timer to Refresh a Table View

2010-07-15 Thread Irving Ruan
Hi,

That solved my problem. Thanks!

So, what's the memory footprint like? It seems that it's just creating
more stacks.

Thanks,
Irving

On Jul 15, 6:32 am, AgitoM  wrote:
> You can use this:
>
> public void refreshTable() {
>     Timer t = new Timer() {
>        public void run() {
>          //Retrieve Data
>          //Refresh table
>          refreshTable();
>       }
>     };
>     // Schedule the timer to run once in 5 minutes.
>     t.schedule(30);
>
> }
>
> This essentially this creates a recursive loop, that will halt for 5
> minutes every time it starts a loop cycle.
> This will not hang your single treated Javascript like your earlier
> approach.
>
> On Jul 15, 2:41 am, Irving Ruan  wrote:
>
>
>
> > Hi all,
>
> > So I understand that onModuleLoad() method in the class that
> > implements EntryPoint is the method that basically initiates the GWT
> > web app. On this web app, I have some headers and metadata info, such
> > as the main title. However, I have a Table which dynamically pulls in
> > data from a local SQL DB. While I am able to successfully read from
> > the DB and display the data, I want the table to automatically reload
> > ever 5 minutes, which in return, refreshes the view if the DB changes
> > info.
>
> > I tried implementing a sleep timer function within the onModuleLoad()
> > within an infinite while loop but that does not work and the page
> > never completely loads because onModuleLoad() needs to finish being
> > called before the view gets loaded. Any ideas on how to implement an
> > automatic table or page refresher ever X minutes?
>
> > Here's the code in my onModuleLoad() function:
>
> > public void onModuleLoad() {
>
> >                 // Set alignment and size
> >                 DockPanel mainPanel = new DockPanel();
> >                 mainPanel.setSize("100%", "100%");
> >                 mainPanel.setVerticalAlignment(HasAlignment.ALIGN_MIDDLE);
> >                 mainPanel.setHorizontalAlignment(HasAlignment.ALIGN_CENTER);
>
> >                 final AppTableView tableView = new AppTableView();
> >                 final AppFrameView frameView = new AppFrameView();
>
> >                 // Add view modules to the page
> >                 mainPanel.add(appFrameView, DockPanel.NORTH);
> >                 mainPanel.add(appTableView, DockPanel.CENTER);
>
> >                 RootPanel.get().add(mainPanel);
>
> >                 while (true)
> >                 {
>
> >                         // This method pulls in data from the SQL db
> > and displays it
> >                         tableView.draw();
>
> >                         timer(500);
> >                 }
> >         }
>
> > The tableView.draw() method is the one that pulls in data from the SQL
> > DB and displays it.
>
> > Thanks in advance,
> > -I.

-- 
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-tool...@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: Client session

2010-07-15 Thread Feldman, Nir (48Upper)
Regarding the MODEL, you should not have static variables, Instead you should 
have a singleton Service in the client side.
Create UserService Interface with one method 
getLoggedInUserInfo(AsyncCallBack).
Whenever you need it call this interface. In the implementation you should have 
cache so only the first time will ask data from the server.
This way you will avoid initialization sequences of static models in the client 
and only once the data is required it will be fetched.
Sharing of data is threw the bus. You should have your display expose 
mouseClickedEvent. The presenter should capture it and fire it to the bus.
The secondPresenter should get the event and notify the second display on 
whatever required.

Hope it helps

Nir

-Original Message-
From: google-web-toolkit@googlegroups.com 
[mailto:google-web-tool...@googlegroups.com] On Behalf Of Stefan Bachert
Sent: Thursday, July 15, 2010 6:02 PM
To: Google Web Toolkit
Subject: Re: Client session

Hi,

I am not sure what you mean with client side sessions?

Do you mean to pass the HttpSession (maybe just the id) to the client
side?

But for what reason? It is already there. Either due to url-rewriting
or by cookie.


Stefan Bachert
http://gwtworld.de


On 9 Jul., 19:48, mk  wrote:
> How to implement a client side session ( and any best practices to
> implement them).
> Is it to just create a static variable ?
>
> How do two different MVP widgets share MODEL data (i.e. user input
> data).
>
> How do two different MVP widgets share VIEW data ( for example if
> display of one widget is dependent on mouse click location of second
> widget, than how do two widgets share view information i.e. mouse
> click location).
>
> Again, all widgets are designed using MVP and send events using
> EventBus.

-- 
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-tool...@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.

-- 
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-tool...@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: Reusability of GWT UI

2010-07-15 Thread Vik
Hie Phani


The yes requirement is right. But the solution you suggested seems a little
confusing.

Can you put a more detailed example on this? Please advise, I am stuck on
it.


Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Wed, Jul 14, 2010 at 4:40 PM, phani kumar  wrote:

> Vik,
> Let me first clear what i understood about your requirement..
>
> You want to make a UI util class which holds all the elements like
> textfilelds or listfields whose data is used as the params for search
> functionality. And the same functionality should fetch two different data
> from the server. For that you have to use two different rpc calls for the
> search functionality. Is this what you exactly want..?
>
> If that is the case, as i mentioned in my previous post, the search button
> event will call the method which is implemented by a particular UI class at
> the run time. In that method you will be writing all the logic of fetching
> and displaying the content in your UI.
>
> On Wed, Jul 14, 2010 at 3:17 PM, Vik  wrote:
>
>> Phani
>>
>> How does this maps to the approach suggested earlier in this mail?
>> I dont see any match... Please advise...
>>
>>
>> Thankx and Regards
>>
>> Vik
>> Founder
>> www.sakshum.com
>> www.sakshum.blogspot.com
>>
>>
>> On Wed, Jul 14, 2010 at 2:14 PM, phani kumar wrote:
>>
>>>
>>> Hii Vik,
>>> May be this is usefull for you..
>>>
>>> 1. Make an interface ex: SearchService
>>>
>>> 2. Define a method in the interface ex:handleSearchEvent()
>>>
>>> 3. Both your screen classes has to implement SearchService interface.
>>>
>>> 4. Define a method in your Search Panel Util class ex :
>>> setSearchServiceRef(SerachService searchService) {
>>>  this.searchService = searchService;
>>> }
>>>
>>> 5. When you create the search util class in your screens, call this
>>> method with (this) as parameter.
>>>
>>> 6. In the button handler of your search util class, call
>>> searchService.handleSearchEvent() ;
>>>
>>> 7. Since, you will have different implementation of the search function
>>> in your both screens, at run time the functionality will behave as it is
>>> defined in your screen classes.
>>>
>>> I think, this is what you are looking for.
>>>
>>> Regards,
>>> Phani Kumar K
>>>
>>>
>>> On Wed, Jul 14, 2010 at 12:26 PM, Vik  wrote:
>>>
 hie

 any help on this please...

 Thankx and Regards

 Vik
 Founder
 www.sakshum.com
 www.sakshum.blogspot.com


 On Tue, Jul 13, 2010 at 7:32 PM, Vik  wrote:

> hie
>
> Thanks but i have following doubt:
>
> Since i need two different handlers for two search panels then where
> will be the deciding logic ?
> and how exactly i will call this addClickHandler method?
>
>
> 1. How will i call it
>
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.com
>
>
> On Mon, Jul 12, 2010 at 10:28 PM, Gal Dolber wrote:
>
>> class YourSearchPanel extends Composite *implements HasClickHandlers
>> {*
>> *
>> *
>> *...*
>> *public HandlerRegistration addClickHandler(ClickHandler handler) {*
>> *yourSearchButton.addClickHandler(handler);*
>> *}*
>> *
>> *
>> *}*
>> *
>> *
>> *And move the rpc logic out of your widget
>> *
>> 2010/7/12 Vik 
>>
>>>  Hie
>>>
>>> I have a UI which shows a search panel having 3 list boxes to select
>>> from and a search button.
>>>
>>> I have two different pages where this UI has to be exactly same
>>> except the search button needs to call  different rpc services.
>>>
>>> How should I write the code once and resue it both the places? Please
>>> advise...
>>>
>>> Thankx and Regards
>>>
>>> Vik
>>> Founder
>>> www.sakshum.com
>>> www.sakshum.blogspot.com
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Google Web Toolkit" group.
>>> To post to this group, send email to
>>> google-web-tool...@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.
>>>
>>
>>
>>
>> --
>> http://gwtupdates.blogspot.com/
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Google Web Toolkit" group.
>> To post to this group, send email to
>> google-web-tool...@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.
>>
>
>
  --
 You received this message because you are subscribed to the Google
>>

Re: GWT Navigation Problem

2010-07-15 Thread lineman78
Look at the history api

On Jul 14, 4:16 pm, Ahmed Shoeib 
wrote:
> Hi all ,
> i face a problem With Navigation .
>
> now i have multiple panel added to the RootPanel ( clear the panel and
> add the next panel )
>
> now i want to support next & back for these panels
>
> how i can do it ???

-- 
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-tool...@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: Caution: SmartGwt loadup size is big

2010-07-15 Thread lineman78
SmartGWT is only a GWT wrapper on a javascript library so it is
expected that you would have this problem.  If you can stand the
licensing, GXT is supposed to be a pure GWT implementation of their
javascript library, so unused portions of the library are not
included.  Due to licensing I have not used it, so I can't speak to
it's effectiveness.  The best solution would be to try and find a
project that has the specific widget you want without the overhead.

On Jul 14, 5:22 pm, mk  wrote:
> We have a tiny widget from SmartClient's SmartGwt. And it had
> increased the intial loadup size between webserver and browser by 2.3MB
> +.( js, css)
>
> Thus be cautious if you think this can hamper performance.
>
> (If anybody has solution to above than plz share ).
>
> FYI: We do changed header of script to cache all SmartClient's scripts
> forever.

-- 
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-tool...@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 any json parser that can parse UTF-8 json text

2010-07-15 Thread lineman78
Jersey is a project for implementing REST services, but would probably
be overkill for your situation.  You could simply write a servlet with
a doGet method if you are handling any marshaling yourself.  The
Jersey project allows you to expose methods to specific URLs and any
marshaling/unmarshaling is handled under the covers by these things
called providers.  It is intended to be used with JAXB to write an XSD
from which you generate POJOs with JAXB and Jersey serializes them to
XML, but custom providers can also serialize to JSON or you can write
custom message body writers for your own protocol.  For the simple
case you are talking about I would just write a class that extends
HttpServlet and overrides the doGet method and writes to the response
directly.

http://www.javafaq.nu/java-example-code-1022.html

On Jul 15, 1:05 am, Alex  wrote:
> for client side i have alwasy use
> com.google.gwt.json.client.JSONParser without any problem.
>
> its for my server side.
>
> im not trying to convert the json string into java class, but rather i
> just need to send the string representation of a json object that was
> extracted from a json array to client side.
>
> so its like i have a txt file that contains json array, inside the
> array has many json object, i just need to randomly pick any one of
> the json object in that array and send it to client app.
>
> does the jersey project thingy able to do that?
>
> On Jul 15, 2:39 am, lineman78  wrote:
>
> > I use overlay types via the javascript JSON.parse method for the
> > client side, which is available in newer browsers and you need to
> > include json2.js for older browsers(eval is also an alternative).  For
> > server side, I suggest using the Jersey project with a JSON context
> > provider as shown here:
>
> >http://blogs.sun.com/enterprisetechtips/entry/configuring_json_for_re...
>
> > On Jul 14, 7:56 am, Jaroslav Záruba  wrote:
>
> > > Have you tried these?
> > > for server-side (GAE)
> > > *com.google.appengine.repackaged.org.json.JSONObject.JSONObject(String
> > > arg0)*
> > > for client *com.google.gwt.json.client.JSONParser*
>
> > > I haven't tried japanese or chinese characters though, rather stuff like
> > > this: "Pøíli¹ ¾lu»ouèký kuò úpìl ïábìlské ódy"
>
> > > On Wed, Jul 14, 2010 at 3:43 PM, Alex  wrote:
> > > > i tried gson, but it give me error.
> > > > this is the code i used
>
> > > > public class Test {
> > > >        private static final String charEncoding="UTF-8";
>
> > > >        private static final String fileName="c:\\test.txt";
> > > >        public static void main(String args[]){
> > > >                try{
> > > >                        File file=new File(fileName);
> > > >                        if(file.canRead()){
> > > >                                FileInputStream inStream=new
> > > > FileInputStream(file);
> > > >                                InputStreamReader reader=new
> > > > InputStreamReader(inStream,
> > > > charEncoding);
> > > >                                JsonParser parser=new JsonParser();
> > > >                                JsonElement jsonA=parser.parse(new
> > > > BufferedReader(reader));
> > > >                                System.out.println(jsonA.isJsonArray());
> > > >                                System.out.println(jsonA.toString());
> > > >                        }
> > > >                }catch(IOException e){
> > > >                        e.printStackTrace();
> > > >                }
> > > >        }
>
> > > > }
>
> > > > the jar from json.org dun work too.
>
> > > > so is there any json parser that can parse UTF-8 json text (japanese
> > > > and chinese character in particular)
>
> > > > --
> > > > 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-tool...@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.

-- 
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-tool...@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: JAXB & GWT How I can use JAXB generated classes on client side

2010-07-15 Thread lineman78
It is not possible to convert POJO to XML without using some sort of
library, but Jersey does have the ability to do JSON.  I use JAXB to
generate my server side classes and JAX-RS to marshal to XML and JSON
depending on the Accepts header.  This is fairly easy to do using a
services context resolver annotated with provider and consumes/
produces application/json.  I then have written a generator(no I can't
provide it, but it is possible) so that I can write an interface for a
POJO and it will generate the overlay type for me, but if you are
working on a smaller project manually writing the overlay types is the
best solution.

On Jul 15, 8:27 am, chris  wrote:
> Thank you for the advice and it appears that this would work for
> server but not for client marshalling. I have been investigating a way
> to use JAXB to marshall soap requests on the client side but have not
> found a way as of yet. I would love to get rid of soap all together
> but unfortunately that will not be possible. Has anyone found a way to
> marshall the POJO to XML on the client?
>
> Thanks,
> Chris Hinshaw
>
> On Jul 15, 1:27 am, Frederic Conrotte 
> wrote:
>
> > There is no problem in using JAXB along with GWT.
>
> > See this thread for 
> > explanations:http://code.google.com/p/google-web-toolkit/issues/detail?id=4020&q=J...
>
> > On Jul 15, 2:57 am, Shyam Visamsetty  wrote:
>
> > > I think you cannot use JAXB with GWT. JAXB uses a lot of classes which
> > > GWT cant compile. So, you may not be able to use it. You can use the
> > > standard xml packages that come with GWT.
>
> > > Thanks,
> > > Shyam Visamsetty.
>
> > > On Jul 14, 8:29 am, Alberto Rugnone 
> > > wrote:
>
> > > > Hi all,
> > > > I have to use classes with jaxb annotation on client side, but GWT
> > > > compiler refuse to work throwing following exception
>
> > > > No source code is available for type javax.xml.namespace.QName
> > > >  No source code is available for type javax.xml.bind.JAXBElement
>
> > > > etc...
>
> > > > someone can help me
>
> > > > Thank you very much in advanced

-- 
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-tool...@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: Mixed content warning on Chrome (skull and bones)

2010-07-15 Thread Danny Goovaerts
Thanks,
I'll go for the cache-control public solution that you suggest such
that the users can be confident about the confidentiality.
I've tested with FF3 and IE7. These browsers seem to persistently
cache the js when cache-control public is set on the reply headers.
I don't know about Chrome. Speedtracer shows "From cache :false" but I
do find the components in the cache.
I don't know how the mobile browser handle it, but the js files are
probably too big anyway to be cached.

Danny

On 14 jul, 22:30, lineman78  wrote:
> Agreed, I had not thought of the caching issue, although this could
> also be fixed by having your server set the cache-control header to
> public when serving static content(doesn't work in FF2).  An example
> of how to do this can be seen here:
>
> http://onjava.com/pub/a/onjava/2004/03/03/filters.html
>
> While I agree that the icon may be a little scary to uninformed users,
> I think it is probably better that way for the reasons I specified
> before.  At the same time, I wish both IE and Chrome would specify
> which parts of the page are not secure so that advanced users can know
> if there is something fishy going on.  Just last night I had 2 of my
> friends who are very non-technical ask me about security when it comes
> to using free wifi.  They have no clue what SSL is and it is much
> easier for me to tell them to not put in any sensitive information
> unless there is a lock icon on their screen.  In your purposes you are
> only loading javascript that has not data through an unencrypted
> connection, but what is to keep you from doing jsonp and sending
> unencrypted data, which from the browsers perspective looks exactly
> the same, loading a javascript file.  But from the users perspective
> one is sending personal information over an unencrypted connection and
> they should be notified because it is fairly serious.
>
> On Jul 14, 1:51 pm, Danny Goovaerts  wrote:
>
>
>
> > I'm not worried about the overhead for the encryption. I want to load
> > the js over http because browsers do not cache content  that is loaded
> > over https. As my application is fairly large (800k, split into
> > several deferred pieces, some of which are 200k) I want to have it
> > cached as much as possible. This is not such an issue when using the
> > application over Wifi, but it can be an issue when using it on mobile
> > devices, provided they that they do caching of decent sized components
> > (seehttp://www.yuiblog.com/blog/2010/06/28/mobile-browser-cache-limits/
> > ).
>
> > I'd just whish that Google had picked another icon than the red skull
> > and bones.
>
> > On 14 jul, 20:30, lineman78  wrote:
>
> > > I believe this is expected behavior, even gmail does this if you have
> > > https turned on.  What is keeping you from using https for loading the
> > > js?  The browser doesn't know that the request you are sending doesn't
> > > contain any sensitive data, therefore this is a desired behavior as
> > > usually there is not real reason not to make a request once an SSL
> > > session has been established because at that point a symmetric block
> > > cipher is used which has very little overhead.
>
> > > On Jul 14, 10:17 am, Danny Goovaerts 
> > > wrote:
>
> > > > I've deployed my GWT application over https. To allow caching of the
> > > > javascript files, I load the bootstrap script over http :
>
> > > > http://www.cellamea.eu/cellamea/
> > > > cellamea.nocache.js">
>
> > > > As expected, this gives a"mixed content warning" on Internet Explorer.
> > > > On Firefox and Safari, the site loads normally.
> > > > On Chrome (version 6.0.458.1 dev) however, I get a red "skull and
> > > > bones" icon in the URL address bar instead of the green padlock icon.
> > > > I think that this is even more scary for the users than the mixed
> > > > content warning on IE.
>
> > > > Is this the expected behaviour on Chrome or do should I do something
> > > > different?
>
> > > > Thanks in advance,
>
> > > > Danny

-- 
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-tool...@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: Possible to access GWT-RPC serializer?

2010-07-15 Thread Sekhar
Thanks guys, yes looks like JSON is the way to go. POJO->JSON should
be easy (using the JSON API), but the other way is a bit tricky. I
don't think overlays help because the JavaScript side never sees the
objects (just the string) and the JSON->POJO process shouldn't depend
on the specific class. As I understand overlays (http://goo.gl/fNzG),
you need to (1) have the object in JS and (2) know the attributes.

I'm experimenting with rolling my own, will post back results.

On Jul 15, 8:08 am, Paul Stockley  wrote:
> You could use JSON and javascript overlay types to access the
> information in a type safe way.
>
> On Jul 15, 10:55 am, Stefan Bachert  wrote:
>
>
>
> > Hi Sekhar,
>
> > this is my first thought. Just use JSON. Then you can use "eval" to
> > read it.
> > However, I do not know any method to export a object to json string.
> > But this should not be too complicated to do yourself, or lookout for
> > such a library
>
> > Stefan Bacherthttp://gwtworld.de
>
> > On 15 Jul., 01:34, Sekhar  wrote:
>
> > > Thanks, yeah - sawhttp://goo.gl/fTloafterIposted. So, I guess
> > > we'll need to implement something of our own, like a simple to/from
> > > JSON strings. Any other thoughts/suggestions?
>
> > > On Jul 14, 3:37 pm, Thomas Broyer  wrote:
>
> > > > On 14 juil, 21:41, Sekhar  wrote:
>
> > > > > Guys, I'm trying to use HTML5 Local Storage and am wondering how I can
> > > > > save the data from the server as a string. Since GWT-RPC already
> > > > > serializes/deserializes Java serializable objects, is there a way to
> > > > > access its serialization functions to marshal the data to/from the
> > > > > Local Storage strings?
>
> > > > You can gain access to the GWT-RPC serialization code (provided your
> > > > objects are used in a GWT-RPC somewhere, so the GWT compiler generates
> > > > the appropriate serialization/deserialization code), but it won't be
> > > > of any help in your case, as GWT-RPC serialization is asymmetric (for
> > > > performance reasons).

-- 
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-tool...@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: Get session object from ID sent in RCP

2010-07-15 Thread Stefan Bachert
Hi,

I guess you refer to

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

quite frankly, this document does not convince me at all.

I see the following attack vectors
a) just reading unsecured tcp. this will give you account and password
in plain text.
Solution: always use https. This will always protected your
application data.

b) CSRF (XSRF). A link of a different page in your browser will pass
the session cookie, too.
(does not happen when url-rewriting is in place).

Solution 1)
newest GWT give you protection as passing the strong name, too, as an
additional header.
The GWT servlet checks this.
At the moment I do not see a possibility for CSRF to pass the header,
too.
If this is true, this attack vector does no more apply with GWT-RPC.

Solution 2)
However, GWT could pass back the session id back as a additional
header, too.
Only the own application has access to the session cookie or url-
rewriting (query parameters).
At the moment I think,  both method have the same increase of
security. Doing both does not really increase security


In the end, you just have to use https.
The rest will given to you with the newest GWT release.
I do not see the need to pass explicity the session id between client
and server

However, on server side you should apply common techniques.
1) only put hashed passwords into a database. The use JBCrypt might be
useful if you intend to build multiple application with different
languages on that database.
Otherwise I dont see why not using MessageDigest.
2) always check whether your session has logged in
3) always check whether your user has still access rights (may be
dropped meanwhile)

Check getThreadLocalRequest() to get access to HttpSession

This blog may also useful
http://development.lombardi.com/?p=1351


Stefan Bachert
http://gwtworld.de

On 14 Jul., 11:04, Torch  wrote:
> The LoginSecurity FAQ says we must always send the session ID in the
> RCP. I am using the standard servlet sessions. After login I send the
> session ID back to the client. In subsequent RPCs the client sends the
> session ID as an RPC parameter. But how do I get the session object in
> the servlet using the session ID in the RCP? There is no function like
> getSession(id).

-- 
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-tool...@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: Possible to access GWT-RPC serializer?

2010-07-15 Thread charlie
Sorry if this is off topic, but what are 'overlay types'  ?

On Thu, Jul 15, 2010 at 10:08 AM, Paul Stockley wrote:

> You could use JSON and javascript overlay types to access the
> information in a type safe way.
>
> On Jul 15, 10:55 am, Stefan Bachert  wrote:
> > Hi Sekhar,
> >
> > this is my first thought. Just use JSON. Then you can use "eval" to
> > read it.
> > However, I do not know any method to export a object to json string.
> > But this should not be too complicated to do yourself, or lookout for
> > such a library
> >
> > Stefan Bacherthttp://gwtworld.de
> >
> > On 15 Jul., 01:34, Sekhar  wrote:
> >
> >
> >
> > > Thanks, yeah - sawhttp://goo.gl/fTloafterI posted. So, I guess
> > > we'll need to implement something of our own, like a simple to/from
> > > JSON strings. Any other thoughts/suggestions?
> >
> > > On Jul 14, 3:37 pm, Thomas Broyer  wrote:
> >
> > > > On 14 juil, 21:41, Sekhar  wrote:
> >
> > > > > Guys, I'm trying to use HTML5 Local Storage and am wondering how I
> can
> > > > > save the data from the server as a string. Since GWT-RPC already
> > > > > serializes/deserializes Java serializable objects, is there a way
> to
> > > > > access its serialization functions to marshal the data to/from the
> > > > > Local Storage strings?
> >
> > > > You can gain access to the GWT-RPC serialization code (provided your
> > > > objects are used in a GWT-RPC somewhere, so the GWT compiler
> generates
> > > > the appropriate serialization/deserialization code), but it won't be
> > > > of any help in your case, as GWT-RPC serialization is asymmetric (for
> > > > performance reasons).
>
> --
> 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-tool...@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.
>
>


-- 


-- 
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-tool...@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 Eclipse Plugin doesn't work with read-only Eclipse Helios file system

2010-07-15 Thread Rajeev Dayal
Hi,

We've been hearing reports of this, but also for people using Eclipse 3.5.
Do you run into the same problem if using Eclipse 3.5?

Also, did you install Eclipse as a root user, but the plugin as a non-root
user?


Rajeev

On Wed, Jul 14, 2010 at 11:29 PM, blackbeltdev wrote:

> Sorry if this is the wrong place to post this...
>
> The GWT eclipse 3.6 plugin doesn't work at all if Helios Eclipse is
> installed to a read-only file system (e.g. /opt on unix). I believe
> this is a new issue related to the 3.6 version of the plugin but I'm
> not 100% certain.
>
> For example none of the normal functions will show up (e.g. create
> Google Web Application). I was able to recreate this problem on
> multiple machines starting from a fresh install of Helios J2EE edition
> and then immediately installing the 3.6 version of the GWT plugin.
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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 Eclipse Plugin doesn't work with read-only Eclipse Helios file system

2010-07-15 Thread blackbeltdev
Sorry if this is the wrong place to post this...

The GWT eclipse 3.6 plugin doesn't work at all if Helios Eclipse is
installed to a read-only file system (e.g. /opt on unix). I believe
this is a new issue related to the 3.6 version of the plugin but I'm
not 100% certain.

For example none of the normal functions will show up (e.g. create
Google Web Application). I was able to recreate this problem on
multiple machines starting from a fresh install of Helios J2EE edition
and then immediately installing the 3.6 version of the GWT plugin.

-- 
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-tool...@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 client as Maven module in multi-module project

2010-07-15 Thread SalvadorDiaz
Hi,

You might want to take a look at the GWT maven plugin documentation
(there are lots of useful tips):

http://mojo.codehaus.org/gwt-maven-plugin/

Hope that helps,

Salvador

On 15 juil, 03:35, David Vree  wrote:
> Manually moving index.html to the WEB-INF directory solver the 404
> problem. But there is still something wrong.
>
> The pop-up window I get with the regular GWT application doesn't pop-
> up in my application.  And the debugging stop point I added for
> onModuleLoad doesn't catch.
>
> On Jul 14, 6:40 pm, Thomas Broyer  wrote:
>
>
>
> > On 14 juil, 19:25, David Vree  wrote:
>
> > > Total GWT newbie here trying to get the first app up and running.  I'm
> > > using Eclipse 3.5.2 and have created and run the sample app you get
> > > with New->Google->Web Application.  The app and the GWT plugin for
> > > Eclipse all work great.
>
> > > Now I am trying to add a GWT client module to my multi-module maven
> > > project that already contains various server maven-modules.  I used
> > > the the "gwt-maven-plugin" archetype to create the module and the
> > > directory structure seems fine, however, I cannot run in hosted mode.
>
> > > When launching the debug web application I get an error in the
> > > console:
>
> > >      [WARN] No startup URLs supplied and no plausible ones found --
> > > use -startupUrl
>
> > > I noticed that the working application used the -startupUrl argument
> > > to the launch and so I added "-startupUrl index.html" to mine but when
> > > browsing to that location with firefox I get a 404.
>
> > >      http://127.0.0.1:/index.html?gwt.codesvr=127.0.0.1:9997
>
> > > I picked index.html as the URL because the archetype created that file
> > > in the "src/main/mywebapp/" directory -- which also contains my WEB-
> > > INF directory.   I'm not sure this part of the directory structure is
> > > correct.  Another potential problem is that the "war" directory in
> > > this module does not contain the index.html.  So perhaps the resources
> > > are not getting copied correctly.   Any guidance here is appreciated!
>
> > I'm primarily a GWT user, and only started using Maven very recently.
> > My project uses a "standard GWT project" layout where there's a war/
> > folder at the "top level", and "standard Maven project" otherwise (src/
> > main/java, src/test/java, etc.)
> > It works with the Eclipse plugin because this one expects (by
> > default!) a war/ folder with some HTML (or JSP) page in it.
> > Unfortunately, I can't really tell if it works "in Maven", as I
> > haven't really tried a "mvn gwt:compile" (I'm prototyping and haven't
> > yet committed enough things to our repo to know if it'd work on our
> > new Hudson CI server)
> > For now, I configured my Maven project following:
> >  - gwt-maven-plugin 
> > docs:http://mojo.codehaus.org/gwt-maven-plugin/user-guide/war-folder.html
> >  - GWT 2.1 Spring Roo integration (which generates a Maven project;
> > note that I haven't ever used Spring Roo,just looking at the SVN 
> > repo)https://fisheye.springsource.org/browse/spring-roo/addon-gwt/src/main...
>
> > FWIW, I'm using the 1.3.1.google version of the gwt-maven-plugin that
> > you can find in the GWT repo 
> > athttp://google-web-toolkit.googlecode.com/svn/2.1.0.M2/gwt/maven/
> > (I'm also using GWT 2.1.0.M2 from that repo)
>
> > Oh, the 404 *is* due to the index.html not being in the war/ folder.
> > Running DevMode from the Eclipse plugin doesn't do anything Maven-
> > related, so it won't try copying files around.

-- 
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-tool...@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: Possible to access GWT-RPC serializer?

2010-07-15 Thread Paul Stockley
You could use JSON and javascript overlay types to access the
information in a type safe way.

On Jul 15, 10:55 am, Stefan Bachert  wrote:
> Hi Sekhar,
>
> this is my first thought. Just use JSON. Then you can use "eval" to
> read it.
> However, I do not know any method to export a object to json string.
> But this should not be too complicated to do yourself, or lookout for
> such a library
>
> Stefan Bacherthttp://gwtworld.de
>
> On 15 Jul., 01:34, Sekhar  wrote:
>
>
>
> > Thanks, yeah - sawhttp://goo.gl/fTloafterI posted. So, I guess
> > we'll need to implement something of our own, like a simple to/from
> > JSON strings. Any other thoughts/suggestions?
>
> > On Jul 14, 3:37 pm, Thomas Broyer  wrote:
>
> > > On 14 juil, 21:41, Sekhar  wrote:
>
> > > > Guys, I'm trying to use HTML5 Local Storage and am wondering how I can
> > > > save the data from the server as a string. Since GWT-RPC already
> > > > serializes/deserializes Java serializable objects, is there a way to
> > > > access its serialization functions to marshal the data to/from the
> > > > Local Storage strings?
>
> > > You can gain access to the GWT-RPC serialization code (provided your
> > > objects are used in a GWT-RPC somewhere, so the GWT compiler generates
> > > the appropriate serialization/deserialization code), but it won't be
> > > of any help in your case, as GWT-RPC serialization is asymmetric (for
> > > performance reasons).

-- 
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-tool...@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: Qt for Mobile Application Development for Education v1.0 Beta

2010-07-15 Thread Stefan Bachert
Hi,

I do not see any relevance to this forum?
Could someone help me?

Stefan Bachert
http::/gwtworld.de

On 15 Jul., 03:54, James Baker  wrote:
> A really comprehensive knowledge enhancing training material from
> Forum Nokia, you guys should check out!!
> This training material is intended for educational purposes. The
> objective of the course is to teach students all the essential
> knowledge and skills to develop well-written cross-platform Qt
> applications for Symbian and Maemo platforms. This ZIP package
> includes training documentation in four lectures, exercises, and a
> teacher’s guide. This is a Beta release of this package.
> Topics Include:
> •     Cross-Platform Development
> •     Maemo
> •     MeeGo
> •     Qt , Mobility , Qt for Maemo, Qt for Symbian
> •     Symbian
> •     Symbian C++
>
> Download it herehttp://bit.ly/cauRXi

-- 
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-tool...@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: Client session

2010-07-15 Thread Stefan Bachert
Hi,

I am not sure what you mean with client side sessions?

Do you mean to pass the HttpSession (maybe just the id) to the client
side?

But for what reason? It is already there. Either due to url-rewriting
or by cookie.


Stefan Bachert
http://gwtworld.de


On 9 Jul., 19:48, mk  wrote:
> How to implement a client side session ( and any best practices to
> implement them).
> Is it to just create a static variable ?
>
> How do two different MVP widgets share MODEL data (i.e. user input
> data).
>
> How do two different MVP widgets share VIEW data ( for example if
> display of one widget is dependent on mouse click location of second
> widget, than how do two widgets share view information i.e. mouse
> click location).
>
> Again, all widgets are designed using MVP and send events using
> EventBus.

-- 
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-tool...@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: Possible to access GWT-RPC serializer?

2010-07-15 Thread Stefan Bachert
Hi Sekhar,

this is my first thought. Just use JSON. Then you can use "eval" to
read it.
However, I do not know any method to export a object to json string.
But this should not be too complicated to do yourself, or lookout for
such a library

Stefan Bachert
http://gwtworld.de

On 15 Jul., 01:34, Sekhar  wrote:
> Thanks, yeah - sawhttp://goo.gl/fTloafter I posted. So, I guess
> we'll need to implement something of our own, like a simple to/from
> JSON strings. Any other thoughts/suggestions?
>
> On Jul 14, 3:37 pm, Thomas Broyer  wrote:
>
> > On 14 juil, 21:41, Sekhar  wrote:
>
> > > Guys, I'm trying to use HTML5 Local Storage and am wondering how I can
> > > save the data from the server as a string. Since GWT-RPC already
> > > serializes/deserializes Java serializable objects, is there a way to
> > > access its serialization functions to marshal the data to/from the
> > > Local Storage strings?
>
> > You can gain access to the GWT-RPC serialization code (provided your
> > objects are used in a GWT-RPC somewhere, so the GWT compiler generates
> > the appropriate serialization/deserialization code), but it won't be
> > of any help in your case, as GWT-RPC serialization is asymmetric (for
> > performance reasons).

-- 
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-tool...@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: Caution: SmartGwt loadup size is big

2010-07-15 Thread Stefan Bachert
Hi,

this is the major problem using a javascript wrapper instead of a real
GWT based library.
However, even a poor designed GWT library may  (but should not) run
into this problem due to poor dependencies.
(Everthing depends on everthing)


Stefan Bachert
http://gwtworld.de

On 15 Jul., 01:22, mk  wrote:
> We have a tiny widget from SmartClient's SmartGwt. And it had
> increased the intial loadup size between webserver and browser by 2.3MB
> +.( js, css)
>
> Thus be cautious if you think this can hamper performance.
>
> (If anybody has solution to above than plz share ).
>
> FYI: We do changed header of script to cache all SmartClient's scripts
> forever.

-- 
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-tool...@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: JAXB & GWT How I can use JAXB generated classes on client side

2010-07-15 Thread chris
Thank you for the advice and it appears that this would work for
server but not for client marshalling. I have been investigating a way
to use JAXB to marshall soap requests on the client side but have not
found a way as of yet. I would love to get rid of soap all together
but unfortunately that will not be possible. Has anyone found a way to
marshall the POJO to XML on the client?

Thanks,
Chris Hinshaw

On Jul 15, 1:27 am, Frederic Conrotte 
wrote:
> There is no problem in using JAXB along with GWT.
>
> See this thread for 
> explanations:http://code.google.com/p/google-web-toolkit/issues/detail?id=4020&q=J...
>
> On Jul 15, 2:57 am, Shyam Visamsetty  wrote:
>
> > I think you cannot use JAXB with GWT. JAXB uses a lot of classes which
> > GWT cant compile. So, you may not be able to use it. You can use the
> > standard xml packages that come with GWT.
>
> > Thanks,
> > Shyam Visamsetty.
>
> > On Jul 14, 8:29 am, Alberto Rugnone 
> > wrote:
>
> > > Hi all,
> > > I have to use classes with jaxb annotation on client side, but GWT
> > > compiler refuse to work throwing following exception
>
> > > No source code is available for type javax.xml.namespace.QName
> > >  No source code is available for type javax.xml.bind.JAXBElement
>
> > > etc...
>
> > > someone can help me
>
> > > Thank you very much in advanced
>
>

-- 
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-tool...@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: JAXB & GWT How I can use JAXB generated classes on client side

2010-07-15 Thread chris
Thank you for the advice and it appears that this would work for
server but not for client marshalling. I have been investigating a way
to use JAXB to marshall soap requests on the client side but have not
found a way as of yet. I would love to get rid of soap all together
but unfortunately that will not be possible. Has anyone found a way to
marshall the POJO to XML on the client?

Thanks,
Chris Hinshaw

On Jul 15, 1:27 am, Frederic Conrotte 
wrote:
> There is no problem in using JAXB along with GWT.
>
> See this thread for 
> explanations:http://code.google.com/p/google-web-toolkit/issues/detail?id=4020&q=J...
>
> On Jul 15, 2:57 am, Shyam Visamsetty  wrote:
>
> > I think you cannot use JAXB with GWT. JAXB uses a lot of classes which
> > GWT cant compile. So, you may not be able to use it. You can use the
> > standard xml packages that come with GWT.
>
> > Thanks,
> > Shyam Visamsetty.
>
> > On Jul 14, 8:29 am, Alberto Rugnone 
> > wrote:
>
> > > Hi all,
> > > I have to use classes with jaxb annotation on client side, but GWT
> > > compiler refuse to work throwing following exception
>
> > > No source code is available for type javax.xml.namespace.QName
> > >  No source code is available for type javax.xml.bind.JAXBElement
>
> > > etc...
>
> > > someone can help me
>
> > > Thank you very much in advanced
>
>

-- 
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-tool...@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.



The new shiny GwtRpcCommLayer

2010-07-15 Thread monkeyboy
This is great news for me:
http://googlewebtoolkit.blogspot.com/2010/07/gwtrpccommlayer-extending-gwt-rpc-to-do.html

It is about a GWT RPC library that works on any Java client. I would
like to give some suggestions to the developer(s) of the library.

1. The server side should work on GAE.
2. The developers should be able to access the RPC client somehow to
be able to handle Cookies or other http headers.
3. The client side should work on Android.

I would like to hear from the developers if they read this. Have they
or will they implement any or all of this features?

Thanks
m

-- 
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-tool...@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/iphone/phonegap server communication

2010-07-15 Thread Arthur Kalmenson
We also ran into this issue while building a GWT based iPhone app
using phonegap. We also didn't want to use JSONp as our servers were
Java based and GWT-RPC makes life easier. The solution lay in a blog
post by Ray Cromwell:
http://timepedia.blogspot.com/2009/04/gwt-rpc-over-arbitrary-transports-uber.html

The post describes a way to do GWT-RPC over any arbitrary transport
protocol. The two solutions for the phonegap case is to use JSONp as
the underlying protocol or the window.name hack. We went with JSONp
and the code is open sourced. You can find the classes here:
http://code.google.com/p/gwt-app-framework/source/browse/#svn/trunk/gwt-af-command/src/main/java/com/google/gwt/user/rebind/rpc
and the GWT module file configurations here:
http://code.google.com/p/gwt-app-framework/source/browse/trunk/gwt-af-command/src/main/resources/org/gwtaf/GwtAfCommandJsonp.gwt.xml

Be for warned, JSONp is transported using GET, so make sure that your
requests will fit within the maximum GET length limit:
http://www.boutell.com/newfaq/misc/urllength.html

Hope that helps,
--
Arthur Kalmenson



On Sat, Jun 12, 2010 at 10:02 AM, rhodebump  wrote:
> All,
> I am building an iphone app using GWT/phonegap, so my GWT application
> will be running from the filesystem in Safari.
> Given this, would it make sense for me to use RPC to communicate with
> remote server?  My assumption here is that running from the filesystem
> will allow me to do this.
>
> I have been going down the road with JsonpRequestBuilder, but as I
> think about it, am I making things harder for myself using
> JsonpRequestBuilder when I could be using RPC?
>
> Any thoughts?
> Phillip
>
> This is for my personal project http://www.spotmouth.com a grails/
> drupal based backend.
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: This is getting beyond a joke

2010-07-15 Thread Thomas Broyer


On 15 juil, 14:52, monkeyboy  wrote:
> Now that I think about it this development was expected since Google
> and WMWare decided to integrate GWT with Spring Roo which uses Maven
> under the hood. The integration would not make sense if they did not
> put the GWT libs in the repo. Will Google be developing a Maven plugin
> (or contribute to the gwt-maven-plugin)? Any info on this David?

They've patched the gwt-maven-plugin for the milestones, and they said
(here or in GWT-Contributors) that they'd contribute the changes back
to gwt-maven-plugin a bit later (this was in the I/O rush).
The patched plugin, as well as the 2.1 milestone artifacts can be
found at http://google-web-toolkit.googlecode.com/svn/2.1.0.M2/gwt/maven/
(replace M2 with M1 for the first milestone)

-- 
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-tool...@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/iphone/phonegap server communication

2010-07-15 Thread Youen
MMmm.. just to understand well.

In our case the RPC endpoint are in HTTP server (tomcat, apache,
whatever), and we call theses endpoints from HTMl/JS/GWT file loaded
from file://.

It is easy to do it by calling "jsonp endpoint" (with
JsonpRequestBuilder) but I am wondering if it is possible with doing
rpc request. (The impact on the code is ... large).

On 15 juil, 03:47, mP  wrote:
> Invoking an RPC from a locally served file (one thats loaded from file://)
> makes no sense. How can the filesystem possibly respond to the request
> in a dynamic way. The only thing it could do is try and return a file
> that matches the path in the RPC end point. No matter what payload
> accompanies the RPC the "server" in this case can only ever reply with
> the same precooked response. In the end this would amount to just
> requesting and fetching a static file, which kind of defeats the
> purpose of invoking a service (which tend to be "dynamic").
>
> hyh

-- 
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-tool...@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: Timer to Refresh a Table View

2010-07-15 Thread AgitoM
You can use this:

public void refreshTable() {
Timer t = new Timer() {
   public void run() {
 //Retrieve Data
 //Refresh table
 refreshTable();
  }
};
// Schedule the timer to run once in 5 minutes.
t.schedule(30);
}

This essentially this creates a recursive loop, that will halt for 5
minutes every time it starts a loop cycle.
This will not hang your single treated Javascript like your earlier
approach.

On Jul 15, 2:41 am, Irving Ruan  wrote:
> Hi all,
>
> So I understand that onModuleLoad() method in the class that
> implements EntryPoint is the method that basically initiates the GWT
> web app. On this web app, I have some headers and metadata info, such
> as the main title. However, I have a Table which dynamically pulls in
> data from a local SQL DB. While I am able to successfully read from
> the DB and display the data, I want the table to automatically reload
> ever 5 minutes, which in return, refreshes the view if the DB changes
> info.
>
> I tried implementing a sleep timer function within the onModuleLoad()
> within an infinite while loop but that does not work and the page
> never completely loads because onModuleLoad() needs to finish being
> called before the view gets loaded. Any ideas on how to implement an
> automatic table or page refresher ever X minutes?
>
> Here's the code in my onModuleLoad() function:
>
> public void onModuleLoad() {
>
>                 // Set alignment and size
>                 DockPanel mainPanel = new DockPanel();
>                 mainPanel.setSize("100%", "100%");
>                 mainPanel.setVerticalAlignment(HasAlignment.ALIGN_MIDDLE);
>                 mainPanel.setHorizontalAlignment(HasAlignment.ALIGN_CENTER);
>
>                 final AppTableView tableView = new AppTableView();
>                 final AppFrameView frameView = new AppFrameView();
>
>                 // Add view modules to the page
>                 mainPanel.add(appFrameView, DockPanel.NORTH);
>                 mainPanel.add(appTableView, DockPanel.CENTER);
>
>                 RootPanel.get().add(mainPanel);
>
>                 while (true)
>                 {
>
>                         // This method pulls in data from the SQL db
> and displays it
>                         tableView.draw();
>
>                         timer(500);
>                 }
>         }
>
> The tableView.draw() method is the one that pulls in data from the SQL
> DB and displays it.
>
> Thanks in advance,
> -I.

-- 
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-tool...@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: newbie question: deploying the starter web project

2010-07-15 Thread Katharina Probst
I think I know what the problem may be related to.

When I navigate to:
http://www.tuwuk.com/mainarea/

I get nothing, but when I go to

http://www.tuwuk.com

Given what I've told you to do, I would expect the first one to work, not
the second one.

I get your starter project (with the error).  Because of the way you
deployed it, it looks like the servlet will look for mainarea/greet, but
it's not finding anything there (just like I didn't).  I think you have a
problem with your tomcat setup - you say that public_html is your "webapps"
folder.  Now I don't know enough tomcat hackery to know how to rename the
webapps folder successfully (although I know you can make one project your
"default" project, but the way I did it it still sat in the webapps folder),
but it doesn't look like maybe you did it quite right.

If you just have "stock" (i.e., unmodified) tomcat, you'll get a webapps
directory, and you can dump your application (everything under war, like
we'd discussed and you've done) there.  Can you give that a try and see if
it works?

kathrin

On Thu, Jul 15, 2010 at 2:14 AM, Oby Sumampouw  wrote:

> Hi Katharina,
>
> Thanks for your help so far.
>
> No I didn't have AppEngine enabled, I only have the GWT SDK clicked. I
> also didn't change anything from the starter project.
> I still have this line...
>
> @RemoteServiceRelativePath("greet")
> public interface GreetingService extends RemoteService
>
> this is weird, the javascript RPC is pointing to the right servlet but
> it says it cannot find the server... What can possibly go wrong. I
> restarted the tomcat too.
>
> In my CPanel error log I found this error
> [Thu Jul 15 01:02:05 2010] [error] [client 99.185.43.174] File does
> not exist: /home/osumampo/public_html/404.shtml, referer:
> http://www.tuwuk.com/mainarea/F4DE64580EEC20A0487A6B1C498FA109.cache.html
> [Thu Jul 15 01:02:05 2010] [error] [client 99.185.43.174] File does
> not exist: /home/osumampo/public_html/mainarea/greet, referer:
> http://www.tuwuk.com/mainarea/F4DE64580EEC20A0487A6B1C498FA109.cache.html
> [Thu Jul 15 01:01:35 2010] [error] [client 99.185.43.174] File does
> not exist: /home/osumampo/public_html/404.shtml
> [Thu Jul 15 01:01:35 2010] [error] [client 99.185.43.174] File does
> not exist: /home/osumampo/public_html/favicon.ico
>
> So apparently the javascript is really pointing to the right URL
> "mainarea/greet" but it seems the tomcat server does not translate
> 'mainarea/greet' to the servlet but directly translate it to real
> path.
> I checked my web.xml in WEB_INF
>
> 
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>"http://java.sun.com/dtd/web-app_2_3.dtd";>
>
> 
>
>  
>  
>greetServlet
> path.to.server.GreetingServiceImpl
>   
>
>  
>greetServlet
>/mainarea/greet
>  
>
>  
>  
>MainArea.html
>  
>
> 
>
> the url-pattern seems correct. Do you have any guess on why this
> happen?
>
> Thanks,
> Oby
>
>
>
>
> On Jul 14, 5:53 pm, Katharina Probst  wrote:
> > When you created your project, did you have AppEngine enabled?  If you're
> > trying to deploy with tomcat, you shouldn't have that option enabled.
> >
> > > does the javascript file generated by the GWT sends request to the
> > > wrong servlet? does it point to /mainarea/greet all the time?
> >
> > Your client-side implementation of the RPC (what allows you to talk
> between
> > the client and the server) has an annotation that should look like
> > this: @RemoteServiceRelativePath("greet")
> >
> > That's how it hooks up to the server side servlet (whose URL pattern is
> > specified in the web.xml file). So, no, it doesn't have to point to
> > /mainarea/greet. Did you modify anything from the starter project?
> >
> > kathrin
> >
> >
> >
> > > Thanks,
> > > Oby
> >
> > > On Jul 14, 6:01 am, Katharina Probst  wrote:
> > > > Try just taking the whole war directory that the compiler produces
> (as
> > > is)
> > > > and copying it to your tomcat/webapps/ directory.  Rename the war
> > > directory
> > > > to the name of your webapp (say, public_html).
> >
> > > > Then do tomcat/bin/startup.sh
> >
> > > > and go to
> >
> > > > localhost:8080/public_html/MainArea.html
> >
> > > > That should do the trick...
> >
> > > > kathrinOn Wed, Jul 14, 2010 at 2:51 AM, Oby Sumampouw <
> > > osumamp...@gmail.com> wrote:
> > > > > Hi,
> > > > > I am trying to see if I can deploy the web starter project to a web
> > > > > server (which runs using tomcat)
> >
> > > > > The steps that I have done so far:
> > > > > 0.) create new GWT application, so it's the default template for a
> web
> > > > > app
> > > > > 1.) I compiled the starter project
> > > > > 2.) Copy the class, lib directory to the ~/public_html/WEB-INF
> > > > > 3.) Copy the web.xml to the ~/public_html/WEB-INF
> >
> > > > > this is the web.xml
> >
> > > > > 
> > > > >  > > > >PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> > > > >"http://java.sun.com/dtd/web-app_2_3.dtd"

Re: This is getting beyond a joke

2010-07-15 Thread monkeyboy
Now that I think about it this development was expected since Google
and WMWare decided to integrate GWT with Spring Roo which uses Maven
under the hood. The integration would not make sense if they did not
put the GWT libs in the repo. Will Google be developing a Maven plugin
(or contribute to the gwt-maven-plugin)? Any info on this David?

On Jul 15, 9:55 am, andreas  wrote:
> Thanks David!
>
> I'll spread the news in our team...
>
> Andreas
>
> On 15 Jul., 04:18, David Chandler  wrote:
>
> > Hang tight, folks, we're on it. As has been noted in this thread, GWT
> > itself is not built with maven, so it's not a 100% automated process
> > to push to maven central. But we're working hard to get gwt-user-2.0.4
> > and gwt-dev-2.0.4 uploaded by Friday and to make deployment to maven
> > central a part of future releases.
>
> > David Chandler
> > GWT Developer Relations
> > Atlanta, GA USA
>
> > On Jul 14, 9:15 pm, David Vree  wrote:
>
> > > Thanks for that.
>
> > > On Jul 14, 6:37 pm, monkeyboy  wrote:
>
> > > > Nice. From 23 to 37 stars in less than a day.
>
> > > > On Jul 14, 9:09 am, monkeyboy  wrote:
>
> > > > > On Wed, Jul 14, 2010 at 7:22 AM, Kasper Hansen 
> > > > > wrote:
>
> > > > > > I would also wish that Google would takeMavenmore seriously. I can
> > > > > > only recommend all that agree to star the issues regardingMavenin
> > > > > > the bug tracker.
>
> > > > > Here it is (the issue 
> > > > > regardingMaven):http://code.google.com/p/google-web-toolkit/issues/detail?id=4673
>
> > > > > There are only 23 stars so far.- 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-tool...@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: Which library for Money/Time-Format

2010-07-15 Thread AlexG
Hi,

i got what I needed, thanks to you both.

Greets
Alex

On 14 Jul., 18:10, Jaroslav Záruba  wrote:
> I used gwt-math on my previous project. works fine.
> 2.1 (m1, m2) has BigDecimal support built in.
>
> On Wed, Jul 14, 2010 at 5:52 PM, Scott Fines  wrote:
> > I don't know about the money situation, but gwttime(http://
> > code.google.com/p/gwttime) is a port of JodaTime to GWT. Despite
> > appearances, it is actually still being worked on.
>
> > For Money, I have heard people talk about using gwt-math(http://
> > code.google.com/p/gwt-math), which has the BigDecimal class emulated
> > in it. I don't know much about it, though, so don't take my word as
> > holy writ.
>
> > (Disclaimer: I'm the principal committer of gwttime)
>
> > Hope this helps,
>
> > Scott Fines
>
> > On Jul 14, 7:56 am, AlexG 
> > wrote:
> > > Hi,
>
> > > I´m trying to develop some business applications in the cloud. To
> > > calculate with money, I need a library, whicht provides a Money class
> > > and methods, to calculate with it. The same for Date.
>
> > > I tried to use JodaMoney and JodaTime, but there are some dependencies
> > > on non-supported Java classes,
> > > for example java.lang.reflect ...
>
> > > Anybody knows a library that provides the desired functionality,
> > > without using non-supported Java-classes?
>
> > > Thanks.
>
> > > Greets
>
> > --
> > 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-tool...@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.
>
>

-- 
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-tool...@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: Distributing a fix to the customer

2010-07-15 Thread Parag Thakur

thanks Gal.

On Jul 15, 11:42 am, Gal Dolber  wrote:
> no really, you need to recompile and replace the all folder
>
> 2010/7/15 Parag Thakur 
>
>
>
>
>
> > hello,
>
> > We need to provide a fix to a customer that's in our client side GWT
> > code. Is there a way to avoid sending the entire ui folder again? Is
> > there a way to distribute just the part that changed?
>
> > thanks,
> > Parag
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --http://ajax-development.blogspot.com/

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@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.



Fatching application object to gwt project

2010-07-15 Thread Siraj
Hi

I m facing problem to fatching the application object to the
gwt project at the time of complilation it gives me the object.xml
file is not configure.

Thanks in advance
Siraj

-- 
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-tool...@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 2.0.4 caused Class Not Found, TransformerFactoryImpl

2010-07-15 Thread Jan
In my case even the workaround suggested by google fails. The error
message is the following: java.lang.IllegalAccessException: Reflection
is not allowed on public
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl()

I am really looking forward to a bugfix or a reliable workaround
Best regards

-- 
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-tool...@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: ui:style content, UTF-8 characters

2010-07-15 Thread turumbay


On Jul 15, 2:54 am, Thomas Broyer  wrote:
> On 14 juil, 16:29, turumbay  wrote:
>
>
>
> > Is where any way to use specific symbols in style declaration?
>
> > 
> >         .expandable:after{
> >                 content: "▼";
> >         }
> > 
> > 
> >         it works in html code: ▼ 
> >         i can use it in constructor: 
> >         but it doesn't work with css: 
> > 
>
> > in element constructor:
> > @UiField ParagraphElement expandable;
> > public BuggyStyled() {
> >         setElement(uiBinder.createAndBindUi(this));
> >         expandable.setInnerText( expandable.getInnerText() + "▼" );
>
> > }
>
> > in resulting html page header i can see generated style:
> > .GDLTKVSDE:after{content:" ";}
> > all project files are encoded in UTF-8
>
> > is where any solution or workaround?
>
> First, I think you should file a bug.
>
> As for a workaround, have you tried using \25BC instead of ▼ in the
> ui:style?
>
> Does it work if you use an external file, i.e.  source="mystyle.css" /> ? (this could help debug the issue)

Hi, Thomas!
It doesn't work on external css via .
But \25BC really works. Thank you!



-- 
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-tool...@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: location of .cache.html

2010-07-15 Thread lam

I didn't know that in development mode, no cache.html file are
created.
After I did GWT compile, I found them.
thanks :)

On Jul 15, 4:01 am, Katharina Probst  wrote:
> Are you looking for the GWT output JS?  If you look at the *.cache.html
> files in the war directory, you'll see that they contain JS - they are
> actually the obfuscated GWT output, where each permutation gets one
> *.cache.html file.
>
> On Tue, Jul 13, 2010 at 11:18 AM, lam  wrote:
> > Hi,
> > Where is the .cache.html file located? I know that .nocache.js and the
> > html pages are located in the WAR file, but I am unable to find the
> > cachable file. Thank you
>
> > --
> > 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-tool...@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.

-- 
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-tool...@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: This is getting beyond a joke

2010-07-15 Thread andreas
Thanks David!

I'll spread the news in our team...

Andreas

On 15 Jul., 04:18, David Chandler  wrote:
> Hang tight, folks, we're on it. As has been noted in this thread, GWT
> itself is not built with maven, so it's not a 100% automated process
> to push to maven central. But we're working hard to get gwt-user-2.0.4
> and gwt-dev-2.0.4 uploaded by Friday and to make deployment to maven
> central a part of future releases.
>
> David Chandler
> GWT Developer Relations
> Atlanta, GA USA
>
> On Jul 14, 9:15 pm, David Vree  wrote:
>
>
>
> > Thanks for that.
>
> > On Jul 14, 6:37 pm, monkeyboy  wrote:
>
> > > Nice. From 23 to 37 stars in less than a day.
>
> > > On Jul 14, 9:09 am, monkeyboy  wrote:
>
> > > > On Wed, Jul 14, 2010 at 7:22 AM, Kasper Hansen 
> > > > wrote:
>
> > > > > I would also wish that Google would takeMavenmore seriously. I can
> > > > > only recommend all that agree to star the issues regardingMavenin
> > > > > the bug tracker.
>
> > > > Here it is (the issue 
> > > > regardingMaven):http://code.google.com/p/google-web-toolkit/issues/detail?id=4673
>
> > > > There are only 23 stars so far.- 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-tool...@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.



Qt for Mobile Application Development for Education v1.0 Beta

2010-07-15 Thread James Baker
A really comprehensive knowledge enhancing training material from
Forum Nokia, you guys should check out!!
This training material is intended for educational purposes. The
objective of the course is to teach students all the essential
knowledge and skills to develop well-written cross-platform Qt
applications for Symbian and Maemo platforms. This ZIP package
includes training documentation in four lectures, exercises, and a
teacher’s guide. This is a Beta release of this package.
Topics Include:
•   Cross-Platform Development
•   Maemo
•   MeeGo
•   Qt , Mobility , Qt for Maemo, Qt for Symbian
•   Symbian
•   Symbian C++

Download it here http://bit.ly/cauRXi

-- 
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-tool...@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: Currency/Money and Time Library

2010-07-15 Thread Frederic Conrotte
For Money there is nothing specific to GWT.

But for dates, if you want to avoid loosing lot of times with OS/
browsers specific javascript date management and time zones, I
strongly advise you to use you own date class with Strings to
represent fields.

On Jul 15, 9:18 am, AlexG 
wrote:
> Hi @ all,
>
> i am just wondering, is there any library for GWT, that provides money
> and time classes, to deal correct with
> prices and dates?
>
> greets
> Alex

-- 
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-tool...@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.



Currency/Money and Time Library

2010-07-15 Thread AlexG
Hi @ all,

i am just wondering, is there any library for GWT, that provides money
and time classes, to deal correct with
prices and dates?

greets
Alex

-- 
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-tool...@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 any json parser that can parse UTF-8 json text

2010-07-15 Thread Alex
for client side i have alwasy use
com.google.gwt.json.client.JSONParser without any problem.

its for my server side.

im not trying to convert the json string into java class, but rather i
just need to send the string representation of a json object that was
extracted from a json array to client side.

so its like i have a txt file that contains json array, inside the
array has many json object, i just need to randomly pick any one of
the json object in that array and send it to client app.

does the jersey project thingy able to do that?

On Jul 15, 2:39 am, lineman78  wrote:
> I use overlay types via the javascript JSON.parse method for the
> client side, which is available in newer browsers and you need to
> include json2.js for older browsers(eval is also an alternative).  For
> server side, I suggest using the Jersey project with a JSON context
> provider as shown here:
>
> http://blogs.sun.com/enterprisetechtips/entry/configuring_json_for_re...
>
> On Jul 14, 7:56 am, Jaroslav Záruba  wrote:
>
> > Have you tried these?
> > for server-side (GAE)
> > *com.google.appengine.repackaged.org.json.JSONObject.JSONObject(String
> > arg0)*
> > for client *com.google.gwt.json.client.JSONParser*
>
> > I haven't tried japanese or chinese characters though, rather stuff like
> > this: "Pøíli¹ ¾lu»ouèký kuò úpìl ïábìlské ódy"
>
> > On Wed, Jul 14, 2010 at 3:43 PM, Alex  wrote:
> > > i tried gson, but it give me error.
> > > this is the code i used
>
> > > public class Test {
> > >        private static final String charEncoding="UTF-8";
>
> > >        private static final String fileName="c:\\test.txt";
> > >        public static void main(String args[]){
> > >                try{
> > >                        File file=new File(fileName);
> > >                        if(file.canRead()){
> > >                                FileInputStream inStream=new
> > > FileInputStream(file);
> > >                                InputStreamReader reader=new
> > > InputStreamReader(inStream,
> > > charEncoding);
> > >                                JsonParser parser=new JsonParser();
> > >                                JsonElement jsonA=parser.parse(new
> > > BufferedReader(reader));
> > >                                System.out.println(jsonA.isJsonArray());
> > >                                System.out.println(jsonA.toString());
> > >                        }
> > >                }catch(IOException e){
> > >                        e.printStackTrace();
> > >                }
> > >        }
>
> > > }
>
> > > the jar from json.org dun work too.
>
> > > so is there any json parser that can parse UTF-8 json text (japanese
> > > and chinese character in particular)
>
> > > --
> > > 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-tool...@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.

-- 
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-tool...@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.