Re: DatePicker UTC

2012-03-29 Thread Kevin Jordan
http://code.google.com/p/gwt-traction/ (Look for UTCDateBox towards the bottom) http://gwt-traction.googlecode.com/hg/demo/com.tractionsoftware.gwt.demo.utcdatebox.UTCDateBoxDemo/UTCDateBoxDemo.html (Demo of it). I created one based off of this for GXT and this should do what you want.

Re: How is Math.Random emulated? and how good is it?

2012-01-11 Thread Kevin Jordan
All GWT's emulation does is natively call the javascript Math.random(). On Jan 11, 3:02 am, darkflame darkfl...@gmail.com wrote: I have been playing about drawing fractals in GWT using canvas and the ¨ chaos game¨ method. However when picking large amounts of random numbers I seem to be

Re: Serializing and Deserializing EntityProxy with created EntityProxy inside makes root EntityProxy have created EntityProxy's stableId

2011-12-30 Thread Kevin Jordan
That appears to be the problem. Hopefully they put in a fix for it since I could reproduce it 100% of the time and it's not an easy bug to track down where it's happening. Thank you for the fix though. On Dec 29, 6:13 pm, Aidan O'Kelly aida...@gmail.com wrote: There's an issue with

Re: Serializing and Deserializing EntityProxy with created EntityProxy inside makes root EntityProxy have created EntityProxy's stableId

2011-12-29 Thread Kevin Jordan
, id); //Deserialize it to the original Proxy. And in production this would be read either from client-side storage or through a call to the server to get the serialized string instead of in one flow. But it behaves the same either way. On Dec 29, 11:16 am, Kevin Jordan ke...@kjordan.net wrote

Serializing and Deserializing EntityProxy with created EntityProxy inside makes root EntityProxy have created EntityProxy's stableId

2011-12-29 Thread Kevin Jordan
I'm trying to preserve a modified EntityProxy's state between user session by using the ProxyStore to serialize it and deserialize it, but it appears that if it has a reference EntityProxy in a field inside, the root proxy's stableId gets overriden with the one of the created EntityProxy. This

Re: Serializing and Deserializing EntityProxy with created EntityProxy inside makes root EntityProxy have created EntityProxy's stableId

2011-12-29 Thread Kevin Jordan
(item); item.getChild(); //This will throw a classcastexception as child is overwritten now to be pointing to the TestRootProxy. On Dec 29, 10:45 am, Kevin Jordan ke...@kjordan.net wrote: I'm trying to preserve a modified EntityProxy's state between user session by using the ProxyStore to serialize

Re: Opera 11.60 + GWT 2.4.0: Code load failed!

2011-12-06 Thread Kevin Jordan
Is this in hosted mode or for the compiled app? Also, are you using this project http://code.google.com/p/gwt-platform/? That seems to have a Code load failed that pops up in an alert window. On Dec 6, 5:28 am, Michael Würtinger wuertin...@cip.ifi.lmu.de wrote: Hi folks, I just installed

Re: Defining widgets as static

2011-11-17 Thread Kevin Jordan
Anything static in your client-side code is static only for that user's instance of it since it is running as javascript in their browser. Only static things on the server would affect per user/ session. On Nov 17, 8:30 am, Ahmet Dakoglu ahmetdako...@gmail.com wrote: Hi All, Although i use

Re: How To Upload a File Over 2GB?

2011-11-08 Thread Kevin Jordan
If your server supports uploading that much (i.e. no POST quota), then yes. Except for initiating the form POST, GWT doesn't have much to do with file upload to the server. On Nov 8, 1:36 am, Boris boris2...@163.com wrote: Can I upload a file over 2GB to server by GWT? Thank you. -- You

Re: No source code is available for type java.io.FileNotFoundException

2011-11-06 Thread Kevin Jordan
Are you talking about using the HTML 5 File API? If so, you should never run into a FileNotFoundException there if that's one you're adding since you can't directly open a file, it has to be done with either a request to the server or through user interaction with a file dialog or drag and drop.

Re: @ExtraTypes examples?

2011-10-21 Thread Kevin Jordan
More on the issue with a fix I had to make: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/1387f28687571bf7/bfc53339a05f5d00?lnk=gstq=kjordan#bfc53339a05f5d00 The problem is that when it goes to examine the subclass in the @ExtraTypes when it's set on a super type, the

Re: Serialization Exception for Integer !?!?

2011-10-21 Thread Kevin Jordan
What's actually getting serialized here? It looks like it's also inside a map and that it's also an array of ints inside the map. On Oct 20, 4:21 pm, Eben Haber e...@haber.net wrote: Hi, Due to hardware problems, I set up a new server (RedHat) running TomCat for deploying my GWT apps. I

