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

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

2020-10-02 Thread George Georgovassilis
ppen 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 loo

[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]

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]

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

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

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]

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

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

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,

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

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

Re: GWT-SL 1.5 released

2014-09-12 Thread George Georgovassilis
, 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

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

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

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

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

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

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

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

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

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.

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

Re: Howto: Optimising RPC

2011-03-29 Thread George Georgovassilis
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

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

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

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

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

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

Re: Exception falling through catch() in JSNI

2011-01-17 Thread George Georgovassilis
-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

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,

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Re: Multiple RPC from same page gives Error 500

2010-09-29 Thread George Georgovassilis
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

Re: CPU utilization on IE6.0 because of Mousemove event

2010-09-24 Thread George Georgovassilis
/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

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.

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]

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

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]

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

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

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

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

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

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

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

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.

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

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

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

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.

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()

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

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,

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

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

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

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

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

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

[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

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

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

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

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

Re: [gwt-contrib] Inlining nocache.js

2009-12-18 Thread George Georgovassilis
-'+'-/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

[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

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

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

Re: GWT Maps API not loading

2009-09-20 Thread George Georgovassilis
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

Re: GWT Maps API not loading

2009-09-20 Thread George Georgovassilis
: 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

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

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

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 =

[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

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

Re: Firefox and Chrome Autocomplete Login Forms

2009-08-26 Thread George Georgovassilis
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

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

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

Re: server side hot redeploy

2009-08-12 Thread George Georgovassilis
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

Re: server side hot redeploy

2009-08-12 Thread George Georgovassilis
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

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

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

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 

  1   2   >