AutoBean polymorphism support

2012-10-13 Thread Andrea Boscolo
Hi all, I am developing an app in which I use (or at least I would like to use) AutoBeans for serializing data. Unfortunately it seems to me that polymorphism is not supported i.e., I lost the concrete type once I deserialize the json in client-side, only the Base supertype is available. I

DeckPanel - aligning objects from top

2012-10-13 Thread Jostein
Hello, I have a DecpPanel containing a VerticalPanel that again contains 3 objects (see below). I want the objects to be aligned at the top as they does if I use a VerticalPanel. In this case the first object is placed at the top, the second in the middle and the third at the bottom.

Re: AutoBean polymorphism support

2012-10-13 Thread Thomas Broyer
No, AutoBean has no mean to support polymorphism, and it specifically cannot be used for your use-case. You can possibly use Splittable, at a lower-level, or Elemental's JSON, JS overlays, or JSONObject. On Saturday, October 13, 2012 12:40:16 PM UTC+2, Andrea Boscolo wrote: Hi all, I am

Re: GWT 2.5 RC2 EntityProxy Validation

2012-10-13 Thread Jens
Doesn't look that wrong. You need to add validation annotations to the proxy class if you want to do client side proxy validation. As you want to reuse the validation annotations on the server I would think about defining an additional interface IEmployee so that your server Employee class do

Static function and garbage collector

2012-10-13 Thread Harold Comere
Hi all, I am working on an app doing some WebGL stuff, so the application does lot of calculations at high frequency and so i notice some slowdowns due to the garbage collector. I am trying to reduce as much as i can those slowdowns by two ways : - Reuse of objects - Reduce number of objects.

Unrecognized image file format - UiBinder

2012-10-13 Thread Xybrek
I'm getting this error when I put ui:with field='res' type='com.mycomp.mygwt.client.Resources'/ In my UiBinder file where the error is: [DEBUG] [MyGWT] - Rebinding com.mycomp.mygwt.client.Resources [DEBUG] [MyGWT] - Invoking generator

Re: Saving results from GWT-RPC call on client

2012-10-13 Thread JeanV
That's a good idea but it doesn't solve the issue of converting the RPC received objects into a locally persistable objects. In my case, the user is loading a list but I want to pre-populate it with the latest list and have him/her manually refresh it. Thanks for your assistance On Thursday,

Re: Saving results from GWT-RPC call on client

2012-10-13 Thread JeanV
That's a good idea unfortunately I also use GWT-RPC calls for authentication and it breaks when using this approach. While I do want to cache the retrieved list, I also want the user to be able to update the list. Caching it might prevent getting the latest copy. On Wednesday, October 10,

Re: RequestFactory in a offline Szenario?

2012-10-13 Thread Nick Siderakis
I've just posted the core part of my offline requestfactory implementation. http://puretech.siderakis.com/2012/10/offline-requestfactory-gwt.html Basically all you need to do is extend it and override processPayload (to save the request payload in local storage), and then send the request

Re: DevMode not working in Chrome after update

2012-10-13 Thread arnaud lejeune
Idem .. Nobody has a response ? Chrome 22.0.1229.94 GWT 2.4/2.5 Le mardi 17 juillet 2012 16:16:03 UTC+2, Andy a écrit : I updated Chrome this morning and now when I try to use DevMode I get an error Could not load GWT DevMode Plugin and an offer to Download the GWT Developer Plugin. When I

GWT Serialization

2012-10-13 Thread Manikanda raj S
I'm using GWT RPC Calls for Server Side Request so far and it's pretty good. I'm planning on separating my Code into Servlets and GWT Client Side. Since i'm using RPC calls, it seems impossible. The Reason i want to do like this is , i'm planning to provide white labeling option for my App. So

Re: GWT Junit Test

2012-10-13 Thread Rebecca Nordhauser
Did you ever figure out what was going wrong? I'm having the same error. On Tuesday, October 2, 2012 12:15:15 PM UTC-4, Manuel Carrasco wrote: What is the content of your com/TestGreeting.gwt.xml file ? On Fri, Sep 28, 2012 at 11:18 AM, Ronsen sonne...@hotmail.dejavascript: wrote:

DeckPanel - aligning objects from top

2012-10-13 Thread Andrei
Replace VerticalPanel with FlowPanel. Then use CSS to set margins on your buttons, if necessary. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

How to add scroll vertically in celltable?

2012-10-13 Thread Gonzalo Osco Hernandez
Hello my friends, I wonder how to add a vertical scroll in a celltable as shown in examples showcase for cellSampler. Thanks for your help -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: DevMode not working in Chrome after update

2012-10-13 Thread Max
Mac OS. Does not work. I hope somebody from Google is reading this as going back to old Chrome is not an option. On Wednesday, 10 October 2012 01:39:53 UTC-5, Kyle Anderson wrote: DOESN'T WORK. When I drag-and-drop the .crx, it installs the dev mode plugin, but when I try to use Devmode i

How to select a cell in a GWT CellTable and have a visible border only around the selected cell?

2012-10-13 Thread Teo
The above behaviour is actually provided by the CellTable if I use the default constructor (without Resources argument). However, I don't like the provided header style and row selection colors in the provided style, so I tried to change them by copying the CellTable.css into my project and by

[gwt-contrib] Re: Be stricter about quoting JSON strings in AutoBeans. In particular, (issue1853803)

2012-10-13 Thread t . broyer
On 2012/10/13 03:42:46, cromwellian wrote: One option is to have an extra method like encodeForHtmlContext() where you only pay the tax in that circumstance. Would it cost really that much to post-process the output from AutoBeans (possibly depending on context)? For instance, using OWASP

Re: [gwt-contrib] Re: Be stricter about quoting JSON strings in AutoBeans. In particular, (issue1853803)

2012-10-13 Thread Ray Cromwell
I don't think it's a matter of simple character replacement once something has been serialized to JSON string. For example, these encoders will typically escape '\' character, but if there are already legal escape sequences in the string, it will end up double-escaping the payload leading to

Re: [gwt-contrib] Re: Be stricter about quoting JSON strings in AutoBeans. In particular, (issue1853803)

2012-10-13 Thread Thomas Broyer
On Saturday, October 13, 2012 12:30:24 PM UTC+2, Ray Cromwell wrote: I don't think it's a matter of simple character replacement once something has been serialized to JSON string. For example, these encoders will typically escape '\' character, but if there are already legal escape

Re: [gwt-contrib] Re: Be stricter about quoting JSON strings in AutoBeans. In particular, (issue1853803)

2012-10-13 Thread Ray Cromwell
The context IIRC from internal discussion, is something writing something like this: script var x = 'autoBean result'; //e.g. what you don't want var x = '{foo: \u0061, don't stop believin'}' /script The codec you linked to to me looks like it will change backslash into \x5c form perusing