Re: Is it possible to have a div overlay something, but not catch the clicks (ie, transparent to clicks?)

2011-10-08 Thread David Given
On 08/10/11 11:48, darkflame wrote: [...] Basicly I have a page with a lot of widgets, imagine if I wanted to tint the screen slightly - for example a 50% blue overlay. Yet I still want the widgets all clickable/interactable as normal. You can do it by setting pointer-events:none on the

Re: Simple GWT sample code from Eclipse does NOT run in Chrome!

2011-10-03 Thread David Given
On 03/10/11 21:45, Danux wrote: I wanted to spare people go through my own code, so I simply create a new web application project in Eclipse Indigo and compile the starter code right away. When I click on the html page... Are you doing this from a file manager? That loads the HTML page into

Announce: Cowj 0.2

2011-10-02 Thread David Given
I did some more work on my GWT emulation library. You now get: - java.io (InputStreams, OutputStreams, Readers, Writers, Files) - java.nio (Buffers) - java.nio.charset - java.nio.channel (All the abstract channel stuff, plus FileChannel) - java.util.zip (Complete, courtesy of JazzLib) -

Re: Any decent java.util.Calendar, Locale, TimeZone emulation?

2011-10-01 Thread David Given
On 01/10/11 10:15, maticpetek wrote: Hello, What about http://code.google.com/p/goda-time/ Thanks, but that doesn't emulate java.util.Calendar. -- ┌─── dg@cowlark.com ─ http://www.cowlark.com ─ │ │ Under communism, man exploits man. Under capitalism, it's just the │ opposite. ---

GWT and TypedArray

2011-10-01 Thread David Given
So there's a new Javascript API, TypedArray. This provides efficient fixed-type arrays for primitive data types. For example, Int8Array stores only integers in the range -128..127. It occurs to me that these would be ideal for GWT's implementations of Java primitive object arrays. For example,

Any decent java.util.Calendar, Locale, TimeZone emulation?

2011-09-30 Thread David Given
Does anyone know of any decent libraries to emulate the above classes? So far I've found this: http://code.google.com/p/gwt-calendar-class/ ...but it doesn't appear to be quite complete and I'm having trouble making it work. Anyone know of anything else? (This is to make existing code work, so

java.io, java.nio for GWT

2011-09-28 Thread David Given
Hello, I've just released a library that, among other things, contains reasonable implementations of big chunks of java.io and java.nio: http://www.cowlark.com/cowj/ What you get is InputStreams, OutputStreams, Readers, Writers, Buffers, Charset and a handful of charset codecs, and assorted

Re: Image compression.

2011-09-28 Thread David Given
On 28/09/11 17:44, German Castellar wrote: [...] I have a client requirement for uploading images of aprox 5 Mb. Due to a bandwidth constraint i need to compress this images and upload them using GWT. You want to use the HTML5 File API to read the file client-side and then mangle them how you

Re: Sync AJAX ( instead of async)

2010-07-21 Thread David Given
On 21/07/10 16:10, Nathan Wells wrote: There is only one case I know of where synchronous should be used: when you want to do a server call and get a response when the user is leaving the page. I sincerely hope that my web browser would fail to honour this! Delaying page close is deeply

AuthSub vs. history tokens

2010-05-20 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm trying to log in to a Google service by using AuthSub. This works by redirecting the user to a Google login page, which then redirects back to my app after login with a cookie in the #... section of the URL. Unfortunately this appears to conflict

Remote storage of preferences in the cloud

2010-05-18 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a server-less (client-side code only) app for which I want to store a few user preferences: total data is a few hundred bytes. Right now I'm storing these in cookies, which works fine, but of course don't work if the user runs my app from a

Debugger stopped connecting

2010-05-11 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've been trying to integrate the web-socket-js Flash-based WebSocket emulation library (from here: http://github.com/gimite/web-socket-js) into my app. I have it working, but as a side effect my app no longer debugs. I have to compile it and run it

Client side file I/O

