Re: Unit testing classes that depends on RequestFactory

2011-09-02 Thread Dominik Steiner
I'm pretty new to RF but by reading through various posts regarding the testing of RF i came up with the following solution that seems to work well so far with spring First an abstract test case that your unit test would extends @TransactionConfiguration(defaultRollback = false)

Re: Requestfactory : best practice for persisting updates with Locator

2011-09-01 Thread Dominik Steiner
Perhaps a small test case might better explain what problem i'm facing with the delta's send from request factory to the locator class (the fire() method is in order to do synchronous testing of the requests sent) @Test public void testPersistAndUpdate() throws Exception {

Requestfactory : best practice for persisting updates with Locator

2011-08-31 Thread Dominik Steiner
Hi, I finally did a first try at RF and am wondering what is the best way to implement the persist method on a Locator class in order to deal with only the deltas send from the client? As right now my persist(T objectToPersist) method on the Locator is doing a create if the object has no id

Re: Touchscreen laptops - access touch events?

2010-06-06 Thread Dominik Steiner
Thanks for your answers, it confirms then what I was thinking. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to

Touchscreen laptops - access touch events?

2010-06-05 Thread Dominik Steiner
Hi there, is there a way to get touch events from touchscreen laptops or desktop computers? Am I right that only the iphone and android browser support touch events so far? So that it is not possible to access those touch events from the touchscreen computers? Thanks Dominik -- You received

OOPHM memory leak?

2010-03-24 Thread Dominik Steiner
Hi there, I'm using eclipse 3.5 on Mac OSX with the google eclipse plugin and GWT 2.0. What I see is that every time I reload my gwt app that I'm debugging using the Web Application launch configuration from the plugin and OOPHM in Firefox 3.5, the memory usage of the java process that is being

Re: OOPHM memory leak?

2010-03-24 Thread Dominik Steiner
Thanks kozura for your reply, here with me I see an increase of around 40 MB on each reload, and my app already starts with java allocating 200 MB on the first load. Not sure if the project size correlates with the amount of memory that leaks, here with me I have around 700 classes on my

Re: Alternative for Class.isAssignableFrom() ?

2010-02-22 Thread Dominik Steiner
I added an issue to the issue tracker if you also are in need of that method and want to star it http://code.google.com/p/google-web-toolkit/issues/detail?id=4663 Dominik On 19 Feb., 09:09, Dominik Steiner dominik.j.stei...@googlemail.com wrote: @Chris, yes, thanks for the tip, I already

Re: Alternative for Class.isAssignableFrom() ?

2010-02-19 Thread Dominik Steiner
can make do with this? Chris On Feb 19, 3:58 am, Dominik Steiner dominik.j.stei...@googlemail.com wrote: Hi there, I'm trying to implement an event bus that will receive register listeners like this public T extends Event void registerListener(ClassT eventClassname, EventListenerT eventListener

Alternative for Class.isAssignableFrom() ?

2010-02-18 Thread Dominik Steiner
Hi there, I'm trying to implement an event bus that will receive register listeners like this public T extends Event void registerListener(ClassT eventClassname, EventListenerT eventListener); (Event is a custom interface) what i would like then to achieve would be to be able to fire an event

MVP - interface that implements setVisible()

2010-01-14 Thread Dominik Steiner
Hi there, I'm wondering how you best handle the situation that in your Presenter you need to call setVisible() on some UI Object returned via the Display interface? I could of course just write something like this in the Presenter interface Display{ Widget getOkButton(); } but that would

deRPC - any documentation available?

2010-01-13 Thread Dominik Steiner
Hi, I've been reading about deRPC on some other posts, but so far haven't been able to find any documentation about this new RPC implementation, can someone point me into the right direction? And what is the opinion about deRPC? Is it ready to be used? What are the advantages over the former

Re: deRPC - any documentation available?

2010-01-13 Thread Dominik Steiner
Thanks Chris for the quick reply, that was exactly what i needed. Hi, some documentation is at the bottom of http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group.

Re: no border on a dialogBox (macosx,netbeans)

2009-11-24 Thread Dominik Steiner
Did you try to use css to format your dialog box? Formulaire fenetreAjout = new Formulaire(); fenetreAjout.addStyleName('my-dialog-box'); and then in the css file .my-dialog-box{ border:1px solid black; } HTH Dominik On 22 Nov., 07:29, lolveley lolve...@yahoo.fr wrote: hi, I copied a

Re: UnmodifiableList Serialization

2009-11-12 Thread Dominik Steiner
Hi Frederico, how about before sending back the list creating an ArrayList and iterating through the list you want to return in order to then fill that ArrayList and return that? HTH Dominik On Nov 11, 1:03 pm, fedy2 defav...@gmail.com wrote: Hi, I'm using GWT 1.5.3 and I'm trying to send a

Re: how to use a server class in client code

2009-11-11 Thread Dominik Steiner
Sanjith, you can move the model classes to anywhere under the client folder, the client/domain example is just what i use here with me. And then the server will reuse those classes on server side where he will read the jdo annotations. Let me know if it works for you Dominik

Re: how to use a server class in client code

2009-11-10 Thread Dominik Steiner
Sanjith, I'm using GWT on GAE and I also have my data model classes with JDO annotations. I have those classes reside under client/domain and GWT 2.0 handles/ignores those JDO related annotations well and i don't have to use Dozer or another framework in order to be able to use those classes on

Re: How can I remove a FlexTable?

2009-10-17 Thread Dominik Steiner
how about using the removeFromParent() method, so something like listado.removeFromParent(); should do the trick HTH Dominik On Oct 16, 8:31 am, nacho vela.igna...@gmail.com wrote: Hi, i cant remove a FlexTable. This is my code: In my html div id=listado/div In my Java FlexTable

Re: GWT Cross-domain problem

2009-10-15 Thread Dominik Steiner
or you could use cross-site JSON requests http://code.google.com/intl/de/webtoolkit/tutorials/1.6/Xsite.html HTH Dominik On Oct 14, 8:53 am, Bakul bakul.ku...@gmail.com wrote: GWT RPC call must be served from the same server from where GWT generated script initially served on the browser.

Re: Horizontal Panel isn't displaying

2009-10-15 Thread Dominik Steiner
Hi Brendan, for such problems I would recommend using GWT 2.0 and the OOPHM so that you can debug your application from within FF for example and use FireBug to inspect your HorizontalPanel (which will be a table in the DOM) and look with Firebug why the anchors are not visible in it. (which

Re: com.google.gwt.user.client.rpc.SerializationException: java.lang.reflect.InvocationTargetException

2009-10-15 Thread Dominik Steiner
you should check that all of the types of your properties insides your DTO are also serializable and have an empty default constructor. HTH Dominik On Oct 13, 11:45 pm, Satya Lakshminath lakshminat...@gmail.com wrote: Hi, I am too getting a similar problem like was reported above I am

Re: RichText: inconsistent output on different browsers

2009-10-09 Thread Dominik Steiner
yes, i can confirm this too, pressing enter in IE inserts a p whereas on FF and Safari no p is inserted. Would wish to see some coherent behaviour here too. Dominik On Oct 8, 3:29 am, Martin Trummer martin.trum...@24act.at wrote: I just noticed, that the RichtText editor produces different

Re: rpc serialization problem

2009-10-08 Thread Dominik Steiner
Hi, I'm using JDO with App Engine and GWT and sending the domain objects with the JDO tags via RPC is working fine, so not sure if the problem is JPA? HTH Dominik On Oct 7, 3:48 am, Lubomir lubomir.zrne...@gmail.com wrote: Hi, I was experimenting with it a bit as well and it seems to me that

Re: GWT Performance issue in IE browser.

2009-10-07 Thread Dominik Steiner
pal, you could try using IE8 and the profiler it is shipping with to determine which methods are being called (compiling your code first with -pretty) and which one take more time than others. In our project we thus found out that IE was behaving bad on equals() and equalsIgnoreCase() methods

Re: OOPHM GWT 2.0 Milestone 1 on Mac

2009-10-07 Thread Dominik Steiner
Hi Christian, I moved to the ms1 yesterday but had been playing around with OOPHM with a version that i built from the trunk before and also got into problems when FF 3.5 came out and broke the OOPHM mode that i was using. Now yesterday with the ms1 release and the plugin already installed i

Re: GWT PHP HTML 5 interaction

2009-10-07 Thread Dominik Steiner
on our project our GWT frontend (running on tomcat) was talking with the php backend (on another server) via hessian protocol and it was working good. HTH Dominik On Oct 6, 11:26 am, Takalov Rustem takalov.rus...@gmail.com wrote: Hey Guys, I have been researching on GWT and PHP integration a

Re: Announcing GWT 2.0 Milestone 1

2009-10-07 Thread Dominik Steiner
Hi Jospeh, did you consider to install the Google Plugin for eclipse? You will even then run into problems, but reading through this post http://groups.google.com/group/google-web-toolkit/browse_thread/thread/527518f17e7a484e/28e2bbd2786143f3 you should be up and running pretty soon. HTH

Re: GWT PHP HTML 5 interaction

2009-10-07 Thread Dominik Steiner
, how the hessian protocol is basically operate the data from the PHP/Apache and GWT/Tomcat. More details appreciated. Regards, R On Wed, Oct 7, 2009 at 11:27 AM, Dominik Steiner dominik.j.stei...@googlemail.com wrote: on our project our GWT frontend (running on tomcat) was talking

Re: Announcing GWT 2.0 Milestone 1

2009-10-06 Thread Dominik Steiner
Congratulations! That was way faster than I expected, thanks for getting this release out that early. One remark: seems like the eclipse plugin is not accepting the current release with the message after selecting the gwt-dev-ms1 folder that gwt-dev-mac.jar (in my case) is missing. So I guess

Re: Announcing GWT 2.0 Milestone 1

2009-10-06 Thread Dominik Steiner
://groups.google.com/group/google-web-toolkit/browse_thread/thread/527518f17e7a484e/28e2bbd2786143f3 - Chris On Tue, Oct 6, 2009 at 8:32 PM, Dominik Steiner dominik.j.stei...@googlemail.com wrote: Congratulations! That was way faster than I expected, thanks for getting this release out

Re: Download of GWT 1.7 keeps failing

2009-09-30 Thread Dominik Steiner
try using a download manager Dominik On 30 Sep., 08:23, R fiprojects@gmail.com wrote: Anyone else suffering this? My ISP is fine - I've downloaded Sun Java SDK just fine, and Apache ANT, but I've had three attempts downloading GWT and the download breaks and the zip file is corrupted.  

Re: Guardar imagen

2009-09-30 Thread Dominik Steiner
Hola, si el problema es la parte del servidor, quizas esa clase te puede ayudar import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import

Re: Hosted Mode very slow on Mac

2009-09-30 Thread Dominik Steiner
i'm running gwt with eclipse and on osx leopard too and haven't had any problems with it for years, so i would guess that the problem will be hidden somewhere in your code. You might try to uncomment temporarily parts of your code that you could think problematic and see if that fixes it and thus

Re: Character.isWhitespace alternative? (whitespace check)

2009-09-29 Thread Dominik Steiner
Hi Ed, for performance reason I would definitely recommend you to actually use regex instead of equals or equalsIgnoreCase methods of the String class. Especially IE has really performance problems with former ones. Concerning heavy, I would actually say that it is much cleaner to use

Re: How to initiate a event inside a KeyPressHandler

2009-09-29 Thread Dominik Steiner
, Dominik Steiner dominik.j.stei...@googlemail.com wrote: Hi ojay, did you try to make your KeyListener an anonymous class so that you can reference from within it the formList and then change the selection of the ListBox by using the method formList.setSelectedIndex(int index); HTH Dominik

Re: Character.isWhitespace alternative? (whitespace check)

2009-09-28 Thread Dominik Steiner
did you try to use the regex method boolean matches = someString.matches(\\S); HTH Dominik On 28 Sep., 13:39, Ed post2edb...@hotmail.com wrote: What is the correct way to check for a white space character? This is done by the method Character.isWhitespace(char) but not supported by GWT.

Re: How to initiate a event inside a KeyPressHandler

2009-09-26 Thread Dominik Steiner
Hi ojay, did you try to make your KeyListener an anonymous class so that you can reference from within it the formList and then change the selection of the ListBox by using the method formList.setSelectedIndex(int index); HTH Dominik On 25 Sep., 17:07, ojay oliver.ja...@googlemail.com wrote:

Re: can i cancel request?

2009-09-26 Thread Dominik Steiner
Hi Henrique, I know that if you would use RPC you could be canceling the com.google.gwt.http.client.Request.cancel(); but as you have to upload a file and using a FormPanel probably I don't see any other way than handling the canceling on GWT side, ie set a variable isCanceled = true and when

Re: datanucleus management

2009-09-26 Thread Dominik Steiner
Hi Joe, try the url http://localhost:8080/_ah/admin which will bring up the admin console where you can use the Data Viewer in order to view your persisted entities and also are able to delete them from there HTH Dominik On 25 Sep., 18:10, Joseph Arceneaux joe.arcene...@gmail.com wrote: Is

Re: formpanel

2009-09-26 Thread Dominik Steiner
Did you try debug it with Firebug and the network panel? there you can see when the post is being dispatched and the answer of the post is also being output in that view, so that when an error occured on the server you can see it in the answer of the post HTH Dominik On 25 Sep., 17:09, John

Re: Cookies and RPC

2009-09-24 Thread Dominik Steiner
statements. So, I guess I was asking if this code has to be on the client side, server side, or both? Thanks! Tom On Sep 23, 11:01 pm, Dominik Steiner dominik.j.stei...@googlemail.com wrote: Hi Tom, not sure I understand yourcookiequestion, but in GWT you can query

Re: Cookies and RPC

2009-09-23 Thread Dominik Steiner
Hi Tom, not sure I understand your cookie question, but in GWT you can query for cookies using the class com.google.gwt.user.client.Cookie and there have a look at the method /** * Gets the cookie associated with the given name. * * @param name the name of the cookie to be

Re: DOM is not properly working with mozilla

2009-08-31 Thread Dominik Steiner
Hi Vruddhi, I would suggest trying to do setting the background color of a button from within a CSS file and just set a classname from within GWT. I could not see why your code is not working, as one class is missing from what you sent, but I would also recommend if you are using labels like

Re: how to remove scroll bar around Disclosure Panel

2009-08-31 Thread Dominik Steiner
Hi KR, you might want to consider CSS to do that by adding overflow:hidden to the element that shows the scroll bars HTH Dominik On 30 Aug., 07:52, enorm enor...@gmail.com wrote: Hi, all I'm making a daemon according to gwt examples. I made a Disclosure Panel  then add it to Horizontal

Re: GWT testing without GWTTestCase and the DOM

2009-08-24 Thread Dominik Steiner
Hi Eugen, I would recommend you to read this post http://robvanmaris.jteam.nl/2008/03/09/test-driven-development-for-gwt-ui-code/ There's currently also the MVP (not MVC) design approach being discussed on this forum, you might also be able to use that for testing with normal Junit tests and

Page flickering on FF 3.5

2009-08-21 Thread Dominik Steiner
Hi there, we have a web app based on GWT that you can see at http://beta.homeprodigy.com/index.php?main_page=map this page is now flickering when you load it with FF 3.5. On FF 3.0 it was working fine. My only guess is that it might have to do something with

Re: RichTextArea on IE7 insert p after enter typed

2009-08-20 Thread Dominik Steiner
browers? Thanks for the reply. I think it also cause double line spacing On 18 Aug, 21:04, Dominik Steiner dominik.j.stei...@googlemail.com wrote: Hi there, why doesRichTextAreaformat the text on IE7 with a p when you type enter? On FF and Safari typing enter just inserts a br

[gwt-contrib] How can I write a css rule with leading - for CssResource? (eg -moz-box-sizing:border-box;)

2009-08-19 Thread Dominik Steiner
Hi there, seems like a easy question and I hope that someone can point me into the right direction, how can i write the css rule -moz-box- sizing:border-box; so that the CssResource parser accepts it? I tried -moz-box-sizing:literal(border-box); or literal(-moz-box-sizing:border-box); both

[gwt-contrib] Re: How can I write a css rule with leading - for CssResource? (eg -moz-box-sizing:border-box;)

2009-08-19 Thread Dominik Steiner
Thanks Stefan for the fast reply, I tried it and it works! On 19 Aug., 16:40, Stefan Haustein haust...@google.com wrote: On Wed, Aug 19, 2009 at 9:26 PM, Dominik Steiner dominik.j.stei...@googlemail.com wrote: Hi there, seems like a easy question and I hope that someone can point me

RichTextArea on IE7 insert p after enter typed

2009-08-18 Thread Dominik Steiner
Hi there, why does RichTextArea format the text on IE7 with a p when you type enter? On FF and Safari typing enter just inserts a br into the text and looks more what you would expect after typing enter or line break. Any ideas if this is a bug or a feature? Thanks Dominik

Re: Regex issue with IE

2009-08-14 Thread Dominik Steiner
Hi davis, I'm using the following regex to match addresses in the format of 123 west road public static final String ADDRESS_REGEX = [0-9]+\\s*\\D+; and it works fine on IE too. Note the double slash before s and D So I don't think that the double slash is the

gwt:clipper a print killer for IE?

2009-07-30 Thread Dominik Steiner
Hi there, I have the feeling that the gwt:clipper tag that is used on IE7/IE8 for the image bundle I guess is breaking printing of GWT pages on IE. I also have the feeling as that gwt:clipper tag is new, that means we moved to gwt 1.7 recently and that is when I first saw that tag and when

Re: compile gwt svn from source

2009-06-26 Thread Dominik Steiner
i had the same problem and it turned out that i had to update my svn to a newer version (1.6.3), for mac i used the dmg package at http://www.collab.net/downloads/community/ Dominik On 22 Jun., 09:21, waf wlod...@gmail.com wrote: I had similar problem and the following

Real estate website using GWT

2009-05-01 Thread Dominik Steiner
Hi there, right now we are building a leading real estate website for all of Northern Texas which is using GWT to first include some components on php side as you can see at www.homeprodigy.com where the search box on the top right is fully built with GWT. And we have a 100% GWT part of the

Re: Problems with ImageBundle in IE8 when not in compatibility mode

2009-04-29 Thread Dominik Steiner
Thanks for the tip Thomas, just to amend/aggragate something i found out that you have to add the meta tag to the head section before any other elements and the meta tag i added was meta http-equiv=X-UA-Compatible content=IE=EmulateIE7 HTH Dominik On 15 Apr., 03:56, Thomas Broyer

Re: Load gwt module before image are loaded on IE7

2009-04-23 Thread Dominik Steiner
Lovich vlov...@gmail.com wrote: Try putting your script for nocache.js in your body instead of head On Wed, Apr 15, 2009 at 11:59 AM, Dominik Steiner dominik.j.stei...@googlemail.com wrote: Ok, i must have understand something wrong then, but from the wiki i read the last four sequences

Re: Memory Leak in IE7

2009-04-23 Thread Dominik Steiner
I can recommend to everybody with performance problems on IE6 or IE7 to download IE8 and use it's javascript profiler in order to check your js calls and time they take in order to see bottlenecks. For example I found out that in my code (a big application) a lot of equalsIgnoreCase() calls were

Re: Load gwt module before image are loaded on IE7

2009-04-15 Thread Dominik Steiner
with that documentation. On Wed, Apr 15, 2009 at 9:13 AM, Dominik Steiner dominik.j.stei...@googlemail.com wrote: Thanks Salvador for pointing out the interesting link above. I read through it and I must admit that I found an error in it, namely exactly my problem on IE7, that the img

Load gwt module before image are loaded on IE7

2009-04-14 Thread Dominik Steiner
Hi, I have a page that contains a lot of images and some of those images take a long time to load (in total like 1 min) I have searched the forum and found this similar post

Re: Load gwt module before image are loaded on IE7

2009-04-14 Thread Dominik Steiner
) or use the Image widget (equivalent to the img in HTML) to add your images using Javascript. On Tue, Apr 14, 2009 at 7:45 PM, Jeff Chimene jchim...@gmail.com wrote: On 04/14/2009 04:31 PM, Dominik Steiner wrote: Thanks Jeff for your response, the problem is that the images are within

Re: StackOverflowError with OOPHM GWTCompiler

2008-10-16 Thread Dominik Steiner
I get the same StackOverflowError but on a version build from the 1.5.2 trunk on the 30th of September. I also have a big application and I get that error when i'm launching the GWT shell and then try to Compile/Browse. (on Windows XP SP2) On a mac leopard machine with the same build for mac I

Re: StackOverflowError with OOPHM GWTCompiler

2008-10-16 Thread Dominik Steiner
meant -Xss (-Xmx is heap space). On Thu, Oct 16, 2008 at 3:06 PM, Jason Essington [EMAIL PROTECTED] wrote: are you guys increasing the stack space for the compiler? -Xmx and - Xms jvm args? -jason On Oct 16, 2008, at 11:36 AM, Dominik Steiner wrote: I get the same StackOverflowError

Re: Invalid version number null when using the hosted mode

2008-10-01 Thread Dominik Steiner
Ok, i have something to add here too. I had the same issue and my maven build was using the correct new gwt vars, but i wasn't able to connect to a remote url as i was before moving to gwt 1.5.2. What helped for me was to load the hosted.html url directly in the gwt shell, so something like