DoubleBox cell decimals positions formatting

2011-08-22 Thread fabio.bozzo
I have this in my uiBinder: e:ValueBoxEditorDecorator ui:field=importoEditor e:valuebox g:DoubleBox / /e:valuebox

Regular expressions in GWT

2011-08-22 Thread Raja Shekhar
Hi, Can we use java.util.regex.Pattern in GWT? i'm getting the following error. [ERROR] [esms] - Line 31: No source code is available for type java.util.regex.Pattern; did you forget to inherit a required module? I included JRE. -- Thanks, Raja -- You received this message because you are

Re: image.preFetch - How to determine its loaded?

2011-08-22 Thread StrongSteve
apply a loadhandler onto the image. Something like the code below... final Image imgPin = new Image(WhiteBoardImageBundle.INSTANCE.pin().getURL()); imgPin.addLoadHandler(new LoadHandler() { @Override public void onLoad(LoadEvent event) { //Do something with the image

Re: Regular expressions in GWT

2011-08-22 Thread StrongSteve
java.util.regex is not available on the client-side. Use com.google.gwt.regexp.shared Class RegExp instead. Greetings Stefan On 22 Aug., 08:57, Raja Shekhar grsvarma...@gmail.com wrote: Hi, Can we use java.util.regex.Pattern in GWT? i'm getting the following error. [ERROR] [esms] - Line

Re: DoubleBox cell decimals positions formatting

2011-08-22 Thread Thomas Broyer
DoubleBox is simply a ValueBox using DoubleParser/DoubleRenderer; and DoubleRenderer uses NumberFormat.getDecimalFormat(). If you want a (even slightly) different renderer, you'll have to use a ValueBox with your own values for the parser and renderer. -- You received this message because you

Re: Generating XML

2011-08-22 Thread DarthG
Thank you both for your assistance. I will attempt to use the XStream library first, but the XML is not intended to to be parsed and objects re-built from it; rather the information will be used by another system. Thus, it depends how much I can customise the XStream output to suit the desired XML

How to center element containing CellTable?

2011-08-22 Thread Ionuț G. Stan
I'm trying to center an element that contains a CellTable. The actual centering logic works okay, but I'm having problems with all those attaching/detaching events. Basically, I'm doing this in my container widget: @Override public void onLoad() { super.onLoad(); center(); }

Re: CellTable + Editor displaying only those rows based on a flag in the bean

2011-08-22 Thread Uemit
You will probably use an AbstractDataProvider instance to fill the CellTable. You have to create a helper method which retrieves the list of beans based on the flag and sets it in the AbstractDataProvider (or ListDataProvider). Something like this: final ListDataProviderUser dataProvider =

Re: Regular expressions in GWT

2011-08-22 Thread Jim Douglas
http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/regexp/shared/RegExp.html On Aug 21, 11:57 pm, Raja Shekhar grsvarma...@gmail.com wrote: Hi, Can we use java.util.regex.Pattern in GWT? i'm getting the following error. [ERROR] [esms] - Line 31: No source code is

Insane RPC Serialization Error.

2011-08-22 Thread Gianluigi
Hi to all, It's several days I'm struggling with this error. I make a rpc call from GWT client to a server passing an object. This pojo contain several data ... and a String with some JSON stuff. The call in DEBUG mode works absolutely fine. Not only in debug mode, but when I use the

Re: CellTable custom footer

2011-08-22 Thread Uemit
Hi John I do have a question regarding redrawing the entire DataGrid/CellTable when new data is pushed in. I tried to implement a SearchTextBoxes in the ColumnHeader for filtering the data which is displayed in the CellTable. As soon as I type a character into the SearchTextBox in one of the

Re: Funny behaviour in CellTable.

2011-08-22 Thread jsg
Hi Jeff, Given both our experience and your confirmation, I'm going to file a bug report in case this thread isn't being noticed. Thanks for your effort. On Aug 22, 12:46 am, jchimene jchim...@gmail.com wrote: Hi Julian, I was too glib in my earlier reply. I, too, am seeing this problem. I

Re: Extend GWT-RPC protocol to support AMF3 protocol

2011-08-22 Thread Alain Ekambi
Like Don said the Flex module in the gwt4air project is not ment for existing Flex projects written in Action Script. It s for new Flex projects and for Java Developers willing to use Flex as the UI technology of their projects. By leveraging GWT there is no need to use stuff like BlaseDS,

Re: Regular expressions in GWT

2011-08-22 Thread Raja Shekhar
Thanks. +Raja On Mon, Aug 22, 2011 at 2:51 PM, Jim Douglas jdou...@basis.com wrote: http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/regexp/shared/RegExp.html On Aug 21, 11:57 pm, Raja Shekhar grsvarma...@gmail.com wrote: Hi, Can we use java.util.regex.Pattern

Re: Controlling Size(screen) on Mobile Device

2011-08-22 Thread Uemit
Well, the whole resolution independent web development is really cumbersome especially with GWT like web-application UI. Static web-sites either stick to the static (i.e. 960 grid system) or fluid/liquid (floating) UI design. With the static design the content size is always the same no

Use Uploaded Image as Panel Background

2011-08-22 Thread DarthG
Hello, I have an AbsolutePanel that acts as a graphical workspace. The user should be able to specify a local image to upload and this image will appear as the background on the panel, for them to work on top of. I understand the background can be set using CSS, but how would one do this

Re: Remove ALL CSS from GWT

2011-08-22 Thread Sudhakar Abraham
Change the property in gwt.xml file as follows. In the Project.gwt.xml file do not inherit the css file. comment as follows !-- inherits name='com.google.gwt.user.theme.standard.Standard'/ -- Hope it helps. S. Abraham www.DataStoreGwt.com On Aug 19, 7:57 pm, Alexander Orlov

Re: Insane RPC Serialization Error.

2011-08-22 Thread Gianluigi
The problem is that the serialization behaviour is different from web and hosted mode...  I don't know how I should resolve this... Da: Gianluigi dava...@yahoo.it A: Google Web Toolkit google-web-toolkit@googlegroups.com Inviato: Lunedì 22 Agosto 2011 10:30

Re: Remove ALL CSS from GWT

2011-08-22 Thread Alexander Orlov
On Mon, Aug 22, 2011 at 1:36 PM, Sudhakar Abraham s.abra...@datastoregwt.com wrote: Change the property in gwt.xml file as follows. In the Project.gwt.xml file do not inherit the css file. comment as follows !-- inherits name='com.google.gwt.user.theme.standard.Standard'/ -- ...is

TabLayoutPanel problem with IE7 and input box

2011-08-22 Thread hriess
I'm using a TabLayoutPanel. GWT always generates a div element as the first child of the TabLayoutPanel's div. This div has the following styles: div style=position: absolute; z-index: -32767; top: -20ex; width: 10em; height: 10ex;nbsp;/div Although the z-index is -32767 this div covers a an

Re: Insane RPC Serialization Error.

2011-08-22 Thread J.Ganesan
Any anonymous inner class you have ? That could be a problem. J.Ganesan www.DataStoreGwt.com On Aug 22, 4:38 pm, Gianluigi dava...@yahoo.it wrote: The problem is that the serialization behaviour is different from web and hosted mode...  I don't know how I should resolve this...

Re: Use Uploaded Image as Panel Background

2011-08-22 Thread Nicolas Antoniazzi
As soon as your image is uploaded, you can have a link to it. something like http://my.site.com/images/uploaded_img.png Then, you only have to dynamically change the background of your element : myWidget.getElement().getStyle().setBackgroundImage( http://my.site.com/images/uploaded_img.png); The

Re: Insane RPC Serialization Error.

2011-08-22 Thread Stefan Ollinger
Some days ago I had a similar problem. Development version worked fine, but the compiled version gave those errors. What I did to resolve them, was to build my project from scratch. At the end I had a compiled and working version, having the same codebase like before. In the progress of

How would you replicate Google+ layout?

2011-08-22 Thread Amit Prahesh
Hi there, I've been banging my head against the wall trying to replicate Google+'s layout, but haven't been succesful. This is what I want to achieve: 1. A 100% browser width bar at the top of the page, styled with a background. Even if this bar -- or panel -- goes edge to edge, it's

Code Does not Compile

2011-08-22 Thread Kb .
I have a Java code that uses java.net.DatagramPacket; java.net.DatagramSocket; java.net.InetAddress; It runs fine in eclipse if Run as Java application But when using it in GWT client code it does not compile. I tried copying files to GWT server package and then importing in Client

Re: Insane RPC Serialization Error.

2011-08-22 Thread Jambi
Could you post the class contents? Maybe we can see something in your code. On 22 Aug., 15:08, Stefan Ollinger stefan.ollin...@gmx.de wrote: Some days ago I had a similar problem. Development version worked fine, but the compiled version gave those errors. What I did to resolve them, was to

Re: Code Does not Compile

2011-08-22 Thread Kb .
I am using them for Game Server Querying. Is there any other way to put it somewhere and use info in some other form in the code. On Aug 22, 7:23 pm, Mark mdshol...@gmail.com wrote: You cannot use every Java class in GWT client code; I'm pretty sure that java.net classes are not included.  

Re: Insane RPC Serialization Error.

2011-08-22 Thread Gianluigi
Well, actually It's a massive class definition.  There are 2 piece of that class that I suspect gives troubles... 1) a string with a json definition inside 2) This typed map: MapKeyItem, LookupRow where KeyItem and LookupRow are other 2 objects with hashcode and equality methods defined

Re: Basic CellTree tutorial not working

2011-08-22 Thread Sudhakar Abraham
In Entrypoint, add CellTreeExample object into RootLayoutPanel. It binds the CellTree Widget with uiBinder. Try the following example. S. Abraham www.DataStoreGwt.com package com.college.client; import com.google.gwt.cell.client.TextCell; import com.google.gwt.core.client.GWT; import

Re: Code Does not Compile

2011-08-22 Thread Mark
You cannot use every Java class in GWT client code; I'm pretty sure that java.net classes are not included. See http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html for a list of emulated classes. On Aug 22, 8:35 am, Kb . kb.kb.1...@gmail.com wrote: I have a Java code that uses

Re: Code Does not Compile

2011-08-22 Thread Mark
Everything to/from the client must be a valid emulated class so one way you can achieve this is to use a Data Transfer Object composed of classes that are valid for the client side. Write a server-side RemoteServlet to receive and translate this DTO into the calls you want to perform and then

Re: How would you replicate Google+ layout?

2011-08-22 Thread Kees de Kooter
Take a look at the DockLayoutPanel. On Mon, Aug 22, 2011 at 07:27, Amit Prahesh amit.prah...@gmail.com wrote: Hi there, I've been banging my head against the wall trying to replicate Google+'s layout, but haven't been succesful. This is what I want to achieve: 1. A 100% browser width

Re: Insane RPC Serialization Error.

2011-08-22 Thread dreamer
I had similar issues, all pointed back to some defensive coding. As all calls are aync , behavior will be some what unexpected in few situations. Here are some tricks I played to such errors. 1) try in different browsers. 2) Load the app instance, then try, meaning use once, and second, third,

Re: Insane RPC Serialization Error.

2011-08-22 Thread Stefan Ollinger
Try to reproduce the error with a small example. Am 22.08.2011 16:29, schrieb Gianluigi: Well, actually It's a massive class definition. There are 2 piece of that class that I suspect gives troubles... 1) a string with a json definition inside 2) This typed map: MapKeyItem, LookupRow where

How to show a User view in GWT app by typing in browser address bar

2011-08-22 Thread Xybrek
I have this gwt app which say, runs on http://mygwtapp.com/ (which is actually: http://mygwtapp.com/index.html) The application host a database of users, queried by searching usernames using the search view and results are shown in the user results view. Pretty useful enough. However I need

Aw: How to show a User view in GWT app by typing in browser address bar

2011-08-22 Thread Jens
You have to use redirect rules on your web server, e.g. nginx, apache, tomcat, etc. That way you can deliver your app's index.html for different URLs based on regular expressions. Once your server delivers your index.html you can do Window.Location.getPath() in your EntryPoint and then do

Editor framework and polymorphic types.

2011-08-22 Thread Aidan O'Kelly
Anyone have any tips on using polymorphic types within the editor framework? I have some paths of my object graph that hold polymorphic types, and their getters return the super type. How can I create the correct editor for these paths? Creating a ValueAwareEditorT where T is the super-type, and I

Re: Editor framework and polymorphic types.

2011-08-22 Thread Aidan O'Kelly
Actually I just found: http://stackoverflow.com/questions/7043760/using-gwt-editors-with-a-complex-usecase where bobv explains some ways to do it, so can ignore this question. On Mon, Aug 22, 2011 at 6:35 PM, Aidan O'Kelly aida...@gmail.com wrote: Anyone have any tips on using polymorphic types

Re: Aw: How to show a User view in GWT app by typing in browser address bar

2011-08-22 Thread Xybrek
On Tuesday, 23 August, 2011 01:08 AM, Jens wrote: You have to use redirect rules on your web server, e.g. nginx, apache, tomcat, etc. That way you can deliver your app's index.html for different URLs based on regular expressions. Once your server delivers your index.html you can do

Re: Funny behaviour in CellTable.

2011-08-22 Thread Jeff Chimene
On 08/22/2011 02:34 AM, jsg wrote: Hi Jeff, Given both our experience and your confirmation, I'm going to file a bug report in case this thread isn't being noticed. Thanks for your effort. On Aug 22, 12:46 am, jchimene jchim...@gmail.com wrote: Hi Julian, I was too glib in my earlier

What content management system are you using with GWT?

2011-08-22 Thread Nano Elefant
Hello folks, I'm curious what content management system is mostly used to embed GWT apps into. Are you using a CMS at all? If so please post the name and or a link. Thank you! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to

Re: JQuery like animation

2011-08-22 Thread Dimitrijević Ivan
You can include jQuery fraework in your application and use JSNI to invoke jQuery's animation function. public class Animation { public static int SPEED_SLOW = 1300; public static int SPEED_NORMAL = 800; public static int SPEED_FAST = 400; public static native void doFadeInAnimation(Element e,

Re: DoubleBox cell decimals positions formatting

2011-08-22 Thread fabio.bozzo
Can you help me with a little example code? :-) -- 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