Re: Compiler exception occured. Not able to compile GWT application

2011-10-14 Thread Kevin Jordan
You'll need to put a SomeName.gwt.xml in some directory relative to the com.gwt classpath that has source path=demo / and then in your app's entrypoint module .gwt.xml file you add a line that says inherits name=com.gwt.SomeName/ where SomeName is the module you name where you're putting your

Re: Code Splitting / GWT.runAsync (Web mode vs. Hosted Mode)

2011-10-13 Thread Kevin Jordan
Yeah, in hosted mode it just goes directly into the onSuccess callback whereas in web mode it has to download the piece of javascript needed for that point and so that requires it to do it asynchronously which means anything else inside your function where you call runAsync will be executed while

Re: Server Side serial port access in GWT with RXTX

2011-10-12 Thread Kevin Jordan
Remove any appengine jars from your app since you won't be needing anything from that for this. And if you're using eclipse or something like that to build/run it, remove it from your project there too. On Oct 12, 8:53 pm, Steve Struebing steve.strueb...@gmail.com wrote: I've been looking

Re: fileupload does not work with files larger than around 15kb: ACCESS DENIED!

2011-10-12 Thread Kevin Jordan
Does whatever user you're running your web app in have write access to that directory? It could be for smaller files it's just loading those into memory directly instead of a temp file. On Oct 12, 2:14 pm, m...@grayout.de m...@grayout.de wrote: Hi all, I am currently working on an gwt

Re: CAS SSO

2011-10-02 Thread Kevin Jordan
Yes, I've worked CAS authentication into my GWT app. Mine ends up using Spring Security with its CAS modules, but it should work under the JA-SIG client too (which eventually even Spring Security ends up using I believe). What sorts of problems are you having? Except for what you code your

Re: GWT 2.4 Spring Integration Using RequestFactory

2011-09-14 Thread Kevin Jordan
From that, it sounds like you may have a 2.3.0 version of RequestFactory on there too if you are indeed trying to use 2.4.0. The line in question in the top of the stack trace makes no sense for the 2.4.0 source, but in the 2.3.0 source it does: Method contextMethod =

Re: GWT 2.4 Validation Tool not picking up @ExtraTypes on superclasses

2011-09-08 Thread Kevin Jordan
Doesn't appear much has changed on the RequestFactoryGenerator in the final release from RC1. I ended up having to do a copy of RequestFactoryGenerator and change AllReachableTypesVisitor to be: private static class AllReachableTypesVisitor extends RequestMethodTypesVisitor {

Re: GWT 2.4 Validation Tool not picking up @ExtraTypes on superclasses

2011-09-08 Thread Kevin Jordan
Also, after you put that in your copied RequestFactoryGenerator, you'll need to put: generate-with class=package where you put your copied generator.RequestFactoryGenerator when-type-assignable

Re: GWT 2.4 Validation Tool not picking up @ExtraTypes on superclasses

