Minifying HTML Resource

2020-10-08 Thread George Georgovassilis

I recently had the need to inline and minify HTML templates. I would 
normally use TextResource for that, but it doesn't do the minification 
part, so I wrote an HtmlResource which does the minification. Published 
here: https://github.com/ggeorgovassilis/gwt-htmlresource

Enjoy,
G.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/3478bc86-9263-49f6-80d0-5aeb49f06909n%40googlegroups.com.


[gwt-contrib] Re: Documentation of compiler optimisations?

2020-10-02 Thread George Georgovassilis
Thank you Colin, that helped.

On Thursday, 1 October 2020 at 23:35:04 UTC+2 nilo...@gmail.com wrote:

> GWT itself hasn't changed substantially in many years - improvements have 
> mostly been language features, adding support for incremental compilation, 
> the jsinterop system, etc, so for the most part the optimizations haven't 
> changed.
>
> That said, the best way is almost certainly to take a look at the source 
> code itself, and the JavaToJavaScriptCompiler class has the high level 
> aspects of this. This is a different way to look at the current process, 
> but might give you helpful insights in contrast to the link you shared.
>
> Starting in the compilePermutation() method: 
>
> https://github.com/gwtproject/gwt/blob/master/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java#L304-L467
> This method is well commented, showing the order of operations that take 
> place. Optimizations on Java source itself largely happens at the 
> optimizeJava() method, which itself does very little, just check if it 
> should run, and if so, invokes optimizeJavaToFixedPoint(), then applies one 
> last optimization: RemoveEmptySuperCalls. optimizeJavaToFixedPoint() can 
> be found at 
>
> https://github.com/gwtproject/gwt/blob/master/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java#L1415-L1457
> though it largely just invokes optimizeJavaOneTime in a loop until the 
> code stops changing, and follows up with one optional run to the 
> DataflowOptimizer. optimizeJavaOneTime can be found at
>
> https://github.com/gwtproject/gwt/blob/master/dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java#L1492-L1517
> Here you can see the optimizations that happen in the main optimization 
> loop, with a small handful of notes on the order that these must take place.
>
> After this we're back to the compilerPermutation method, which finishes 
> normalizing the code to JS and continuing to optimize this lightly, though 
> not in a loop, just a few specific passes.
>
>
>
>
> On Thursday, October 1, 2020 at 3:52:04 PM UTC-5 George Georgovassilis 
> wrote:
>
>> Is there an up-to-date documentation of optimisations the compiler 
>> applies? An older page [1] discusses some topics but it isn't clear what of 
>> that has been implemented.
>> (apologies for posting here, I asked this question on the user forum [2] 
>> but didn't get any replies)
>>
>> [1] 
>> https://github.com/gwtproject/old_google_code_wiki/blob/master/AdvancedCompilerOptimizations.wiki.md
>> [2] https://groups.google.com/g/google-web-toolkit/c/aOBvgbKjjcw
>>
>>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/7076a1f9-5ee9-4680-97f9-d64c14176237n%40googlegroups.com.


[gwt-contrib] Documentation of compiler optimisations?

2020-10-01 Thread George Georgovassilis
Is there an up-to-date documentation of optimisations the compiler applies? 
An older page [1] discusses some topics but it isn't clear what of that has 
been implemented.
(apologies for posting here, I asked this question on the user forum [2] 
but didn't get any replies)

[1] 
https://github.com/gwtproject/old_google_code_wiki/blob/master/AdvancedCompilerOptimizations.wiki.md
[2] https://groups.google.com/g/google-web-toolkit/c/aOBvgbKjjcw

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/19eac51c-9e9c-4a2f-a999-9b3c40fef65en%40googlegroups.com.


Documentation of compiler optimisations?

2020-09-29 Thread George Georgovassilis
Is there any (recent) documentation of compiler optimisations? I am 
specifically looking for advice on which code constructs to use, which to 
avoid and how they translate into Javascript - ideally an updated version 
of [1]

Cheers,
G.

[1] 
https://github.com/gwtproject/old_google_code_wiki/blob/master/AdvancedCompilerOptimizations.wiki.md

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/c54f02ef-2b6c-4cc3-9b49-1944cfd6dcc6n%40googlegroups.com.


An EventBus with less boiler plate

2019-05-19 Thread George Georgovassilis
Apologies if this has been discussed before. The EventBus requires the 
declaration of an Event class and a Handler interface for each activity of 
interest, which often results in plenty of boiler plate. In one of our 
projects we came up with a simpler notation which doesn't require event 
classes - so all we write are Handler interfaces (and their 
implementations). This does however require a modified event bus.

Firing an event can be as simple as:

bus.fireEvent(Types.transactionEvents, (l)->l.deposit(depositDate, 150, 
"ATM"));

The traditonal event/handler design template always implements these steps:

- sender package data into an event
- sender fires event on the event bus
- event bus locates handlers and executes event on them
- event invokes a method on the handler and passes packaged data as 
arguments

The idea here is that it is slightly less work to directly invoke a 
listener method with the appropriate arguments instead of going through the 
event pack/unpack procedure.

The repo is here: https://github.com/ggeorgovassilis/lambda-listeners, feel 
free to use any way you like.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/dac1af20-2eab-47c2-9e6b-a85b95c880e6%40googlegroups.com.


SL 1.7 out

2016-03-25 Thread George Georgovassilis
SL 1.7 is out. This is a maintenance release which updates dependencies to 
GWT 2.7.0 and Spring 4.2.5 

Repo: https://github.com/ggeorgovassilis/gwt-sl
User group: https://groups.google.com/forum/#!forum/gwt-sl

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT with Maven and Spring

2014-09-29 Thread George Georgovassilis
Hi Dilan,

I run several GWT projects with Spring and Maven without a big fuss, but it 
requires some tweaking until you get it right. I keep a bare (more or less) 
project skeleton on github [1] to help me speed up new projects.

[1] 
https://github.com/ggeorgovassilis/gwt-stuff/tree/master/gwt-maven-project-skeleton

On Saturday, 27 September 2014 03:23:23 UTC+3, Dilan A wrote:

 Is there is a any working tutorial to get GWT setup with using maven? 


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


ANN: flatbus 1.1 released

2014-09-29 Thread George Georgovassilis
A new flatbus https://github.com/ggeorgovassilis/flatbus is available 
with some minor improvements in the maven build and a public maven repo.

Flatbus is a GWT library/generator which generate at runtime an event bus 
that works without events: listeners register their interfaces on the bus 
and clients can invoke directly methods on those interfaces. Technically 
that works by specifying a bus interface which implements all listener 
interfaces. Flatbus will then generate a bus implementation which exposes 
that bus interface.

In a traditional setting you'd use an event/handler pair:

interface ContactDetailsUpdatedHandler{

   void onContactDetailsUpdated(ContactDetailsEvent e);
}

class ContactDetailsEvent{
...
}

A handler implementation would look like this:

class ContactDetailsUpdatedHandlerImpl implements 
ContactDetailsUpdatedHandler{

void onContactDetailsUpdated(ContactDetailsEvent e){
...
}

}

And you would communicate with it like this:

bus.fireEvent(new ContactDetailsUpdatedEvent(contactDetails));

With a flatbus, you don't create events but call methods directly:

interface ContactDetailsUpdatedHandler{

   void onContactDetailsUpdated(ContactDetails c);
}

class ContactDetailsUpdatedHandlerImpl implements 
ContactDetailsUpdatedHandler{

void onContactDetailsUpdated(ContactDetails c){
...
}

}


And you would communicate with it like this:

bus.onContactDetailsUpdated(new ContactDetails(...));

[1] https://github.com/ggeorgovassilis/flatbus

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Undefined property in super dev mode / 2.6.1

2014-09-26 Thread George Georgovassilis
When using super dev mode with chromium on a rather simple project I 
stumbled over an exception about an undefined property - the only catch: 
the property isn't undefined. It happens somewhere down the road of a click 
handler, interestingly enough Window.alert(+this) says 'undefined'.

https://code.google.com/p/google-web-toolkit/issues/detail?id=8916

-- 
You received this message because you are subscribed to the Google Groups GWT 
Contributors group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/00d95189-32f0-4473-a9ac-a64b3d74371e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: GWT-SL 1.5 released

2014-09-14 Thread George Georgovassilis
That's probably the funniest goof I've made in a while... and I owe you 
a big apology! Unfortunately I can't find the original article about RPC 
payload inlining anymore which I think was written by Matt Mastracci.


On 15/09/14 01:55, BRF wrote:

None.  This link,http://jectbd.com/?p=1174, appears in the readme.md at least 
twice. I clicked it to read the referenced article and did not get the expected 
result. It goes to a site that has a bunch of japanese hentai images.  I 
personally don't care, but was only trying to be helpful.  I know if I wanted 
anyone to take my project seriously then I would want all the links to go to 
the correct locations.  If that link does not take you to a japanese hentai 
site, please let mw know so that I can check wth is wrong on my end.



--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT-SL 1.5 released

2014-09-14 Thread George Georgovassilis

Correction, Alex Moffat from Lombardi. Still can't find the article.

On 15/09/14 02:37, George Georgovassilis wrote:
That's probably the funniest goof I've made in a while... and I owe 
you a big apology! Unfortunately I can't find the original article 
about RPC payload inlining anymore which I think was written by Matt 
Mastracci.


On 15/09/14 01:55, BRF wrote:
None.  This link,http://jectbd.com/?p=1174, appears in the readme.md 
at least twice. I clicked it to read the referenced article and did 
not get the expected result. It goes to a site that has a bunch of 
japanese hentai images.  I personally don't care, but was only trying 
to be helpful.  I know if I wanted anyone to take my project 
seriously then I would want all the links to go to the correct 
locations.  If that link does not take you to a japanese hentai site, 
please let mw know so that I can check wth is wrong on my end.






--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT-SL 1.5 released

2014-09-13 Thread George Georgovassilis
BRF, I don't know what kind of weed you're on.

On Saturday, 13 September 2014 17:30:37 UTC+3, BRF wrote:

 It appears all the links to jectbd.com in the readme.md file are broken 
 and go to a japanese hentai site now.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT-SL 1.5 released

2014-09-12 Thread George Georgovassilis
Hi Thomas

I follow you on twitter so I'm used to your way of communicating - no 
offence taken. That having said, the project always welcomes contributions 
be it patches or administrative support.

On Thursday, 11 September 2014 17:59:50 UTC+3, Thomas Broyer wrote:



 On Thursday, September 11, 2014 4:35:24 PM UTC+2, George Georgovassilis 
 wrote:

 Dear all,

 It has been quiet for a while, but we're back with news:


- The project repository moved to github: 
https://github.com/ggeorgovassilis/gwt-sl
- Updated dependencies to GWT 2.6 and Spring 3.2
- There is a maven repository hosted on github now:

 repositories
 repository
 idgwt-sl-mvn-repo/id
 urlhttps://raw.github.com/ggeorgovassilis/gwt-sl/mvn-repo//url


 GitHub really should forbid serving binaries that way.
 The way Maven handles repositories, you're basically mounting a DDoS 
 against GitHub; this does not good to anyone.
 You're also forcing everyone who wants to contribute to your repo to 
 download *all of your binaries* because of the way Git (and DVCS in 
 general) work (oh sure you can tell Git to only clone one single branch and 
 then whitelist the branches you want to synchronize, but who would want to 
 do that?!)


 and use it like this:

 dependency
 groupIdnet.sf.gwt-widget/groupId
 artifactIdgwt-sl/artifactId
 version1.5/version/dependency

 There are still not any plans for moving the maven repository to maven 
 central, but the git hosted repository should get most of you going.


 Deploy to Central or JCenter/BinTray; or possibly host your repo on 
 GitHub Pages, but please don't deteriorate the service many of us rely on 
 just because you're lazy (it's a one-time setup, probably even easier to 
 setup than deploying into a branch of your Git repo!)
 Sorry if that sounds harsh, but this madness has to stop!


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT-SL 1.5 released

2014-09-12 Thread George Georgovassilis
Hi Joseph,

I don't know much about spring4gwt other than that the GWT-SL predates it 
by a while. After Robert Hanson and I released the SL in 2005 (or 2006, I 
forgot - at the time a SF project called GWT Widget Library) it 
continuously evolved covering many corner cases such as exception 
translation. We also cooperated closely with the gilead (now defunc, I 
think) project that allowed transparent serialization of hibernate objects. 
The main idea is that the SL does *not* require that you extend any class; 
it rather works on an interface basis constructing proxies in run time that 
translate the GWT RPC protocol to method invocations on your POJO services. 
I personally use the SL for my own projects, so I've been keeping it up to 
date. Other than that, I see no reason to use the SL over anything else you 
feel comfortable with. After all, the best tools are the ones you know best 
:-)


On Thursday, 11 September 2014 19:50:24 UTC+3, Joseph Lust wrote:

 Thanks for your efforts. Clearly you've been working on this for some time.

 I'm curious what this framework does beyond the existing Spring annotation 
 driven integration with RPC. Using SpringGwtRemoteServiceServlet 
 https://code.google.com/p/spring4gwt/source/browse/trunk/src/org/spring4gwt/server/SpringGwtRemoteServiceServlet.java?r=2,
  
 all the mapping of (annotated) service beans to paths can be done with 
 Spring alone using @RemoteServiceRelativePath and extending 
 RemoteService. In your loads of great documentation I see the ability to 
 have XML files full of URL endpoint to bean mappings, which is more 
 *Springy*. However, what else can you do here that generic Spring/GWT 
 cannot? Thanks.

 Joe


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GWT-SL 1.5 released

2014-09-11 Thread George Georgovassilis
Dear all,

It has been quiet for a while, but we're back with news:


   - The project repository moved to github: 
   https://github.com/ggeorgovassilis/gwt-sl
   - Updated dependencies to GWT 2.6 and Spring 3.2
   - There is a maven repository hosted on github now:

repositories
repository
idgwt-sl-mvn-repo/id
urlhttps://raw.github.com/ggeorgovassilis/gwt-sl/mvn-repo//url
snapshots
enabledtrue/enabled
updatePolicyalways/updatePolicy
/snapshots
/repository/repositories

and use it like this:

dependency
groupIdnet.sf.gwt-widget/groupId
artifactIdgwt-sl/artifactId
version1.5/version/dependency

There are still not any plans for moving the maven repository to maven central, 
but the git hosted repository should get most of you going.

--
The Server Library for GWT (gwt-sl) is a collection of server side GWT utility 
classes, currently focusing on exposing Spring managed beans as RPC services.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Speeding up initial page load time with static HTML in a multi form application

2012-03-25 Thread George Georgovassilis
Hello all,

A while ago we had to work on a GWT application with the requirement that 
the initial page should be visible in under 1 sec, but since it was a 
single module, multi form application this requirement would hold for all 
forms. We initially solved this by having all form markup in the initial 
page HTML, showing and hiding forms with CSS according to the current 
history token. But this created a second problem when a history token was 
included in the initial URL: the browser would first load the HTML showing 
the initial form and only switch to the correct form once the javascript 
was loaded. We then solved this flash of content with a short inline 
javascript that would parse the history token and globally modify CSS so 
that the right form would show up even before the corresponding HTML was 
loaded. If you are interested you can read the details here [1]

[1] 
http://georgovassilis.blogspot.com/2012/03/speeding-up-initial-page-view-of-ajax.html

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/lfRRx2IiTjEJ.
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.



Meetup in Helsinki?

2012-03-14 Thread George Georgovassilis
I'll be in Helsinki Sat-Mon, if anybody wants to catch up over a beer
or whatever it is you northerners consume that'd be great.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: File download and Exception handling using a servlet.

2012-03-14 Thread George Georgovassilis
Hi Albert,

The way I did this is by reading SubmitCompleteEvent.getResults(), i.e.