Re: Funny behaviour in CellTable.

2011-08-22 Thread jsg
We haven't tried it in compiled mode yet, but it definitely doesn't work in dev mode for us. What is your code that returns a value? Neither the FieldUpdate.update() nor the ScheduledCommand.execute() expects a value back so I'm a little perplexed as to your context? And what is MyVariable?

Aw: Re: Aw: How to show a User view in GWT app by typing in browser address bar

2011-08-22 Thread Jens
Well it would, but your problem is your URL requirement. With standard GWT Places your URL would look like: http://mygwtapp.com/#UserPlace:unique username or db id or if you customize GWT Places you could achieve URLs like http://mygwtapp.com/#/user/unique username or db id. So as you can see

Re: JQuery like animation

2011-08-22 Thread Christian Goudreau
I remember seeing a race between Gwt-Query and jQuery with animations where Gwt-Query run that race, does anyone has de link to that video somewhere? 2011/8/22 Dimitrijević Ivan dim...@gmail.com You can include jQuery fraework in your application and use JSNI to invoke jQuery's animation

CellTree isLeaf() in practice

2011-08-22 Thread fabio.bozzo
I'm trying to display a tree of Categories, following the basic CellTree gwt examples. What I am stuck at is determining the leaf condition of a Category. A Category is-a-leaf when it hasn't children, right? So, here's my Category (I am using Objectify for appengine persistence): @Entity public