2010-05-10 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a rich app client that wants to be able to construct data algorithmically and save the result; it also wants to be able to read a local file, and process it locally. [No, I do *not* want unrestricted access to the filesystem from the client! I

Re: character encoding issues

2010-05-06 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/05/10 16:08, undertow wrote: Thank you for confirming what i had suspected i would need to do. So the idea is, user enters a bunch of text into a textarea via typing it all in or cut and paste from somewhere (like Word, ugh and its mangled

Re: character encoding issues

2010-05-05 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/05/10 22:11, undertow wrote: hello, i seem to be having issued with GWT and character encoding. I have an Oracle database which stores strings with iso-8859-1 encoding. GWT does NOT support java's String.getBytes(), nor does it support new

Re: super-source with Eclipse

2010-04-28 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26/04/10 20:08, David Given wrote: [...] On 26/04/10 10:32, Thomas Broyer wrote: [...] You can add the emu subfolder to the Build Path (so that package declarations match folder hierarchy) and add an exclude filter (Excludes: **) so

Re: super-source with Eclipse

2010-04-26 Thread David Given
On 2010-04-26 05:29, branflake2267 wrote: [...] It appears that your source isn't in the translatable directories that would translate to javascript. Anything in project.client.* should translate into javascript. There should be two packages tld.domain.client.* and tld.domain.server. Er, no

Re: super-source with Eclipse

2010-04-26 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26/04/10 10:32, Thomas Broyer wrote: [...] You can add the emu subfolder to the Build Path (so that package declarations match folder hierarchy) and add an exclude filter (Excludes: **) so that Eclipse doesn't compile the classes to your

Re: java.io, java.nio emulation?

2010-04-26 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 26/04/10 17:44, cretz wrote: There's nothing like this out there per se since most of it won't work anyways. You can see where some of the Google guys faked it w/ HTML 5 stuff (local storage, web sockets, etc) at There's more to java.io that

super-source with Eclipse

2010-04-25 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm trying to add some classes to the JRE emulation used by my app. Right now I have a module in .../src/emu/Emulation.gwt.xml that uses super-source and my classes in .../src/emu/java/io/Foo.java. This works fine. However, Eclipse doesn't like it

Re: java.io, java.nio emulation?

2010-04-24 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 24/04/10 12:06, خليل بولو wrote: [...] كنت في الماضي القريب اناقش واتصفح ونشاط حاسم ولاكن بعد الشريط الامن لم اتمكن من رؤية البريد الوارد ليكن اختلاط بين القياسين وغير امن لطفا منكم ان تساعدني وهاذة رسالة اعتبرها انضمام الى مجموعتكم للاطلاع

java.io, java.nio emulation?

2010-04-23 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a requirement to parse MIME email messages on the client. I've found a nice Java library to do this --- mime4j --- but it has dependencies on java.io (string and byte buffer based streams and readers) and java.nio (character set conversion).

Re: Failed to parse policy file

2010-04-18 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 17/04/10 14:51, David Given wrote: [...] I'm trying to upgrade a GWT app from an older version of GWT to the latest. Unfortunately, when after deploying, the servlet won't start up, producing the following error: This turns out to be due

Failed to parse policy file

2010-04-17 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm trying to upgrade a GWT app from an older version of GWT to the latest. Unfortunately, when after deploying, the servlet won't start up, producing the following error: [_commentator 2010/04/17 14:43:50] - ERROR: Failed to parse the policy file

Re: client side same-origin IE issue

2009-10-04 Thread David Given
Brian Blain wrote: [...] I wanted to be able to move the project war dir to another computer that does not have a server and open ClientUpload.html. Right now when ClientUpload.html is opened in Firefox or Chrome the URL is file:/// C:/.../ClientUpload/war/ClientUpload.html and

Re: Client-Server

2009-10-01 Thread David Given
Fon Vitale wrote: [...] I have been searching information about this and I have found examples about get data from the server, not to send data to server (JSON examples). It's the same thing. In order to get data from the server, you have to send data *to* the server to tell the server what

Re: Client-Server

2009-10-01 Thread David Given
Fon Vitale wrote: Can you refer me to an example, please? There are about a billion on the 'net. Just make an ordinary POST call and call setRequestData() on the RequestBuilder object before calling send(). For added points, use a standard form parameter block for the data

Re: Remote controlling an iframe

2009-09-30 Thread David Given
ThomasWrobel wrote: Id like to know this too. I'm not sure if its even possible for the parent frame to know the url of the child frame if it changes. My experiments always resulted in getting the initial url it was set too, and not the new one since the user clicked. Looking at the EyeOS

Re: Remote controlling an iframe

2009-09-29 Thread David Given
David Given wrote: I want to embed a mini web browser into my app (for help text). I've seen this done before on other sites. I want to load the help pages into an iframe, and then use GWT widgetry to listen for onload events, determine the page title, go forwards and back, and remotely

Remote controlling an iframe

2009-09-28 Thread David Given
I want to embed a mini web browser into my app (for help text). I've seen this done before on other sites. I want to load the help pages into an iframe, and then use GWT widgetry to listen for onload events, determine the page title, go forwards and back, and remotely set the URL. I've looked

Re: GWT War File Sizes

2009-09-28 Thread David Given
David G wrote: [...] I haven't been able to Google any answers to why GWT does this or what would happen if I removed the jars from the deployment, so was wondering if anyone had an answer to why the war keeps including all these library jar files, if there is a simple ant script to remove

Re: Input Korean

2009-09-28 Thread David Given
Jong Lee wrote: I input Korean into GWT EXT TextArea but it just stored ??? into MySQL. It seems to be stored broken. That's unlikely to be a problem with GWT --- what's almost certainly happening is that MySQL is using the wrong encoding for its text. That is, GWT is providing UTF-8 to

Re: using affine transformations in GWT

2009-09-25 Thread David Given
Stephan wrote: [...] i want to use affine transformations in Google Web Toolkit... How do i do that? GWT has no graphics toolkit --- you can't actually *draw* anything other than inserting HTML into your document. So if you're wanting to transform graphics, you can't do that. Or did you

Re: Server-only functions

2009-09-17 Thread David Given
Sripathi Krishnan wrote: [...] And supposing you end up guaranteeing the above, it means you have two sets of functions in your class which don't speak to each other. Which means they have no business being together in the same class. You could just make a ServerSideDTO that extends from

Re: Serializing Class objects

2009-09-09 Thread David Given
switch statement to generate an object of the right type. - -- David Given d...@cowlark.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqnsO4ACgkQf9E0noFvlzjGLgCgh0b0Q8cx7rFGdgpizZ9iOt

Re: DeckPanel with visible layers?

2009-09-08 Thread David Given
Ian Bambury wrote: [...] It might be helpful (well it would for me anyway) if you were to describe the effect you were trying to get. Simple enough, really: I want a progress bar with text over the top. To some extent I think I understand, but I don't understand the reason for the problem

Re: Making a widget as big as possible (but no bigger!)

2009-09-08 Thread David Given
Nathan Wells wrote: I realize this example is rather naive, but I think we can use it as a starting point: http://nathanwells.net/work/cssTest.html Is that basically what you're looking for? I tested it in IE 8, 7 (via compatibility mode), Firefox, and Chrome. Everything looks fine to

Double.toString() behaviour inconsistency

2009-09-08 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 If I run this: String s = Double.toString(1234.0); ...then on the hosted browser I get 1234.0, but on Firefox 3.5 I get 1234. I haven't tried it on anything else yet. Is this a known issue? Should I file a bug report? - -- ┌─── dg@cowlark.com

Re: Making a widget as big as possible (but no bigger!)

2009-09-07 Thread David Given
Nathan Wells wrote: Using absolute positioning: This method requires that (1) the container must have dimensions set (i.e. width: x% or px or whatever). (2) the child box has position:absolute set. If the above are true, you simply set the left, right, top, bottom, width and height

Re: Server Side: Writting a File on Disk

2009-09-06 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert Lang wrote: [...] - java.io.FileWriter is not supported by Google App Engine's Java runtime environment - java.io.FileWriter is not supported by Google App Engine's Java runtime That is correct. You cannot write to files using App

Making a widget as big as possible (but no bigger!)

2009-09-05 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have a recurring problem that keeps hitting me with various projects. There must be a way around it, but I have yet to find one... I have a container of a fixed size. I want to put in this another widget, and have that widget take up all the

Re: Iframe = multithreading ???

2009-09-03 Thread David Given
ben fenster wrote: your answear is based on your knolage in js but i need an answear based on actual in depth knowlage in how browser work since each iframe act as an independed wep page and loaded sepertly No, you misunderstand --- if your code can see an iframe, that iframe must be part of

Re: GWT serialisation too slow

2009-09-03 Thread David Given
Chris Lowe wrote: Not having a JIT may be really biting you here. AFAIK GWT serialisation makes extensive use of reflection, however there seems to be a way to define a custom field serializer (looks similar to using Externalizable), but I've not tried this myself: Oo. I didn't know you

Re: Iframe = multithreading ???

2009-09-03 Thread David Given
ben fenster wrote: ok thats sounds right but if thats true can i access static classes in the entrypoint module from a seperate module loaded in an iframe (that ofcours exists in the first module) ? Javascript will let you do it, provided the security rules let you (the page in the iframe

Re: linux servers

2009-09-02 Thread David Given
bcw wrote: [...] I have the thought that a FireFox plug-in might allow access. I'll want to learn about the security issues along the way. Sure, but don't forget that you will need a *different* plugin for every platform and browser combination. So you'll need one for Firefox on ix32

Re: GWT serialisation too slow

2009-09-02 Thread David Given
Chris Lowe wrote: [...] 500-600 does seem like a lot of objects to be processing in one hit if performance on a low end server is a concern, but then again 20 seconds seems like an awfully long time too. Actually, thinking about it, it's more than that --- probably around 1500 objects (500

Re: javax.persistence package

2009-09-02 Thread David Given
tolga ozdemir wrote: [...] Can you enlighten me wheather we could use javax.persistence.* in our serialized DTO objects for the sake of RPC?? can I use @Table, @Id or other annotations? The GWT runtime ignores annotations --- they're not kept at runtime on the client. So you can pass

Re: Iframe = multithreading ???

2009-09-02 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ben fenster wrote: i was wondering that if by opening another module in an iframe tag the code of that module runs in another thread ?? Nope. There is no way of getting access to multiple Javascript threads from a web browser, unless you use some

Re: Is Google Web Toolkit for me?

2009-09-02 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 spierce7 wrote: [...] By the way, I'm going to need to integrate with a web database. The obvious one for me was MySQL, but that was mainly because PHP integrates so easily with it. What kind of options do I have with this while using GWT? I'd

Re: linux servers

2009-09-01 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 bcw wrote: [...] Those browsers run javascript without help, but I also want to be able to access some shared system library functions on my linux box for computations. Is there a way to do that from a browser without an intervening server?

GWT serialisation too slow

2009-09-01 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've got an app intended to run on a fairly low-end server, so I've been optimising it as hard as possible. Right now I've got it to the stage where the biggest bottleneck is the GWT server-side serialisation, as it's squirting a large database sync

Re: Java server frameworks for GWT

2009-08-29 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sandman wrote: [...] I've been thinking about using Apache Tomcat as my test server. Are any of the other web servers better suited for GWT-RPC? I use Winstone on my server --- it's very small and lightweight but runs GWT servlets perfectly. As

Unknown runtime error on IE (all versions)

2009-08-26 Thread David Given
(); } Any ideas as to what might be going on here? - -- David Given d...@cowlark.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (Cygwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkqVONYACgkQf9E0noFvlzip3gCglh474zxkrpv4fXHPzZl6hGeR /OAAn1dAK/Pz27x9NFhttes

Drawing graphics without using Canvas

2009-08-18 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I've got an app which is going to want to draw some simple diagrams client-side. I don't want to use a Canvas for this, partly for compatibility reasons, and partly because the hosted browser doesn't support it which makes it a pig to test. Right

Re: 100% high TabPanel

2009-08-17 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ian Bambury wrote: [...] You have to calculate it and recalculate it every time the window resizes, [...] Aaargh! I was really hoping not to have to do that --- my layout is complicated and contains lots of CSS stuff, and trying to redesign all

100% high TabPanel

2009-08-15 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm trying to make a dead simple layout where a TabPanel occupies the full height of the browser window. This is turning out to be rather harder than I expected. What I'm finding is: - - setting the height of the TabPanel to 100% changes the height

RunTimeError accessing RichTextArea

2009-07-16 Thread David Given
I'm trying to get access to the inner document of a rich text editor. However, whenever I try, I get bizarre errors; it appears to be giving me bogus JavascriptObjects. For example: Element e = richtext.getElement(); String s = e.getTagName(); assert s.equals(IFRAME) /* passes */

Re: Internal size of a rich text editor

2009-07-15 Thread David Given
David Given wrote: [...] I'm trying to find a way of determining the size of the *contents* of a rich text editor. (In particularly, the height.) I need to be able to size a widget to display the contents without a scrollbar. Anyone know about this? -- ┌─── dg@cowlark.com ─ http

Internal size of a rich text editor

2009-07-12 Thread David Given
Hi, I'm trying to find a way of determining the size of the *contents* of a rich text editor. (In particularly, the height.) I need to be able to size a widget to display the contents without a scrollbar. I've seen suggestions that I should be able to figure this out from looking at the DOM

Re: Servlet threading?

2009-07-11 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jason Morris wrote: [...] In short, you should make sure all of your RPC methods are reentrant and your Servlets are logically stateless (ie: they should not have any mutable fields). Thanks, that's just what I was looking for. - -- ┌───

Servlet threading?

2009-07-10 Thread David Given
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Does anyone have any information on threading issues as applied to the RPC server code? I've been unable to find anything on the 'net. In particular, I need to know about any synchronisation guarantees between RPC function handlers. What