uploadForm.addSubmitCompleteHandler(new SubmitCompleteHandler() {
public void onSubmitComplete(SubmitCompleteEvent event) {
 if (event.getResults().contains(SizeException)
 Window.alert(Data entry over limit);
}
}

You would just have to make sure that the servlet which handles the upload 
generates some meaningful, machine readable output which you can parse on 
the client


On Monday, March 12, 2012 12:19:29 PM UTC+2, Appien wrote:

 Hi guys,

 In my GWT application the user can download a PDF file by using a servlet. 
 To start the download I create in GWT a hidden Frame Object which calls the 
 servlet. The happy workflow path works great however I want give the user 
 some feedback when generating the PDF file fails. Since the result of the 
 servlet call gets ‘printed’ in the Frame object, the printed exception also 
 appears in the hidden Frame and not e.g. by a popup for the user.

 Unfortunately I don’t see a way so the servlet throws directly exceptions 
 to the AsyncCallback of GWT.

 I’ve the following pseudo code for handling my exception. 

 My questions are the following: 
 - Is this the right way to do exception handling for servlet exceptions 
 in GWT?
 - If not, which approach should I use for this?

 Many thanks for all the help!

 Albert



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/zxkJWOtg4hMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Spring related post

2011-07-29 Thread George Georgovassilis
I think that is a classic... you probably instantiated the controller
in an application-context rather than a web-application-context

On Jul 27, 6:49 pm, spandu spandana@gmail.com wrote:
 Hi,

 I am using GWT 2.0 integrated with Spring in the application, after
 executing the applicationwhen I try to login into the
 application..I am getting the following error. I have searched a lot
 to find out the solution, if anyone has encountered this kind of error
 and found some solution, please help me out with this, I would atleast
 need what might be the root cause for this exception..thanks in
 advance.

 [WARN] Exception while dispatching incoming RPC call
 java.lang.NullPointerException
         at javax.servlet.GenericServlet.getServletName(GenericServlet.java:
 322)
         at javax.servlet.GenericServlet.log(GenericServlet.java:277)
         at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java:
 237)
         at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java:
 117)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java:
 429)
         at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234)
         at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
 164)
         at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:
 86)
         at
 com.shris.emr.server.common.rpc.AbstractShrisRpcSerivce.handleRequest(AbstractShrisRpcSerivce.java:
 60)
         at
 org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:
 48)
         at
 org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:
 771)
         at
 org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:
 716)
         at
 org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:
 647)
         at
 org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:
 563)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 487)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1097)
         at
 org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:
 113)
         at
 org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:
 76)
         at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1088)
         at org.springframework.security.web.FilterChainProxy
 $VirtualFilterChain.doFilter(FilterChainProxy.java:343)
         at
 org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:
 109)
         at
 org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:
 83)
         at org.springframework.security.web.FilterChainProxy
 $VirtualFilterChain.doFilter(FilterChainProxy.java:355)
         at
 org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:
 97)
         at org.springframework.security.web.FilterChainProxy
 $VirtualFilterChain.doFilter(FilterChainProxy.java:355)
         at
 org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:
 100)
         at org.springframework.security.web.FilterChainProxy
 $VirtualFilterChain.doFilter(FilterChainProxy.java:355)
         at
 org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:
 78)
         at org.springframework.security.web.FilterChainProxy
 $VirtualFilterChain.doFilter(FilterChainProxy.java:355)
         at
 org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:
 54)
         at org.springframework.security.web.FilterChainProxy
 $VirtualFilterChain.doFilter(FilterChainProxy.java:355)
         at
 org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:
 35)
         at org.springframework.security.web.FilterChainProxy
 $VirtualFilterChain.doFilter(FilterChainProxy.java:355)
         at
 org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:
 187)
         at org.springframework.security.web.FilterChainProxy
 $VirtualFilterChain.doFilter(FilterChainProxy.java:355)
         at
 

Anyone in Rome to catch up?

2011-04-08 Thread George Georgovassilis
Hi all,

I'll be until Monday in Rome - if anybody wants to catch up for an
espresso or to, please drop me a line.

Best,
G.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: RPC in onWindowClosing() problem

2011-04-08 Thread George Georgovassilis
Hello Ania,

This might be a browser related behavior - if the window is closed,
all activities related with it are cancelled.
It might be best if you tried an alternative aproach: instead of
having the browser explicitly signing the user out of your application
(which is what you are trying to implement by handling
onWindowClosing), you might want to implement a keep alive mechanism.
The browser would notify the server every X seconds, which counts as a
logged in user. If the last notification is older than Y  X seconds,
your server may assume that the user logged out or just closed the
window.

On Apr 5, 1:40 am, Ania deanoz...@gmail.com wrote:
 Hi,
 I'm using RPC within onWindowClosing().It is supposed to delete certain data
 from database based on passed username but nothing happens.Is there any
 alternative way to modify database without using rpc on tab or browser
 closing?
 Thank you for any help!
 Ania

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Howto: Optimising RPC

2011-03-30 Thread George Georgovassilis

Hi Gal,

That's a good point - I'm actually using them in production (since we 
are at it, I might throw in

set-property name=compiler.stackMode value=strip/)

However I've found none of those to affect actual RPC payload size, 
though they most certainly reduce the compiled javascript size.


On 30/03/11 10:58, Gal Dolber wrote:
Another two optimizations on the compiler (the first one affects 
gwt-rpc):


| -XdisableClassMetadata  EXPERIMENTAL: Disables some java.lang.Class 
methods (e.g. getName())|


||
	|-XdisableCastChecking   EXPERIMENTAL: Disables run-time checking of 
cast operations|



On Tue, Mar 29, 2011 at 12:53 PM, Paul Stockley pstockl...@gmail.com 
mailto:pstockl...@gmail.com wrote:


I had the same issue with the command pattern. The problem is that
all commands/results implement a common interface. The first time
the service is created, it needs all the Marshalling code for all
commands/results. The only way to avoid this is to have different
services that define unique interfaces for their commands/results
i.e. ServiceACommand interface and ServiceAResult interface.

In the end I gave up on the command pattern and switched back to
standard RPC with different services for each logical area.I added
common error handling / version checking in a service facade.





--
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/




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



Re: gwt rpc: reducing http headers overhead

2011-03-30 Thread George Georgovassilis
Hello Michele and Mike,

Thanks for the vote of confidence :-)
I'm afraid you can't do much there - most of the headers are set by
the browser and cannot be removed (you may want to try to hack
XmlHttpRequest in the xhr package). I was able to remove only the user-
agent header.

While you may remove the x-gwt-* headers, your backend will complain
if you are using a serialization policy (which is the standard).