Re: Funny behaviour in CellTable.

2011-08-22 Thread Jeff Chimene
On 08/22/2011 01:13 PM, jsg wrote: We haven't tried it in compiled mode yet, but it definitely doesn't work in dev mode for us. Alright - at least that's better than what was happening on my side. The problem was that in dev mode, the NPE exception was correctly caught in the try/catch block.

GWT Date 'week of year' and 'day of week' problem

2011-08-22 Thread md
Hi! Due to the fact that the Java Calendar Class is (unfortunately) not compatible with GWT I’m having some problems: I need to generate a Date-Object out of the Information by “week of year” and “day of week”. With the Calendar-class my code looks like: Calendar cal =

GWTCanvas alternatives

2011-08-22 Thread AThinerCoin
I'm trying to create a chart using GWT. The chart has a grid and x and y axis labels and at least one line indicating status over time. The example code I got from a co-worker uses two classes the com.google.gwt.widgetideas.graphics.client package: GWTCanvas and Color. The documentation about

Re: Insane RPC Serialization Error.

2011-08-22 Thread Jambi
Try to reproduce the error with a small example. I would also recommend that. Are the classes KeyItem and LookupRow serializable? Do they implement an interface for serialization? Because they need to. check out this documentation:

AutoBean with JSONP

2011-08-22 Thread pash7ka
Hi! I'm trying to use AutoBean framework to transfer data from server to GWT App. GWT-RPC is not good for me, because i need to cache responces. So I'm trying to use JsonpRequestBuilder to fetch data and AutoBean framework for encoding/decoding. The simple (and not working) aproach is like this:

