Coverage tools for GWT/JUnit?

2008-12-31 Thread fker...@gmail.com
Hi! Has anybody experimented with coverage tools for GWT/Junit? I assume the problem could be easier for the server part (pure Java) than for the client part (Java compiled into JavaScript) but anyway... any suggestions? Thanks, and best regards, Federico Kereki --~--~-~--~~---

Writing Plasmoid with GWT?

2009-03-24 Thread fker...@gmail.com
Since Plasmoids can be written in JavaScript... can you develop a Plasmoid with GWT? If so, how? Any pointers? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send em

Can you display a movie (video) with GWT?

2009-04-21 Thread fker...@gmail.com
A simple question: can you display video in a GWT application? Thanks! --~--~-~--~~~---~--~~ 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

Playing audio files in GWT

2009-04-21 Thread fker...@gmail.com
I wanted to be able to play sound files in a GWT application. Googling around, I found gwt-voices at http://code.google.com/p/gwt-voices/ but I'd like to know if this is the best way to go, or if am I missing something? How do you play audio in GWT? Thanks! --~--~-~--~~~-

A strange setting for MVP

2009-10-24 Thread fker...@gmail.com
I have been studying http://blog.appenginefan.com/search/label/Schluesselmeister application, and that got me to thinking about MVP... In that example, "Display" is about the same as "View", and "Controller" is like "Presenter". You inject the View to the Presenter through its constructor... but t

Data aware drop down widgets with MVP ?

2009-10-24 Thread fker...@gmail.com
Hi! Thinking about MVP... how would you implement a data aware drop down widget? Say you want to let the user enter a country code in the View. You could use a TextBox, but a drop down list would be more usable. How would the widget get its values? Should the Presenter know about the widget type,

EasyMock for GWT + MVP ?

2009-10-24 Thread fker...@gmail.com
I remember EasyMock didn't work for GWT, because it needed reflection, which wasn't available for client side programming. However, I'm doing MVP tests, so the code need not run in hosted mode, so EasyMode should run... right? However, I'm getting the following error -- can somebody point me in th

Re: A strange setting for MVP

2009-10-25 Thread fker...@gmail.com
On Oct 25, 9:22 am, Thomas Broyer wrote: > > I'd rather use the following, though I understand why the > LoginView.Presenter interface could help with mocking (it's easier to > mock the view then, because you don't have to mock HasClickHandlers > and eventually HandlerRegistration and ClickEvent)

Re: EasyMock for GWT + MVP ?

2009-10-25 Thread fker...@gmail.com
On Oct 25, 9:11 am, lowecg2004 wrote: > Your error looks like you're using the EasyMock class extensions and > are missing cglib jars from your build path. > > As it happens, I recently produced a getting started with MVP and unit > testing with EasyMock article which might be of use: > > http://

EclEmma update/fix?

2009-10-26 Thread fker...@gmail.com
Hi! I'm trying out EclEmma with GWT, and though it runs perfectly well with JUnit tests, the available patch at http://code.google.com/p/google-web-toolkit/source/browse/tools/redist/emma/README.txt is com.mountainminds.eclemma.core_1.3.2.jar, but the latest EclEmma release has a newer file: com.m

Re: EasyMock for GWT + MVP ?

2009-10-26 Thread fker...@gmail.com
On Oct 25, 5:26 pm, lowecg2004 wrote: > As Arthur said, calling GWTMockUtilities.disarm() will prevent that > error (that was in part 2 of my article :) > > As for needing asm-attrs.jar, I guess try it - any > NoClassDefFoundError that looks asm related then that will answer your > question... H

RPC facade for load time optimizing?

2009-10-31 Thread fker...@gmail.com
Googling around, I just found a post from a couple of years ago, which suggested (see "#1 Reduce the number of remote services" at the link below) using a facade for multiple RPC, in order to drive startup time down... has anybody tried this? Does it still make sense? http://robvanmaris.jteam.nl/

Click( ) not firing in GWTTestCase?

2009-11-01 Thread fker...@gmail.com
I'm trying out GWT 2.0 and in a GWTTestCase I wrote lv.loginButton.click(); and "lv" is a LoginView, where I defined: loginButton = new Button("Log in"); loginButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { loginCallback.onSuccess(null

Re: Click( ) not firing in GWTTestCase?

2009-11-02 Thread fker...@gmail.com
On Nov 2, 7:35 am, Thomas Broyer wrote: > It might very well be a bug in HtmlUnit if that's the runstyle you're > using to run your tests (it's the default one in MS1 and MS2), but > according to this test (from 2.0.0-ms1) it should work (the test isn't > annotated with > @DoNotRunWith(Platform

Re: Click( ) not firing in GWTTestCase?

2009-11-02 Thread fker...@gmail.com
On Nov 2, 9:24 pm, "fker...@gmail.com" wrote: > On Nov 2, 7:35 am, Thomas Broyer wrote: > > > It might very well be a bug in HtmlUnit if that's the runstyle you're > > using to run your tests (it's the default one in MS1 and MS2), but > > accor

Re: Click( ) not firing in GWTTestCase?

2009-11-02 Thread fker...@gmail.com
> Could you show us the code of the failing test (around line 51) ? I cleaned up and simplified the code as much as possible. I created a boolean attribute, wasCalled. I created a callback; in it, I set wasCalled=true. (So, this is a poor man's mock object...) The code up to the failure is:

History iframe not needed in GWT 2.0?

2009-11-03 Thread fker...@gmail.com
I'm trying out GWT 2.0 MS2, and I just hit an unexpected behavior: I removed the __gwt_historyFrame iframe that's used for History management to check what error message I'd get -- but Alt+Backspace seemingly kept working!? I tried out some Hyperlinks, and everything (back, forward) runs OK... am

A third axis?

2009-11-26 Thread fker...@gmail.com
A question about deferred binding... If I define a new property in the gwt.xml module file; say, and an appropriate generator that will get the time of the day, and generate the property value accordingly. Of course, I would have some deferred binding rules that would replace some classes wi

Some gwt.xml elements, unneeded in GWT 2.0?

2009-11-27 Thread fker...@gmail.com
Are the and elements in the gwt.xml file still needed with GWT 2.0? If I understand it correctly, servlet definitions go in the web.xml file, and the public directory is war/WEB-INF, so are the gwt.xml definitions needed, or are they a legacy of older GWT versions? -- You received this message

used to complete java.lang.Math?

2009-11-29 Thread fker...@gmail.com
I know the element can be used to add unimplemented classes to the JRE, but can you use it to add a missing static method? For example, say you need the "static double cbrt(double a)" java.lang.Math method that calculates the cube root of a. How would you go about implementing that, if it's actua