On Mar 30, 10:06 am, Jambi michael.lukaszc...@googlemail.com wrote:
 Hey Michele,

 maybe this thread will help:

 http://groups.google.com/group/google-web-toolkit/browse_thread/threa...

 cheers, Mike

 On 30 Mrz., 09:55, Michele Rossi michele.ro...@gmail.com wrote:

  Hi,
  is there any way to configure the GWT RPC mechanism to send out fewer HTTP
  headers with requests?

  In my case the headers account for far more traffic than the RPC request
  payload.

  Many thanks,
  Michele

  POSThttp://192.168.151.88:/marketmon/ServiceResolver.gwtrpcHTTP/1.1
  Accept: */*
  Accept-Language: en-gb
  x-gwt-module-base:http://192.168.151.88:/marketmon/
  Content-Type: text/x-gwt-rpc; charset=utf-8
  x-gwt-permutation: 4F83005C396622954467A089562854DF
  Referer:http://192.168.151.88:/marketmon/IonWeb.html
  UA-CPU: x86
  Accept-Encoding: gzip, deflate
  User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR
  1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729;
  InfoPath.1; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; .NET4.0C;
  .NET4.0E)
  Host: 192.168.151.88:
  Content-Length: 200
  Connection: Keep-Alive
  Pragma: no-cache
  Cookie: JSESSIONID=niz2rzplwvrv

  7|0|5|http://192.168.151.88:/marketmon/|679695836251D111D4E029BE7F29A022|com.myservices.services.remoteservices.HeartbeatService|heartbeat|java.lang.Integer/3438268394|1|2|3|4|1|5|5|-1|

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Howto: Optimising RPC

2011-03-29 Thread George Georgovassilis

Hello Gal,

Sorry, I've had so far no experience with code splitting, my 
applications are all monolithic beasts. I guess the real bloat is not 
the DTOs but the marshalling code generated for RPC, right?


I can think of a possible solution (haven't tested this) but it's ugly: 
assuming that my DTOs live in a defined hierarchy, lets take two as an 
example:


my.package.dto.a.*
my.package.dto.b.*

they can be reflected with a set of corresponding Commands:

my.package.commands.CommandA
my.package.commands.CommandB

where CommandA references only classes from my.package.dto.a and 
CommandB references only classes from my.package.dto.b. I realise that 
even this is a long shot because such a distinction might not always be 
feasible.


To make it worse, I'll probably need multiple service interfaces:

interface MyBatchServiceA{

ResultA process(ListCommandA commands);

}

etc

If I can think of something better I'll post back


On 29/03/11 00:40, Gal Dolber wrote:

Nice post, thanks.
I am having a problem code-splitting my rpc classes and dependencies 
when using the command pattern.
Even if I only load the login screen, if it uses any command rpc it 
forces my apps to load all of them. I am testing some solutions at the 
moment, any thoughts on that?


On Mon, Mar 28, 2011 at 7:18 PM, George Georgovassilis 
g.georgovassi...@gmail.com mailto:g.georgovassi...@gmail.com wrote:


Hello all,

I've been spending some time with reducing RPC payload size and
optimising the request pattern and thought I'd share my pain and
wisdom with you :-)

You can read the full story here [1], the main points I am discussing
are:

- rewriting RPC to use GET over POST for reduced network packet count
- type name elision (and pitfalls)
- packing variables (and when not to)
- using higher gzip compression ratios
- batching requests

Please feel to post any comments
G.

[1]

http://georgovassilis.blogspot.com/2011/03/squeezing-last-bit-out-of-rpc-gwt.html

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




--
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/




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



Howto: Optimising RPC

2011-03-28 Thread George Georgovassilis
Hello all,

I've been spending some time with reducing RPC payload size and
optimising the request pattern and thought I'd share my pain and
wisdom with you :-)

You can read the full story here [1], the main points I am discussing
are:

- rewriting RPC to use GET over POST for reduced network packet count
- type name elision (and pitfalls)
- packing variables (and when not to)
- using higher gzip compression ratios
- batching requests

Please feel to post any comments
G.

[1] 
http://georgovassilis.blogspot.com/2011/03/squeezing-last-bit-out-of-rpc-gwt.html

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Bazarooma, a realestate site with GWT

2011-02-23 Thread George Georgovassilis
Dear all, thank you very much for the valuable points you made!

@Christian: Big screen... lucky you :-) Some sites (think twitter)
solve this by center-aligning the content and providing an ambient
background. I hope, as the functionality of the site increases over
time, to make better use of that extra space (i.e. social links, more
thumbnails) which can wrap to the next line on smaller screens.

@Shyam: Thank you for the encouraging words and for pointing out this
serious issue. As I personally don't use openId (or for that matter
anything alike) I've failed to anticipate the logout problem - will
fix ASAP. I agree about the terms of service, we've unfortunately been
lagging somewhat with the indonesian translation, yet felt too eager
to get your feedback before we launch for good.

@Nino/Alain: Sure thing, I PM'd you

Many thanks  regards!
G.

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



Bazarooma, a realestate site with GWT

2011-02-22 Thread George Georgovassilis
Hello all,

I'm happy to announce that Bararooma [1], a real estate site for the
Indonesian market is going live. It is based on GWT for the frontend
and Spring in the backend, making use of cool features such as RPC
over GET, MVP, Sprites and fine grained caching.

If you can spare a minute, I'd love to read your feedback.

Best,
G.

[1] English: http://en.bazarooma.com
[2] Indonesian: http://bazarooma.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Bazarooma, a realestate site with GWT

2011-02-22 Thread George Georgovassilis
Thank you for the great interest folks!

We've recorded nearly hundred visitors who we could trace back to this
post and who had, to a lesser or greater extent, a look at our site.
Unfortunately we've not received but very little feedback so far - I
hope we didn't scare or bore you away. If you can make it to a quick
visit and drop us a line, we'd be very keen on your feedback -
especially those of you sitting behind corporate proxies :-)

TIA,
G.

PS: if you're currently in the broader Munich area or in Rome in
April, I'd be happy to catch up with you on a beer or two

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



ANN: SL now at Google Project Hosting

2011-01-17 Thread George Georgovassilis
Dear all,

The SL, formerly hosted at Sourceforge, has been split from the Widget
Library and moved to Google Project Hosting [1].

BR,
G.

[1] https://code.google.com/p/gwt-sl/

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Exception falling through catch() in JSNI

2011-01-17 Thread George Georgovassilis
Hello Sanjiv,

Thanks for the pointer. I had a similar suspicion and thought that
GWT.setUncaughtExceptionHandler would install the IE hook, but it
didn't. Now, the nasty part with this type of exception handling is
that it essentially handles the error outside of the context it
appeared in, moving any local variables out of scope.

Regards,
G.

On Jan 16, 5:06 pm, Sanjiv Jivan sanjiv.ji...@gmail.com wrote:
 It is probably triggering window.onerror in IE. See gwt-log's setErrorHandler
 method in the class below if you'd like to register a handler for it in GWT.

 http://code.google.com/p/gwt-log/source/browse/trunk/Log/src/com/alle...

 On Sun, Jan 16, 2011 at 10:25 AM, George Georgovassilis 

 g.georgovassi...@gmail.com wrote:
  I've been toying with Maps Api v3 and markerclusterer and run into a
  strange constellation with the following setup:
  IE 8 (64 bit) both hosted and production mode, GWT 2.1.1

  Markercluster apparently does something to the Map, so that the map
  cannot be operated upon immediately when running IE8, i.e.:

  1. setup map
  2. setup markerclustere
  3. zoom map - this throws an exception about a maptype being not
  defined

  I also get this with Firefox btw. I try{} catch{}'ed this in JSNI
  which works in Firefox as expected. But with IE, the exception simply
  falls through as if there were no catch statement.

  Has anybody seen something similar?

  --
  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.comgoogle-web-toolkit%2bunsubscr...@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.



Exception falling through catch() in JSNI

2011-01-16 Thread George Georgovassilis
I've been toying with Maps Api v3 and markerclusterer and run into a
strange constellation with the following setup:
IE 8 (64 bit) both hosted and production mode, GWT 2.1.1

Markercluster apparently does something to the Map, so that the map
cannot be operated upon immediately when running IE8, i.e.:

1. setup map
2. setup markerclustere
3. zoom map - this throws an exception about a maptype being not
defined

I also get this with Firefox btw. I try{} catch{}'ed this in JSNI
which works in Firefox as expected. But with IE, the exception simply
falls through as if there were no catch statement.

Has anybody seen something similar?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT + GILEAD OR REQUEST FACTORY?

2011-01-11 Thread George Georgovassilis
Hi Richard,

Sorry to hijack this thread (I promise I'll be quiet after that:-).
Since I've not yet had the chance to write any code with the
RequestFactory, I am still curious about the http payload size. For
example, what I didn't like with RPC was that it included the full
qualified class names in the serialized payload which imo could have
been avoided and bloats up the payload. How does that look like with
RequestFactory's payload?

On Jan 11, 4:26 pm, Richard Berger richardlan...@gmail.com wrote:
 FWIW, I made the switch from Gilead to RequestFactory and was pleased
 with the outcome.  I am sure that both will work fine, but I seem to
 recall fewer setup/configuration issues with RequestFactory.  Gilead
 is wonderful, but perhaps because RequestFactory is built-in it is a
 little easier to get started with.

 RB

 On Jan 10, 5:36 am, bond daniele.re...@gmail.com wrote:

  Hi,
  actually I'm using gwt 2.1.1 with hibernate and gilead. Gilead is very
  comfortable because I don't have to create DTO class for my domain.
  I would like an opinion on the new system RequestFactory  compared
  with Gilead. What do you recommend?

  Thanks very much

  Best regards

  Daniele

-- 
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 + GILEAD OR REQUEST FACTORY?

2011-01-11 Thread George Georgovassilis

Wow, thanks a lot :-)

On 11.01.2011 19:45, Thomas Broyer wrote:



On Tuesday, January 11, 2011 5:51:59 PM UTC+1, George Georgovassilis 
wrote:


Hi Richard,

Sorry to hijack this thread (I promise I'll be quiet after that:-).
Since I've not yet had the chance to write any code with the
RequestFactory, I am still curious about the http payload size. For
example, what I didn't like with RPC was that it included the full
qualified class names in the serialized payload which imo could have
been avoided and bloats up the payload.


It can be avoided using a simple inherit 
name='com.google.gwt.user.RemoteServiceObfuscateTypeNames 
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/RemoteServiceObfuscateTypeNames.gwt.xml?r=9519' 
/


How does that look like with RequestFactory's payload?


It's generally lighter, but as of GWT 2.1.1 there's still no way to 
obfuscate the type names (contrary to GWT-RPC, RF is designed to work 
with different versions of the app on the clients and servers; you 
don't *have* to redeploy your server code if you only change your 
client code –even if you change your proxies and service stubs– and 
vice versa, making sure your clients refresh their page, –even if you 
change your domain objects–)

See http://code.google.com/p/google-web-toolkit/issues/detail?id=5729
--
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: RPC Get Requests

2010-12-20 Thread George Georgovassilis
To be precise, you haven't done _any_ research ;-)
Try searching this group with RPC get [1]

[1] 
https://groups.google.com/group/google-web-toolkit/search?group=google-web-toolkitq=rpc+getqt_g=Search+this+group

On Dec 20, 10:12 pm, bconoly bcon...@gmail.com wrote:
 Hey All,
    We're having issues with our apache servers, IE, and post requests
 currently and a solution that someone came up with was to change all
 GWT RPC requests in our apps to GET rather than POST requests.  To be
 honest I haven't done a lot of research into this but I was wondering
 if anyone knew off the top of their heads an easy way to do this?
 Thanks in advance

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Trying to split deserialization process after RPC call

2010-12-20 Thread George Georgovassilis
Hello Damien,

That is an uggly problem. Unfortunately I'm not too fluent on
generators, but if you are willing to consider some alternatives there
might be some:

- DeRPC. It's not exactly over-documented, so you might have to do
some searching but it's supposedly a lot faster than RPC while just as
easy to use.

- JSON

- XML. I mention it here because it is designed for hierarchical
structures like trees, and you can incrementally parse it

- Return a string that contains some representation of your data and
parse it on your own


On Dec 19, 9:43 am, Damien Picard picard.dam...@gmail.com wrote:
 Hi,

 In a few words, I've got a problem with big object deserialization after an
 RPC call.
 On Internet Explorer, the browser ask me to interrupt the script because the
 deserialization process is too long.

 In fact, my RPC service returns a deep recursive tree, and some other data,
 where the Item is called Option :

 The generated FieldSerializer looks like :

 public static void
 deserialize(com.google.gwt.user.client.rpc.SerializationStreamReader
 streamReader, Option instance) throws
 com.google.gwt.user.client.rpc.SerializationException{
     //The childs of this Option node, defining the tree
   *  setChildren(instance, (java.util.List) streamReader.readObject());*
  *   //Some other atomic data
     (...)*

   }

 In my mind, the invocation of setChildren() involves that the childs Options
 are deserialized too. And, because of my tree is too deep, this
 deserialization process leeds to have a Would you like to interrupt the
 script ? in IE6/7.

 I think I could resolve this problem by adding a deferred command in this
 process :

 public static void
 deserialize(com.google.gwt.user.client.rpc.SerializationStreamReader
 streamReader, Option instance) throws
 com.google.gwt.user.client.rpc.SerializationException{
     //The childs of this Option node, defining the tree
     Command c = new Command(){
   *      public void execute(){
            setChildren(instance, (java.util.List)
 streamReader.readObject());*
         }
     }
     DeferredCommand.addPause();
     DeferredCommand.addCommand(c);
  *   //Some other atomic data
     (...)*

   }

 But, to do that, I have to modify the generator of this serializer, and i've
 not found where I can do that. So my questions are :

    - Is it a good idea ?
    - How can I modify /implement my own serializer generator for this tree ?

 P.S. : Furthermore, I will have to deal with asynchronism because of my
 deserialize method will returns before my tree will be totaly deserialized ;
 but I will work on this in a second step.

 Thank you.

 --
 Damien Picard
 Axeiya Services :http://axeiya.com/
 gwt-ckeditor :http://code.google.com/p/gwt-ckeditor/
 Mon livre sur GWT :http://axeiya.com/index.php/ouvrage-gwt.html

-- 
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: Dev Mode Font Size != Production Mode Font Size

2010-12-20 Thread George Georgovassilis
Hello Jeff,

Just checking: you havent't by accident enabled any zooming? Resetting
the dev mode browser (Ctrl + 0) doesn't normalize the fonts back I
guess?

On Dec 17, 5:54 pm, Jeff Schwartz jefftschwa...@gmail.com wrote:
 Yes,, I can. I will do so later.

 On Dec 17, 2010 10:22 AM, Chris Conroy con...@google.com wrote:

 Jeff,

 Can you create a small reproduction case for this issue?

 On Tue, Dec 14, 2010 at 12:37 PM, Jeff Schwartz jefftschwa...@gmail.com
 wrote:



  Hi Chris,

 ...

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit g...

-- 
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: what Mock framework do you recommend ?

2010-12-09 Thread George Georgovassilis
Now I'm curious :-)
I've given the documentation a quick glance and to my unsuspecting eye
it looks quite the same as Easymock  - would anybody of the Mockito
enthusiasts care to elaborate about it?

On Dec 8, 10:43 am, Thomas Broyer t.bro...@gmail.com wrote:
 On 7 déc, 16:32, Raphael André Bauer raphael.andre.ba...@gmail.com
 wrote:

  On Tue, Dec 7, 2010 at 2:18 PM, Christian Goudreau

  goudreau.christ...@gmail.com wrote:
   I read the article proposed by Didier and Mockito is even easier than 
   those

  +1 Mockito is great...

 +1

 (I've been using EasyMock 2.x on another project, I really do prefer
 Mockito)

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



SuggestBox is overengineered

2010-12-03 Thread George Georgovassilis
So I've been on a webapp of mine that does RPC, Google Maps, MVP, uses
a ton of stock and homebrewn widgets and plenty of other things,
touching most of the GWT API and, like in every other GWT App I've
done so far it also uses SuggestBox. And like in every other GWT App
I've written, I come to battle the usual cross browser compatibility
issues, double events firing, display issues etc [1] that haunt
SuggestBox.

A discouraging look at the SOYC report reveals that a whooping 17% of
the code volume is courtesy of SuggestBox  friends, so I decide to
write a (simpler) version (something like they [2] are doing) which
results in a 15% reduction of the gzipped code.

On a side note: this made me really appreciate the ingenuity of the
original SuggestBox author - there is a myriad of details one needs to
take care of, for instance keeping track of focus/blur events between
the listbox and textbox.


[1]
https://code.google.com/p/google-web-toolkit/issues/list?can=2q=suggestboxcolspec=ID+Type+Status+Owner+Milestone+Summary+Starscells=tiles

[2] http://www.airbnb.com/

[3]

import java.util.ArrayList;
import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.core.client.Scheduler;
import com.google.gwt.dom.client.Style.Unit;
import com.google.gwt.event.dom.client.BlurEvent;
import com.google.gwt.event.dom.client.BlurHandler;
import com.google.gwt.event.dom.client.ChangeEvent;
import com.google.gwt.event.dom.client.ChangeHandler;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.FocusEvent;
import com.google.gwt.event.dom.client.FocusHandler;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.event.dom.client.KeyDownEvent;
import com.google.gwt.event.dom.client.KeyDownHandler;
import com.google.gwt.event.dom.client.KeyEvent;
import com.google.gwt.event.dom.client.KeyPressEvent;
import com.google.gwt.event.dom.client.KeyPressHandler;
import com.google.gwt.event.logical.shared.HasValueChangeHandlers;
import com.google.gwt.event.logical.shared.ValueChangeEvent;
import com.google.gwt.event.logical.shared.ValueChangeHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.user.client.Timer;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.SuggestOracle;
import com.google.gwt.user.client.ui.SuggestOracle.Request;
import com.google.gwt.user.client.ui.SuggestOracle.Response;
import com.google.gwt.user.client.ui.SuggestOracle.Suggestion;
import com.google.gwt.user.client.ui.TextBox;

public class SuggestBox extends Composite implements BlurHandler,
KeyDownHandler, ChangeHandler, ClickHandler,
SuggestOracle.Callback, FocusHandler, HasText,
HasValueChangeHandlersString {

private TextBox textbox = new TextBox();
private ListBox listOfSuggestions = new ListBox();
private SuggestOracle oracle;
private FlowPanel panel = new FlowPanel();
private Timer timer;
private boolean hasFocus;
private String lastAnnouncedValue = ;

public SuggestBox(SuggestOracle oracle) {
initWidget(panel);
this.oracle = oracle;
panel.add(textbox);
panel.add(listOfSuggestions);
setStyleName(SuggestBox);

listOfSuggestions.setVisibleItemCount(10);
//textbox.addKeyPressHandler(this);
textbox.addKeyDownHandler(this);
textbox.addFocusHandler(this);
listOfSuggestions.addFocusHandler(this);
listOfSuggestions.addChangeHandler(this);
listOfSuggestions.addClickHandler(this);
listOfSuggestions.addBlurHandler(this);
textbox.addBlurHandler(this);
hideListOfSuggestions();
}

private void hideListOfSuggestions() {
listOfSuggestions.removeStyleName(hidden);
listOfSuggestions.addStyleName(hidden);
}

private void showListOfSuggestions() {

listOfSuggestions.getElement().getStyle().setLeft(textbox.getAbsoluteLeft(),
Unit.PX);

listOfSuggestions.getElement().getStyle().setTop(textbox.getAbsoluteTop()
+ textbox.getOffsetHeight(), Unit.PX);
listOfSuggestions.removeStyleName(hidden);
}

private boolean isListOfSuggestionsShowing() {
return !listOfSuggestions.getStyleName().contains(hidden);
}

private void showSuggestions(String text) {
oracle.requestSuggestions(new SuggestOracle.Request(text), 
this);
}

private void showSuggestionsForCurrentText() {
if (timer != null)
timer.cancel();
timer = 

Re: Slow AsynCallBack method

2010-10-18 Thread George Georgovassilis
Hello BurstUser,

You need to keep in mind that the returned code is not parsed into
javascript object by some mechanism that is native to the browser. The
returned string is parsed in javascript, so it is not uncommon that
complex objects take several seconds to parse. I've run into this
problem on several occasions and depending on the severity found two
solutions that worked for me:

1. change the list into an array and see if that gets parsetimes into
an acceptable range
2. return a single, delimited string and split it appart on the client
with a regular expression.

On Oct 18, 2:46 pm, BurstUser saurabhjo...@gmail.com wrote:
 Hi all,

 I'm having issues with a very slow AsyncCallback method.

 My set up is as follows:

 // CLIENT CODE:

 System.out.println(ONE:  +System.currentTimeMillis()/1000F);
 final AsyncCallback callback  = new AsyncCallback(){
     public void onSuccess(Object result){

         System.out.println(THREE:  +System.currentTimeMillis()/
 1000F);

         dataList = (ListString) result;
         createTable(dataList);
     }
     public void onFailure(Throwable caught){
         Window.alert(caught.toString());
     }
     //Call to openFile service on server
     fileService.openFile(fileType,fileName,callback)

 }

 // SERVER SIDE CODE:
 public ListString openFile(int fileType, String fileName){
     File file = new File(fileName);
     FileInputStream fin = null;
     byte[] bytes = new byte[(int) file.length()];
     try{
         fin = new FileInputStream(file);
         fin.read(bytes);
         String s = new String(bytes);
         doStuff(s);
         fin.close();
     }catch(FileNotFoundException fnfe){
         fnfe.printStackTrace();
     }catch(IOException ioe){
         ioe.printStackTrace();
     }

     System.out.println(TWO:  +System.currentTimeMillis()/1000F);

     return dataStringList;

 }

 I'm running the application in development mode.
 The openFile() method on the server returns an ArrayListString
 called dataStringList, which has 57217 String objects within it.

 My console output is:
 ONE:    1287402660233
 TWO:    1287402660597
 THREE:  1287402836619

 The elapsed time between the System.out.print statements, ONE and TWO
 is 0.364 seconds.
 In contrast, the elapsed time between TWO and THREE is 176 seconds
 (close to 3 minutes), which is far too long for simply processing a
 file of 164kb in size.

 When I run the application with a smaller data set - with a file size
 of 4kb - the elapsed time between TWO and THREE is 1.03 seconds.

 Any pointers or suggestions as to where the time lag could be would be
 much appreciated.
 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: Client side caching of the .nocache,js and other included .js and .css files

2010-10-12 Thread George Georgovassilis
How about ETag ? This should work out of the box with any tomcat.

On Oct 9, 8:16 pm, PeterT peterteunis...@verizon.net wrote:
 We have a project.nocache.js file that included other .js and .css
 files. The generated project has a long GUID like name which changes
 each compilation, so that file is correctly loaded, but the problem we
 see is that when we change the other include files on the server, the
 client does not get the new files.  For the .nocache.js file we can
 force a reload by passing an additional parameter on the url that we
 change everytime the server side changes, but that does not cause the
 included .js and .css files to be picked up.

 Does anybody have the same issue and are there ways around this?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Could it be that GWT internally modifies cookie?

2010-10-12 Thread George Georgovassilis
Hello Denis,

That is unlikely - cookie values are mostly set on the server side.
Since you are using Firebug, why don't you look out for the one
response that overrides the cookie? JSP pages for instance like
setting their own cookies in the default setup. Another thing to watch
for is the cookie path set by the server. A cookie set at
http://localhost:8080/myapp is not the same cookie as the one set at
http://localhost:8080/myapp/services/login.rpc because the browser
stores the path together with the cookie name.

On Oct 11, 7:47 pm, denis56 denis.ergashb...@gmail.com wrote:
 His to everyone,

 We are experiencing a wicked behavior on the web page that uses one
 GWT component running regular updates. Maybe someone could provide an
 insight.

 The thing is that after a couple of PRC requests you can see in
 Firebug that the sessionid sent to client on previous response does
 not correspond to the sessionid that is sent on subsequent PRC
 request. As a side effect users get wrong session cookie and resulting
 in unintended log outs. Really strange and happens only irregularly.

 On of the suspicions is that  GWT might internally manipulate sessions
 (we are using GWT 2.0) because no cookies are set by us explicitly?

 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: some newbie questions

2010-10-09 Thread George Georgovassilis
Hello Ray,

I can't see why the exact piece of code you posted should fail. You've
got probably more going on.

You can avoid this problem if you programmatically construct the page.
Thus, the html should contain only a div with an ID, which you get
through RootPanel.get(id) and then you keep adding your widgets to
that.

If you prefer designing your page as static html and wrapping widgets
around them you need to understand how the widget hierarchy works. For
my taste, it's ill-documented but follows more or less this rule: if
widget A contains widget B, you need to attach first widget B and then
A. An example:

HTML:
form id=A
...
input id=B type=text/
...
/form

Code:

TextBox b = TextBox.wrap(DOM.getElementById(B));
FormPanel a = FormPanel.wrap(DOM.getElementById(A));

If you first do A and then B it will fail.



On Oct 9, 4:15 am, Ray Tayek rta...@ca.rr.com wrote:
 hi, starting a project using eclipse galileo and a week old download
 of gwt eclipse plugin..

 i sometime get a: A widget that has an existing parent widget may
 not be added to the detach list error when doing the following type of thing:

 //div id=barstatic bar/div
 Label bar = new Label(bar label);
 bar.getElement().setId(barid);
 RootPanel.get(bar).add(bar);
 RootPanel rp = RootPanel.get(barid);

 this usually fails. doesn't seem to matter whether bar is a panel, an
 html, or a label (does seem to work with buttons though). seems like
 i am not using gwt properly and breaking some rule 
 like:http://markmail.org/message/l3okzeqycanf5alg

 can someone point me to some doc on this?

 also, i am using gwt-logger. when this crashes, i get this big grey
 thing that says: GWT Code Server Disconnected  which hides the log
 stiff and my html stuff. i have poor vision, is there some way to
 move the thing that has the GWT Code Server Disconnected  so i can
 see what's underneath?

 what i am trying to do is to wire up a bunch of buttons (each of
 which makes an rpc call) with their corresponding status/result
 widgets. the staus/result can be just text for now (maybe some
 graphic that changes later).

 the button case fails if i try to do a RootPanel.get() immediately.
 if i do it in a click handler, it seems to work ok, so maybe it's a
 timing problem?

 thanks

 ---
 co-chairhttp://ocjug.org/

-- 
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: Support IE7 but not IE6, how?

2010-10-09 Thread George Georgovassilis
Hello Andrew,

A couple of ways spring to my mind:

1. Use conditional comments [1]. This way you can easily display a
message to IE6 users that their browser is not supported and focus on
IE7+ CSS
2. If you override the user agent in your module xml file with
everything but IE6 then the GWT compiler will classify IE7 user agents
with the IE8 codebase. In my projects I've found that to be safe as
IE7 behaves more like IE8 than IE6:

set-property name=user.agent
value=ie8,gecko,gecko1_8,safari,opera/




[1] http://www.quirksmode.org/css/condcom.html


On Oct 9, 3:22 am, Andrew Hughes ahhug...@gmail.com wrote:
 Hi People,

 I noticed that the (2.0.4) user.agent options are
 'ie6,ie8,gecko,gecko1_8,safari,opera'.

 The problem is, we would like to support IE7 but not IE6 (because IE6 css
 constraints).

 AFAIK, IE7 is covered by the same user.agent as IE6... that being 'ie6'. So
 how we support IE7 but not IE6?

 Cheers :)

-- 
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: Integration of hibernate with GWT

2010-10-09 Thread George Georgovassilis
You hit a point there. Normally one shouldn't care, because there is
no urge to upgrade to a newer version of the library if it changes the
API or changes some behavior which you rely on. There problem is that
GWT does not backport fixes to older branches, i.e. issues 3757 or
5056, thus if you suffer a bug you either need to patch your version
and backport the fix (if it's easy to fix thing) or you are forced to
upgrade (if it's a compiler fix).



On Oct 7, 8:14 pm, Roger Studner rstud...@gmail.com wrote:
 The general consensus is that GWT moves incredibly fast :)

 I should have tried convey a bit more smirk in my comment.  I'm super excited 
 for all the changes GWT brings.

 I just am ready for it to slow down, so it is an easier sell to the other 
 people (management).

 I hate saying, The new version broke X,Y,Z

 No worries though :)

 Roger

 On Oct 7, 2010, at 2:09 PM, Thomas Broyer wrote:



  On 7 oct, 19:42, Roger Studner rstud...@gmail.com wrote:
  Why GWT scares me these days just a bit:

  I'd suggest waiting a bit (a few days, maybe even just hours) for the
  2.1 RC1 release of GWT and use RequestFactory (you could go with the
  current M3, but many things have changed since then, so starting with
  RC1 would probably be better).

  What scares you exactly?

  The milestones were about building new stuff (Places, Activities, Cell
  widgets, RequestFactory, etc.). AFAIK, RC1 is an API-freeze release;
  so yes, many things have changed since M3, but only about the new
  stuff (and mainly about RequestFactory, and there's the new Editor
  stuff), and it won't change after RC1 (unless I'm wrong about the API-
  freeze, but I'm pretty sure I'm not ;-) ).
  Many things have been postponed, not to 2.1 GA, but to 2.1.1, so I
  think 2.1 GA will only be about having a more stable RC1.

  --
  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 
  athttp://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: Catching RPC exceptions at client side

2010-10-09 Thread George Georgovassilis
Hello Itzik,

Your interface needs to speficy an Exception that extends
IsSerializable, and only those exceptions should be cast from the
service. Thus, if the exception you are throwing for unauthorized
access extends that base exception you should get it also in the
client side.

On a further notice: it might be better if you don't aim at
propagating internal failures to the client, i.e. when a database
connection times out the client doesn't need to know that your oracle
on 192.168.2.10 doesn't respond on port 3000 anymore for user root...
a generic one-for-all technical error (we are experiencing some
technical difficulties) will do just fine.



On Oct 7, 10:31 am, Itzik Yatom itzik.ya...@gmail.com wrote:
 Hi,

 Our project uses GWT  and App engine. We have a problem with catching
 exceptions.
 When we define an exception as part of method signature in our RPC
 asynch interface and implement it at the server, the client side
 catches it and everything works fine.

 But in other 'unusual' case we have problems with catching the
 exception:
 We do some general checks in all our RPC server methods, for example
 checking authorization of current user, and if user is not authorized
 we throw a specific exception.
 For that purpose we have extended the class RemoteServiceServlet and
 overridden the method onAfterRequestDeserialized, in this method if
 user is not authorized we throw our UnAuthorizedException exception.

 The problem is that the client side gets just a general
 StatusCodeException with code 500 (internal server error). I have
 found this relevant code at RpcCallbackAdapter.onResponseReceived:
 .
 .
 if (statusCode != Response.SC_OK) {
         caught = new StatusCodeException(statusCode, encodedResponse);
 .
 .
 The question is how we can get the actual exception in this case? is
 there a way for the client to get the returned Response object ? Any
 other direction ?

 Thanks
 Itzik Yatom

-- 
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: AppEngine Users Service with GWT will always reload page/module upon login

2010-10-05 Thread George Georgovassilis
Hello Haris,

Not sure if I understand your problem, so I'll rephrase it:

You have a GWT page with a Form element and a submit button. When the
submit button is clicked, the page is reloaded.

Question: Do you programmatically construct the form or does it exist
in the static html?

The reason for the reload is likely that GWT does not consume the
submit event. To get started, you must use a button element, since
input type=submit will cause the form to be mercilessly submitted.
Also, you need to register a clickHandler on that button, otherwise
the form will be submitted again with Internet Explorer.

On Oct 3, 12:31 pm, Haris harishas...@gmail.com wrote:
 Using Users Service, after filling up login and password and press OK,
 onModuleLoad is executed. Basically the gwt module is reloaded. I am
 going to loose data entry stuff form the user.

 For instant if someone is typing a forum post and click submit only to
 discover that login already timeout. The person relogin using User API
 login page
 only to discover that the text typed is lost because of this.

 Any suggestion?

 Regards,
 Haris

-- 
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 Spring integration - what is the best method in late 2010?

2010-10-02 Thread George Georgovassilis

Hello David  al,

The SL is also actively maintained - releases are not that frequent 
anymore though (there's not much to do) because of the high maturity grade.



David wrote:

Any other feedback about this ?
What's odd is that we are still asking this very same question after
several years of existence of both frameworks, don't you think ?

So, we have :
- GWT SL
- Spring4GWT
- Gwt-dispatch
- gwt-spring

(My) Questions are :
- which of them are still maintained ?
- which of them do provide a compatibility with the latest versions of
GWT and Spring ?
- which of them are non intrusive ?

David

On 20 sep, 23:41, Jason Hatton jashat...@gmail.com wrote:
  

Hey lalit,

I will take a look at this further this was and example of how to implement
Spring on a previous version and is basically the servlet example class I
posted earlier.  I will take a look at the newer version of gwt-dispatch to
see what else has been included.  We were waiting on upgrading but this
peaks my interested on upgrading sooner.  WebApplication context is just
Spring's way of bootstrapping an application context in a web container.
 What that class does is grab the application context wires in the
DispatchServlet so POJOS can be injected in to all the classes it supports.
 Definitely it is in the spring-web jar  but it appears that is the only
Spring feature gwt-dispatch project takes advantage of.  If you take a look
at the ActionHandler and base dispatch classes you don't see any other
Springy stuff.

Gwt-dispatch helps us to avoid having to code the separate interfaces.  We
just code actions, action handlers, and result objects.  All the dispatch
traffic routes through the one GWT-RPC service that gwt-dispatch implements.
 All the async workings have to be there but, we get to work on valuable
object interactions and avoid ceremonial grunt work which always makes
coding more fun.

Later,
Jas

On Fri, Sep 17, 2010 at 1:12 AM, lalit lalit.bh...@gmail.com wrote:


Hi Jason,
  
I agree that both the approaches are same. But I still have a feeling

that gwtDispatch uses Spring MVC infra to do its job. The code that
you have posted above has WebApplicationContext. Also I looked into
gwtDispatch code and it seems it is using Spring MVC infra. The code I
looked into is here
  
http://code.google.com/p/gwt-dispatch/source/browse/src/main/java/net...
  
Another thing you mentioned in your mail that you do not have to code

two interfaces which looked interesting. If possible can you elaborate
on that? We would like to incorporate that in our approach also if
possible.
  
thanks,
  
On Sep 16, 7:15 pm, Jason Hatton jashat...@gmail.com wrote:
  

Lalit we are not using Spring MVC.  We am using gwt-dispatch and have
extended that project's dispatch servlet to get the Spring integration.


 We
  

then added a custom annotation to pick up the appropriate dispatch action
handler for a particular GWT-RPC on the server side.  All of our GWT-RPC
calls go through this servlet so we avoid the overhead and code bloat of
having to create the standard GWT-RPC interfaces for every new service


call
  

we want to implement.  I looked over your example again and they are


pretty
  

similar.  I like your integration approach with Spring but I prefer


service
  

call handling because we don't have to code the two separate RPC


interfaces,
  

 i.e. the Service and ServiceAsync for every service we want to


implement.
  

 We just create an new dispatch handler apply an annotation to it and we


are
  

off and running.

On Wed, Sep 15, 2010 at 11:33 PM, lalit lalit.bh...@gmail.com wrote:


Deepak - I have used the following structure
  SpringApplicationContext, SpringGwtRemoteServiceServlet ,
PersonServiceImpl go into the server side code.
 The interfaces PersonService and PersonServiceAsync  become part of
GWT client side code.
  
Regarding wsdl files consumption see the section on JAX-WS here

http://www.lalitbhatt.com/tiki-index.php?page=JAX-WSespeciallJAX-WS
client side section. This approach uses JAX-WS approach.
  
For data binding you can use JAXB. The details can be seen here

http://www.lalitbhatt.com/tiki-index.php?page=JAXB. JAX-WS anyway uses
it internally.
  
Also just a disclaimer, the approach I took is as per Spring4GWT

project so it's there idea.
  
Jason- I looked into your approach and conceptually they look similar

in terms of that you are redirecting the request to Spring MVC
infrastructure. IMHO the aprroach I took as per Sping4GWT is better as
one does not have to carry the SpringMVC baggage.
  
--

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

Re: Slow Connection

2010-09-30 Thread George Georgovassilis
Hello Stefan,

There is the Firefox Throttle (Windows only) addon, another tool
(Windows only) called NetLimiter which operates on a network basis and
I hear there is a Linux distro that can do this, also simulating
packet loss etc, you might want to check the discussion over at
stackoverflow [1]. Personally I just take my laptop to the basement
over a WLAN connection with reduced transmission power :-)

[1] http://stackoverflow.com/questions/182077/best-way-to-simulate-a-wan-network

On Sep 30, 3:17 pm, Stefan Bachert stefanbach...@yahoo.de wrote:
 Hi,

 Does anyone know a tool which slows down the http connection to
 simulate a slow internet connection?
 I would like to have the impression as an internet user while testing

 Stefan Bacherthttp://gwtworld.de

-- 
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: Multiple RPC from same page gives Error 500

2010-09-29 Thread George Georgovassilis
Hello GWTViju,

I'm pretty sure you are running into a race condition. The 500 means
that an error ocurred in the server side - there should be somewhere a
detailed stacktrace, check your logging settings. Check for member
variables in your controllers, servlets and services which could be
modified by two parallel requests. A particularily uggly thing I've
seen is if your controller references a single database connection
which is then used by multiple requests in parallel.

On Sep 28, 10:54 pm, bijuv v vvbiju2...@googlemail.com wrote:
 Able to reproduce the same without proxy setup as well. I directly hit
 the Websphere server (bypassing the proxy) and still get the same
 error.

 Though I say I can reproduce locally (tomcat ), the steps will vary each time.

 I have taken another step now - Im printing the payload in the Filters
 itself (just to make sure that the filters did not eat up the payload
 for whatever reason it is! I'm using Spring Security + 2 additional
 filters)

-- 
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: Multiple RPC from same page gives Error 500

2010-09-29 Thread George Georgovassilis

Hello Viju,

How are you integrating GWT with Spring? I'm asking because Spring does 
bind controllers (which are not the same as servlets) to http, so there 
should not be any RemoteServiceServlet involved...



bijuv v wrote:

Hi George,
The 500 error is explicitly set from the Google code (for unexepcted
failure scenario). The code doesnt pass the RemoteServiceServlet to
reach the application code. Before itself, the payload (output of the
method readContentasUtf8) is empty. Due to this GWT is throwing the
exception.

The point Im trying to find is where the request is getting modified
on its way before reaching the RemoteServiceServlet. BTW, there are
filters in place, which is the SpringSecurityFilter

Thanks
Viju

On Wed, Sep 29, 2010 at 1:22 PM, George Georgovassilis
g.georgovassi...@gmail.com wrote:
  

Hello GWTViju,

I'm pretty sure you are running into a race condition. The 500 means
that an error ocurred in the server side - there should be somewhere a
detailed stacktrace, check your logging settings. Check for member
variables in your controllers, servlets and services which could be
modified by two parallel requests. A particularily uggly thing I've
seen is if your controller references a single database connection
which is then used by multiple requests in parallel.

On Sep 28, 10:54 pm, bijuv v vvbiju2...@googlemail.com wrote:


Able to reproduce the same without proxy setup as well. I directly hit
the Websphere server (bypassing the proxy) and still get the same
error.

Though I say I can reproduce locally (tomcat ), the steps will vary each time.

I have taken another step now - Im printing the payload in the Filters
itself (just to make sure that the filters did not eat up the payload
for whatever reason it is! I'm using Spring Security + 2 additional
filters)
  

--
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: CPU utilization on IE6.0 because of Mousemove event

2010-09-24 Thread George Georgovassilis

Hello Sunil,

Sounds about right - DialogBox installs a MouseMove and MouseOver 
handler. Maybe you'd want to extend the class and overwrite the 
contstructor in order to register fewer events (i.e. leave MouseMove 
out) - though I'm not sure how this would affect the functionality.



On 09/24/2010 09:51 AM, sm wrote:

Hi George,
Thank you very much. We were using DialogBox panel which was causing
problem. There is one more entity like this, still trying to figure
out.
Thanks,
Sunil

On Sep 23, 12:43 am, George Georgovassilis
g.georgovassi...@gmail.com  wrote:
   

Hello Sunil,

Maybe some widgets you use implement their own mouse listeners without
you knowing it (i.e. calendar?). You could progressively remove
widgets until you find the one that's causing the CPU load

On Sep 21, 9:34 pm, smsunilm...@gmail.com  wrote:



 

Hi,
   
 

We are using GWT 2.0.3 version. We have not written any handlers for
mousemove event. Some how application is calling the mousemove event
and this results in high CPU utilization. Is mouse move event handler
is out of box function? How can we disable this to increase the
performance of the browser?
   
 

Thanks for your help in advance.
Sunil- 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: CPU utilization on IE6.0 because of Mousemove event

2010-09-23 Thread George Georgovassilis
Hello Sunil,

Maybe some widgets you use implement their own mouse listeners without
you knowing it (i.e. calendar?). You could progressively remove
widgets until you find the one that's causing the CPU load

On Sep 21, 9:34 pm, sm sunilm...@gmail.com wrote:
 Hi,

 We are using GWT 2.0.3 version. We have not written any handlers for
 mousemove event. Some how application is calling the mousemove event
 and this results in high CPU utilization. Is mouse move event handler
 is out of box function? How can we disable this to increase the
 performance of the browser?

 Thanks for your help in advance.
 Sunil

-- 
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 RPC offline caching

2010-09-08 Thread George Georgovassilis
Hello Alex,

Sure you can do that. Have a look at [1], there's a post about how to
do the very same thing with using the HTTP GET cache - so this will
work also with non-html5 speaking browsers. Still that solution faces
the same problem of how to serialize and deserialize the data.


[1]
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/409601cf8d1d3ae1/dca716e3f7d47f5f?lnk=gstq=rpc+get#dca716e3f7d47f5f

On Sep 8, 2:00 pm, Alex G. alexej.gu...@googlemail.com wrote:
 Hello,

 i m working on generalized AsyncCallback class which allows to get a
 serialized string from a succesful GWT RPC response, so i can save it
 to htlm5 localStorage and use it as cached result in case RPC request
 fails.

 public abstract class OfflineAsyncCallbackT implements
 AsyncCallbackT {

     private T offlineResult;

     public void onFailure(Throwable caught) {

          //load from localStorage
          offlineResult = deserialize(serializedString);
     }

     public void onSuccess(T result) {

         String serializedString = serialize(result);
         //save to localStorage
     }

     private String serialize(T object) {TODO};
     private T deserialize(String s) {TODO};

 }

 Is it possible to implement this two functions serialize() and
 deserialize() by using GWT internal class? Are there any other
 alternatives to cache GWT response?

 Thanks for help,
 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: GWT + Spring 3.0 + hibernate references and easy guides

2010-09-07 Thread George Georgovassilis
The answer is not that easy. You can bring hibernate managed objects
(almost) transparently to GWT applications, have a look at Gilead [1]
Much has been said about Spring and GWT, a quick forum search will
surely bring something up


[1] http://noon.gilead.free.fr/gilead/index.php?page=gwt

On Sep 7, 6:32 pm, M. Eduard emoroz...@gmail.com wrote:
 Hibernate will be integrated withing your Spring application. So I
 think you should first learn Spring if going use one... As GWT
 application in result is no more than JavaScript, GWT will never know
 anything about hibernate.

 On Sep 7, 11:16 am, aces2805 ace...@gmail.com wrote:

  Hi, I'm just new with GWT would like to ask if there are some
  references that I can follow in integrating spring 3.0 and hibernate
  with gwt. The usual sites that I go in uses maven, well I just think I
  just need a plain and simple example. Hope some of you guys can help
  me. Really appreciate it ... 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: problems with auto-complete form login

2010-09-06 Thread George Georgovassilis
Hello Magnus,

That's called Breaking out of frames [1]. If you need your app to be
able to detect a valid login, then you'll need to communicate from
within the iframe to the hosting app that the login was ok (have a
look at window.name transport in this case [2])

[1] http://www.blooberry.com/indexdot/html/topics/breakframe.htm
[2] http://development.lombardi.com/?p=611



On Sep 6, 3:00 pm, Magnus alpineblas...@googlemail.com wrote:
 Thomas,

 I was too quick when saying that it works with iframes: The login page
 was shown correctly and the browser offered autofill, but
 FormPanel.wrap caused an exception which I could not get away (i think
 a JS exception).

 Then I tried a combination of both - external login and visual GWT
 integration:

 I made an external JSP page for the log, totally outside of GWT, but I
 loaded this JSP page into an iframe so that it showed up within my GWT
 app.

 The only problem is, when I submit the login form inside the iframe,
 the login page redirects to my app inside the iframe. So the app
 appears inside the iframe.

 Isn't there a way to do the following:
 If the login form within the iframe is submitted, reload the app
 outside the iframe.

 Magnus

 On 3 Sep., 19:00, Magnus alpineblas...@googlemail.com wrote:

  Hmmm...I would like to get my peace with this, but...

  I now created an invisible iframe in my host html.
  On login I just show it, so it's a native html form.
  It's not so nice as a DialogBox, but it works.

  I cannot see why this is bad.

  Why is it bad?

  You see, I cannot let it go... :-)

  Magnus

  On Sep 2, 3:47 am, Thomas Broyer t.bro...@gmail.com wrote:

   On Sep 1, 3:42 pm, Magnus alpineblas...@googlemail.com wrote:

Hi Thomas,

I have thought about this the whole day now and it really sounds
interesting to me to give it a try with external login, but - if I
understood you right - I see a big disatvantage:

Many applications are not or should not be usable at all when the user
is not logged in. But there are also applications that should be
usable (in a limited way) without login.

Consider eBay: You can search and browse as nobody, but if you want to
sell, you have to sign in. Or consider a chess application: You can
watch everything, but if you want to create a new game, you have to
sign in first. Consider a forum: You can read a lot, but not
everything, but after you login, you can read everything and also
write.

So my problem is that with your method I had to lock out all guest
users that just want to come and see what is going on there!

   Not necessarily.
   The setup I described about web.xml, etc. would make it behave as you
   describe, but that's just one way to do externalized login, and a
   way that doesn't make guest access possible (to make things simpler
   and keeping the advantages of container-managed login using servlet
   FORM or JASPIC, you could just use 2 host pages: a world-accessible
   one and a restricted one, possible using redirections and so on to
   make it work as intended in every corner case, I haven't tested; I
   bet you'll find plenty of examples on the Web about doing guest and
   authenticated access on the same resource in Java servlet/JSP)

   In every of the 3 cases you cite, I don't see a problem in reloading
   the app when switching from unauthenticated to authenticated access
   (if you want to keep some information around –such as your shopping
   cart–, send it as part of the login process –or store it on the server
   and pass some ID around–). YMMV of course (and I didn't say
   externalize login is a silver bullet, you might really want/need
   some UX that would make it impossible to use).

   One possibility too is to only allow a guest-to-authenticated-user
   workflow without reloading the app (integrated login). As soon as
   the user wants to sign out, then reload the app and start back in
   guest mode. That way, you don't have to fear about restricted data
   leaking between user sessions, but you'd still have to make sure to
   clear some client-side caches (depending on your use case; for the
   forum case you gave, for instance, clear the list of posts so you'll
   reload them from the server and see the restricted posts).

-- 
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 Spring integration - what is the best method in late 2010?

2010-08-31 Thread George Georgovassilis
Hi Sam,

The SL [1] is a community maintained integration of Spring and GWT
mainly focused at exporting Spring managed beans as RPC services. It
was launched four years ago and has reached through many releases a
high degree of maturity. The documentation is extensive, it's easy to
use (though I'm biased) but it's been criticized for not using maven.

[1] http://gwt-widget.sourceforge.net/

On Aug 31, 5:31 pm, Sam sambrod...@gmail.com wrote:
 Note: this thread is about using Spring for your service impls in a
 GWT app (it's not about integrating Spring MVC or using ROO. It's also
 not about Guice)

 There are a few posts on this but it's hard to tell what the best
 method is today.  The two contenders seem to me to be:

 1)http://code.google.com/p/gwt-spring-starter-app/(my project based
 on P.G. Taboada's 
 approach:http://pgt.de/2009/07/17/non-invasive-gwt-and-spring-integration-relo...)

 which is as simple as can be, however, the one annoyance is that you
 need yet another class for each RPC Service (A wrapper that extends a
 spring context injecting RemoteServiceServlet)

 2)http://code.google.com/p/gwtrpc-spring/

 Just glanced at this.  Looks a lot more complicated and the project
 has a lot of unresolved issues.

 Am I missing any approaches?  Surely you other GWT devs are using
 Spring on the back end if you're writing serious applications.  Don't
 be shy, please speak up.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Clearing handlers added to elements created using wrap method

2010-08-31 Thread George Georgovassilis
RootPanel.detachOnWindowClose(yourWidget)

On Aug 31, 9:06 pm, myapplicationquestions parag.bhag...@cgi.com
wrote:
 Hi All,

 I have an existing html and i am adding a simple GWT script to that
 page which will show an alert when an existing link is clicked. I do
 this by the following code

 public class ABCMobile implements EntryPoint,ClickHandler
 {

    public void onModuleLoad()
    {

       Anchor lo = Anchor.wrap(DOM.getElementById(AMSBrowse));
       lo.addClickHandler(this);

    }

    public void onClick(ClickEvent event)
    {
       // TODO Auto-generated method stub
       Window.alert(yeah yeah yeah2);

    }

 }

 Now the question is..

 1) How do i make sure the handler is removed when the page unloads? I
 could not find anyway to do that.

 Let me know if anyone has any suggestions.

 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.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Clearing handlers added to elements created using wrap method

2010-08-31 Thread George Georgovassilis
Good point... I've been spending too much time writing my own widgets 
lately :-)

Anchor.wrap() takes care of everything.

Gal Dolber wrote:

Are you sure that is required?
That should be automatic


2010/8/31 George Georgovassilis g.georgovassi...@gmail.com 
mailto:g.georgovassi...@gmail.com


RootPanel.detachOnWindowClose(yourWidget)

On Aug 31, 9:06 pm, myapplicationquestions parag.bhag...@cgi.com
mailto:parag.bhag...@cgi.com
wrote:
 Hi All,

 I have an existing html and i am adding a simple GWT script to that
 page which will show an alert when an existing link is clicked. I do
 this by the following code

 public class ABCMobile implements EntryPoint,ClickHandler
 {

public void onModuleLoad()
{

   Anchor lo = Anchor.wrap(DOM.getElementById(AMSBrowse));
   lo.addClickHandler(this);

}

public void onClick(ClickEvent event)
{
   // TODO Auto-generated method stub
   Window.alert(yeah yeah yeah2);

}

 }

 Now the question is..

 1) How do i make sure the handler is removed when the page
unloads? I
 could not find anyway to do that.

 Let me know if anyone has any suggestions.

 Thanks,
 Parag

--
You received this message because you are subscribed to the Google
Groups Google Web Toolkit group.
To post to this group, send email to
google-web-toolkit@googlegroups.com
mailto:google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com
mailto:google-web-toolkit%2bunsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.




--
Guit: Elegant, beautiful, modular and *production ready* gwt 
applications.


http://code.google.com/p/guit/



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



Howto: RPC with Http GET

2010-08-28 Thread George Georgovassilis
There've been some requests to perform RPC invocations with HTTP GET,
as the response is cacheable by the browser (and if you believe the
word on the net, it's faster [1] than POST).

I've written a wrapup on how to get it done [2], the essentials in a
nutshell:

Given a service you want to make GETable:

interface GeoService{
  String[] getListOfPlaces(String countryCode);
  double[] getGeoCoordinatesForPlace(String placeCode);
}

On the client side, you need to provide the service proxy with a
request builder that performs GET requests:


public void getGeoCoordinates(final String placeCode, final
AsyncCallback callback){

 ((ServiceDefTarget)geoService).setRpcRequestBuilder(new
RpcRequestBuilder(){
 @Override
 protected RequestBuilder doCreate(String serviceEntryPoint) {

   return new RequestBuilder(RequestBuilder.GET, /myapp/geoservice?
placecode=+placeCode);

   }
});
  geoService.read(placeCode, callback);
}


On the server side, you need to create a servlet that does _not_
extend RemoteServiceServlet but uses the GWT RPC utilities directly:

public void doPost(HttpServletRequest request, HttpServletResponse
response)throws Exception{
String placeCode = request.getParameter(placecode);
Method method = geoService.getClass().getMethod(read, new
Class[]{String.class});
double[] coordinates = geoService.read(placeCode);
String sPayload = RPC.encodeResponseForSuccess(method,
coordinates);
byte[] payload;
payload = sPayload.getBytes(utf-8);
response.setHeader(Content-Disposition, attachment);
response.setContentType(application/json;charset=utf-8);
response.setContentLength(payload.length);
ServletOutputStream stream = response.getOutputStream();
stream.write(payload);
}




[1] Yahoo Exceptional Performance Blog, Use GET for Ajax
http://developer.yahoo.com/performance/rules.html

[2] GWT RPC calls with Http GET method
http://georgovassilis.blogspot.com/2010/08/gwt-rpc-calls-with-http-get-method.html

-- 
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: Images only show sometimes

2010-08-13 Thread George Georgovassilis
Hello GKotta,

That should happen only with an IE browser - I found that it doesn't
load images when you add more than a couple DOM elements in one bunch.
Basically there are three workarounds:

1. Use a DeferredCommand to add one image at a time
2. Preconstruct an array of images and re-assign the src attribute
3. Construct images as an HTML string and assign it to an attached
element i.e. e.setInnerHTML(img src='someurl'/img
src='someotherurl'/).

On Aug 11, 10:33 pm, GKotta guruko...@gmail.com wrote:
 Hi,

 I am using the gwt plugin for eclipse for the gae environment and when
 I run my project on localhost, the images in my application appear
 sometimes, but not all the time. Refreshing the page normally solves
 this problem. Why is this? I'm fine with this while developing, but it
 will be really annoying for my users once I launch my application.

 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: deserialization error when DTO is nested

2010-08-09 Thread George Georgovassilis
I'd normally ask you to the DTO code, but you really should check that
your deployment worked alright. So please check that:

1. your projects is refreshed after the build
2. old deployment is wiped and overwritten with the new one
3. logging is enabled
4. no errors about serialization policy are displayed in the logs

Hope that helps,
G.

On Aug 9, 7:57 am, bhomass bhom...@gmail.com wrote:
 I have a composite pattern DTO, where an DTO instance may contain a
 child list of the same type.

 first this app runs fine when in hosted mode, but get deserialization
 error when in deployed mode using tomcat.

 I can leave the nested structure in the DTO class as long as I don't
 actually populate the child list. but as soon as I populate the child
 list the deserialization error shows up.

 again, works find in hosted mode, fails in deployed mode if child list
 is populated. I did a thorough search on the web, no one reported a
 similar problem. and I made absolutely sure I have a zero argument
 constructor.

 any ideas from any one?

-- 
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: Displaying google maps with IE7

2010-08-01 Thread George Georgovassilis
Turns out this is a known issue (with workarounds) [1] with maps in
conjunction with GWT's layouting.

[1]
http://code.google.com/p/gwt-google-apis/issues/detail?id=366colspec=ID%20Type%20API%20Status%20Priority%20Milestone%20Owner%20Summary

On Jul 26, 10:22 pm, George Georgovassilis
g.georgovassi...@gmail.com wrote:
 Hello Eric,

 The page is in standards mode. How do I debug this?

 On Jul 26, 8:48 pm, Eric Ayers zun...@google.com wrote:

  First, make sure your hosted html page is set to standards mode.  The
  first line should be something like:

  !doctype html

  On Mon, Jul 26, 2010 at 1:17 PM, George Georgovassilis

  g.georgovassi...@gmail.com wrote:
   I've recently run into the following rather bewildering issue where
   maps display fine in all browsers but IE6 and IE7.

   My GWT 2.0.4 client app is using GWT maps API 1.1 jar (against maps
   API 2). The maps API loads ok, but IE6 and IE7 won't display themap
   widget content - no errors thrown.

   Interestingly, when the user agent is pinned to ie8 in the module
   file then maps will display fine even on IE7.

   Has anyone run into this before?

   --
   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 
   athttp://groups.google.com/group/google-web-toolkit?hl=en.

  --
  Eric Z. Ayers
  Google Web Toolkit, Atlanta, GA USA

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



Displaying google maps with IE7

2010-07-26 Thread George Georgovassilis
I've recently run into the following rather bewildering issue where
maps display fine in all browsers but IE6 and IE7.

My GWT 2.0.4 client app is using GWT maps API 1.1 jar (against maps
API 2). The maps API loads ok, but IE6 and IE7 won't display the map
widget content - no errors thrown.

Interestingly, when the user agent is pinned to ie8 in the module
file then maps will display fine even on IE7.

Has anyone run into this before?

-- 
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: Displaying google maps with IE7

2010-07-26 Thread George Georgovassilis
Hello Eric,

The page is in standards mode. How do I debug this?

On Jul 26, 8:48 pm, Eric Ayers zun...@google.com wrote:
 First, make sure your hosted html page is set to standards mode.  The
 first line should be something like:

 !doctype html

 On Mon, Jul 26, 2010 at 1:17 PM, George Georgovassilis



 g.georgovassi...@gmail.com wrote:
  I've recently run into the following rather bewildering issue where
  maps display fine in all browsers but IE6 and IE7.

  My GWT 2.0.4 client app is using GWT maps API 1.1 jar (against maps
  API 2). The maps API loads ok, but IE6 and IE7 won't display the map
  widget content - no errors thrown.

  Interestingly, when the user agent is pinned to ie8 in the module
  file then maps will display fine even on IE7.

  Has anyone run into this before?

  --
  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 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.

 --
 Eric Z. Ayers
 Google Web Toolkit, Atlanta, GA USA

-- 
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: Did anybody try Cross site communication?

2010-07-22 Thread George Georgovassilis
There are some libraries which handly cross site RPC, but they all
have one or another drawback.

You can read on here [1]

[1] http://development.lombardi.com/?p=611

On Jul 21, 2:09 am, VM thinker...@gmail.com wrote:
 Hello GWT Users,

 I just wanted to check if anybody had success with Cross domain
 communication.

 I followed Google documentation:

 http://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html

 handl...@com.google.gwt.sample.stockwatcher.client.stockwatcher::handleJsonResponse(Lcom/
 google/gwt/core/client/JavaScriptObject;)(jsonObj);

 handleJsonResponse is not getting called.

 Any thoughts?

-- 
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: Mouse Over Image

2010-07-22 Thread George Georgovassilis
You might do it with some CSS provided that you are not targeting IE6.

1. Make a div with fixed dimensions
2. Put the label and the image into the div
3. The initial style for the label should be absolute positioning and
hidden. You can play with margins to place the label anywhere ove rthe
image
4. Use the :hover pseudoclass to display the label

The downside is that you need a copy of the label in every image.

But before you go too far: are you sure the image's alt= attribute
(gwt jargon: title) doesn't suffice?

On Jul 21, 10:16 pm, nacho vela.igna...@gmail.com wrote:
 Hi, i want to do the following, i want to display a label when the
 user passes the mouse over the image and i want to hide the label when
 the user takes out the mouse from the image. Just like a toolkit.

 What i did is the following, what am i missing?

 final Label lblRecyclerBin = new Label(Recycler Bin);
                 lblRecyclerBin.setVisible(false);

                 RootPanel.get().add(lblRecyclerBin);

                 final Image imgRecyclerBin = new 
 Image(images/icons/trashcan.png);
                 imgRecyclerBin.setHeight(40px);
                 imgRecyclerBin.setWidth(40px);
                 imgRecyclerBin.setStylePrimaryName(reflex);

                 imgRecyclerBin.addMouseOverHandler(new MouseOverHandler() {
                         public void onMouseOver(MouseOverEvent arg0) {
                                 lblRecyclerBin.setVisible(true);

                                 
 RootPanel.get().setWidgetPosition(lblRecyclerBin,
 imgRecyclerBin.getAbsoluteLeft(), imgRecyclerBin.getAbsoluteTop());
                         }
                 });

-- 
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 Login module in an iframe.

2010-07-18 Thread George Georgovassilis
Hello Sergey,

If the login url, the iframe url and the main application url are one
the same domain then these frames will be able to directly invoke
javascript on each other. If you are going to a different domain (i.e.
the login url is on https:// instead of http://) then this will not
work. Instead you will have to revert to a complex inter frame
messaging mechanism [1]. Please note that the latest chrome and safari
browsers don't allow the window.name transport mechanism to work
anymore, instead you'll have to use the HTML 5 postMessage mechanism.

[1] http://softwareas.com/cross-domain-communication-with-iframes

On Jul 18, 12:31 am, Sergey Ponomarev serg...@gmail.com wrote:
 Hi, i'm trying to implement login module as a GWT application which is
 placed in an iframe and calls external event handlers on login events.
 The problem is i can't set handler function if iframe's DOM from
 parent page.

 The host page looks like

 
 html
     head
         titleTest/title
     /head
     body
         script type=text/javascript
             function register_login_bindings() {
                 var wnd =
 document.getElementById(loginFrame).contentWindow;

                 wnd.su_vistar_bindings = new Array();
                 wnd.su_vistar_bindings[loginForm] = {
                     onLoginSucceeded: [
                         function(login, sessionId) {alert(Login
 succeed for  + login + :  + sessionId);}
                     ],

                     onLoginFailed: [
                         function(login) {alert(ggLogin failed for  +
 login);}
                     ]
                 };
             }
         /script
         iframe id=loginFrame
                 src=http://localhost:35282/LoginService/;
                 style=width: 100%; height: 100%; border: none;
                 onload=register_login_bindings()
         /iframe
     /body
 /html
 

 It works for a usual site, but doesn't work when iframe's content is a
 GWT application.
 The error is:
 ===
 !:@8?BC file:// B:070= 2 @0...@5h5=88 =0 CAB0=2:C A29AB20
 Window.su_vistar_bindings =0 http://localhost:35282.
 [Break on this error] wnd.su_vistar_bindings = new Array();
 ===

 I've read already that it's impossible to get to external DOM content
 from iframed GWT app (correct please if it's wrong), but I hope that
 changing iframe's document content is legal. Is it? Else how to create
 modules which could be embedded in any html page using GWT and react
 on it's events?

 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: Compiler Bug in 2.1.0.m2

2010-07-16 Thread George Georgovassilis
Hell Björn,

I know your pain. In this case you have really only one option:
loggin!
Grab yourself a nice div somewhere on your page and start mercelessly
logging what your application is doing to that div and try to narrow
down where the error happens.

Also try/catch block which Window.alert() the exception will help you
close up on the error fast.

On Jul 16, 9:29 am, Björn bjoernham...@web.de wrote:
 Hi again,

 bad news. I got the same result with 2.0.3.

 Our project is working with the gwt quite happy for the last 4 years.
 But this situation has allways been in the top 3 topics of our risk
 list.

 Any thoughts would be greatly appreciated.

 Björn

-- 
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 and Spring - with Spring Web MVC or without it?

2010-06-14 Thread George Georgovassilis
I'll go with Stefan here.

MVC implies that the server handles much of the view - with a GWT
application the server is reduced to a glorified DAO. All you really
need is integrate services from the backend into the frontend. What we
really missing is something like RMI for the browser - GWT's RPC is as
good as it gests for this purpose and and libraries like the GWT-SL
allow you to directly publish Spring managed POJOs as services over
RPC into the client.

On Jun 13, 1:59 pm, Stefan Bachert stefanbach...@yahoo.de wrote:
 Hi,

 Spring MVC does not fit to GWT at all.

 GWT considers the browser to be a thin/rich client, and the server to
 be the data source/model

 Spring MVC considers the browser to be an ultra thin client (something
 like an x-server), and considers the server to be a fat client,
 where presentation, business logic and persistence live.
 Spring MVC is an artefact of the pre-AJAX-era.

 Use GWT for real application (RIA) and use Spring MVC for hyperlinked
 documents.

 In a complex website you may switch between real applications and
 hyperlinked documents, so you will find both in one site.
 But it makes NO sense to drive GWT with Spring MVC.

 When you look at Spring Roo and its GWT support, it comes without
 Spring MVC (Spring Roo can generate Spring MVC controller but without
 GWT). It is either or

 Stefan Bacherthttp://gwtworld.de

 On Jun 8, 5:32 pm, ezamur eza...@gmail.com wrote:

  Hi all...

  I am new to GWT - had some contact with it earlier but not enough to
  say I am confident with it.

  My task is to investigate this technology and pair it with Spring
  framework. There are a lot of tutorials explaining how this can be
  done, but what is bothering me is I can't decide which approach to
  choose. For example, I've seen one using Spring's MVC (like this 
  one:http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-...),
  but also other where integration is done without it 
  (e.g.http://code.google.com/p/gwt-spring-starter-app/)

  I am afraid to miss something important by choosing one of these
  approaches and possibly lose some of Web MVC functionalities that
  might be needed later or end up in dead end street using it.

  I would be grateful if anyone explained me what are the pros and cons
  of these approaches from practical point of view - is there a need for
  DispatcherServlet and Controllers while having GWT and its RPC
  mechanism.

  Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Cross Site XML-HTTP?

2010-06-14 Thread George Georgovassilis
Hello Quu,

You obviously control Server B because you load the application from
there. Can you also control server A? In that case you could wrap the
XML with a couple techniques. The iframe technique for example would
wrap the XML into a big javascript string and publish it to your
application, i.e. via the window.name transport. You really will have
to use some kind of javascript here because that is the only way to
comply with the same origin policy: the SOP makes sure that a script
can only get information from a different domain if that domain offers
the data, i.e. by actively exporting it via javascript. Since XML is a
passive document format, it cannot do that.

On Jun 11, 10:02 pm, Quu otakuvi...@gmail.com wrote:
 I want to, inside of my GWT application, load an XML document from a
 different server then where the base page is from. My page is on
 server A, and the GWT compiled javascript is on a different server,
 location B. The XML I am trying to read is at the same location, B, so
 why can't the JS loaded from there access ti with out tripping the SOP
 error?.

 I used to be able to load XML from a remote site as long as the .html
 file hosting the GWT app had a link to an image from the same location
 as the XML. This worked in at least 1.7 of GWT, though I suspect it is
 more the fact that I have a newer web browser since then.

 I have looked 
 athttp://code.google.com/webtoolkit/doc/latest/tutorial/Xsite.html
 and I don't think I can specifically use any of the tricks there. They
 seam to be JSON specific, and require a smart backend to append the
 callback to the JSON returned 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: Fastest way to create lots of similar elements

2010-05-27 Thread George Georgovassilis
Hello Chris,

I think, especially with respect to IE, the fastest way is still to
construct a string and assign it to div's innerHTML... provided that
you can find an intelligent and fast way to create that string, as IE
(at least prior to 8) has a notoriously slow string concatenation.

On May 27, 9:33 pm, Chris Lercher cl_for_mail...@gmx.net wrote:
 Hi,

 I need to create lots (hundreds) of image tags, and attach them
 dynamically to several plain div class=xy/div elements:

 div class=xy
   img src=images/a.gif style=top: 1em;/
   img src=images/a.gif style=top: 2em;/
   img src=images/b.gif style=top: 3em;/
   ...
 /div
 ...

 The img tags can have only two different src urls. But each needs
 individual style attributes (for absolute positioning).

 Question:
 What would be the fastest (and preferably clean) way to do that?

    A) GwtQuery (aka GQuery)?
    B) UiBinder?
    C) Other?

 
 A) The GwtQuery approach:

 As a first pretty clueless attempt, I'm currently using GwtQuery code
 similar to this:

 @UiField
 HTML div1;

 void attachImages(...) {
   for (...) {
     $(div1.getElement()).append(
         img src='images/ + (flag ? a : b) + .gif' style='top:
 + i + em'/);
   }

 }

 @UiHandler(div1)
 void onDivClicked(final ClickEvent event) {
  ...

 }

 This works, but a) it's obviously ugly, and b) I don't know, if
 there's a faster/better way.

 
 B) The UiBinder approach:

 I chose the HTML class, to get a clean div, and still be able to use
 @UiHandler. But it doesn't seem to be possible to attach (UiBinder)
 Composites to it. What else should I choose? Unfortunately, HTMLPanel
 isn't a subclass of HasClickHandlers, so it doesn't work with
 @UiHandler.

 
 C) Other approaches:

 ?

 Thanks
 Chris

-- 
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 using Eclipse with plugin and Spring

2010-03-02 Thread George Georgovassilis
Hello all,

if the unit/assembly test is enough for you, there is an RC [1] of the
1.1 SL which supports GWT 2 and Gilead 3.

[1] http://sourceforge.net/projects/gwt-widget/files/

On Feb 16, 9:23 pm, maks makspaniza...@gmail.com wrote:
 Hi,

 Do you have a working on example on how to use the GWT + GWT-SL +
 Gilead + Spring?

 On Feb 16, 5:52 pm, Paul Grenyer paul.gren...@gmail.com wrote:

  Hi

  On Tue, Feb 16, 2010 at 9:49 AM, olivier nouguier

  olivier.nougu...@gmail.com wrote:
   You're are definitely rigth on those 2 points.
   not OPs issue:  in fact it's rather a Maven/GEP issue.
   file must be copied in WEB-INF/lib: just for the dev mode.
   Thanks you and I apologize for the confusion (but as an early maven user I
   tend to suppose that everybody uses maven ... )

  Nah, real programmers see Maven for what it really is. ;-)

  --
  Thanks
  Paul

  Paul Grenyer
  e: paul.gren...@gmail.com
  b: paulgrenyer.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.



Re: Rounded Corner In Gwt Button

2010-02-10 Thread George Georgovassilis
There is a way using a button with the sliding door techique [1]. The
example does it with a link simulating a button, but it also works
with buttons.
Please be advised that buttons pose an unforseen behavior when
pressed: they displace their content by a few pixels. Unfortunately
not all browsers report that state correctly (depends whether the
button is clicked with the mouse or the keyboard) and you might be
stuck occasionally with a few uggly artifacts.


[1] 
http://www.filamentgroup.com/lab/styling_the_button_element_with_sliding_doors/

On Feb 10, 11:19 am, pavi praveen.ojh...@gmail.com wrote:
 Hi all,

 I am try to make round corner using css But I am not able to do
 rounded corner.

 My css style is:
 .box {
         background-image: url(/images/nw.gif), url(/images/ne.gif), url(/
 images/sw.gif), url(/images/se.gif);
         background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;

 }

 please Help

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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't remove 0 index in ArrayList

2010-01-28 Thread George Georgovassilis
Hello Christian,

I looked at the code of ArrayList, but couldn't find anything
suspicious. Are you sure your object is at 0? Maybe a null squeezed in
at 0, and your object is somewhere later in the list? On which
browsers does this happen?

On Jan 28, 6:16 pm, Christian Goudreau goudreau.christ...@gmail.com
wrote:
 Does anyone had that same problem ? Everything works fine when it comes to
 other indexes, but when I do ArrayList.remove(0), the object is still in
 here ! But When I try : ArrayList.remove(object), it work again.

 Everything was working well prior to GWT 2.0.

-- 
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: Strange behavior of sessions when using Safari 4

2010-01-28 Thread George Georgovassilis
Hello Meletis,

There is a report [1] that tells pretty much the same story, but this
time FF loses the session and Safari works ok.

Couple of things to check:

- Do you have any particular extensions installed in Safari?
- Are the requests launched simultaneously or in sequence?
- Are the requests launched against the same target (same url? same
port? mind aliasing problems like a servername vs, its IP) - though
this should be prevented by the same origin policy
- Does your RPC service really set a session ID?
- Does your session expire too fast? (Date/Time problem on the
computer running Safari?)


[1] 
http://code.google.com/p/google-web-toolkit/issues/detail?id=4181q=safari%20session

On Jan 28, 3:34 pm, Meletis webmas...@kissometer.gr wrote:
 Thank you for your reply, Marcus.

 It is only tested on Apache Tomcat 6. Are there any other servlet
 containers to test with?

 On 28 Ιαν, 03:24, Marcus Vinícius Bastos de Andrade

 mynameisf...@gmail.com wrote:
  Which application server/servlet container have you tested your application
  ?
  Try test your application with Safari browser in another application server
  nor servlet container.
  There's any bug registered for this case ?

  On Wed, Jan 27, 2010 at 11:45 AM, Meletis webmas...@kissometer.gr wrote:
   Hello there!

   I have created an application, but for some reason I cannot maintain
   the session between RPC calls. After loading the the home page, there
   are two different RPC calls that are being called.

   Debugging the session id, I saw that the home page, 1st and 2nd RPC
   are loaded with 3 different session ids! Every time an RPC is called
   afterwards, a new session is created on the server.

   The strange thing is that this is only happening with Safari 4. It
   works fine on IE,FF, Opera and Chrome!

   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.comgoogle-web-toolkit%2bunsubscr...@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 2.0 ParseException with SerializationPolicyLoader

2010-01-27 Thread George Georgovassilis
Hello Papick,

I had some of that too. You're not doing deRPC by any chance? Mind
pasting some stacktraces?

On Jan 26, 10:22 am, P.G.Taboada pgtabo...@googlemail.com wrote:
 Hi,

 I am having trouble with GWT 2.0. I am trying to switch from 1.7 to
 2.0, everything compiles fine, but...

 When I deploy my app I (unfortunately) have my rpc servlets in a
 different path. Don't ask me why, I simply can't change this.

 So my RPC servlets are

 /somewhere/here

 and my GWT app is being loaded from

 /somewhere/completely/different/dont/ask/me/why/

 Well, since loading the gwt.rpc file was miserable failing, I simply
 created my own doGetSerializationPolicy method that loads the rpc
 files from classpath.

 Since GWT 2.0 this is failing with different errors: someones not
 being found, someones throwing parseexception.

 Is there any document explaining what has changed with 2.0?

 brgds,

 Papick

-- 
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-contrib] deRpc: RpcServlet.onBeforeRequestDeserialized ?

2010-01-24 Thread George Georgovassilis
Hello All,

I've a case where I need to fiddle with the classloader before RPC
deserializes the request payload. With the RemoteServiceServlet there
was an onBeforeRequestDeserialized method which could be used to
substitute the classloader used by RPC, but I couldn't find an
equivalent for RpcServlet or HybridServiceServlet. What's the way to
go?

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


Re: Injecting Spring beans into GWT services

2010-01-18 Thread George Georgovassilis
Hello Marko,

If you run into any problems, just ask the SL forum. The easiest way
to get you started is with the GWTRPCServiceExporter - its a
Controller which you can bind directly to an URL handler (like Springs
SimpleUrlHandlerMapping) and to which you give a reference to your
service bean. It then manages the conversion between RPC - your
service.

As tip: for the simplest configuration to work, your service should
implement a service interface extending RemoteService, but you can do
without that if you're willing to do some more configuration.

On Jan 17, 7:47 pm, marko marko.aspl...@gmail.com wrote:
 Thanks for the suggestion.
 The main uses in my project for Spring are DI and declarative
 transaction support.
 Does GWT-SL work with Spring 3.0 and GWT 2.0?
-- 
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: PNG Transparency in Internet Explorer

2010-01-18 Thread George Georgovassilis
To cut a long story short:

1. It is limited to IE6
2. If you use the 8-bit file format with a single bit transparency it
will work in IE6
3. As a workaround, you can use a div, put the image inside the div,
and use a filter (see IE filters)

On Jan 17, 5:02 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On Jan 16, 1:55 am, Jim Douglas jdoug...@basis.com wrote:

  That KB article seems to imply that the problem is limited to IE6, is
  that right?

  APPLIES TO: Microsoft Internet Explorer 6.0

  Would upgrading to IE8 eliminate the problem, or is this also an issue
  in IE7/IE8?

 Yes, it's limited to IE6, 
 see:http://code.google.com/p/google-web-toolkit/issues/detail?id=3588

 but as mistr said, most of the biggest companies out there still use
 IE6.
-- 
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 rpc gzip response failing in FF

2010-01-07 Thread George Georgovassilis
RPCs are gzipped only if the payload is large enough to be worth the
effort. So I'd say that only large RPC responses get gzipped, and your
application fails on large RPC responses. So there are two
possibilities:

1. You application cannot digest the response. Version missmatch? A
technical error on the client side (what's the stacktrace)?
2. The HTTP headers that indicate that the response is gzipped is lost
somewhere on the way. Does a servlet filter or web proxy eat them up?

On Jan 7, 4:04 pm, bconoly bcon...@gmail.com wrote:
 Hey All,
    I've been using gwt and it's rpc requests for a while.  All of a
 sudden some of my request started failing when everything on the
 server completed perfectly.  After a while I checked firebug and the
 responses I'm getting back are sometimes gzipped and sometimes not.
 The problem is that any time the response is gzipped my widget doing
 the request doesn't load.  I can only recreate this in FF, and can't
 seem to do so in IE.  Does anyone know why this would be?
 Thanks in advance
-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Slowdown of GWT while loading

2010-01-06 Thread George Georgovassilis
Hi Raul,

If you can't modify the server.xml then you have still two ways to
compress the html.

1. Use a filter. You can specify a filter in your web.xml and compress
all static content on the fly. Bad for server side performance, but it
will do the trick.
2. gzip the .cache.html files on the disk and put a filter in web.xml
that will just set the correct headers.

On Jan 6, 3:20 pm, Raul raahoo...@gmail.com wrote:
 Thank you Sripathi Krishnan, aditya and Fazeel Kazi

 Yeah you are right.. I had pretty Compilation so why all
 my .cache.html files were large in volume.
 after compiling with OBS, the size gets reduced much.
 Later I tried Tomcat Compressing option,, by modifying the Server.xml
 file and put the following options to Catellina tag:

 compression=on
 compressionMinSize=2048
 noCompressionUserAgents=gozilla, traviata
 compressableMimeType=text/html, text/xml, text/javascript,
 application/javascript

 The performance is much better now, But I am not sure whether I will
 get permission to modify the Tomcat Server.xml file, when I go to
 deply it in Web.

 I have not tried the code-splitting methodology yet as I am using
 GWT1.7
 But I shall work on it, as I would towards code finalizing.

 Thanks for your Kind Co operation
 Raul

 On Jan 4, 11:57 pm, aditya ch adityac1...@gmail.com wrote:

  First of all, ensure you have enabled 'obfuscated' flag while doing
  the GWT compilation which would hopefully reduce the size of the
  '.cache.html' files that gets generated.
  And if you are using latest version of GWT i.e. 2.0, try code
  splitting and load the code only when it's required.
  Please revert back if you still couldn't see much variations.

  On Jan 5, 5:27 am, Raul raahoo...@gmail.com wrote:

   Hello all,

   I am developing a Database application using GWT. From very initial
   stage I was having slow loading problem in my app and now, as the
   volume and number of files gradually increasing, it is becoming
   worsened in terms of loading. Now my application is taking more than a
   minute, sometimes even more than 2 minutes to load the application in
   client.

   I have modified my coding style by best possible way I can, but it is
   not helping me out any ways to reduce the loading time.

   I have 6 .cache.html file in my application_name folder [which are
   generated by GWT compiler] each having average 7.5 MB in size.

   Please help me out in this issue, otherwise choosing GWT for building
   my application will turns out to be a wrong decision.

   Thanks in advance.
   Raul
-- 
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-contrib] Inlining nocache.js

2009-12-18 Thread George Georgovassilis
Thanks Matt, that does the trick.
Actually I'm just post processing a template host html page with an ant 
task before deployment, that solves the decoupling concern.

On 17.12.2009 21:06, Matt Mastracci wrote:
 If it's the same error we ran into, it's that there are things that look like 
 HTML script and comment tags in the linker script that throw the parser off. 
 Note how we broke up the script start tags and comment start/end tags the 
 same way as the script end tags:

 XSLinker:

var compiledScriptTag = 'script src=\\' + base + strongName + 
 '.cache.js\\/scr + ipt';
$doc.write('script!--\n'
  + 'window.__gwtStatsEvent  window.__gwtStatsEvent({'
  + 'moduleName:__MODULE_NAME__, sessionId:$sessionId, 
 subSystem:startup,'
  + 'evtGroup: loadExternalRefs, millis:(new Date()).getTime(),'
  + 'type: end});'
  + 'window.__gwtStatsEvent  window.__gwtStatsEvent({'
  + 'moduleName:__MODULE_NAME__, sessionId:$sessionId, 
 subSystem:startup,'
  + 'evtGroup: moduleStartup, millis:(new Date()).getTime(),'
  + 'type: moduleRequested});'
  + 'document.write(' + compiledScriptTag + ');'
  + '\n--/script');

 Our linker:

var compiledScriptTag = 'scr'+'ipt src=\\' + base + strongName + 
 '\\/scr + ipt';
$doc.write('scr'+'ipt!-'+'-\n'
  + 'window.__gwtStatsEvent  window.__gwtStatsEvent({'
  + 'moduleName:__MODULE_NAME__, subSystem:startup,'
  + 'evtGroup: loadExternalRefs, millis:(new Date()).getTime(),'
  + 'type: end});'
  + 'window.__gwtStatsEvent  window.__gwtStatsEvent({'
  + 'moduleName:__MODULE_NAME__, subSystem:startup,'
  + 'evtGroup: moduleStartup, millis:(new Date()).getTime(),'
  + 'type: moduleRequested});'
  + 'document.write(' + compiledScriptTag + ');'
  + '\n-'+'-/scr'+'ipt');

 We've had inlining working on dotspots.com in GWT trunk for a while now, but 
 I'm considering going back to an external nocache.js so we can more easily 
 decouple our static content from the GWT code.

 Matt.

 On 2009-12-17, at 12:40 PM, George Georgovassilis wrote:


 Some time ago we discussed [1] inlining nocache.js into the host page
 to speed up initial page load, which I find quite worthwhile a read.
 While back in the 1.7 days I managed to inline nochache.js with a
 modest effort of post processing (escaping some javascript), 2.0
 defeats me. I can't find a way to inline the GWT 2.0 compiler's
 nocache.js into the host page without always running into some
 javascript syntax error, which prohibits the entire code from loading.

 Any hints?


 [1]
 http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/8127c586073b1711/2eeb884f6f5cdcbf?lnk=gstq=inline#2eeb884f6f5cdcbf

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


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


[gwt-contrib] Inlining nocache.js

2009-12-17 Thread George Georgovassilis
Some time ago we discussed [1] inlining nocache.js into the host page
to speed up initial page load, which I find quite worthwhile a read.
While back in the 1.7 days I managed to inline nochache.js with a
modest effort of post processing (escaping some javascript), 2.0
defeats me. I can't find a way to inline the GWT 2.0 compiler's
nocache.js into the host page without always running into some
javascript syntax error, which prohibits the entire code from loading.

Any hints?


[1]
http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/8127c586073b1711/2eeb884f6f5cdcbf?lnk=gstq=inline#2eeb884f6f5cdcbf

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


Hover, CSS and reusing widgets in IE

2009-09-29 Thread George Georgovassilis

I've been playing around with :hover lately and thought my findings
and workarounds might be of interest to the general public :-)

An important step towards a responsive UI is to have widgets already
prepared when making them visible, since widget creation takes up
quite some time. We're definitely not talking about seconds, but it is
the faint difference between fast and instant, which makes up for
quality and positive user experience. The least wasteful way of doing
that is to reuse widgets by adding and removing them instead of
reinstantiating them.

In combination with IE (all versions) and the CSS :hover class I
noticed a peculiar problem in the following scenario:

1. user moves mouse over a widget with :hover style
2. widget changes appearance
3. user clicks on widget
4. click handler causes widget to be removed from the document

later:

5. widget is added again to the document

After step 5, the widget will still appear with the :hover style even
though the mouse pointer is not hovering over it which might confuse
the user and for sure doesn't look right.

The workaround here consists in first setting the widget's visibility
to hidden and then removing the widget from its parent in a deferred
command which, for simplicity, can reinstate visibility so that no
special logic is required when reattaching the widget:

public void removeWidgetFromParent(final Widget widget) {
widget.setVisible(false);
DeferredCommand.addCommand(new Command() {
@Override
public void execute() {
widget.removeFromParent();
widget.setVisible(true);
}
});
}









--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Tables, scrolling, FocusPanel and Safari

2009-09-21 Thread George Georgovassilis

Recently I run into a problem with the following setup:

ScrollPanel
table
...
tr
td
FocusPanel
/td
/tr
...
/table
/ScrollPanel

When the table becomes longer than the page can accomodate, the
scrollpanel should normally display scrollbars and contain the entire
table. Which it does for all browsers except Safari.

In Safari (3  4, Windows) the ScrollPanel will display scrollbars,
but the page will also display them. It appears that the table is
rendered to its full height and occupies that space on the page, but
is just graphically clipped after the ScrollPanel.

After a brief search [1] I found the problem to be a bug in Safari,
where absolutely positioned elements inside tables inside ScrollPanels
will display this behaviour. With my app, this was caused by the
FocusImplSafari which adds a hidden 1x1 input with absolute
positioning to the table.

When reverting to the default FocusImpl the problem went away.

I think the relevant issue might be 1313.

[1] http://archivist.incutio.com/viewlist/css-discuss/107704
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT Maps API not loading

2009-09-20 Thread George Georgovassilis

Hello Martin,

Look lot cleaner than my solution - however I see a certain
performance penalty with that. The bootstrap process with your example
is:

1. load host page
2. load .nocache.js
3. load .cache.js
4. load google maps API

and it's all serialized.

With the direct injection of the code into the html the bootstrap
process is shortened, because GWT's module and the Maps API load in
parallel:

1. load host page
2. load .nocache.js and google maps API in parallel
3. load .cache.js

what do you think?


On Sep 19, 4:56 pm, Martin Delemotte martin.delemo...@gmail.com
wrote:
 Have a look at AjaxLoader:

 AjaxLoader.init(your maps key here);
         AjaxLoader.loadApi(maps, 2, new Runnable() {
             public void run() {
                 //action to perform after api is loaded
             }
         }, null);

 On Sat, Sep 19, 2009 at 9:42 AM, George Georgovassilis 

 g.georgovassi...@gmail.com wrote:

  Sorry to hijack this thread, but since we're talking about this...
  what's the best way of loading the maps API javascriptlibrary without
  blocking (aka unblocking parallel downloads)?

  So far I ended up with this:

  script type=text/javascript
  //![CDATA[
  function loadGoogleMapsAPI(){
  var script = document.createElement(script);
  script.type = text/javascript;
  script.src = http://maps.google.com/maps?
  file=apiv=2async=2sensor=falsekey=XYZ;
  document.body.appendChild(script);
  }
  window.setTimeout(loadGoogleMapsAPI(),1);
  //]]

  On Sep 19, 4:33 am, martind martin.delemo...@gmail.com wrote:
   I formatted my disk and reinstalled Fedora 11 yesterday. I do not
   encounter the problem anymore.
   I guess I will never know what was wrong ;)

   On Sep 13, 11:34 am, martind martin.delemo...@gmail.com wrote:

If I compile my application and run it in my system browser, it works
fine. Firebug raises no issues.

However, it fails in hosted mode...

On Sep 12, 5:57 pm, Eric Ayers zun...@google.com wrote:

 I've not heard of problems using the Maps API with GWT 1.7.  Can you
 use firebug or some other way to trace your network messages and see
 that indeed the script tag you've got in your module specification is
 working?

 On Sat, Sep 12, 2009 at 5:48 PM, martindmartin.delemo...@gmail.com
  wrote:

  1) yes, I have tried running it with a Maps key. I also tried
  generating a new one with no luck.

  2) no, I am on Fedora 11 with Firefox 3.5.3

  I have another error related to the Maps API which might help
  diagnose
  the problem:

  [ERROR] Unable to load module entry point class
  com.coopiz.client.Coopiz (see associated exception for details)
  com.google.gwt.core.client.JavaScriptException: (TypeError):
  $wnd.GClientGeocoder is not a constructor
   fileName: transient source for
  com.google.gwt.maps.client.impl.__GeocoderImplImpl
   lineNumber: 30
   stack: ()@transient source for
  com.google.gwt.maps.client.impl.__GeocoderImplImpl:30
  gwtOnLoad([object Window],coopiz,1.6)@:0
  gwtOnLoad(undefined,coopiz,http://localhost:8080/coopiz/
  )@http://
  localhost:8080/coopiz/hosted.html?coopiz:20
  qc()@http://localhost:8080/coopiz/coopiz.nocache.js:2
  ()@http://localhost:8080/coopiz/coopiz.nocache.js:8
  @http://localhost:8080/coopiz/hosted.html?coopiz:39

         at
  com.google.gwt.maps.client.impl.__GeocoderImplImpl.construct
  (Native Method)
         at
  com.google.gwt.maps.client.geocode.Geocoder.init(Geocoder.java:
  41)
         at com.coopiz.client.model.PersistenceManager.init
  (PersistenceManager.java:26)
         at
  com.coopiz.client.controllers.ApplicationController.init
  (ApplicationController.java:14)
         ...

  If I comment the portion of code which generates the error above, I
  get the error reported in the first message of this thread.

  Could it have something to do with an upgrade from GWT 1.6 to 1.7 ?
  I
  just checked the upgrade steps but maybe I missed something ?

  On Sep 8, 11:27 am, Eric Ayers zun...@google.com wrote:
  1) Have you tried running it with a Maps key installed as the
  error
  message suggests?

  2) Are you on Windows?  If so, have your IE cache/proxy/security
  settings changed recently?  That sometimes gets in the way of the
  Google APIs requests.

  On Mon, Sep 7, 2009 at 6:50 PM, martind
  martin.delemo...@gmail.com wrote:

   Hi all,

   I'm using:
   - GWT 1.7.0
   - gwt-maps 1.0.4
   - GAE 1.2.5
   - Eclipse 3.5 with the Google plugin
   - Sun JDK 1.0.6_16
   - linux (Fedora 11)

   A few weeks ago, I began a project using gwt-maps which worked
  fine.
   But somehow it got broken recently. I get the following error in
   hosted mode:

   [ERROR] Unable to load module entry point class test.client.Test
  (see
   associated exception for details

Re: GWT Maps API not loading

2009-09-20 Thread George Georgovassilis
Hi Martin,

my ping alone is 170ms, so I won't explore this argument further. Also I
think the comparison between loading a map and the map API is not
correct - I am comparing the time needed to show my application with and
without the maps API (always taking the naive, blocking approach) and at
least for recurring visitors, the difference in user experience is notable.

Are you sure 3 and 4 are loaded simultaneously with the AjaxLoader? As
far as my understanding of the bootstrap process goes, 4 is launched by
the application itself, which cannot be sooner than 3 is loaded.

Martin Delemotte wrote:
 I forgot to mention, the loading order is:

 1. load host page
 2. load .nocache.js
 4. load google maps API
 3. load .cache.js

 with 3 and 4 in parallel



 On Sun, Sep 20, 2009 at 1:21 PM, Martin Delemotte
 martin.delemo...@gmail.com mailto:martin.delemo...@gmail.com wrote:

 Yes, you are right indeed.

 This is a tradeoff between clean code and performance penalty.
 From where I test it is 184ms which is quite negligible compared
 to the time it takes to load maps...




 On Sun, Sep 20, 2009 at 3:06 AM, George Georgovassilis
 g.georgovassi...@gmail.com mailto:g.georgovassi...@gmail.com
 wrote:


 Hello Martin,

 Look lot cleaner than my solution - however I see a certain
 performance penalty with that. The bootstrap process with your
 example
 is:

 1. load host page
 2. load .nocache.js
 3. load .cache.js
 4. load google maps API

 and it's all serialized.

 With the direct injection of the code into the html the bootstrap
 process is shortened, because GWT's module and the Maps API
 load in
 parallel:

 1. load host page
 2. load .nocache.js and google maps API in parallel
 3. load .cache.js

 what do you think?


 On Sep 19, 4:56 pm, Martin Delemotte
 martin.delemo...@gmail.com mailto:martin.delemo...@gmail.com
 wrote:
  Have a look at AjaxLoader:
 
  AjaxLoader.init(your maps key here);
  AjaxLoader.loadApi(maps, 2, new Runnable() {
  public void run() {
  //action to perform after api is loaded
  }
  }, null);
 
  On Sat, Sep 19, 2009 at 9:42 AM, George Georgovassilis 
 
  g.georgovassi...@gmail.com
 mailto:g.georgovassi...@gmail.com wrote:
 
   Sorry to hijack this thread, but since we're talking about
 this...
   what's the best way of loading the maps API
 javascriptlibrary without
   blocking (aka unblocking parallel downloads)?
 
   So far I ended up with this:
 
   script type=text/javascript
   //![CDATA[
   function loadGoogleMapsAPI(){
   var script = document.createElement(script);
   script.type = text/javascript;
   script.src = http://maps.google.com/maps?
   file=apiv=2async=2sensor=falsekey=XYZ;
   document.body.appendChild(script);
   }
   window.setTimeout(loadGoogleMapsAPI(),1);
   //]]
 
   On Sep 19, 4:33 am, martind martin.delemo...@gmail.com
 mailto:martin.delemo...@gmail.com wrote:
I formatted my disk and reinstalled Fedora 11 yesterday.
 I do not
encounter the problem anymore.
I guess I will never know what was wrong ;)
 
On Sep 13, 11:34 am, martind martin.delemo...@gmail.com
 mailto:martin.delemo...@gmail.com wrote:
 
 If I compile my application and run it in my system
 browser, it works
 fine. Firebug raises no issues.
 
 However, it fails in hosted mode...
 
 On Sep 12, 5:57 pm, Eric Ayers zun...@google.com
 mailto:zun...@google.com wrote:
 
  I've not heard of problems using the Maps API with
 GWT 1.7.  Can you
  use firebug or some other way to trace your network
 messages and see
  that indeed the script tag you've got in your module
 specification is
  working?
 
  On Sat, Sep 12, 2009 at 5:48 PM,
 martindmartin.delemo...@gmail.com
 mailto:martin.delemo...@gmail.com
   wrote:
 
   1) yes, I have tried running it with a Maps key. I
 also tried
   generating a new one with no luck.
 
   2) no, I am on Fedora 11 with Firefox 3.5.3
 
   I have another error related to the Maps API which
 might help
   diagnose
   the problem:
 
   [ERROR] Unable to load module entry point class
   com.coopiz.client.Coopiz (see

Re: Preventing Browser Events?

2009-09-20 Thread George Georgovassilis

Hey David,

Supressing context menues should not be too difficult, every wannabe
webmaster does it in a futile attempt to prevent downloading his
images, just search the web for it.

Supressing selections would be a combination of javascript and some FF-
specific CSS:

public static native void disableSelectionOn(Element element)/*-{
element.onselectstart = function(){return false;}
}-*/;