Re: GWTCanvas alternatives

2011-08-22 Thread Seth Hollyman
Generally you grab a Context2d object from the canvas, and most of the methods you identified are exposed there. See: http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/canvas/dom/client/Context2d.html -- You received this message because you are subscribed to the Google

Re: AutoBean with JSONP

2011-08-22 Thread pash7ka
I've found a solution: it's possible to convert Object to String on the client: --- JsonpRequestBuilder jrb; // = ... jrb.requestObject(url, new AsyncCallbackJavaScriptObject(){ public void onSuccess(String result) { JSONObject jsObj = new JSONObject(result);

CellTree: is anybody working on fixing it?

2011-08-22 Thread ussuri
Hello! In its current form, CellTree is unusable for anything but simplest use cases. For example, removing a selected node from its parent's ListDataProvider breaks the tree in the debug mode (the tree becomes unresponsive to the user); basically, almost any programmatic operation on a populated

Re: CellTree: is anybody working on fixing it?

2011-08-22 Thread Jim Douglas
I haven't tried CellTree myself, so I don't have an opinion on it one way or the other, but if it was me, I'd start by reviewing the list of open bug reports against it and starring the ones that seem to be affecting my app. http://code.google.com/p/google-web-toolkit/issues/list?q=CellTree

(perplexing + frustrating) CSS image not found