2011-09-08 Thread Kevin Jordan
Looking further, it would probably be best though if a fix for RequestFactoryModel was checked in that had a check against the type being examined and the type it gets for the proxy type in the @ExtraTypes array: private ListEntityProxyModel checkExtraTypes(JClassType type, boolean

Re: File download with GWT

2011-09-08 Thread Kevin Jordan
Yeah, use an anchor which will automatically launch it through the built-in function in the browser or you can use the open method in the GWT Window class to open a new window pointing to your servlet:

All EntityProxies inside ValueProxy inside Collection do not get properties populated?

2011-09-07 Thread Kevin Jordan
I have a ValueProxy which references an EntityProxy to add some data to return to the client, in this case a child count for the current branch in a tree structure. I want properties reference from the EntityProxy, but only one Entity seems to have the getter on my domain object called.

Re: Re-firing a failed/rejected server call in RequestFactory, is this possible?

2011-09-06 Thread Kevin Jordan
I'm running into this issue too. It seems when the server throws an exception it gets sent to the individual Request not the fail() method in the RequestContext. So reuse() is never called from it in the case of a server exception. I'm not sure why they designed it this way. A server

Re: Errors when firing Requests

2011-09-06 Thread Kevin Jordan
Hibernate validation is trying to use slf4j which you don't appear to have in your classpath. On Sep 6, 8:49 am, Nik khristia...@gmail.com wrote: I'm trying to implement a simple testproject with RequestFactory, after i failed with a bigger one and still cannot manage to make it run. Since

RequestFactoryServlet encoding speed

2011-08-23 Thread Kevin Jordan
I've got a resultset of 200 entries I'm sending over a RequestFactory request and the actual database lookups and such take around 1 second, but after I return it, the request sits around for at least another 10+ seconds before the client gets it. I'm thinking the RequestFactoryServlet encoding

Re: HTTP Persistent Connection in Jetty

2011-08-15 Thread Kevin Jordan
Are you referring to Comet and/or Websockets? For both of those, it's part of the servlet you're connecting to. Websockets will require a Jetty 7 version though. On Aug 14, 7:45 pm, Gator Bait vivsz...@gmail.com wrote: Hi, I'm new to GWT. I'm using GWT 2.3 and the embedded Jetty server

Re: HTTP Persistent Connection in Jetty

2011-08-15 Thread Kevin Jordan
, sounds like this is controlled from the servlet code and not Jetty. Will you point me to an example? Many thanks, Gator Bait On Aug 15, 8:22 am, Kevin Jordan ke...@kjordan.net wrote: Are you referring to Comet and/or Websockets?  For both of those, it's part of the servlet you're

Multiple instances of a RequestFactory?

2011-08-10 Thread Kevin Jordan
I'm making my code use one instance of my RequestFactory, but anywhere else that I've missed so far that still creates another instance of it through GWT.create seems to have no transport: Cannot call method 'send__Ljava_lang_String_2Lcom_google_web_bindery_requestfactory_shared_RequestTransport

Re: Multiple instances of a RequestFactory?

2011-08-10 Thread Kevin Jordan
No, I suppose I'm not. Is that where it gets the transport? Does it normally default to null? If you don't initialize it on an EventBus it doesn't get a transport? On Aug 10, 3:39 pm, Jeff Larsen larse...@gmail.com wrote: On the ones you are creating new, are you giving them an EventBus? --

Re: Type cast in Ext-GWT

2011-08-09 Thread Kevin Jordan
Is it giving you a ClassCastException or something? Make sure you're getting the right index and what's in that index is actually a LayoutContainer. Other than that, it looks fine. LayoutContainer extends GWT's Widget in GXT so that's a valid downward cast. On Aug 9, 7:55 am, Nandha Griantek

Re: no run as GWT application in Eclipse 3.7 (indigo)

2011-08-08 Thread Kevin Jordan
If you're using Maven and want to get the old standalone app version yet, set up a run configuration with gwt:debug. You can also use gwt:run to have it automatically bring up the window, but I've found eclipse can't tie into that with its debugger, so gwt:debug with a Remote Java Application

Re: no run as GWT application in Eclipse 3.7 (indigo)

2011-08-05 Thread Kevin Jordan
Try going down to the Configure menu option and see if there's a Convert to GWT Project option. Also confirm in the Google-Web Toolkit option in the project properties that it's setup to use the toolkit. On Aug 4, 11:13 am, pagod thepa...@googlemail.com wrote: Hi, I recently installed Eclipse

RequestFactory custom serialization

2011-08-05 Thread Kevin Jordan
Is there any way to customize how RequestFactory serializes a certain type? I have a type that extends java.util.Date so that anything that is purely a date will stay the same no matter what timezone the user is in. I achieved that when I was using RPC through the CustomFieldSerializer.

Re: XMLHttpRequest2

2011-08-01 Thread Kevin Jordan
Might try this: http://code.google.com/p/gwt-fileapi/ I've written my own, so if that doesn't work, I'll post my code. On Jul 31, 9:44 am, Allahbaksh a.allahba...@gmail.com wrote: HI All, We are trying to write a wrapper over XMLHttpRequest2. Can people point out if some one has written some

Re: Frustrated with GWT

2011-07-25 Thread Kevin Jordan
Yeah, definitely looks like a case-sensitive error. It's got uppercase letters in the mapping of where it's listening on, but all lowercase in the request. On Jul 24, 11:09 pm, Gal Dolber gal.dol...@gmail.com wrote: Maybe the uppercases? try this:

Re: Can GWT be used to edit excel?

2011-07-23 Thread Kevin Jordan
if the GWT provide Widget to edit the table internally so I don't have to write code for that. I saw someone successfully import excel to gwt table and export gwt to excel after editing. At this point we try to find the existing tools to edit excel whithout parsing that. On Jul 22, 2:38 pm, Kevin

Re: Can GWT be used to edit excel?

2011-07-22 Thread Kevin Jordan
Unless you're wanting to send it down to the client and get the contents using the File API or similar, just parse it on the server using POI or jExcelAPI and send it to the client via a request and display it in a grid/table on the client. Then after they're done editing it, send their changes

Re: Validation java.util fields

2011-07-19 Thread Kevin Jordan
You can do a custom constraint. @Constraint(validatedBy = StringCollectionValidatorImpl.class) @Target({ ElementType.TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR, ElementType.PARAMETER }) @Retention(RetentionPolicy.RUNTIME) public @interface StringCollectionValidator {

Re: GWT 2.1+ Compiler issues

2011-07-18 Thread Kevin Jordan
Well, I've figured out if I limit the gwt-maven-plugin localWorkers section to 2 in my configuration for it, it doesn't hammer the memory nearly as much as when it defaults to the usual number which is how many processors/cores you have. On Jul 17, 3:30 pm, Kevin Jordan ke...@kjordan.net wrote

Re: GWT 2.1+ Compiler issues

2011-07-17 Thread Kevin Jordan
Yeah, I'm not doing it in Eclipse either. I'm doing it in Jenkins with Maven. Takes anywhere from 20-50 minutes now whereas before I switched to 2.3 and started adding RequestFactory stuff, it took 6-10 minutes. It also seems to take 11GB of memory which is my all my main memory + most of the

Re: GWT 2.1+ Compiler issues

2011-07-11 Thread Kevin Jordan
I've noticed that with GWT 2.3 and RequestFactory stuff added it takes 2x as long to compile now on a quad core AMD machine with 8GB of RAM. On Jul 11, 10:00 am, Brian bboyl...@gmail.com wrote: Hi I am upgrading my GWT app from 2.0 to 2.3. When I'm compiling with 2.1, 2.2 or 2.3 I am seeing a

Generated AutoBean name length for Proxies too long

2011-07-11 Thread Kevin Jordan
I have a ValueProxy with an already fairly long name length (44 characters), but when it goes to generate an AutoBean for it, it adds another 220 characters to that and hits the file name limit of most linux filesystems (usually around 255 characters). This makes my build fail of course since it

Re: RequestFactory and Value Proxy for Objectify Key problem

2011-07-10 Thread Kevin Jordan
Well, that should be KeyProxy, not Key there. I'm also not sure if you're going to be able to do the T extends EntityProxy generics since I'm trying to convert my application to RequestFactory too and seem to be having problems doing that. On Jul 7, 6:58 pm, Phil C philipcrave...@gmail.com

Re: RequestFactory and Value Proxy for Objectify Key problem

2011-07-10 Thread Kevin Jordan
Also, what's the point of the generics on your KeyProxy as T isn't used to return or set anything in the class. On Jul 7, 6:58 pm, Phil C philipcrave...@gmail.com wrote: I am trying to convert our application to use RequestFactory (GWT 2.3 using all com.google.web.bindery.requestfactory.shared

Re: Spring Security with GWT

2011-07-09 Thread Kevin Jordan
This is because GWT uses an IFRAME to submit by default. There's no reason it has to be a form to submit to your logout URL, so I'd just do an anchor link as kellizer suggests or just do a Window.Location.replace(/j_spring_security_logout) when your button is pressed. That will redirect the

Re: GWT + Spring Security

2011-07-08 Thread Kevin Jordan
need the DispatcherServlet in order to make the annotation works? 2011/7/7 Kevin Jordan ke...@kjordan.net It's been a while since I've set mine up to do this, but when you say you're setting them in the interface on the client side, are you trying them on the Async interface

Re: GWT + Spring Security

2011-07-07 Thread Kevin Jordan
It's been a while since I've set mine up to do this, but when you say you're setting them in the interface on the client side, are you trying them on the Async interface or the interface your server-side code implements off of? If you do it on the interface your server- side code uses as the

Re: Does GWT 2.3 provide Synchronous RPC?

2011-07-04 Thread Kevin Jordan
1. It does not. 2. The synchronous interface is the contract that your server-side must implement. GWT.create also uses that class to find the Async class. On Jul 4, 10:38 am, Gunz ganeshma...@gmail.com wrote: Hi, I was trying to understand and implement RPC in GWT. In the StockWatcher

Re: GWT works with hibernate in dev. mode but not production mode...

2011-06-30 Thread Kevin Jordan
Are you using the same database server? Is anything getting returned through RPC or whatever you're using? On Jun 30, 11:10 am, gshepherd gshephe...@gmail.com wrote: I've had an existing GWT project utilizing Hibernate working on Windows fine for sometime now.  I need to port it over to Linux

Re: No source code is available for type com.google.gwt.user.server.rpc.RemoteServiceServlet; did you forget to inherit a required module?

2011-06-27 Thread Kevin Jordan
The servlet entry should only affect hosted mode. This means you're somehow referencing the server-side class for your RPC service somewhere in your client-side code (which you shouldn't be). On Jun 17, 6:17 am, Zgouingo zgoui...@gmail.com wrote: Hello everyone, I know there has already been

Setting symbolMapsDirectory for RemoteLoggingServiceImpl?

2011-06-16 Thread Kevin Jordan
How can I access the setter for the symbolMapsDirectory for GWT's RemoteLoggingService in my web.xml file? Usually you set stuff through an init-param in there, but I don't think that works for a set method since the servlet gets it through a ServletContext or ServletConfig. -- You received