public static native void _clearAllSelections()/*-{
var sel ;
if (document.selection  document.selection.empty){
document.selection.empty() ;
} else if ($wnd.getSelection) {
sel=$wnd.getSelection();
if(sel  sel.removeAllRanges)
sel.removeAllRanges() ;
}
}-*/;

.noFocus {
-moz-user-focus: ignore;
-moz-user-input: disabled;
-moz-user-select: none;
}



On Sep 8, 2:55 am, David E. dve1...@gmail.com wrote:
 I created a word processing type editor with GWT and I need toprevent
 browser events, mostly the browser selection events and right click
 context menu. The program has FocusPanels within FocusPanels within
 FlexTables within VerticalPanels within HorizontalPanels within
 ScrollPanels within Horizontal and VerticalSplitPanels. There can be
 multiple different variations of nesting of widgets.

 I need a game plan on how to suppress the browser events that result
 in selections and context menus. I have tried adding onMouseDown,
 onMouseMove, onMouseUp,  handlers and thenevent.preventDefault() for
 FocusPanels. I also added clickHandlers andevent.preventDefault() to
 the FlexTables and have had some success with FireFox but still
 doesn't suppress the same way on IE. I tried extending Horizonal and
 VerticalPanels and overriding onBrowserEvent(Eventevent) method,
 addingevent.preventDefault(), but that hasn't had much success.

 I would appreciate a plan of action on how to tackle this issue, I'll
 try it and report back with results, until we get it. Thanks in
 advance. We've been using this editor for over a year now with
 success, this is to take it to the next level.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Recommendations for a server-side Java framework to use with GWT?