2011-08-22 Thread Shawn Brown
Hi, I have a compiled project deployed on AppEngine. Some .gif files are not found by GWT. I am perplexed. The CSS file is found. Other .gif images used by the CSS file are found. Looking at DevTools in Chrome, I see which ones are not found. Clicking on the link, the server finds them and

Warning while add a widget to absolute panel

2011-08-22 Thread Charan
Warning: com.google.gwt.user.client.ui.AbsolutePanel descendants will be incorrectly positioned, i.e. not relative to their parent element, when 'position:static', which is the CSS default, is in effect. One possible fix is to call 'panel.getElement().getStyle().setPosition(Position.RELATIVE)'.

Error while compiling gwt module ?.

2011-08-22 Thread suresh babu
Hi, I am using *Gwt 2.3.0* and Eclipse Version: 3.6.1 IDE, when I try to compile my module I am getting following error: Compiling module com.veersoft.gwt.AgeingReport Validating newly compiled units [ERROR] Errors in

JUnit testcase with SmartGwt

2011-08-22 Thread Raja Shekhar
Hi, i'm using SmartGwt for xpath. i'm able to execute it successfully in webapplication. i have written a GWTTestcase to test this. when i run that testcase, it is failing in runtime by throwing runtime exception. could someone please help me resolving this issue here is the exception info:

RequestFactory Objectify One to One Relationship

2011-08-22 Thread MaximeMularz
Hello, I've a problem with RequestFactory, Objectify and One to One RelationShip. The problem is at the bottom of this post. Entities : Class Owner : public class Owner extends DatastoreObject { private String name; transient @Transient private Animal animal;

[gwt-contrib] Re: Add bootstrap tests (issue1526804)

2011-08-22 Thread rchandia
On 2011/08/20 04:04:50, Nick Chalko wrote: LGTM http://gwt-code-reviews.appspot.com/1526804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] [google-web-toolkit] r10559 committed - Add bootstrap tests...

2011-08-22 Thread codesite-noreply
Revision: 10559 Author: gwt.mirror...@gmail.com Date: Mon Aug 22 09:48:40 2011 Log: Add bootstrap tests 159 of 257 (61.87%) Pass with 32 Failures and 7 Errors. Review at http://gwt-code-reviews.appspot.com/1526804 Review by: rchan...@google.com

[gwt-contrib] Implements * globbing for RequestFactory with(), the simpler half of (issue1520808)

2011-08-22 Thread rjrjr
Reviewers: bobv, Description: Implements * globbing for RequestFactory with(), the simpler half of the proposal in http://code.google.com/p/google-web-toolkit/issues/detail?id=6697 Also fixes bugs exposed in using null members in collections Please review this at

[gwt-contrib] Re: Implements * globbing for RequestFactory with(), the simpler half of (issue1520808)

2011-08-22 Thread rjrjr
On 2011/08/23 00:52:49, rjrjr wrote: Ready for review http://gwt-code-reviews.appspot.com/1520808/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors

[gwt-contrib] Changes setters/clearers com.google.gwt.dom.client.Style to return Style instead of void (issue1530803)

2011-08-22 Thread larsenje
Reviewers: jlabanca, rjrjr, Description: Changes Style to return itself instead of returning void. issue 6717 http://code.google.com/p/google-web-toolkit/issues/detail?id=6717 Please review this at http://gwt-code-reviews.appspot.com/1530803/ Affected files:

[gwt-contrib] Re: Changes setters/clearers com.google.gwt.dom.client.Style to return Style instead of void (issue1530803)

2011-08-22 Thread Ray Ryan
No good. This defeats compiler optimizations big time. We don't like void returns either, but we like big fat slow apps even less. On Aug 22, 2011 7:50 PM, larse...@gmail.com wrote: Reviewers: jlabanca, rjrjr, Description: Changes Style to return itself instead of returning void. issue 6717

Re: [gwt-contrib] Re: Changes setters/clearers com.google.gwt.dom.client.Style to return Style instead of void (issue1530803)

2011-08-22 Thread Daniel Bell
Just out of curiosity, does this have to defeat the compiler optimisations? Isn't it known at compile time that those setters will always return the same Style instance? In that sense, from the compiler's point of view, isn't the situation with the setter returning the Style the same as the

Re: [gwt-contrib] Re: Changes setters/clearers com.google.gwt.dom.client.Style to return Style instead of void (issue1530803)

2011-08-22 Thread John Tamplin
On Tue, Aug 23, 2011 at 12:17 AM, Daniel Bell daniel.r.b...@gmail.comwrote: Just out of curiosity, does this have to defeat the compiler optimisations? Isn't it known at compile time that those setters will always return the same Style instance? In that sense, from the compiler's point of