2009-09-19 Thread George Georgovassilis

Hello Oliver,

I'd say Spring + some ORM (Ibatis, JPA, Hibernate) are a good deal
with GWT. With GWT the server is reduced to a data provider and
storage engine. The tasks a server carries out follow always the same
pattern:

1. map request to DTOs by interfacing with the client
2. perform validations and access checks
3. perform business logic
4. perform storage
5. return response to the client

With a combination of server side frameworks like Spring, Spring
security and Hibernate (to mention the established ones) you get steps
1,2,4 and 5 done in no-time (especially if you use AOP), which leaves
you to concentrate on the pure business logic. A number of projects
have produced libraries, adapters, processes and best practices which
combine GWT + your_favorite_framework.

So to answer your question: if you're clever you still will use
frameworks, just without the web part.



If you need workflows, you can use OSWorkflow or Spring Web Flow.

On Sep 18, 7:40 am, Oliver Zheng goo...@oliverzheng.com wrote:
 Hi,

 I've decided to adopt GWT for an upcoming AJAX-heavy project. The
 requirement on the server-side is that it has to be in Java. What is
 the lightest, easiest to learn, and simplest framework out there to
 use with GWT? All the frameworks I see emphasize how their templates
 are useful, which are pointless with GWT.

 Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT Maps API not loading

2009-09-19 Thread George Georgovassilis

Sorry to hijack this thread, but since we're talking about this...
what's the best way of loading the maps API javascriptlibrary without
blocking (aka unblocking parallel downloads)?

So far I ended up with this:

script type=text/javascript
//![CDATA[
function loadGoogleMapsAPI(){
var script = document.createElement(script);
script.type = text/javascript;
script.src = http://maps.google.com/maps?
file=apiv=2async=2sensor=falsekey=XYZ;
document.body.appendChild(script);
}
window.setTimeout(loadGoogleMapsAPI(),1);
//]]

On Sep 19, 4:33 am, martind martin.delemo...@gmail.com wrote:
 I formatted my disk and reinstalled Fedora 11 yesterday. I do not
 encounter the problem anymore.
 I guess I will never know what was wrong ;)

 On Sep 13, 11:34 am, martind martin.delemo...@gmail.com wrote:

  If I compile my application and run it in my system browser, it works
  fine. Firebug raises no issues.

  However, it fails in hosted mode...

  On Sep 12, 5:57 pm, Eric Ayers zun...@google.com wrote:

   I've not heard of problems using the Maps API with GWT 1.7.  Can you
   use firebug or some other way to trace your network messages and see
   that indeed the script tag you've got in your module specification is
   working?

   On Sat, Sep 12, 2009 at 5:48 PM, martindmartin.delemo...@gmail.com 
   wrote:

1) yes, I have tried running it with a Maps key. I also tried
generating a new one with no luck.

2) no, I am on Fedora 11 with Firefox 3.5.3

I have another error related to the Maps API which might help diagnose
the problem:

[ERROR] Unable to load module entry point class
com.coopiz.client.Coopiz (see associated exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError):
$wnd.GClientGeocoder is not a constructor
 fileName: transient source for
com.google.gwt.maps.client.impl.__GeocoderImplImpl
 lineNumber: 30
 stack: ()@transient source for
com.google.gwt.maps.client.impl.__GeocoderImplImpl:30
gwtOnLoad([object Window],coopiz,1.6)@:0
gwtOnLoad(undefined,coopiz,http://localhost:8080/coopiz/;)@http://
localhost:8080/coopiz/hosted.html?coopiz:20
qc()@http://localhost:8080/coopiz/coopiz.nocache.js:2
()@http://localhost:8080/coopiz/coopiz.nocache.js:8
@http://localhost:8080/coopiz/hosted.html?coopiz:39

       at com.google.gwt.maps.client.impl.__GeocoderImplImpl.construct
(Native Method)
       at 
com.google.gwt.maps.client.geocode.Geocoder.init(Geocoder.java:
41)
       at com.coopiz.client.model.PersistenceManager.init
(PersistenceManager.java:26)
       at com.coopiz.client.controllers.ApplicationController.init
(ApplicationController.java:14)
       ...

If I comment the portion of code which generates the error above, I
get the error reported in the first message of this thread.

Could it have something to do with an upgrade from GWT 1.6 to 1.7 ? I
just checked the upgrade steps but maybe I missed something ?

On Sep 8, 11:27 am, Eric Ayers zun...@google.com wrote:
1) Have you tried running it with a Maps key installed as the error
message suggests?

2) Are you on Windows?  If so, have your IE cache/proxy/security
settings changed recently?  That sometimes gets in the way of the
Google APIs requests.

On Mon, Sep 7, 2009 at 6:50 PM, martindmartin.delemo...@gmail.com 
wrote:

 Hi all,

 I'm using:
 - GWT 1.7.0
 - gwt-maps 1.0.4
 - GAE 1.2.5
 - Eclipse 3.5 with the Google plugin
 - Sun JDK 1.0.6_16
 - linux (Fedora 11)

 A few weeks ago, I began a project using gwt-maps which worked fine.
 But somehow it got broken recently. I get the following error in
 hosted mode:

 [ERROR] Unable to load module entry point class test.client.Test (see
 associated exception for details)
 java.lang.RuntimeException: The Maps API has not been loaded.
 Is a script tag missing from your host HTML or module file?  Is the
 Maps key missing or invalid?
        at com.google.gwt.maps.client.Maps.assertLoaded(Maps.java:32)
        at com.google.gwt.maps.client.geom.LatLng$.newInstance(Native 
 Method)
        at test.client.Test.onModuleLoad(Test.java:46)

 My Test.gwt.xml file is the following:

 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 
 1.7.0//
 EN http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-
 source/core/src/gwt-module.dtd
 module rename-to='test'
  !-- Inherit the core Web Toolkit stuff.                        --
  inherits name='com.google.gwt.user.User'/

  inherits name=com.google.gwt.maps.GoogleMaps /
  script src=http://maps.google.com/maps?
 gwt=1amp;file=apiamp;v=2amp;sensor=false /

  !-- Inherit the default GWT style sheet.  You can change       --
  !-- the theme of your GWT application by uncommenting          --
  !-- any 

[gwt-contrib] Issue 3849: RPC Serialization policy

2009-09-11 Thread George Georgovassilis

I've been recently struggling with getting Gilead to work properly
with dynamic proxy mode. When DTOs implement Serializable instead of
IsSerializable, RPC forces the use of a serialization policy.
Apparently not all domain classes end up in the serialization policy
(as a matter of fact, manually copying them there does not do the
trick either) and the only workaround I found so far was implementing
IsSerializable, which however creates a dependency of the domain
object model on GWT.

I asked around about this and there has been some fingerpointing [1],
[2] towards GWT. What's the deal?

[1] http://code.google.com/p/google-web-toolkit/issues/detail?id=3849can=5
[2] 
http://groups.google.com/group/Google-Web-Toolkit-Contributors/msg/214aa3c46122d0d9
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



Re: Firefox and Chrome Autocomplete Login Forms

2009-08-26 Thread George Georgovassilis

Hi Spike,

I was pondering the exact same thing the other day. From all the
experiments I made, only FF was able to somewhat reliably remember
passwords. My understanding is that you need a structure with a form,
a login textfield, a password textfield and a submit button:

form action=...
input type=text
input type=password
input type=submit
/form

There _has_ to be a form that submits to the server, otherwise
browsers won't recognise this as a login form. To make things worse,
the login form has to be there in HTML in the page loaded from the
beginning. My attempts to create it in runtime via DOM manipulation
made it invisible to the password completion mechanism.

I'd advise you to use a completely decoupled login form and load your
application only after the login page.

On Aug 26, 9:23 am, spike2...@googlemail.com
spike2...@googlemail.com wrote:
 Hi
 I'm building an App, which dynamicall builds a Widget where you can
 log in. I'm using 2 TextBoxes, a login-username and a password-box in
 a FormPanel in a PopupPanel.
 On the onSubmit-Event I make an AJAX-Request to log the user in.
 I didn't succeed in triggering the Autofill-Ability of Chrome or
 Firefox. Does anyone know what preconditions have to be set to trigger
 this.
 I gave the textboxes a name and an id, but it still doesn't work...
 Does the Autofill-Ability only work on HTML-Pages?

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



Re: Firefox and Chrome Autocomplete Login Forms

2009-08-26 Thread George Georgovassilis

Ok, how about this:

A user works, anonymously ( = not logged in ) with your application.
At some point he decides (or the application decides) that he wants to
log in. You navigate him to the (non GWT) login page, he does the
login and you reload the application.

You can tell your application that the user is logged in either by
putting that information into a hidden div in the module page which
your app can query then. Or your app can simply test for the existence
of a cookie (i.e. jsessionid).

On Aug 26, 12:23 pm, spike2...@googlemail.com
spike2...@googlemail.com wrote:
 Sadly not an option
 Login is optionally in my app, you can, but you don't have to.
 If I use an IFrame, I can't access the Information generated in there.
 I could have used the User-Capability of Google App, but I did't
 exactly for that reason.
 I hate these Worarounds.

 On 26 Aug., 11:48, George Georgovassilis g.georgovassi...@gmail.com
 wrote:

  Hi Spike,

  I was pondering the exact same thing the other day. From all the
  experiments I made, only FF was able to somewhat reliably remember
  passwords. My understanding is that you need a structure with a form,
  a login textfield, a password textfield and a submit button:

  form action=...
  input type=text
  input type=password
  input type=submit
  /form

  There _has_ to be a form that submits to the server, otherwise
  browsers won't recognise this as a login form. To make things worse,
  the login form has to be there in HTML in the page loaded from the
  beginning. My attempts to create it in runtime via DOM manipulation
  made it invisible to the password completion mechanism.

  I'd advise you to use a completely decoupled login form and load your
  application only after the login page.

  On Aug 26, 9:23 am, spike2...@googlemail.com

  spike2...@googlemail.com wrote:
   Hi
   I'm building an App, which dynamicall builds a Widget where you can
   log in. I'm using 2 TextBoxes, a login-username and a password-box in
   a FormPanel in a PopupPanel.
   On the onSubmit-Event I make an AJAX-Request to log the user in.
   I didn't succeed in triggering the Autofill-Ability of Chrome or
   Firefox. Does anyone know what preconditions have to be set to trigger
   this.
   I gave the textboxes a name and an id, but it still doesn't work...
   Does the Autofill-Ability only work on HTML-Pages?

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



Re: XML Schema or DTD for GWT configuration files

2009-08-22 Thread George Georgovassilis

Sure, it's gwt-module.dtd in the root directory when you unzip the
installation archive.

On Aug 21, 10:54 pm, Eric erjab...@gmail.com wrote:
 Is there an XML Schema or a DTD for the module.gwt.xml files?
 If there is, I'd like to install it in my IDE so it can support me
 while I write GWT configurations.  I saw none in gwt-user.jar.

 Respectfully,
 Eric Jablow
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: server side hot redeploy

2009-08-12 Thread George Georgovassilis

Hello Edoardo

Not everything, only server-side code. This means servlets, EJBs,
Spring Beans and DTOs for RPC. When you are running in debugging mode
then you can replace server code without a restart. Depending on the
capabilities of your JVM this can be as little as changing method code
up to replacing entire method signatures and classes.

On Aug 11, 6:36 pm, Eddy ridl...@gmail.com wrote:
 Using GWT plugin + GWT 1.7
 why there is not hot deployment on server side? every time you change
 a class you have to restart everything??

 any help appreciated
 Edoardo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: server side hot redeploy

2009-08-12 Thread George Georgovassilis

When you're running the server (i.e. tomcat) from within Eclipse, make 
sure to start it in debug mode. If you are running it in a distinct 
process (outside of eclipse), make sure to enable the debug port on it, 
switch to the debug view in eclipse and start a debugging session on a 
Remote Java Application. But otherwise, this is an Eclipse/Java/Tomcat 
thing and not GWT related.
Edoardo Ceccarelli wrote:
 Thanks George,

 this is exactly what I was expecting, but I have tried with both Sun
 jdk 1.5 and 1.6 and I can't even see a String  modification if I don't
 make a restart.
 I tried the simple provided RPC sample, newest gwt plugin and gwt 1.7
 all running on eclipse 3.5



 On Aug 12, 1:54 pm, George Georgovassilis g.georgovassi...@gmail.com
 wrote:
   
 Hello Edoardo

 Not everything, only server-side code. This means servlets, EJBs,
 Spring Beans and DTOs for RPC. When you are running in debugging mode
 then you can replace server code without a restart. Depending on the
 capabilities of your JVM this can be as little as changing method code
 up to replacing entire method signatures and classes.

 On Aug 11, 6:36 pm, Eddy ridl...@gmail.com wrote:

 
 Using GWT plugin + GWT 1.7
 why there is not hot deployment on server side? every time you change
 a class you have to restart everything??
   
 any help appreciated
 Edoardo
   
 
   


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: server side hot redeploy

2009-08-12 Thread George Georgovassilis

Sorry, I missed that you were using the GWT Plugin. I've not used it so 
I can't help you with that one :(

Edoardo Ceccarelli wrote:
 Gwt plugin runs its applications inside a jetty container: in fact one
 of the great usefulness of using the Google GWT eclipse plugin is that
 you don't need to have another server runtime installed and launched
 in eclipse.
 With latest versions of the plugin, you can just create a sample
 application and it is already RPC enabled, communicates with server
 side via a servlet.
 Now, my problem is that this RPC app, doesn't permit any kind of hot
 code replacement on the server side.
 Of course I could bypass the jetty server and use another one in debug
 mode etc etc. but wouldn't be nice to just use one?


 On Aug 12, 2:12 pm, George Georgovassilis g.georgovassi...@gmail.com
 wrote:
   
 When you're running the server (i.e. tomcat) from within Eclipse, make
 sure to start it in debug mode. If you are running it in a distinct
 process (outside of eclipse), make sure to enable the debug port on it,
 switch to the debug view in eclipse and start a debugging session on a
 Remote Java Application. But otherwise, this is an Eclipse/Java/Tomcat
 thing and not GWT related.

 Edoardo Ceccarelli wrote:
 
 Thanks George,
   
 this is exactly what I was expecting, but I have tried with both Sun
 jdk 1.5 and 1.6 and I can't even see a String  modification if I don't
 make a restart.
 I tried the simple provided RPC sample, newest gwt plugin and gwt 1.7
 all running on eclipse 3.5
   
 On Aug 12, 1:54 pm, George Georgovassilis g.georgovassi...@gmail.com
 wrote:
   
 Hello Edoardo
 
 Not everything, only server-side code. This means servlets, EJBs,
 Spring Beans and DTOs for RPC. When you are running in debugging mode
 then you can replace server code without a restart. Depending on the
 capabilities of your JVM this can be as little as changing method code
 up to replacing entire method signatures and classes.
 
 On Aug 11, 6:36 pm, Eddy ridl...@gmail.com wrote:
 
 Using GWT plugin + GWT 1.7
 why there is not hot deployment on server side? every time you change
 a class you have to restart everything??
   
 any help appreciated
 Edoardo
   
 
   


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: XML Parsing and NamedNodeMap

2009-08-11 Thread George Georgovassilis

You inherited the right module in your .gwt.xml module?

On Aug 11, 10:15 am, CI-CUBE e...@ci-cube.info wrote:
 Want to process an XML document, everything looks good but I get an
 exception when creating a NamedNodeMap, which obviously is just an
 Interface. Using the Eclipse Debugger I saw that
 com.google.gwt.xml.client.impl.NamedNodeMapImpl cannot be found.

 Any hints please? TIA

    Ekki

 GWT 1.7, App Engine 1.2.2, Eclipse 3.5, JRE 1.6.0_13
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Spring and GWT integration

2009-08-11 Thread George Georgovassilis

Hi P.G.

I've seen a lot of ways to achieve that integration, and none looks
complicated. The fact is that spring-gwt integration is easy (thanks
to R. Jellinghaus' refactoring of the RemoteServiceServlet), which
explains the plethora of libraries. Hibernate-gwt integration on the
other hand is hard, that's why there are only 3 (afaik) out there of
which only 1 (imo) is to be taken seriously. I guess it all comes down
to :

- what kind of flavour you prefer
- if you like annotations or XML
- prefer convention over configuration
- whether you can live with a certain 3rd party dependency or not
- how much documentation you need
- how big and active the supporting community is

Especially the later point is a threshold for commercial adoption when
arguing in favour of a library in technical meetings, so maybe that's
the answer you are looking for ;-)

On Aug 11, 11:04 am, P.G.Taboada pgtabo...@googlemail.com wrote:
 Hi,

 I have seen a lot of (quite complicated) Spring and GWT integration
 approaches, and I wonder why noone is using the autowiring bean bean
 factory to simple auto-inject the required beans into the GWT RPC
 services.

 http://pgt.de/2009/07/17/non-invasive-gwt-and-spring-integration-relo...

 I have been using this approach for a while. It is easy to setup and
 works perfectly.

 Would appreciate any comments.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT and CMS - Integration problem with SOA

2009-08-10 Thread George Georgovassilis

Hello Dejan,

You could have Apache act as the front server and forward all requests
to a specific URL to a tomcat server, have a look at [1]. This way
they both share the same server and port for an external visitor.

[1] http://www.serverwatch.com/article.php/10819_2203891_1

On Aug 10, 12:59 pm, dstefanox dstefa...@gmail.com wrote:
 I am working on a project which requires integration of the CMS
 (Drupal, almost certainly) and the GWT. Since GWT files in my case
 should be served by Tomcat and CMS pages by Apache server, Same Origin
 Policy problem occurs. Configuration is the following (for feasibility
 experiment):
 - Page into which GWT app is embeded is served by Apache web 
 server:http://localhost/SOP/PHPSOP/TestSOP.html
 - This page includes Java Script and CSS which are served by Tomcat,
 and which are actual GWT 
 application:http://localhost:8080/testsop/testsop.nocache.js
 Inclusion example:
  script type=text/javascript language=javascript src=http://
 localhost:8080/testsop/testsop.nocache.js/script
 Note that here we use port 8080.
 When page loads, following error occurs:

 Permission denied for http://localhost:8080 to get property
 Window.document from 
 http://localhost.http://localhost:8080/testsop/E00BCFA70A4A65848519BCCCE10E89FF.cache
 Line 1

 I know that if I use Apache web server to serve all files, this would
 not happen, but I wonder, is there a way to make it work this way?

 If I use Apache server to serve all files - main page into which GWT
 app embeds and GWT files, this problem does not occur. In this case, I
 have url like:http://localhost/SOP/TestSOP/war/LocalSOP.html
 JS is included as:
 script type=text/javascript language=javascript src=testsop/
 testsop.nocache.js/script
 Application is loaded, and at this moment we do not have the problem.
 But when I want to make RPC call from my application, GWT creates URL
 for RPC call:http://localhost/SOP/TestSOP/war/testsop/greet
 Of course, this URL does not exist on my server. Actually, good URL on
 which Tomcat would respond would be:http://localhost:8080/testsop/greet
 How can I make my application served by Apache on one URL to call RPC
 managed by Tomcat on other URL? Please note that having Apache and
 Tomcat at same time is MUST, so don't try to explain how other
 configuration would work perfectly...
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



  1   2   >