Re: IDEs, Dagger2 and annotationProcessorPaths

2016-12-17 Thread Raphael André Bauer
Absolutely right - it's not a Dagger2 issue at all. As dumb user of
Dagger2 it's nevertheless unfortunate that the tooling aka IDE / Maven
integration is not (yet) up to the job... I mean - Dagger2 was
released 1.5 years ago...

Best,

Raphael

On Sat, Dec 17, 2016 at 9:50 AM, Thomas Broyer  wrote:
> Nothing to do with Dagger proper, it's a Maven and IDE integration issue. 
> annotationProcessorPaths of maven-compiler-plugin is quite new (and with 
> issues on its own) and it's not really surprising that IDEs haven't caught up 
> yet.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: IDEs, Dagger2 and annotationProcessorPaths

2016-12-16 Thread Raphael André Bauer
Thanks for all the hints. maven-processor-plugin seems to work with
the IDEs, but I will have to do some more testing. A bit unfortunate
that tooling for Dagger2 does not work out of the box...

Cheers,

Raphael

On Thu, Dec 15, 2016 at 8:37 PM, Lars  wrote:
> Thanks for the answer! I tried to put it to the Dagger Discuss group, but 
> without luck/access to post. But may could give stackoverflow a try...
>
> --
> You received this message because you are subscribed to the Google Groups 
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


IDEs, Dagger2 and annotationProcessorPaths

2016-12-14 Thread Raphael André Bauer
Hi,


I am just playing around with GWT 2.8 and Dagger 2.8. I added Dagger 2
via the compiler plugin and the Dagger compiler to
annotationProcessorPaths. When running mvn compile on the command line
everything is fine. The generated DaggerMyAppComponent is generated
properly and can be used in the source code. I can also use everything
in GWT. Awesome.

So far so good. Unfortunately neither Netbeans 8.2 nor Eclipse Neon
recognize the generated Dagger files. I have those wonderful red lines
below autogenerated components. And even though java and class files
are present in the target directory - the IDEs do not want to
recognize those classes. Clean compile in the IDEs does not seem to
work.

I am just wondering whether I am the only one with that problem, or
how others solved that issue regarding the IDE integration.


Thanks!


Raphael

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SuperDevMode automatic recompile does not work with external server

2016-04-23 Thread Raphael André Bauer
Ah! - there is another gwt plugin :) Good to know! My missing link was
that I did not know that SuperDevMode creates a special nocache.js
file. Once I knew that it was simple to fix.

I'll try your plugin asap...

Thanks!

Raphael

On Fri, Apr 22, 2016 at 5:56 PM, Thomas Broyer  wrote:
> Assuming the Mojo plugin and gwt:run-codeserver; you'll need to set the
> launcherDir property:
> https://gwt-maven-plugin.github.io/gwt-maven-plugin/run-codeserver-mojo.html#launcherDir
> If using gwt:run, then AFAICT it'd be hostedWebapp:
> https://gwt-maven-plugin.github.io/gwt-maven-plugin/run-mojo.html#hostedWebapp
> (note: you can't really trust the documentation, as many properties are
> shown for goals where they don't apply).
> …or you could possibly switch to my plugin:
> https://tbroyer.github.io/gwt-maven-plugin/
>
>
> On Friday, April 22, 2016 at 3:43:21 PM UTC+2, Raphael Bauer wrote:
>>
>> That did the trick. Now it's working... Thanks Jens! I did not know
>> that there is a special SuperDevMode nocache.js file needed.
>>
>> Now things are a bit clearer. We used
>> ../ninja/src/main/java/assets/gwt
>> (aka gwt.war parameter) so that gwt compiled its js sources into the
>> assets folder of our server.
>>
>> With the old devmode this worked nicely (as I said - the project was
>> not touched for five years...).
>>
>> SuperDevMode does not seem to respect gwt.war when compiling its
>> superdevmode.nocache.js. And that is the problem. The special
>> superdevmode.nocache.js gets created in the target folder of the
>> original gwt project. Our Java server knows nothing about it...
>>
>> Is there a good workaround? Like telling SuperDevMode where to put its
>> nocache files to? If not I have to integrate that into the build of
>> our java dev server I guess...
>>
>>
>> Thanks!
>>
>> Raphael
>>
>> On Fri, Apr 22, 2016 at 12:47 PM, Jens  wrote:
>> > First start SDM, then deploy your war to your external server. SDM
>> > generates
>> > a special *.nocache.js file that enables automatic recompilation. You
>> > have
>> > to make sure that this special version is deployed.
>> >
>> > -- J.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "GWT Users" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to google-web-toolkit+unsubscr...@googlegroups.com.
>> > To post to this group, send email to
>> > google-web-toolkit@googlegroups.com.
>> > Visit this group at https://groups.google.com/group/google-web-toolkit.
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SuperDevMode automatic recompile does not work with external server

2016-04-22 Thread Raphael André Bauer
Hmm. I just tried some options of the maven plugin but that did not
work. But it's not important anyway. I integrated build step into our
java server that copies over the nocache.js files of the gwt project
into its assets folder. That works for both the superdevmode and the
regular ones (when deploying to production). File closed. SuperDevMode
now works like a charm.

Thanks for the great help Jens!


Best,

Raphael

On Fri, Apr 22, 2016 at 4:22 PM, Jens  wrote:
>
>> SuperDevMode does not seem to respect gwt.war when compiling its
>> superdevmode.nocache.js. And that is the problem. The special
>> superdevmode.nocache.js gets created in the target folder of the
>> original gwt project. Our Java server knows nothing about it...
>>
>> Is there a good workaround? Like telling SuperDevMode where to put its
>> nocache files to? If not I have to integrate that into the build of
>> our java dev server I guess...
>
>
> I am not really familiar with the maven plugins for GWT but DevMode -war
>  will be forwarded to CodeServer -launcherDir  and the launcherDir
> is the location CodeServer writes the special *.nocache.js file and all
> public resources referenced by GWT modules (using the  tag) to. So
> generally it should just work as before.
>
> So with gwt:run you would configure the -war parameter (which internally
> sets the same value as launcherDir) and with gwt:run-codeserver (?) you
> would configure the -launcherDir parameter directly.
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SuperDevMode automatic recompile does not work with external server

2016-04-22 Thread Raphael André Bauer
That did the trick. Now it's working... Thanks Jens! I did not know
that there is a special SuperDevMode nocache.js file needed.

Now things are a bit clearer. We used
../ninja/src/main/java/assets/gwt
(aka gwt.war parameter) so that gwt compiled its js sources into the
assets folder of our server.

With the old devmode this worked nicely (as I said - the project was
not touched for five years...).

SuperDevMode does not seem to respect gwt.war when compiling its
superdevmode.nocache.js. And that is the problem. The special
superdevmode.nocache.js gets created in the target folder of the
original gwt project. Our Java server knows nothing about it...

Is there a good workaround? Like telling SuperDevMode where to put its
nocache files to? If not I have to integrate that into the build of
our java dev server I guess...


Thanks!

Raphael

On Fri, Apr 22, 2016 at 12:47 PM, Jens  wrote:
> First start SDM, then deploy your war to your external server. SDM generates
> a special *.nocache.js file that enables automatic recompilation. You have
> to make sure that this special version is deployed.
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


SuperDevMode automatic recompile does not work with external server

2016-04-22 Thread Raphael André Bauer
Hi,


I just ran into an interesting problem while upgrading a very old GWT
app to GWT 2.8.0-beta1 and its SuperDevMode (using the codehaus maven
plugin).

Our setup is basically that we got two projects: A GWT project, and a
Java Server that acts as restful json backend.
If I compile stuff via gwt:compile everything works. That's cool.

But if I want to develop stuff using mvn gwt:run (also GWT
2.8.0-beta1) the SuperDevMode never automatically recompiles changes.
I also enabled the SuperDevMode via the bookmarklets, and I can see in
the networks tab that the superdev server gets called. But when I make
changes in my source code and refresh the webpage it does not show any
changes. But it kind of works - If I open the bookmarklet again and
hit "compile" - it works and I see changes. Still annoying.

In contrast - if I run the same GWT project with its own Jetty (aka
false) then everything works as expected. I
change code in the IDE. Refresh the browser - the "compiling" pop-up
appears and the new version of the app is there. Nice.

So I am wondering why that happens.

Other observations from the network tab:
With the built-in Jetty I see these requests (and the automatic
recompile is working):
1) http://localhost:/
2) http://localhost:/app/app.nocache.js
3) http://localhost:9876/recompile-requester/app
4) 
http://localhost:9876/recompile/app?user.agent=gecko1_8&_callback=__gwt_sdm_globals.callbacks.c1461320251613
...

With our external server I see these requests - the
recompile-requester requests are missing for some reason...
1) http://localhost:8080/
2) http://localhost:8080/assets/gwt/app/app.nocache.js
3) http://127.0.0.1:9876/app/app.nocache.js
4) http://127.0.0.1:9876/app/B9A9B642164071EF4EC1F606F544517F.cache.js


Does anyone have an idea why automatic recompile does not work with
the external server?


Many thanks in advance!


Raphael

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Problem with GWT 2.5.1 + FF 40

2015-10-02 Thread André
Hello GWT users!

We still use GWT 2.5.1 and can't update it quickly.

Firefox v41 was released last week and came with this seemingly minor 
modification 
<https://www.fxsitecompat.com/en-US/docs/2015/urlutils-hash-no-longer-decodes-fragment/>
 
that makes our app unusable. Looks like this isn't compatible with GWT's 
history implementation 
<https://gwt.googlesource.com/gwt/+/2.5.1/user/src/com/google/gwt/user/client/impl/HistoryImplMozilla.java#25>
.

Am I on the right track in that this is the root of our problem? Is it 
possible to override the settings in History.gwt.xml 
<https://gwt.googlesource.com/gwt/+/2.5.1/user/src/com/google/gwt/user/History.gwt.xml>
 in 
our own App.gwt.xml (preferrably in a way that it works across all FF 
versions)?

Thanks a lot in advance!

André

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Problem with GWT 2.5.1 + FF 40

2015-10-02 Thread André
Thanks for the quick reply Daniel!

As a short term fix I added


  
  


to my App.gwt.xml which seems to fix our problems as it doesn't override 
decodeFragment(). As a long term solution I'll attempt an upgrade to 2.7.0.

Cheers
André

On Friday, October 2, 2015 at 10:23:08 AM UTC+2, Daniel Kurka wrote:
>
> This has been fixed in GWT 2.7.0. We refactored the history implementation 
> to not special case Firefox in this particular way. Just updating to GWT 
> 2.7 will fix this issue for you.
>
> If that is not possible here is the main patch to make history work:
> https://gwt-review.googlesource.com/#/c/5356/
>
>
>
> On Friday, October 2, 2015 at 10:12:10 AM UTC+2, André wrote:
>>
>> Hello GWT users!
>>
>> We still use GWT 2.5.1 and can't update it quickly.
>>
>> Firefox v41 was released last week and came with this seemingly minor 
>> modification 
>> <https://www.fxsitecompat.com/en-US/docs/2015/urlutils-hash-no-longer-decodes-fragment/>
>>  
>> that makes our app unusable. Looks like this isn't compatible with GWT's 
>> history implementation 
>> <https://gwt.googlesource.com/gwt/+/2.5.1/user/src/com/google/gwt/user/client/impl/HistoryImplMozilla.java#25>
>> .
>>
>> Am I on the right track in that this is the root of our problem? Is it 
>> possible to override the settings in History.gwt.xml 
>> <https://gwt.googlesource.com/gwt/+/2.5.1/user/src/com/google/gwt/user/History.gwt.xml>
>>  in 
>> our own App.gwt.xml (preferrably in a way that it works across all FF 
>> versions)?
>>
>> Thanks a lot in advance!
>>
>> André
>>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Out of curiosity: Why is gwt-maven-plugin not marked as @threadsafe?

2014-06-13 Thread André Zimmermann
Hey there, I found a reply from Thomas about this topic 
here 
https://groups.google.com/d/msg/codehaus-mojo-gwt-maven-plugin-users/3L-B-1L6w84/t228UPuy_LIJ
I think they are threadsafe and so does Thomas. They need to verify it and 
patch it. 

Em quarta-feira, 6 de fevereiro de 2013 10h59min59s UTC-2, Oliver Krylow 
escreveu:

 Encountered the following warning upon running the maven command `mvn -T 
 16 goal` on one of my better build machines :).


 [WARNING] *
 [WARNING] * Your build is requesting parallel execution, but project  *
 [WARNING] * contains the following plugin(s) that are not marked as   *
 [WARNING] * @threadSafe to support parallel building. *
 [WARNING] * While this /may/ work fine, please look for plugin updates*
 [WARNING] * and/or request plugins be made thread-safe.   *
 [WARNING] * If reporting an issue, report it against the plugin in*
 [WARNING] * question, not against maven-core  *
 [WARNING] *
 [WARNING] The following plugins are not marked @threadSafe in gwt-cryptojs:
 [WARNING] org.codehaus.mojo:gwt-maven-plugin:2.5.0
 [WARNING] *


 I am pretty sure the gwt compiler itself supports parallel compilation of 
 permutations, so is there something in the plugin that is not threadsafe? 



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Development Mode will not be supported in Firefox 27+

2014-06-01 Thread Emiliano André
Hello,
I created this guide (
http://openbpm.wordpress.com/2014/05/31/getting-gwt-plugin-to-work-on-firefox-on-ubuntu-14-04/)
 
to get multiple versions of firefox running locally in order to be able to 
have an older version with GWT working while still use the latest firefox 
version for everything else. And added the link to the bug hopefully it 
will help to get some traction in it.
Thanks!

On Thursday, April 17, 2014 1:58:30 PM UTC-3, Brian Slesinsky wrote:

 For the direction of an open source project, people who volunteer to do 
 actual coding are more important than marketing efforts by people who only 
 want to be users. The intersection of GWT developers and Firefox browser 
 developers seems to be the empty set, so we have very limited influence.

 This is a challenging time and migration can be painful, but this decision 
 fundamentally isn't up to us. We need to move forward. I think a more 
 promising direction for people who want to improve GWT on Firefox would be 
 to investigate problems with the Firefox debugger and contribute patches 
 that make it practical to use.

 - Brian

 On Wed, Apr 16, 2014 at 6:10 PM, Mario Jauvin mar...@gmail.com 
 javascript: wrote:

 People, this has been going on since beginning of February with no action 
 on the part of Mozilla.  I have create a new mozilla bug 
 https://bugzilla.mozilla.org/show_bug.cgi?id=996947 which is about the 
 fact that GWT developper does not work in Firefox any longer.  I have 
 proposed a workaround solution that I think is reasonable for Mozilla and 
 the GWT developper community.  The only way we will get some traction on 
 this is if every developper interested in having GWT developper working on 
 Firefox (and I would think there are probably several hundreds if not 
 thousands) should then create a bugzilla Mozilla account and vote on this 
 bug (please remember to click change my vote to record your vote).  You can 
 also add yourself on the CC list to get updated.  I am sure that if Mozilla 
 gets a few hundred votes they will come up with something to get GWT 
 developper plugin working again on Firefox.  Please forward this text to 
 all the people who you think will be interested in voting.  Lets get the 
 word out it can have a exponential effect.

 [1] https://bugzilla.mozilla.org/show_bug.cgi?id=996947

 -- 
 You received this message because you are subscribed to a topic in the 
 Google Groups Google Web Toolkit group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/google-web-toolkit/QSEjbhhHB4g/unsubscribe
 .
 To unsubscribe from this group and all its topics, send an email to 
 google-web-toolkit+unsubscr...@googlegroups.com javascript:.
 To post to this group, send email to google-we...@googlegroups.com 
 javascript:.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/d/optout.




-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Changes in SuperDevMode not picked up - sometimes

2014-03-03 Thread Raphael André Bauer
I guess it has to do with resources:resources. Once Netbean's Maven is
out of order it of course does no longer run resources:resources
either...

Unfortunately I don't have much time to dig into the code for now...
Anyway... The bottom line is that SuperDevMode works nicely on my real
world projects... That's cool!

Cheers,

Raphael

On Fri, Feb 28, 2014 at 9:49 PM, Thomas Broyer t.bro...@gmail.com wrote:
 It might be that resources:resources has to run in your case (e.g. if you
 configured src/main/java as a resource).
 Changes to src/main/resources needs resources:resources. Eclipse runs it (or
 does something equivalent) automatically at each file change; I can't tell
 for Netbeans.
 Also, make sure you run mvn process-classes gwt:run-codeserver with the
 current versions of the gwt-maven-plugin; next version will remove the need
 for process-classes.


 On Thursday, February 27, 2014 1:02:16 PM UTC+1, Raphael Bauer wrote:

 Hi,


 I am just upgrading my apps to 2.6 and SuperDevMode.
 All in all I have not much trouble and everything works out of the box
 (strange feeling though).

 But finally I found a small glitch.

 My setup: gwt-maven-plugin and mvn gwt:superdevmode to fire everything up
 (2.6)

 My Ide is Netbeans and sometimes my changes do not get picked up in
 SuperDevMode.

 The root cause seems to be that Netbean's integrated maven compilation
 is out of sync and does not longer
 perform recompiles of changed java files. I know that from other
 projects, and a simple clean and build in my Ide fixes the problem.


 But what really puzzles me: Does SuperDevMode need compiled class
 files to pick up changes? In my imagination the whole java to js
 compilation should run on java files and not on bytecode. So wouldn't
 it be enough to detect changes in the src dir and not the target dir
 of the application?


 Thanks!


 Raphael

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Changes in SuperDevMode not picked up - sometimes

2014-02-27 Thread Raphael André Bauer
Hi,


I am just upgrading my apps to 2.6 and SuperDevMode.
All in all I have not much trouble and everything works out of the box
(strange feeling though).

But finally I found a small glitch.

My setup: gwt-maven-plugin and mvn gwt:superdevmode to fire everything up (2.6)

My Ide is Netbeans and sometimes my changes do not get picked up in
SuperDevMode.

The root cause seems to be that Netbean's integrated maven compilation
is out of sync and does not longer
perform recompiles of changed java files. I know that from other
projects, and a simple clean and build in my Ide fixes the problem.


But what really puzzles me: Does SuperDevMode need compiled class
files to pick up changes? In my imagination the whole java to js
compilation should run on java files and not on bytecode. So wouldn't
it be enough to detect changes in the src dir and not the target dir
of the application?


Thanks!


Raphael

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: i18n Messages and the need for double quotes to generate a single quote

2013-11-28 Thread Raphael André Bauer
Following up on that.
What application do you recommend to make the translation of
properties files in MessageFormat simple?
The application should be easy to use for the translation department
(non-tech people).


Any recommendations?


Thanks!

Raphael


On Wed, Nov 27, 2013 at 10:49 AM, Raphael André Bauer
raphael.andre.ba...@gmail.com wrote:
 On Wed, Nov 27, 2013 at 10:46 AM, Thomas Broyer t.bro...@gmail.com wrote:


 On Wednesday, November 27, 2013 10:23:51 AM UTC+1, Raphael Bauer wrote:

 Hi,



 we are currently translating one of our applications.
 We are using regular properties files that generate a
 com.google.gwt.i18n.client.Messages interface.

 One strange thing for us is that our translation department has to
 use double quotes to generate single
 quotes in those files ('' = ').


 Note: it's not a double quote (U+0022) but two single quotes (U+0027
 U+0027)

 Actually that's what I meant - bad English lang skills I guess ;)



 Of course we could use the Constants
 interface, but this would not allow us to
 use placeholders.

 So I am wondering if I am missing something obvious. Is there a way
 around the need to double the quotes all
 the time?


 No. This constraint/feature comes from Java's own MessageFormat where U+0027
 has a special meaning.
 In other words, you'd have the same issue if you used MessageFormat in your
 Java code (server side, desktop app, mobile app, etc.)

 Good to know...

 Thanks for your answer!


 Best,

 Raphael



-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


i18n Messages and the need for double quotes to generate a single quote

2013-11-27 Thread Raphael André Bauer
Hi,



we are currently translating one of our applications.
We are using regular properties files that generate a
com.google.gwt.i18n.client.Messages interface.

One strange thing for us is that our translation department has to
use double quotes to generate single
quotes in those files ('' = '). Of course we could use the Constants
interface, but this would not allow us to
use placeholders.

So I am wondering if I am missing something obvious. Is there a way
around the need to double the quotes all
the time?


Any suggestion welcome!

Thanks!


Raphael

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: i18n Messages and the need for double quotes to generate a single quote

2013-11-27 Thread Raphael André Bauer
On Wed, Nov 27, 2013 at 10:46 AM, Thomas Broyer t.bro...@gmail.com wrote:


 On Wednesday, November 27, 2013 10:23:51 AM UTC+1, Raphael Bauer wrote:

 Hi,



 we are currently translating one of our applications.
 We are using regular properties files that generate a
 com.google.gwt.i18n.client.Messages interface.

 One strange thing for us is that our translation department has to
 use double quotes to generate single
 quotes in those files ('' = ').


 Note: it's not a double quote (U+0022) but two single quotes (U+0027
 U+0027)

Actually that's what I meant - bad English lang skills I guess ;)



 Of course we could use the Constants
 interface, but this would not allow us to
 use placeholders.

 So I am wondering if I am missing something obvious. Is there a way
 around the need to double the quotes all
 the time?


 No. This constraint/feature comes from Java's own MessageFormat where U+0027
 has a special meaning.
 In other words, you'd have the same issue if you used MessageFormat in your
 Java code (server side, desktop app, mobile app, etc.)

Good to know...

Thanks for your answer!


Best,

Raphael

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Fixing a column in DataGrid

2013-06-17 Thread Raphael André Bauer
On Fri, Jun 14, 2013 at 11:42 AM, Jens jens.nehlme...@gmail.com wrote:
 Well, add a scroll handler to the right ScrollPanel and set the current
 scroll position on the left ScrollPanel.

Hi Jens,


thanks for that :) It worked the way you described it. With one tiny
caveat. DataGrids don't export their ScrollPanel (Maybe I got you
wrong).

I simply extended an original DataGrid and exposed their ScrollPanel like so:
public ScrollPanel getScrollPanel() {
HeaderPanel header = (HeaderPanel) getWidget();
return (ScrollPanel) header.getContentWidget();
}

This made syncing the scrolling positions of my two DataGrids quite
simple and I know have one fixed column in my datagrid.


Thanks for your help!


Best,

Raphael

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Fixing a column in DataGrid

2013-06-14 Thread Raphael André Bauer
On Wed, May 29, 2013 at 7:24 PM, Jens jens.nehlme...@gmail.com wrote:
 Before deep diving into DataGrid, I think my first make it work approach
 would be to just use two DataGrids and add both to the same DataProvider, so
 that their data is in sync with each other. The first one would contain the
 static x columns while the second one contains the remaining columns. Only
 the second one would allow horizontal scrolling then.

 Do you also use vertical scrolling in your DataGrid? If not, then I would
 try to add position:fixed to each cell of the first x columns. With
 position:fixed you probably would not need to recalculate anything while
 scrolling horizontally.


Hi Jens,


thanks for the suggestion. I had now time to check it out and it works
nicely :) The problem I have now is with vertical scrolling. The left
datagrid scrolls independently of the right datagrid...

Do you have any suggestions how to sync the scrolling?


Thanks :)

Raphael

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Fixing a column in DataGrid

2013-05-30 Thread Raphael André Bauer
On Wed, May 29, 2013 at 7:24 PM, Jens jens.nehlme...@gmail.com wrote:
 Before deep diving into DataGrid, I think my first make it work approach
 would be to just use two DataGrids and add both to the same DataProvider, so
 that their data is in sync with each other. The first one would contain the
 static x columns while the second one contains the remaining columns. Only
 the second one would allow horizontal scrolling then.

 Do you also use vertical scrolling in your DataGrid? If not, then I would
 try to add position:fixed to each cell of the first x columns. With
 position:fixed you probably would not need to recalculate anything while
 scrolling horizontally.

Hi Jens,

thanks for the good suggestion - I'll try that first...

Best,

Raphael

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Fixing a column in DataGrid

2013-05-29 Thread Raphael André Bauer
Hi,


I am using a DataGrid that is larger than the viewport. If the user
scrolls to the right I want the first x columns to be fixed so the
user knows in which line she is.

Some time ago someone has asked a similar question - but the answers
are not 100% satisfactory imho.
http://stackoverflow.com/questions/10904518/how-to-make-gwt-datagrid-have-its-first-column-fixed-and-scroll-horizontally-and

Is there a simple working solution to this? I only need support for
relatively new browsers.


Many thanks in advance!


Cheers,


Raphael

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: RF and REST

2012-07-03 Thread Raphael André Bauer
+1 for restygwt. Has never let us down - even in very large projects.

Cheers,

Raphael

On Tue, Jul 3, 2012 at 3:06 PM, Thomas Broyer t.bro...@gmail.com wrote:

 On Tuesday, July 3, 2012 11:24:17 AM UTC+2, chalu wrote:

 Please have anyone of you been successful with REST on a GWT project? What
 api's did you use. We are in the design stage of an app, we love GWT but
 want to liberate the architecture such that we can use the same server code
 for the clients (GWT and JQuery mobile). I don't know if RequestFactory (for
 the GWT client) can play nicely with a REST back end and we are not even
 sure how to go about it.


 RequestFactory is inherently RPC-oriented, so no it won't play nicely with
 a REST backend.

 On the client side, it comes with 2 dialects: RequestFactory's own
 protocol (to talk to the RequestFactoryServlet), and JSON-RPC (to talk to
 any JSON-RPC endpoint). You could use that second one to ease reuse of the
 same endpoints by other clients (there probably is a jQuery plugin for
 that).
 However, the JSON-RPC dialect is not really finished yet (some limitations
 for now) but should nevertheless be usable (I believe Google is using it).
 You'll lose some features too, compared to the RF dialect (everything
 related to EntityProxy vs. ValueProxy; basically, only use ValueProxies).

 Some googling revealed Restlet (which I think couples our server code to
 GWT)


 Not at all.
 Restlet was created long before GWT, and they then added GWT support on the
 client-side, but the goal is to be a truly RESTful framework, where it
 doesn't matter what your clients and servers are, only what resources they
 expose, with which representations, and responding to which verbs.
 Put differently, anything that would bind your client and server cannot be
 said to be RESTful. If you want to make true REST resources, then look for
 something else (Restlet for example, or JAX-RS)

 and Apache CXF.


 I don't know Apache CXF so I can't comment.

 There's also JAX-RS to easily build REST endpoints.
 And for client-side code, as far as GWT is concerned, there's RestyGWT,
 Restlet, or Errai (JAX-RS; see
 http://errai-blog.blogspot.fr/2011/10/jax-rs-in-gwt-with-errai.html ), among
 many others.


 Any hint on which to use, and how to go about it? Big thanks.



 May I question whether you want to make a true REST backend, or simply
 don't want to be tied to any proprietary protocol? that would open a bunch
 of possibilities, such as JSON-RPC.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/g8pNDWiRMb0J.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: RF and REST

2012-07-03 Thread Raphael André Bauer
Have a look at that the following demo:
http://code.google.com/p/play-gae-gwt-dreamteam-showcase/

Frontend and backend only talk via a restful Api. RestyGwt handles the
stuff on the client side of things. Note also that you can share Java
pojos easily between client and servers side...

Cheers,

Raphael

On Tue, Jul 3, 2012 at 3:51 PM,  chal...@gmail.com wrote:
 Thanks for the quick and helpful replies. Our goal is to build a true RESTful 
 back-end (to serve as an API)  and then allow clients (GWT app, JQuery mobile 
 app, CLI / API calls e.t.c) interact with the exposed methods/resources from 
 the server in a simple (RESTful) way. Have not really looked at restygwt, but 
 am wondering if it will allow us develop the rest back end without tying us 
 to gwt, I will google more but am yet to find a comprehensive restlet 
 (server-side) example. So we don't know how to start. Thanks again!

 Sent from my BlackBerry® wireless handheld from Glo Mobile.

 -Original Message-
 From: Raphael André Bauer raphael.andre.ba...@gmail.com
 Date: Tue, 3 Jul 2012 15:25:30
 To: google-web-toolkit@googlegroups.com
 Cc: chal...@gmail.com
 Subject: Re: RF and REST

 +1 for restygwt. Has never let us down - even in very large projects.

 Cheers,

 Raphael

 On Tue, Jul 3, 2012 at 3:06 PM, Thomas Broyer t.bro...@gmail.com wrote:

 On Tuesday, July 3, 2012 11:24:17 AM UTC+2, chalu wrote:

 Please have anyone of you been successful with REST on a GWT project? What
 api's did you use. We are in the design stage of an app, we love GWT but
 want to liberate the architecture such that we can use the same server code
 for the clients (GWT and JQuery mobile). I don't know if RequestFactory (for
 the GWT client) can play nicely with a REST back end and we are not even
 sure how to go about it.


 RequestFactory is inherently RPC-oriented, so no it won't play nicely with
 a REST backend.

 On the client side, it comes with 2 dialects: RequestFactory's own
 protocol (to talk to the RequestFactoryServlet), and JSON-RPC (to talk to
 any JSON-RPC endpoint). You could use that second one to ease reuse of the
 same endpoints by other clients (there probably is a jQuery plugin for
 that).
 However, the JSON-RPC dialect is not really finished yet (some limitations
 for now) but should nevertheless be usable (I believe Google is using it).
 You'll lose some features too, compared to the RF dialect (everything
 related to EntityProxy vs. ValueProxy; basically, only use ValueProxies).

 Some googling revealed Restlet (which I think couples our server code to
 GWT)


 Not at all.
 Restlet was created long before GWT, and they then added GWT support on the
 client-side, but the goal is to be a truly RESTful framework, where it
 doesn't matter what your clients and servers are, only what resources they
 expose, with which representations, and responding to which verbs.
 Put differently, anything that would bind your client and server cannot be
 said to be RESTful. If you want to make true REST resources, then look for
 something else (Restlet for example, or JAX-RS)

 and Apache CXF.


 I don't know Apache CXF so I can't comment.

 There's also JAX-RS to easily build REST endpoints.
 And for client-side code, as far as GWT is concerned, there's RestyGWT,
 Restlet, or Errai (JAX-RS; see
 http://errai-blog.blogspot.fr/2011/10/jax-rs-in-gwt-with-errai.html ), among
 many others.


 Any hint on which to use, and how to go about it? Big thanks.



 May I question whether you want to make a true REST backend, or simply
 don't want to be tied to any proprietary protocol? that would open a bunch
 of possibilities, such as JSON-RPC.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/g8pNDWiRMb0J.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



 --
 inc: http://ars-machina.raphaelbauer.com
 tech: http://ars-codia.raphaelbauer.com
 web: http://raphaelbauer.com



-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: JSON Parsing in GWT Client

2012-05-25 Thread Raphael André Bauer
Hi,


the solution is really simple:
Use resty gwt: https://github.com/chirino/resty-gwt

A sample project including GWT configuration can be found here:
http://code.google.com/p/play-gae-gwt-dreamteam-showcase

restygwt drives one of the biggest websites in Germany. We never had
any performance issues.


Cheers,

Raphael

On Thu, May 24, 2012 at 10:52 AM, Thomas Broyer t.bro...@gmail.com wrote:


 On Thursday, May 24, 2012 8:56:53 AM UTC+2, dominikz wrote:

 I was just having the same problem. I evaluated the solutions yesterday
 and frankly speaking was surprised by the lack of straight answers from both
 GWT documentation and the internet.
 The number of projects there are is just amazing, but nothing seems to
 stand out.

 I don't like the idea of using Overlay Types since it's too much coding
 and the objects coded this way can be used only on browser-side
 I'm not sure what's the status of AutoBean
 (http://code.google.com/p/google-web-toolkit/wiki/AutoBean) since clicking
 on 'Project Home' here takes me to some I think very old start page for GWT.
 No official references from main GWT
 site https://developers.google.com/web-toolkit/

 AutoBean is the technology backing RequestFactory; it's stable and has very
 few known bugs in 2.4 (one or two, no more; all being already fixed in
 trunk; this is an all different story for RequestFactory).
 I just think nobody had/took the time to copy the wiki page to the dev guide
 at developers.google.com/web-toolkit.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/I6JfHi2Gw4QJ.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: JSR303 localized messages with RequestFactory

2012-05-11 Thread André Salvati
I've just translated messages to portuguese into a new 
ValidationMessages.properties file and put it into classpath. Hibernate 
Validator autodetects this new configuration.

Thanks.

Em sexta-feira, 11 de maio de 2012 05h24min33s UTC-3, Jens escreveu:

 No I don't know the exact references anymore. But I am pretty sure it 
 should work this way. 

 -- J.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/UbsAZBTJDzUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Editor Framework: Client side validation and error handling

2012-05-11 Thread André Salvati
I'm also looking for a solution for 1). Is it possible to get validation 
from my domain classes on my proxy classes? How should I do with Editors?

Thanks.

Em segunda-feira, 17 de outubro de 2011 10h10min52s UTC-2, Jens escreveu:

 Hi,

 currently exploring the editor framework and client side validation and 
 have some questions:

 1.) As I use RequestFactory and server side validation is it a good idea 
 to implement client side validation as well? The only benefits I can think 
 of is immediate error feedback to the user without waiting for a server 
 response. But on the other side I have to add all my validation annotations 
 to my proxies again, right? Or is there a way to reuse the annotation 
 information on server domain classes for proxies? I think in most cases 
 validation annotations would not differ between server and client.

 2.) If I want to integrate client side validation do I have to start the 
 validation process on my own or is there any editor framework class that I 
 do not have found yet that already integrates client side validation? If I 
 have to start the process on my own are there any major drawbacks when 
 integrating validation in a custom editor driver? Seems to be the cleanest 
 solution, but of course I could also just use a small utility class/method 
 that does flush + validate + report errors (which would definitely be 
 faster to implement).

 3.) When I receive validation errors I have to implement HasEditorErrors 
 on all my views/editors in order to get notified about the error. Is it 
 better to implement HasEditorErrors in the parent view and let the parent 
 view display the errors for its child editors or is it better to code some 
 wrapper widgets like ValueBoxEditorDecorator and let each child display its 
 error on its own? For example you could have an error in person.name and 
 now the person.name editor could show the error on its own or let the 
 person view display the error (for example in a dedicated, combined errors 
 area for the whole person view). Are there any practically differences 
 between these two solutions? 


 -- J.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/6296p5TcWdoJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: JSR303 localized messages with RequestFactory

2012-05-10 Thread André Salvati
Hi Jens,

do you remember references for your tips??

Have anyone tested this solutions??

Thanks.



Em terça-feira, 14 de fevereiro de 2012 17h33min11s UTC-2, Jens escreveu:

 Just googled a bit because I have never thought about it and based on the 
 search results I think I would try it the following way (untested): 

 1.) Send the current client side locale as a HTTP header (e.g. 
 X-GWT-LOCALE) to the server using a custom RequestTransport for 
 RequestFactory (extend DefaultRequestTransport and add the header).

 2.) On server side create a new custom MessageInterpolator that can 
 overwrite the locale:

 public class GwtClientLocaleMessageInterpolator implements 
 MessageInterpolator {

   public GwtClientLocaleMessageInterpolator(MessageInterpolator default, 
 Locale gwtClientLocale) {
 //remember parameters as fields
   }

   //implement methods by delegating to the default interpolator but 
 overwriting the locale

 }

 3.) On server side create a ServiceLayerDecorator for RequestFactory 
 (extend RequestFactoryServlet and provide your decorator through a super 
 call in the constructor) and change the way the Validation will be done in 
 ServiceLayerDecorator.validate(..):

 MessageInterpolator defaultInterpolator = 
 ValidatorFactory.getMessageInterpolator();
 GwtClientLocaleMessageInterpolator interpolator = 
 new GwtClientLocaleMessageInterpolator(defaultInterpolator, 
 localeFromGwtClient);
 Validator validator = 
 ValidatorFactory.usingContext().interpolator(interpolator).getValidator();
 validator.validate();


 Hopefully you should now have messages based on the client GWT locale.

 -- J.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/QPafddJf8wQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Whole app as one big transmission

2012-05-02 Thread Raphael André Bauer
On Wed, May 2, 2012 at 10:44 PM, Gal Dolber gal.dol...@gmail.com wrote:
 https://developers.google.com/web-toolkit/doc/latest/DevGuideCodeSplitting

Jupp. Gwt is made for that scenario :)

I'd recommend checking out the excellent gwtp project. Using gwtp you
get code splitting almost for free :)

http://code.google.com/p/gwt-platform/
and
http://code.google.com/p/gwt-platform/wiki/GettingStarted?tm=6#Your_first_Proxy

Cheers,

Raphael



 On Wed, May 2, 2012 at 5:38 PM, Blake McBride blake1...@gmail.com wrote:

 Greetings,

 Unless I misunderstand something, I just found out that GWT apps get
 transmitted to, and treated by, the client as a single web page - albeit
 with JavaScript code that clears sections and puts different content on it
 to make it look like different pages are being loaded.  This is cool in
 terms of minimizing client interaction delays, but raises serious concerns
 on my part when attempting to build a very large application.

 For example, if my application had 500 screens (or what appeared to the
 user as 500 different screens), I would hate to think that, even though the
 client only currently needs 20 screens, he/she is going to get all 500 up
 front!  The initial load would take an unnecessarily long time too.

 If I understand correctly, this model is great for small apps but could be
 a very significant problem as an application grows considerably.

 I would really appreciate feedback on this issue.  Has this been an issue
 for others?  Is there a simple way to make pages load on an as-needed basis?

 Thanks for the feedback!

 Blake McBride

 --
 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
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




 --
 Guit: beautiful gwt applications

 https://github.com/galdolber/Guit





 --
 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
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Call for action: Time to rethink a road-map and more frequent updates for GWT.

2012-04-14 Thread Raphael André Bauer
On Sat, Apr 14, 2012 at 10:05 PM, Frank frank.wyna...@gmail.com wrote:
 I believe you are being over-pessimistic.

 In my company we are using GWT since 2006 and we have build pretty large and
 complicated web-apps using GWT. Some webapps created in 2006 (using GWT 1.2)
 are still being used today without any problem on any modern browser.
 Normally old stuff keeps working in modern browsers. We do upgrade old
 projects to new versions of GWT if an old project needs a big update, but we
 have never updated any of our apps because it stopped working on new
 browsers.

 Also note that GWT is opensource (today you can download the complete
 source-code, and compile it no problem).

My 2 cents:
1st cent: GWT works for us like a charm for many years in really large
dev teams and in projects used by millions daily. So I am totally sure
that GWT is great and super-stable. It's not a toy but a really
productive and working thing.
2nd cent: I also find it a bit strange that Google does not say more
about GWT. But on the other hand it's open source and if you follow
the contributors list you get a good feeling that a lot is going on.


Cheers,

Raphael
(btw. @ GWT devs: Great job. I enjoy using GWT each day...).

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Mode hosted with another server than Jetty ?

2012-04-12 Thread Raphael André Bauer
On Thu, Apr 12, 2012 at 4:02 PM, Celinio cel...@gmail.com wrote:
 Hi,
 does anyone know how to start an application in hosted mode (development)
 with another server than the embbeded one which is Jetty ?
 With the gwt-maven-plugin plugin,  there are several
 options/parameters/mojos to launch the goal gwt:run (-Dnoserver, -Dport ...)
 and there are probably some resources to copy to the server folders.
 The targeted server is Jonas by the way.


That configuration works eg:

groupIdorg.codehaus.mojo/groupId
artifactIdgwt-maven-plugin/artifactId
version${gwt-maven-plugin.version}/version
configuration
!-- Our local messages are stored there: --

i18nMessagesBundlecom.bricktop.app.client.common.resources.i18n.LocalMessages/i18nMessagesBundle

!-- And the generated sources should be generated
in our src dir --

generateDirectory${basedir}/target/generated-sources/gwt/generateDirectory

logLevelINFO/logLevel
styleOBF/style
gwtVersion${gwt.version}/gwtVersion
runTargethttp://localhost:9000//runTarget

webappDirectory${custom_project_root}/backend/public/gwt/webappDirectory
copyWebappfalse/copyWebapp
noServertrue/noServer
/configuration



Cheers,

Raphael

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Performance : Good or Bad ?

2012-03-28 Thread Raphael André Bauer
On Wed, Mar 28, 2012 at 12:51 AM, Joseph Lust lifeofl...@gmail.com wrote:
 My company just completed a very large intranet UI using GXT. The overall
 lesson learned was don't use GWT. For the most part it was much slower and
 the model used in GXT did not extend well to our MVP setup. Perhaps GXT 3
 has fixed some of these issues, but we don't want to deploy a framework
 that's still in beta.

the overall lesson was don't use GWT?
did you mean that or don't use GXT?

ra!


 Sincerely,
 Joe

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/Ur7JlMX0SjMJ.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Framework app mobile

2012-02-13 Thread Raphael André Bauer
On Mon, Feb 13, 2012 at 2:40 PM, Kira Qian kiraq...@me.com wrote:
 AFAIK, only native app developed via cocoa framework is allowed to run on
 iOS. iPhone doesn't support to run java or other code. So i don't think it
 is possible to run your GWT on iPhone.

That's plain wrong... We got GWT Apps in Apple's Store...

Best,

Raphael

 Sincerely,
 Light Qian
 -
 Sent from iCloud (Mac OSX Lion mail client)

 On Feb 13, 2012, at 9:27 PM, Adolfo Panizo Touzon wrote:

 If I understand I can develop a web app with GWT, in this app If I use the
 mgwt framework, my GWT app looks like and mobile app.

 Then, when I finish, with/using gwt-phonegap I can transform it into native
 apps that I can hung up in the App Store (Iphone), Market Place(Android)...

 All of this in Eclipse.

 Am I correct?

 Really thanks,

 Adolfo.

 2012/2/13 Daniel Kurka kurka.dan...@googlemail.com

 If you built an html5 app and wrap it with phonegap you will end up with
 an app that is not distinguishable from an native app. Phonegap exposes
 all native capabilities through a javascript API.

 The rest is simply UI. There are lots of good mobile UIs out there. The
 one I would pledge for (because I am the author) is mgwt
  http://www.m-gwt.com . If you combine it with gwt phonegap you got a great
 framework for writing cross platform mobile apps...

 - Daniel



 2012/2/13 Adolfo Panizo Touzon adolfo.pan...@gmail.com

 I am more lost than I tought. Thank you for your patient :)

 I have one big, and complex GWT app.

 Now I'm interested in create other GWT app similar but more simple
 oriented only to our clients (and avoid all the developers part).

 The idea is to create this simple GWT app (this GWT app will include some
 native capabilites ) and then, transform it into native platforms
 (Android, Iphone, Blackberry...),

 I asked at the beginning of this email if there was any framework that
 allows it.

 Now, thank you to your last answer I know that with phone gap is
 impossible because this framework only creates web solutions (if I'm
 incorrect please, let me know)

 So, the only option that is correct is Gwt4Ti Mobile. Good.

 While you were answering me I spent time reading  on the internet about
 these problems, and I have more questions:

 How much does it cost Gwt4Ti Mobile to develop an non open source app
 (the simple GWT app)?? (I mean, I saw that I'll need the Appcelerator
 Titanium Studio IDE, it costs an extra money) Is there other option? Is it
 possible to use others IDE, like eclipse?

 Are there other things that I must know?

 Excuse me for all this questions, but I need to send an inform to my
 bosses :)

 Thank you for all. If you don't understand anything, let me know, please
 (I'm not good enough in English) .

 Adolfo.

 2012/2/13 Alain Ekambi jazzmatad...@googlemail.com

 Note that PhoneGap will not turn you web based app into a native app. It
 will give it some native capabilities.
 So your application will still be a web app but with a native shell
  given you access to the device api.

 Concerning Gwt4Ti Mobile we have some pretty happy customers at the
 moment. But  maybe some one using it will like to share his experience.

 If  i m correct you have a Desktop GWT app that you want to turn into a
 mobile app with some native capabilities.
 Assuming you UI is mobile optimized  PhoneGap could be the way to go.
 Because you could reuse most of your UI code and have some native access
 through PhoneGap.

 2012/2/13 Adolfo Panizo Touzon adolfo.pan...@gmail.com

 Hi Alain,

 Thank you for the info.

 We are interested in Native solutions.

 Basically, if I'm correct the best frameworks in order to have one app
 for each platform (from the same initial GWT app) are Gwt4Ti Mobile and
 phoneGAP.

 Alain, in the last mail explains that Gwt4Ti Mobile would be helpful.

 Does someone works with these frameworks? Are there others?

 Thank you in advance,

 Adolfo.

 PD. I post this mail here because I'm interested (if is it possible) in
 create the initial app in GWT and then transform to native platforms.


 2012/2/13 Alain Ekambi jazzmatad...@googlemail.com

 Hi Adolfo,

 Like always it depends.
 Should your mobile app be web based or native ?

 If you are are looking for a webbased solution i d recommend :

 Web :
 1) Gwt4Touch (www.emitrom.com/gwt4touch). Not only because we created
 it, but also because it leverages Sencha Touch, which to me
 is the best mobile HTML5 framework on the market. We also added
 PhoneGap support if you want to add some native capabilities.

 2)i also like mgwt a lot. (The Gwt PhoneGap API is from the same
 author). But i think Gwt4Touch looks a bit better :)

 Native :
 On the other end Gwt4Ti Mobile will help you build native mobile apps
 by leveraging the Titanium runtime.
 So if you want to go native while leveraging GWT(specially all your
 back end code) Gwt4Ti mobile should help.



 If you have any question feel free to ping us on the forum

 www.emitrom.com/forum

 Cheers,

 Alain


Re: Framework app mobile

2012-02-13 Thread Raphael André Bauer
On Mon, Feb 13, 2012 at 3:05 PM, Adolfo Panizo Touzon
adolfo.pan...@gmail.com wrote:
 @Alain,

 I'm sorry for the misunderstanding. Now I think I solve my doubts. At the
 beginning I thought that each platform only can understand its UI Widgets.

 So, if I want native app, with their native UI Widgets  I must
 use  Gwt4Titanium. But I can use HTML5(JS/HTML/CSS) widgets to create the UI
 and then upload the app to the Market place, App store, etc...

 In my case my app will be very simple, so, it's interesting for me,  use
 the HTML5(JS/HTML/CSS) widgets to create the UI (and the app).

 So, basically both methods are valid for me.

 Now I'm going to take a look in which method are more easy, cheap and
 better.

 Again, suggestions and comments are welcome (@toEveryBody).

I would really check out m-gwt. It's nicely crafted and uses pure GWT
features only. Also check out their mailing list. It's a great and
helpful community.

Simply use mgwt, package your app using PhoneGap and submit it to the stores.


My 2 cent,


Best,


Raphael

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Struggling with Crawling

2012-01-30 Thread Raphael André Bauer
On Fri, Jan 27, 2012 at 3:29 AM, objectuser kevin.k.le...@gmail.com wrote:
 My app has now been crawled with the _escaped_fragment_ parameter, so that's
 progress (I didn't make any changes, it just took a while it seems).

 It doesn't appear the app is properly indexed yet, however.  So progress,
 but not quite there yet.
What do you mean by  doesn't appear the app is properly indexed yet.
What are the symptoms?

Best,

Raphael

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Analytics Integration in GWT - GET request for __utm.gif not being sent

2012-01-25 Thread Raphael André Bauer
Not sure what is going on,

but that's the way gwtp is doing Google Analytics:
http://code.google.com/p/gwt-platform/source/browse/gwtp-core/gwtp-mvp-client/src/main/java/com/gwtplatform/mvp/client/googleanalytics/GoogleAnalyticsImpl.java

ra

On Wed, Jan 25, 2012 at 10:53 PM, Dugald dugald.mor...@gmail.com wrote:

 From 
 http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html,
 it says:

 Your compiled script runs in a nested frame, and $wnd and $doc are
 automatically initialized to correctly refer to the host page's window
 and document.

 Can someone perhaps tell me if they this this is the reason why the
 code isn't running as expected.


 On Jan 25, 2:42 pm, Dugald dugald.mor...@gmail.com wrote:
 I have a GWT application (http://www.councilmapserver.com/cms-demo/
 CMS.html) in which I dynamically configure the analytics code. The
 code is as follows:

 private native void initialiseAnalytics(final String analyticsAccount,
 final String domainName) /*-{
   try {
     $wnd._gaq = $wnd._gaq || [];
     $wnd._gaq.push(['_setAccount', analyticsAccount]);
     $wnd._gaq.push(['_setDomainName', domainName]);
     $wnd._gaq.push(['_trackPageview']);
     (function() {
       var ga = document.createElement('script');
       ga.type = 'text/javascript';
       ga.async = true;
       ga.src = ('https:' == document.location.protocol ? 'https://
 ssl' : 'http://www') + '.google-analytics.com/ga.js';
       var s = document.getElementsByTagName('script')[0];
       s.parentNode.insertBefore(ga, s);
     })();
   } catch (e) {
     $wnd.alert(JSNI method GoogleAnalytics.initialiseAnalytics()
 threw an exception: + e);
   }

 }-*/;

 The code executes without reporting any errors, however, the tracking
 beacon is never sent (no GET request for__utm.gifis made).

 I have created a similar piece of code with straight HTML and
 JavaScript 
 athttp://www.councilmapserver.com/AnalyticsTest/AnalyticsTest-LateDynam...
 which does result in the tracking beacon being sent. Can anyone shed
 some light into what the differences may be?

 --
 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 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Struggling with Crawling

2012-01-22 Thread Raphael André Bauer
On Sun, Jan 22, 2012 at 6:37 PM, objectuser kevin.k.le...@gmail.com wrote:
 I've tried to implement the approach here:

 http://code.google.com/web/ajaxcrawling/index.html


 I've done two things:

 look for the _escaped_fragment_ query parameter and use it to generate a
 non-ajax view of the site
 added the meta tag in my index.html:

 meta name=fragment content=!


 If I visit my site with _escaped_fragment_ as a query parameter, a snapshot
 is correctly delivered to my browser.

 However, when I use the Google Webmaster tools to Fetch as Googlebot, I
 just get the raw (and content free) index.html text: I never get the
 snapshot.  Maybe that's what I should expect, I don't know.  In any case, if
 I do a google search for some of the words on the first page, I don't get
 any results.

 I've just added some counters to detect the Googlebot (by looking for that
 string in User-Agent) and the _escaped_fragment_ parameter to see if I'm
 getting either, but the Webmaster tools do say that my app is being crawled.

 If I've just implemented it incorrectly somehow, or if there's a major step
 I'm missing, that would be much appreciated feedback.

No - I guess that's simply an inconsistency of fetch as googlebot.

It's the same result for our site - but our index is indexed correctly
by the real googlebot...


Best,


Raphael




-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT communication with REST

2012-01-09 Thread Raphael André Bauer
On Mon, Jan 9, 2012 at 1:05 AM, sonyt...@gmail.com sonyt...@gmail.com wrote:
 Hi,
 I am very new to GWT. I am trying to learn how i can communicate using REST
 instead of RPC .

 I am planning to use spring mvc as model view controller and REST API .
 Any body have any sample code or link please share with me

We use restygwt. Pretty easy to use and works like a charm,
https://github.com/chirino/resty-gwt

Best,


Raphael


 Regards

 --
 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
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT application freezes when new version is deployed while using it

2012-01-05 Thread Raphael André Bauer
On Thu, Jan 5, 2012 at 1:39 PM, Kyle Baley k...@baley.org wrote:
 Now that I've determined our problem, I have another question. Is there a
 clean way to *not* require the user to refresh the page?

Don't think that's possible, but you can do the refreshing user
friendly by simply reloading the app and pointing to the place
where the user currently is... So there will be a reload, but it will
not break ux...

Raphael


 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/xyHkZ_2-o0YJ.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: App with hundreds of code splits won't finish compiling

2011-12-22 Thread Raphael André Bauer
On Thu, Dec 22, 2011 at 9:25 AM, Ed post2edb...@gmail.com wrote:
 I would split your app in several gwt modules if possible.
 Currently code splitting isn't optimal for such sizes.
 See Issue: 6612
 This is being worked on as we speak.

Two things: 12 MB sounds really really really large. We got some
really large apps up and running and they always were below 2MB. Not
sure - maybe there is potential for optimization.

The other thing is: Hundreds of code splits sound really large. How
big are your split points? I assume they are rather small. And if they
are too small the whole notion of code splitting does not make sense.

Maybe you could study the soyc and split your app into several modules
with acceptable sizes to balance download size and number of split
points...


Best,

Raphael




 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/dMfpYC_xRvEJ.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How well does a GWT webapp play with Google Web Crawler

2011-12-15 Thread Raphael André Bauer
On Thu, Dec 15, 2011 at 3:10 PM, Draško drasko.ko...@googlemail.com wrote:
 I read the standard proposal how dynamic webapps should be made crawler
 friendly, but what if there is no server to generate snapshots?!

 I built a simple multi-view webpage using MVP pattern and event handling.
 Unfortunately, the Google Webmaster Tool, as well as Google Analytics, do
 not see any structure and assumes it is just one page. Hence, the visitors
 flow view shows only one page (technically not wrong - but semantically).
 I tried to submit the sitemap but again, only one URL was recognized.
 As mentioned here, my assumption is that without A elements, it is not
 possible for a crawler to understand the structure. Unfortunately, the
 Anchor and Hyperlink widgets do not accept widget children (I need Image
 widget to dynamically reflect a state change), so I can't use them.

 Please share your experiences and best practices in making simple
 (no-server) GWT webapps understood by Google Web Crawler, Analytics and
 Webmaster Tool.

It's simple:
- If there is no content on your plain html page there's no content
for GoogleBot (or any SearchBot of the big search engines to date)
- If you use Google's Ajax crawling approach you can turn a blank
ajax-only page into something the GoogleBot can index. Btw - Bing is
also supporting that spec. Downside: You need your own HtmlUnit that
turns ajax-js into html.

We are currently experimenting with this, but I am not yet sure if it
makes sense to use the Ajax Crawling approach for a site that heavily
needs good SEO.

A big blocker is also: If (and nobody knows really if they do ) - if
Google takes into account the speed when crawling sites via
_escaped_fragment_ it will almost certainly destroy any SEO ranking -
because crawling an Ajax site by your own HtmlUnit and returning the
result will be slow by definition.

Not exactly a GWT problem. But a problem.


Hope that helps,


Best,

Raphael

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT multi-module project and development mode

2011-12-11 Thread Raphael André Bauer
On Fri, Dec 9, 2011 at 5:44 PM, David Vree david.h.v...@gmail.com wrote:
 My team is currently converting a web-app to GWT and we would like to break
 our client code into at least 2 and maybe as many as 4 separate Maven
 modules/projects.

 When doing this is it possible to use development mode and allow hot code
 editing of the dependent modules?

 Google provided me with the following links, but they seem to be
 inconclusive.

 http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users/browse_thread/thread/8d073905c5ec2663
 http://stackoverflow.com/questions/5236181/how-to-be-productive-in-a-gwt-maven-multi-module-project
 http://jira.codehaus.org/browse/MGWT-76

 I am hoping somebody already does this and can provide some useful tips.


Hi David,


I did several projects with GWT on a larger Maven setup involving
10+ people. Some time a go a wrote about it at:
http://ars-codia.raphaelbauer.com/2011/01/gwt-project-layout-part-2-large.html

Maven and GWT is really stable and usable, and you can do all stuff
like hot code swapping / debugging and so on once it's properly
configured.

I am 100% sure that Maven is a great tool to speed up things. But with
my experience now I am not 100% sure if it is clever having many
modules to split things up.

In my current projects I am trying to use as less Maven and GWT
modules as possible. Makes management of the project nicer and
simpler. If you really need more GWT / maven modules you can always do
that - but don't do stuff too complex at the beginning - premature
optimization is the root of all evil...

Another tip for large projects: Maven and a multi module setup might
be important - but it is imho more important having a working DVCS
setup - especially if you are working with many teams (I also wrote
about that at 
http://ars-codia.raphaelbauer.com/2011/01/git-branching-workflow.html
/ http://ars-codia.raphaelbauer.com/2011/07/mercurial-branching-workflow.html
.

Hope that helps - feedback much appreciated :)


Best,


Raphael




 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/fT-bDXDpsJwJ.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: captcha problem in gwt

2011-12-07 Thread Raphael André Bauer
On Wed, Dec 7, 2011 at 2:40 PM, shipra dhooper shipra@gmail.com wrote:
 if i create captcha in gwt application then it doesn't show on apache server
 but it display in hosted modehow can i solve this problem can anybody
 help me

What captcha vendor are you using? Most likely you have to generate a
personal key for your domain. If you don't do this the captcha will
work on localhost (for testing), but not on your domain.

And no - this is almost for sure not a GWT problem,


Best,


Raphael








 thanks in advance

 --
 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
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Compiled Application cannot interact with php backendGWT Compiled Application cannot interact with php backend

2011-12-06 Thread Raphael André Bauer
On Tue, Dec 6, 2011 at 7:29 AM, Noor baken...@gmail.com wrote:
 I was developing a GWT application with a PHP backend. During
 development, everything was OK. I was developing my GWT app from my
 webroot and everything was working correctly and was properly
 interacting with php.

 However, when I compiled the GWT app and place it the same place where
 my original GWT app was and try to run it, the interface shows up but
 every place where to i need to interact with the server, it fails
 outputting application error messages which i set whenever my web app
 cannot interact with the server

 Can someone help, I really needs to get this work!!

Can you post the error messages and stacktrace?
Also check the console of your browser and give us the error messages.

I am sure it is only a tiny thing...

Best,

Raphael



 --
 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 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Blank page on internet explorer 6

2011-12-05 Thread Raphael André Bauer
On Mon, Dec 5, 2011 at 12:55 PM, Thomas Broyer t.bro...@gmail.com wrote:


 On Monday, December 5, 2011 11:38:28 AM UTC+1, bognekadje wrote:

 Hi,
 I am using gwt 2.3 (with UiBinder) and try to launch my application on
 internet explorer 6.
 I got a blank page with and error message such as onModuleLoad()
 fails.


 Such an error message probably means you're running in DevMode, in which
 case you should have hints as to what failed in the DevMode window (or the
 Development Mode in Eclipse if you use the Google Plugin for Eclipse).


 Firstly, i want to know if gwt 2.3 can be use on internet explorer 6.

You probably know that IE 6 is absolutely outdated and that you'll
have a lot of trouble making your ideas work on IE 6. That is - btw -
not a GWT problem, but a problem of any kind of stuff that should run
on IE 6. IE6 is just evil.

GWT does an excellent jobs making cool things work on IE6. But still -
you'll have problems.

I would 1) Negotiate hard to drop IE 6 support or 2) Use ChromeFrame
to abstract IE6 away.

If you check out HtmlBoilerplate (http://html5boilerplate.com/) it is
really simple and does not need an admin account on the PC:
!--[if lt IE 7 ]
script 
src=//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.2/CFInstall.min.js/script

scriptwindow.attachEvent(onload,function(){CFInstall.check({mode:overlay})})/script
![endif]--


Best,

Raphael





 Yes.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/RTmjfBZvtRkJ.

 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: User visible urls

2011-12-04 Thread Raphael André Bauer
On Mon, Dec 5, 2011 at 7:21 AM, Phil McDonnell
phil.a.mcdonn...@gmail.com wrote:
 I like the concept of GWT being a webapp, but users still want bookmark-able
 urls in many situations.  Does anyone have a pointer for best ways to expose
 urls that can bookmark somewhere deep in a gwt app?

 For instance, a shopping site might have the url
 my-gwt-app.com/products/stuffed-bunny so that a user can return to their
 favorite stuffed bunny product.  Any idea how I can implement this?

One option surely is to use hashbang urls.
my-gwt-app.com/#!/products/stuffed-bunny for instance.

Similar to what twitter does:  twitter.com/#!/username

The idea would be to let GWT manage the whole frontend application.
Both Google and Bing support hashtag crawling
(http://code.google.com/web/ajaxcrawling/docs/getting-started.html).

Btw - have a look at GWTP (http://code.google.com/p/gwt-platform/) -
an alternative implementation of the MVP pattern. I found it easier to
use and customize than GWT's Activities and GWT's PlaceMapper. But
it's up to you.


Best,


Raphael



 Thanks,
 Phil

 --
 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
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Googlebot/SEO questions

2011-11-23 Thread Raphael André Bauer
On Wed, Nov 23, 2011 at 4:59 PM, Daniel eklipto...@googlemail.com wrote:
 Hi,
 I have 3 questions regarding GWT Apps and search engine crawlers
 (particularly googlebot):
 1. I implemented the AJAX crawling
 scheme http://code.google.com/web/ajaxcrawling/docs/getting-started.html on
 some websites with static small HTML pages created on the server for
 googlebot.
 However it seems to me that googlebot indexes a lot less content from
 websites using this scheme. Does anyone know any GWT websites using AJAX
 crawling scheme where a site: search in google delivers many and fresh
 results? Or any other advice and experience in this area??

You can use Google's Webmastertools and the Crawl as Googlebot tool
to check out how your site looks like for Google.

Normally it should index the very same content...

 2. On Sites using #! in their URL (like google groups here) I ALWAYS see a
 directory-like structure after the hashtag. Something like
 #!/value1/value2/... instead of #!key1=value1key2=value2
 Is there a reason for that? Especially concerning SEO and PageRank flowing
 on the different pages within a site?
Sry...
No idea on that... There must be some kind of influence because the
url is part of the ranking. But I guess it's Google's alchemy.

 3. Google also recommends rendering HTML snapshots of the GWT page on the
 server and sending it to googlebot (instead of delivering alternative
 static HTML pages). Suppose the HTML output of my GWT Application doesn't
 have any a href= links at all because all navigation is done by
 other modern controls etc..
 Will googlebot then even be able to crawl the snapshot? Or do I have to fall
 back to serving static HTML pages with links to googlebot in that case? (or
 alternatively adding some classic link elements to my GWT code?).
 Thanks for your help and ideas.

Yea. You absolutely need  a href tags... If you do something else
(aka clickhandler and such) Google will not find it... That might be
related to your question 1).

Hope that helps a bit...

Apart from that #! crawling should just work fine...


Best,


Raphael

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Googlebot/SEO questions

2011-11-23 Thread Raphael André Bauer
On Wed, Nov 23, 2011 at 6:22 PM, Daniel eklipto...@googlemail.com wrote:
 thanks for your answer.
 So I'll force some link tags to the GWT HTML output too, even though the
 static HTML output has links. Just to be sure, in case google checks the
 javascript-version for links every now and then.
 Another related question:
 I noticed twitter uses 302 redirects. Any ideas why that is good for SEO
 with Ajax pages?? Or has their 302 redirect other reasons?
 Example:
 In the search results of google you will find: twitter.com/username
 When you open that link twitter will do a 302 redirect to
 twitter.com/#!/username

Guess they simply changed their internal structure... in case somebody
searches for username twitter google will automatically point to
twitter.com/#!/username and not the old  twitter.com/username. 302's
are read by Google and applied accordingly - but they are simply there
to help Google (and a user's browser ;) ) make sense of a changed
website structure...

Best,

Raphael





 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/nFzEQGDHaqQJ.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: DataGrid, Activity/Place don't work on IE7

2011-11-18 Thread Raphael André Bauer
On Fri, Nov 18, 2011 at 12:55 PM, Juan Pablo Gardella
gardellajuanpa...@gmail.com wrote:
 Well some news:

 - Showcase work on IE7.

 - If I removing the DockLayoutPanel (setting explicit dimensions on the
 DataGrid instead):

 DON'T WORK
     g:VerticalPanel addStyleNames='mainPanel'
         g:DockLayoutPanel unit=PX height=450px width=700px
             g:center
                 c:DataGrid ui:field=resultTable /
             /g:center
         /g:DockLayoutPanel
     /g:VerticalPanel

 WORKS:
          c:DataGrid ui:field=resultTable height=450px
 width=700px/

 So, it seems datagrid inside dockpanel doesn't work well on IE7.

 I'll continue with more tests.. Thanks Thomas

The problem is almost certainly your VerticalPanel (Thomas already
pointed that out). But I am not sure if setting the height and width
will remediate things...

Can you try to remove the VerticalPanel and check if it works?

Eg try that:

        g:DockLayoutPanel unit=PX height=450px width=700px
             g:center
                 c:DataGrid ui:field=resultTable /
             /g:center         /g:DockLayoutPanel


Best,


Raphael

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: mgwt: Building iPhone / Android app with GWT

2011-11-15 Thread Raphael André Bauer
On Mon, Nov 14, 2011 at 7:51 PM, Daniel Kurka
kurka.dan...@googlemail.com wrote:
 For those interested mgwt 1.0 was just released.

 Link to the project homepage:
 http://www.m-gwt.com

 Link to the blogpost:
 http://blog.daniel-kurka.de/2011/11/mgwt-10-released.html

Great - thanks for your efforts :)

Best,

Raphael

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Saving Object to fole on Server

2011-11-10 Thread Raphael André Bauer
On Thu, Nov 10, 2011 at 11:19 AM, m...@grayout.de m...@grayout.de wrote:
 Hi hth,

 thanks for the response. Sorry I am not this familiar with file
 operations. Maybe we can start from scratch: I want to store an object
 on the server for later use. The Object should persist on the server
 even if the server is restarted. For several reasons, I do not like to
 store the Object in a database. Can anybody give me a hint how to
 achieve this best?

I guess the problem is that your question is not really related to GWT
as it's client side. It is not even that much related to servers as
it's quite Java specific.

But you can store / retrieve objects using an objectoutput stream.

This will get you started:
http://stackoverflow.com/questions/2744962/load-store-objects-in-file-in-java

I assume you are from Germany - there is a great German open source
book. Check out:
http://stackoverflow.com/questions/2744962/load-store-objects-in-file-in-java


But - for many reasons it is better storing objects into a database...

Best,

Raphael





 Thanks

 Uli

 --
 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 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.





-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Saving Object to fole on Server

2011-11-07 Thread Raphael André Bauer
On Mon, Nov 7, 2011 at 3:49 PM, m...@grayout.de m...@grayout.de wrote:
 Does anyboday has some Idea?

Are you doing this on the client side GWT code? Because this doesn't
work as GWT is cross-compiled and your code lives on the Browser and
doesn't even know the server.

If you do it on the server (eg via a servlet) you should check out the
server logs of your application container. But anyway - I don't think
it is a great idea saving stuff to a file on the server via a file
operation (security is one thing that comes to my mind).


Best,


Raphael







 Best regards

 Uli

 --
 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 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.





-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: JSON Data in GWT

2011-10-31 Thread Raphael André Bauer
On Mon, Oct 31, 2011 at 4:37 PM, IDeshpande indraneeld2...@gmail.com wrote:
 Hi All,

 I have my application which sends me a form in JSON format.
 Is there any direct way or API GWT provides to render this JSON data
 into any GWT UI element like Panel or a Dialog box?

GWT itself does not support direct JSON Widget data binding.
If you want to parse JSON data I can recommend
https://github.com/chirino/resty-gwt . Rendering data after parsing
with resty gwt is simple...

Best,

Raphael


 --
 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 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.





-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Handling authorization exception from server to client

2011-10-28 Thread André Salvati
Ok Thomas, understood.

Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/qLLwHk25_3gJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Handling authorization exception from server to client

2011-10-27 Thread André Salvati

So, wasn't it supposed to enter the code bellow on
AbstractRequestContext? Is not it a general failure?? Maybe this is
an issue with RequestFactory...

if (response.getGeneralFailure() != null) {
ServerFailureMessage failure = response.getGeneralFailure();
ServerFailure fail =
new ServerFailure(failure.getMessage(),
failure.getExceptionType(), failure
.getStackTrace(), failure.isFatal());

fail(receiver, fail);
return;
  }



On Oct 26, 11:15 am, Thomas Broyer t.bro...@gmail.com wrote:
 F is present in I, meaning one particular invocation (service method
 call) failed, not the whole batch request (well, actually, S:[false]
 says the one and only invocation failed, then the object in I gives
 information about the failure).

 FYI, the response format is defined by the
 com.google.web.bindery.requestfactory.shared.messages.ResponseMessage
 AutoBean.

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Handling authorization exception from server to client

2011-10-26 Thread André Salvati
Hi,

I've been working with GWT 2.4 and trying to send an authorization
exception from server to client whitout success.

1) Server:

A - Raise ReportableException throught report() on my
ServiceLayerDecorator.

B – Send the following JSON to the client:

{S:[false],I:[{F:true,M:Não
autorizado,X:com.google.web.bindery.requestfactory.server.ReportableException}]}

2) Client:

AbstractRequestContext doesn't enter on processPayload() → if
(response.getGeneralFailure() != null) because it doesn't find key
“F” (but “F” is there, isn't??)


What is wrong?

Is it the right way to treat this kind of exception?

Thank you.

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GPE issue - erasing libs on Run As

2011-10-10 Thread André Salvati
New issue opened as reported on Google Plugin for Eclipse forum...

https://groups.google.com/group/google-plugin-eclipse/browse_thread/thread/d0d78dd4fd6540e

On Oct 8, 10:38 am, André Salvati andre.f.salv...@gmail.com wrote:
 Sudhakar,

 Let make myself clear.

 Maven (package goal) is building my app. So, ALL libs that I need are
 put in WEB-INF/lib (guice and shiro inclusive). When try to Run as..
 my application withGPE, just guice and shiro libs disappears.

 On Oct 7, 3:48 am, Sudhakar Abraham s.abra...@datastoregwt.com
 wrote:







  Google Plugin Eclipse (GPE) does not delete the library jar in WEB-INF/
  lib directory by itself.  So manually copy /paste the Juice and shiro
  jars in WEB-INF/lib directory.

   S. Abrahamwww.DataStoreGwt.com
  Persist objects directly in GAE

  On Oct 6, 10:59 pm, André Salvati andre.f.salv...@gmail.com wrote:

   Hi,

   strange behavior that started to happen onGPEafter add guice and
   shiro jars.

   Step 1 - Package app (maven). All jars are on WEB-INF/lib as expected.

   Step 2 - Execute Run as - Web Application... gets
   java.lang.ClassNotFoundException:
   com.google.inject.servlet.GuiceServletContextListener. I noticed that
   guice and shiro jars disapeared from my WEB-INF/lib

   Note: When I execute gwt:run after 1, everything works fine.

   DoesGPEmake any validation before start to run? WhyGPEis deleting
   some of my jars??

   Should I crosspost questions aboutGPEon GAE forum?

   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.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GPE issue - erasing libs on Run As

2011-10-08 Thread André Salvati
Sudhakar,

Let make myself clear.

Maven (package goal) is building my app. So, ALL libs that I need are
put in WEB-INF/lib (guice and shiro inclusive). When try to Run as..
my application with GPE, just guice and shiro libs disappears.

On Oct 7, 3:48 am, Sudhakar Abraham s.abra...@datastoregwt.com
wrote:
 Google Plugin Eclipse (GPE) does not delete the library jar in WEB-INF/
 lib directory by itself.  So manually copy /paste the Juice and shiro
 jars in WEB-INF/lib directory.

  S. Abrahamwww.DataStoreGwt.com
 Persist objects directly in GAE

 On Oct 6, 10:59 pm, André Salvati andre.f.salv...@gmail.com wrote:







  Hi,

  strange behavior that started to happen on GPE after add guice and
  shiro jars.

  Step 1 - Package app (maven). All jars are on WEB-INF/lib as expected.

  Step 2 - Execute Run as - Web Application... gets
  java.lang.ClassNotFoundException:
  com.google.inject.servlet.GuiceServletContextListener. I noticed that
  guice and shiro jars disapeared from my WEB-INF/lib

  Note: When I execute gwt:run after 1, everything works fine.

  Does GPE make any validation before start to run? Why GPE is deleting
  some of my jars??

  Should I crosspost questions about GPE on GAE forum?

  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.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GPE issue - erasing libs on Run As

2011-10-06 Thread André Salvati
Hi,

strange behavior that started to happen on GPE after add guice and
shiro jars.

Step 1 - Package app (maven). All jars are on WEB-INF/lib as expected.

Step 2 - Execute Run as - Web Application... gets
java.lang.ClassNotFoundException:
com.google.inject.servlet.GuiceServletContextListener. I noticed that
guice and shiro jars disapeared from my WEB-INF/lib

Note: When I execute gwt:run after 1, everything works fine.

Does GPE make any validation before start to run? Why GPE is deleting
some of my jars??

Should I crosspost questions about GPE on GAE forum?

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.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GPE issue - erasing libs on Run As

2011-10-06 Thread André Salvati
Just found a new group for GPE.

https://groups.google.com/group/google-plugin-eclipse

On Oct 6, 2:59 pm, André Salvati andre.f.salv...@gmail.com wrote:
 Hi,

 strange behavior that started to happen on GPE after add guice and
 shiro jars.

 Step 1 - Package app (maven). All jars are on WEB-INF/lib as expected.

 Step 2 - Execute Run as - Web Application... gets
 java.lang.ClassNotFoundException:
 com.google.inject.servlet.GuiceServletContextListener. I noticed that
 guice and shiro jars disapeared from my WEB-INF/lib

 Note: When I execute gwt:run after 1, everything works fine.

 Does GPE make any validation before start to run? Why GPE is deleting
 some of my jars??

 Should I crosspost questions about GPE on GAE forum?

 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.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: New group for Google Plugin for Eclipse (GPE)

2011-10-06 Thread André Salvati
Please,

could you update?

http://code.google.com/eclipse/community.html

Thanks.


On Sep 9, 5:43 am, gwt.user gwt.u...@yahoo.fr wrote:
 This is cool news.
 Thx.

 On Sep 8, 6:11 am, Sriram Saroop sar...@google.com wrote:







  Hi folks,
  We have created a new group for Google Plugin for Eclipse (GPE).

 https://groups.google.com/group/google-plugin-eclipse
  google-plugin-ecli...@googlegroups.com

  Do join this group and feel free to post your queries/suggestions on GPE.

  Cheers,

  The GPE team

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: ERROR: GWT 2.3 + gwt-maps

2011-07-30 Thread André Nunes
Hi, i prefer to use a official api v3, because i've a book that
explain very much the new things of this version. For use this annex,
I need to add this .jar in external jars in build path, and wich
inherits, script, or other things I need to add in .xml module ?
Can you explain this steps, that are before the compile time ? Because
use GWT, Google Maps, Eclipse, all this I've a knowledge, but doesn't
compile Gmaps.jar .
I really appreciate your help, and sorry for my bad english.



On 28 jul, 03:24, Bin Wu b...@bluepoint.net.au wrote:
 Qual biblioteca você realmente quer usar? O oficial do Google gwt-maps api
 ou a lib do 3o partido a partir 
 dehttp://code.google.com/p/gwt-google-maps-v3/?

 A lib do 3o partido apóia GMaps versão 3, mas já foi preterido por um
 ano. Então eu não sei muito sobre ele.

 O oficial do Google api parece suportar apenas mapas versão 2. Eu chequei o
 fonte e compilado com GWT2.3, até agora tudo que eu preciso só funciona bem. 
 Eu
 junto em anexo o jar lib com este post. Ver se isso ajuda.

 2011/7/27 André Nunes an...@ hotmail.com







  Oi, eu usando GWT 2.3 com gwt-maps.jar, mas eu tenho problemas, não
  Compilação, mas eu sigo todos os passos que guia.

  Uma parte dos problemas estão listados abaixo:

  [ERROR] Erros em 'jar: file: / C: / eclipse/gwt-maps-1.1.0/gwt-
  Maps3-0.2a.jar! / Com / google / gwt / maps / cliente / base / LatLng.java '
  [ERROR] Erro interno do compilador
  Java.lang.IncompatibleClassChangeError: interface encontrado
  Com.google.gwt.core.ext.typeinfo.JClassType, mas a classe era esperado
  Em

  Com.google.gwt.jsio.rebind.JSWrapperGenerator.generate 
  (JSWrapperGenerator.j ava:
  276)
  Em

  Com.google.gwt.core.ext.GeneratorExtWrapper.generate 
  (GeneratorExtWrapper.ja va:
  48)

  Alguém pode me ajudar?

  -
  Você recebeu esta mensagem porque está inscrito para o Google Groups
  Google Web Toolkit grupo.
  Para postar neste grupo, envie um e-mail para 
  google-web-toolkit@googlegroups.com.
  Para sair deste grupo, envie um email para
  Google-web-toolkit + unsubscr...@googlegroups.com.
  Para mais opções, visite este grupo em
 http://groups.google.com/group/google-web-toolkit?hl=en.



 gwt-maps.jar
 995KExibirdownload

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Can We develop G-Talk kindOf desktop application using GWT

2011-07-29 Thread Raphael André Bauer
On Fri, Jul 29, 2011 at 2:01 PM, J.Ganesan j.gane...@datastoregwt.com wrote:
 Have a look at 
 https://addons.mozilla.org/en-US/firefox/addon/mozilla-labs-rainbow/.
 Putting a GWT wrapper, one can implement voice chat but it is limited
 to FireFox. WebRTC looks far more advanced though.

If you want to go for xmpp - try emite-gwt - great lib:
http://code.google.com/p/emite/

best,

raphael


 J.Ganesan
 www.DataStoreGwt.com

 On Jul 28, 8:28 am, msp munukutlaprav...@gmail.com wrote:
 Hi GWT,

 Can we develop G-Talk kindof desktop application using GWT ? oor GWT
 is specific for Desktop applications ?

 Kindly someone ackowledge with answer.

 Thanks in advance.
 ~MSP

 --
 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 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.





-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Developer Plugin on Safari 5.1 (OS X Lion 10.7) doesn't load

2011-07-27 Thread Raphael André Bauer
On Tue, Jul 26, 2011 at 6:57 PM, Jurriaan Mous m...@lable.org wrote:
 A workaround:

 We fixed it with downloading http://support.apple.com/downloads/Safari_4_0_3
 and extracting Safari.app from the dmg its Applications folder with a
 trial of http://www.macupdate.com/app/mac/6812/pacifist

 It works both on Snow Leopard as on Lion. You can rename the old
 Safari so you can have both together on one system. The App uses the
 new Webkit on the system so it is only the old Safari user interface
 shell which uses the old Webkit API.

Great catch - thanks :)
Raphael


 On 20 jul, 21:28, Eric Ridge eeb...@gmail.com wrote:
 Is there a trick to get the currently-available-for-Safari plugin to
 work with Safari 5.1/OS X 10.7?  Safari refuses to load it, and I can
 find no indication as to why.

 (fortunately, I keep around a copy of Safari 4.0.5 so I can keep working.)

 Any insight will be greatly appreciated!

 eric

 --
 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 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.





-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



ERROR: GWT 2.3 + gwt-maps

2011-07-27 Thread André Nunes
Hi, i using GWT 2.3 with gwt-maps.jar , but i've trouble, didn't
compile, but i follow all steps that guide.

A part of problems are listed bellow:

[ERROR] Errors in 'jar:file:/C:/eclipse/gwt-maps-1.1.0/gwt-
maps3-0.2a.jar!/com/google/gwt/maps/client/base/LatLng.java'
  [ERROR]  Internal compiler error
java.lang.IncompatibleClassChangeError: Found interface
com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
at
com.google.gwt.jsio.rebind.JSWrapperGenerator.generate(JSWrapperGenerator.java:
276)
at
com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:
48)

Someone can help me?

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT integration to the cloud

2011-07-26 Thread Raphael André Bauer
Hi,


I tried Roo and GWT integration some months ago and the results were
devastating. Not only was Roo (coupled with GAE) totally unstable -
the GWT support was that limited that it's better to write your own
stuff. At the beginning I though that AspectJ is cool. But now I think
that AspectJ will be the reason why Roo will fail (if it fails).

Or solution is the following setup:
- Backend: play framework (http://www.playframework.org/) / App Engine / Siena
- Clean rest / json api
- restygwt as json/gwt wrapper
- GWT for fat js clients

This setup works like a charm and is really rapid (superfast server
reloads / quick debugging and such). It also unites the best of both
worlds - a great backend server + gwt's development mode and it's
supercool way to develop large scale js apps

Sorry for that negative opinion about Roo - prove me wrong :)


Best,

Raphael





On Tue, Jul 26, 2011 at 12:10 PM, Bademus - bade...@gmail.com wrote:
 I would like to test new feature [(Issue 6234) RequestContext interfaces can
 be composed]. But simply by inherite base interface it didn't work. Did I
 miss new annotation?
 (Tested with gwt 2.4 beta)

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/LgKvprYhY2kJ.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
inc: http://ars-machina.raphaelbauer.com
tech: http://ars-codia.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT 2.2 and gwt-maps.jar not compatible

2011-07-26 Thread André Nunes
Hi, how i can rebuild gwt-maps ?? I using gwt 2.3, what version of gwt-maps i 
should use ?
tkxs !



-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: POJO to JSON

2011-06-24 Thread Raphael André Bauer
On Fri, Jun 24, 2011 at 4:59 PM, Harald Pehl harald.p...@googlemail.com wrote:
 Hi,
 Thomas you're right: You can use Piriti (http://code.google.com/p/piriti/)
 on the client side to map JSON to POJOs and serialize it back to JSON.
 Please note that Piriti is only meant to be used on the client side. It's
 not usable on the server side. But you can share your POJOs between client
 and server.
 - Harald

There is another great library available (guess not many people know
of it) - RestyGWT
check it out:
http://restygwt.fusesource.org/


Best,

Raphael



 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/sqSYKUYr-9sJ.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
blog: http://ars-machina.raphaelbauer.com
web: http://raphaelbauer.com

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Context Menu in CellTable

2011-06-23 Thread André Salvati
Now, with a dynamic context (defined by View).

The only problem that remains is that when I click the context menu,
the place changes but popup still keeps opened.

Does someone knows how to solve it?


public class TextCellNX extends AbstractSafeHtmlCellString{

MenuItem[] contextMenu;

public TextCellNX(MenuItem[] contextMenu) {
super(SimpleSafeHtmlRenderer.getInstance(), contextmenu);
this.contextMenu = contextMenu;
}

public TextCellNX(SafeHtmlRendererString renderer) {
super(renderer);
}

@Override
public void render(Context context, SafeHtml value, SafeHtmlBuilder
sb) {
if (value != null) {
sb.append(value);
}
}

@Override
public void onBrowserEvent(Context context, Element parent, String
value, NativeEvent event, ValueUpdaterString valueUpdater) {

if (contextmenu.equals(event.getType())) {

event.preventDefault();
event.stopPropagation();

MenuItem acao = contextMenu[0];

MenuBar popupMenuBar = new MenuBar(true);
popupMenuBar.addItem(acao);
popupMenuBar.setVisible(true);

PopupPanel popupPanel = new PopupPanel(true);
popupPanel.add(popupMenuBar);
popupPanel.setPopupPosition(event.getClientX(),
event.getClientY());
popupPanel.show();

}

}
}

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



error in opening zip file

2011-06-22 Thread André Nishimura
Hello

I need help!
I'm trying to run my application in eclipse but i have this problem:

Starting Jetty on port 
   [WARN] Failed startup of context
com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload@11afa07
{/,/home/andrenishimura/Documents/workspace-sts-2.6.0.RELEASE/infoseal_trunk2/target/infoseal-0.1.0}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.init(ZipFile.java:127)
at java.util.jar.JarFile.init(JarFile.java:135)
at java.util.jar.JarFile.init(JarFile.java:99)
at
org.mortbay.jetty.webapp.TagLibConfiguration.configureWebApp(TagLibConfiguration.java:168)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1217)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)
at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at
com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:461)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at
org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at
com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:565)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800)
at com.google.gwt.dev.DevMode.main(DevMode.java:304)

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Context Menu in CellTable

2011-06-21 Thread André Salvati
Ok, following 1) I've got the code bellow.

Now, how can I define an event handler on a view which wraps this
CellTable??

These handlers are suposed to be defined by view and not by cells!!


public class TextCellNX extends AbstractSafeHtmlCellString {

public TextCellNX() {
super(SimpleSafeHtmlRenderer.getInstance(), contextmenu);
}

public TextCellNX(SafeHtmlRendererString renderer) {
super(renderer);
}

@Override
public void render(Context context, SafeHtml value, SafeHtmlBuilder
sb) {
if (value != null) {
sb.append(value);
}
}

@Override
public void onBrowserEvent(Context context, Element parent, String
value, NativeEvent event, ValueUpdaterString valueUpdater) {
String eventType = event.getType();

if (contextmenu.equals(eventType)) {

event.preventDefault();

MenuBar popupMenuBar = new MenuBar(true);
MenuItem acao1 = new MenuItem(Ação 1, true,  new 
Command() {

@Override
public void execute() {
Window.alert(clicado);
//placeController.goTo(new 
ProxyListPlace(ClienteProxy.class));
}

});

popupMenuBar.addItem(acao1);
popupMenuBar.setVisible(true);

PopupPanel popupPanel = new PopupPanel(true);
popupPanel.add(popupMenuBar);
popupPanel.setPopupPosition(event.getClientX(),
event.getClientY());
popupPanel.show();

}
}
}

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Context Menu in CellTable

2011-06-21 Thread André Salvati
Should I use EventBus even when the event is generated by an inner
component?

What would be a good design?

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.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Context Menu in CellTable

2011-06-20 Thread André Salvati
Hi,

just wondering the right way to create a context menu for rows inside
a CellTable.

1)  Working with events from my own TextCell as described bellow.
http://stackoverflow.com/questions/4815596/adding-double-click-event-in-celltable-cell-gwt

2) Working with events from a wrapper widget which contains a
CellTable. In this case, is it possible to know what was the component
who generated the event?

Is there another way?

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.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT, MVP, GIN, code splitting?

2011-06-16 Thread Raphael André Bauer
Check out this issue (includes source code):
http://code.google.com/p/google-web-toolkit/issues/detail?id=5129

If you followed the best practises you can easily hide your activities
behind proxies that do the code splitting automatically.


Best,


Raphael


On Thu, Jun 16, 2011 at 6:10 PM, Juan Pablo Gardella
gardellajuanpa...@gmail.com wrote:
 +1

 2011/6/16 Ahmed ahmed.zar...@gmail.com

 How to minimize the amount of code downloaded initially by GWT app
 user's browser? Well, just wrap potentially big operations in a
 GWT.runAsync() call. However, since our application is using GWT best
 practices (dependency injection, MVP pattern), it’s not as
 straightforward as GWT doc describes. Could you please give me an idea
 on how to use code splitting in conjunction with GIN?

 --
 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
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


 --
 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
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: MVP pattern problem with singletons views

2011-06-12 Thread Raphael André Bauer
On Sun, Jun 12, 2011 at 9:50 PM, Juan Pablo Gardella
gardellajuanpa...@gmail.com wrote:
 I can fix with static variables to store like this:


There is an onStop() method in activities that is called when
activities are stopped... call a unbind() there and everything is nice
and clean..

Cheers,


Raphael


 //static variables
 private static HandlerRegistration handlerBoton1;
 ,,,

 start(..){
 ...
 bind();
 }
 ...
 bind() method:

                //Esto lo hacemos para borrar el handler el presenter anterior.
                if (handlerBoton1!=null)
                        handlerBoton1.removeHandler();

                handlerBoton1= vista.getBoton1().addClickHandler(
                                new ClickHandler() {
                                        @Override
                                        public void onClick(ClickEvent event) {
                                                ...
                                        }
                                });


 I don't like much, but it works. Is there are other way? Use eventBus
 and @UiHandler don't have this problem, but I must have event
 +eventHandler.

 Juan


 On 12 jun, 12:31, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:
 Hi,

 Recently I have a problem and discover that the cause is about presenters
 (activities non singletons) and views singleton. My code is similar to this:

 private void bind() {
  myView.getButton1().addClickHandler(new ClickHandler() {
 @Override
 public void onClick(ClickEvent event) {
 ...});

  myView.getButton2().addClickHandler(new ClickHandler() {
 @Override
 public void onClick(ClickEvent event) {
 ...

 });
 }

 This method is invoque in start() method of the Activity.

 BUT have a problem this code. Add multiple handlers (one each time an
 activity start). Then, when I click the botton, the event execute n times (n
 times execute start method in activity). So I think this bind() method is
 dangerous, the presenter must know if the view is singleton or not.

 There are a manner to use bind() method in activity and singletons view?

 Juan

 --
 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 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Strange gwt compile error: JPrimitiveType JReferenceType

2011-05-25 Thread Raphael André Bauer
On Fri, May 20, 2011 at 3:34 PM, Raphael André Bauer
raphael.andre.ba...@gmail.com wrote:
 On Fri, May 20, 2011 at 3:15 PM, Brian Reilly brian.irei...@gmail.com wrote:
...
Just a quick follow-up:
- Bug 2478 seems to be related and I added a description of our
problem (http://code.google.com/p/google-web-toolkit/issues/detail?id=2478#c11)
- Hotfix: If you run into the error you can change the char[] to
Character[] in Base64Coder.java - and the error goes away magically.

So far,

Raphael

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: download gwt application data

2011-05-25 Thread Raphael André Bauer
On Wed, May 25, 2011 at 5:24 PM, barz1 mbarsz...@yahoo.com wrote:
 Thanks for the response, I apologize for the unclear post, but I guess
 I mean, for instance say I click the search button on my gwt
 application and it returns a page of search results that are pulled
 from the server. I am interested in writing a script in which I can
 mimic such a server request and then download the search results to
 save into a text or csv or something along those lines. I hope this
 clears it up some.

A browser plugin like firebug for firefox [1] or Safari's or Chromes'
built in inspect functions might do the job...

Best,


Raphael


[1] https://addons.mozilla.org/en-US/firefox/addon/firebug/


 On May 25, 11:08 am, David Chandler drfibona...@google.com wrote:
 GWT apps manipulate the browser's DOM directly via Javascript, so there is
 no HTML layout. Is that what you mean by page content? However, you can
 use the Snapshot Firefox extension to save the DOM structure at a given
 point in time as an HTML file.

 HTH,
 /dmc



 On Wed, May 25, 2011 at 10:47 AM, barz1 mbarsz...@yahoo.com wrote:

  The company I work for is switching its front end to a gwt application
  and I was wondering if it is possible to write a script (whether with
  bash and wget or cURL, or java or anything) that enables me to
  download the actual content of the gwt web application. Because right
  now if I try with a command such as wget I just download a page with
  some javascript functions, but none of the actual page content (what I
  am interested in). I am on the QA side so I guess I am wondering if it
  is possible to perform such a task without having direct access to the
  developers code. 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.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

 --
 David Chandler
 Developer Programs Engineer, Google Web Toolkit
 w:http://code.google.com/
 b:http://googlewebtoolkit.blogspot.com/
 t: @googledevtools

 --
 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 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



xs vs. xsiframe linker - purpose of two cross site linkers in GWT

2011-05-23 Thread Raphael André Bauer
Hi,


I recently tried to use GWT's Cross Site linkers to allow GWT code
loaded from different servers.
And - they really like a charm - great work! :)

Linker xs does not seem to work in dev mode [1], Linker xsiframe
[2] works both in dev an production mode, but needs script tags of
gwt.xml to be included by the host html page. Both seem to support
code splitting.

But still - can anybody explain why there are two Cross Site linkers?
What's the difference between the two?

Thanks!


Best,

Raphael
[1] 
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/core/XSLinker.gwt.xml
[2] 
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/core/CrossSiteIframeLinker.gwt.xml

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Strange gwt compile error: JPrimitiveType JReferenceType

2011-05-20 Thread Raphael André Bauer
Hi GWTlist,


we are getting a strange compile exception and we are not sure where
it comes from. The project is
up and running for months now, but out of a sudden stopped working...
Maybe somebody knows something like that (there is an issue [1] here,
but I am not sure if it's related).

Does anybody have a good starting point to get to the root of the
problem? At the end it seems we or
any 3rd party library we are using is causing the problem. But the
stacktrace does not give any
exact information on that. Stacktrace is attached below.

Any help appreciated...

Thanks,


Raphael

[1] http://code.google.com/p/google-web-toolkit/issues/detail?id=2478




[INFO]Compiling 18 permutations
[INFO]   Compiling permutation 0...
[INFO]   Process output
[INFO]  Compiling
[INFO] Compiling permutation 1...
[INFO]   [ERROR] An internal compiler exception occurred
[INFO] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected
error during visit.
[INFO]  at 
com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:108)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:277)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:266)
[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:115)
[INFO]  at 
com.google.gwt.dev.jjs.ast.JBinaryOperation.traverse(JBinaryOperation.java:82)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:362)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:274)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:266)
[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:115)
[INFO]  at 
com.google.gwt.dev.jjs.ast.JWhileStatement.traverse(JWhileStatement.java:44)
[INFO]  at 
com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)
[INFO]  at 
com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:337)
[INFO]  at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:362)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:274)
[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:136)
[INFO]  at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:132)
[INFO]  at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:82)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:362)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:274)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:266)
[INFO]  at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:329)
[INFO]  at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:297)
[INFO]  at 
com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)
[INFO]  at 
com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:337)
[INFO]  at com.google.gwt.dev.jjs.ast.JClassType.traverse(JClassType.java:80)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:362)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:288)
[INFO]  at com.google.gwt.dev.jjs.ast.JProgram.traverse(JProgram.java:1124)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:362)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:274)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:266)
[INFO]  at 
com.google.gwt.dev.jjs.impl.EqualityNormalizer.execImpl(EqualityNormalizer.java:223)
[INFO]  at 
com.google.gwt.dev.jjs.impl.EqualityNormalizer.exec(EqualityNormalizer.java:208)
[INFO]  at 
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:302)
[INFO]  at 
com.google.gwt.dev.jjs.UnifiedAst.compilePermutation(UnifiedAst.java:136)
[INFO]  at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:192)
[INFO]  at 
com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:49)
[INFO]  at 
com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:73)
[INFO]  at java.lang.Thread.run(Thread.java:680)
[INFO] Caused by: java.lang.ClassCastException:
com.google.gwt.dev.jjs.ast.JPrimitiveType cannot be cast to
com.google.gwt.dev.jjs.ast.JReferenceType
[INFO]  at 
com.google.gwt.dev.jjs.impl.EqualityNormalizer$BreakupAssignOpsVisitor.endVisit(EqualityNormalizer.java:85)
[INFO]  at 
com.google.gwt.dev.jjs.ast.JBinaryOperation.traverse(JBinaryOperation.java:84)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:362)
[INFO]  at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:274)
[INFO]  ... 38 more
[INFO]  [ERROR] at Base64Coder.java(73): in[iLen - 1] == '='
[INFO]   

Re: Strange gwt compile error: JPrimitiveType JReferenceType

2011-05-20 Thread Raphael André Bauer
On Fri, May 20, 2011 at 10:29 AM, Raphael André Bauer
raphael.andre.ba...@gmail.com wrote:
 Hi GWTlist,


 we are getting a strange compile exception and we are not sure where
 it comes from. The project is
 up and running for months now, but out of a sudden stopped working...
 Maybe somebody knows something like that (there is an issue [1] here,
 but I am not sure if it's related).

I added '-Dgwt.draftCompile=true' and it works again. But that's not
really an option for us...

Any ideas?


Thanks :)

Raphael

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Strange gwt compile error: JPrimitiveType JReferenceType

2011-05-20 Thread Raphael André Bauer
On Fri, May 20, 2011 at 10:49 AM, Raphael André Bauer
raphael.andre.ba...@gmail.com wrote:
 On Fri, May 20, 2011 at 10:29 AM, Raphael André Bauer
 raphael.andre.ba...@gmail.com wrote:
 Hi GWTlist,


 we are getting a strange compile exception and we are not sure where
 it comes from. The project is
 up and running for months now, but out of a sudden stopped working...
 Maybe somebody knows something like that (there is an issue [1] here,
 but I am not sure if it's related).

 I added '-Dgwt.draftCompile=true' and it works again. But that's not
 really an option for us...

optimizationLevel0/optimizationLevel
also fixes the issue, but again - not an option as the generated files
are approx. 6 times the size.

Again - any hints regarding debugging the issue are appreciated.


Thanks :)


Raphael

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Strange gwt compile error: JPrimitiveType JReferenceType

2011-05-20 Thread Raphael André Bauer
On Fri, May 20, 2011 at 3:15 PM, Brian Reilly brian.irei...@gmail.com wrote:
 Have you recently moved to a newer version of GWT? The errors look
 vaguely like the kinds of errors that 3rd party libraries ran into
 when GWT 2.2 was released. However, I don't see any 3rd party packages
 listed in the stack trace. My best guess is that you may have multiple
 versions of the GWT jars on your classpath during compilation.

 It might help if you can provide the versions of GWT and any 3rd party
 libraries you're using.

 -- Brian

Hi Brian,


thanks for the reply :)
We had 2.1.0 / 2.2.0 probs as well, but afaik the symptom was
something like: java.lang.IncompatibleClassChangeError: Found
interface com.google.gwt.core.ext.typeinfo.JClassType, but class was
expected . So I guess it's yet another problem...

After some debugging I found out that Base64Coder.java [1] might refer
to a 3rd party lib we are using: Emite (An excellent jabber / xmpp GWT
library).

I am currently asking on their list if they know anything [2]...

Any help still appreciated...

I'll keep you updated,


Best,

Raphael


[1] 
https://github.com/EmiteGWT/emite/blob/master/src/main/java/com/calclab/emite/core/client/xmpp/sasl/Base64Coder.java
[2] http://groups.google.com/group/emite/browse_thread/thread/eb6c469c9593fbb2

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: separate js + css + images from server

2011-05-20 Thread Raphael André Bauer
On Fri, May 20, 2011 at 5:25 PM, Andi andi.ba...@googlemail.com wrote:
 you should use the xs linker in *.gwt.xml

Even better: xsiframe linker :)
add-linker name=xsiframe /

Introduced in GWT 2.1 and works both in hosted and dev mode :)


Best,


Raphael




 andi

 (vom fon)

 On 20.05.2011, at 16:35, mpo marc.poli...@gmail.com wrote:

 We'd like to have the following configuration :

 - one server is replying to GWT RPC : x.com (the one running Java)
 - another server is serving js / css / images : y.com (for bandwith
 optimization)

 So the main page is :  http://x.com/index.html
 and contains this line:  script type=text/javascript
 language=javascript src=http://x.com/my-app.nocache.js;/script

 We're getting a SOP error: Unsafe JavaScript attempt to access frame
 with URL ...

 Any suggestion, help about that ?

 --
 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 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.


 --
 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 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Massive increase in compile time with GWT 2.3

2011-05-18 Thread Raphael André Bauer
On Tue, May 17, 2011 at 11:55 PM, googelybear googelyb...@gmail.com wrote:
 Hi,

 I have recently updated from GWT 2.2.0 to 2.3 and noticed a
 significant increas in compile time: Compile time with 2.2.0 was
 45minutes and now with 2.3 it increased to 1h 12m - that's almost a
 40% increase. I didn't change any settings at all.

 Are others experiencing this as well?
 Do you have any suggestions how to get the compile time down again?

GWT 2.3 introduces a new permutation for IE9. This can explain your
compile time. If you want to support IE9 natively you have to accept
that I guess...


Best,

Raphael

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Google Analytics Cookies in GWT?

2011-05-17 Thread Raphael André Bauer
On Mon, May 16, 2011 at 4:07 PM, sandesh anand.sand...@gmail.com wrote:
 Bumping it up.. ANY thoughts?

Most likely you included analytics javascript in your host.html file.

It's not something GWT generates or transmits...


Best,

Raphael




 On May 6, 3:43 pm, sandesh anand.sand...@gmail.com wrote:
 I am kind of a n00b here. I have developed a Basic GWT app, and when I
 go over the cookies my application sets, I see __utma, __utmz etc.
 These (If I am not wrong) are Google Analytics cookies. Why are they a
 part of my application? Do GWT application send info. to Google
 analytics by default? Note that my GWT app is hosted locally (on my
 box).

 Here's a snapshot of my request:

 Host: x
 Connection: keep-alive
 Referer: xxx
 Content-Length: 157
 Origin: xxx
 User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.24 (KHTML,
 like Gecko) Chrome/11.0.696.60 Safari/534.24
 Content-Type: text/x-gwt-rpc; charset=UTF-8
 Accept: */*
 Accept-Encoding: gzip,deflate,sdch
 Accept-Language: en-US,en;q=0.8
 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
 Cookie: JSESSIONID=;
 __utmz=236660894.1301356240.13.4.utmcsr=google|utmccn=(organic)|
 utmcmd=organic|utmctr=x;
 __utma=236660894.39984831.1290630074.1300118268.1301356240.13;
 JSESSIONID=3CE4E34C59467A91884CDDCBE8816960

 Any help would be appreciated.

 --
 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 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: googlebot ajax crawl for GWT app

2011-05-16 Thread Raphael André Bauer
On Mon, May 16, 2011 at 12:00 AM, 3xM matke@gmail.com wrote:
 hi,

 i have GWT app so i wanted to make it crawlable using directions from
 http://code.google.com/web/ajaxcrawling/docs/getting-started.html

 i added meta name=fragment content=! to my page and other stuff
 necessary according to ajaxcrawling document.
 so when i go to http://www.example.com/?_escaped_fragment_= server returns
 html snapshot corresponding to http://www.example.com.

 when i try Fetch as Googlebot from webmaster tools for
 http://www.example.com/?_escaped_fragment_=
 i can see that googlebot fetched the same html snapshot.

 so, what's the problem?
 when i look at keywords google found when crawling my site (from webmaster
 tools), i see only words from my title and noscript tags (just like before
 adding ajaxcrawling).
 how do i know what content google crawled from my site and did google
 understand meta name=fragment content=! tag?
 does this ajaxcrawling works for anyone?

 here: http://www.google.com/support/webmasters/bin/answer.py?answer=79812
 is a list of meta tags google understands and meta name=fragment
 content=! is NOT among them?

Most probably you do not have a headless html browser running on your
server. This browser is responsible converting Ajax GWT pages to plain
old html.

Document http://code.google.com/web/ajaxcrawling/docs/getting-started.html
describes the approach under section 2)

Best,

Raphael

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: googlebot ajax crawl for GWT app

2011-05-16 Thread Raphael André Bauer
On Mon, May 16, 2011 at 11:08 AM, 3xM matke@gmail.com wrote:
 i have no problem converting Ajax GWT pages to html (i am using
 HtmlUnit). as i said, when i try Fetch as Googlebot from webmaster
 tools for
 http://www.example.com/?_escaped_fragment_=
 i can see that googlebot fetched the html snapshot.

the escaped fragment is not relevant in that case... googlebot makes
the transision automatically...

what does googlebot fetch for http://www.example.com?
do you see the full html generated by gwt and delivered by htmlunit
(ajax crawling works), or only the html loading gwt (something is
broken)?


best,


raphael






 its just that i dont know is google requesting url with ?
 _escaped_fragment_= when crawling.

 --
 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 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Plural forms and I18NCreator

2011-05-13 Thread Raphael André Bauer
Hi everybody,


we are trying to generate i18n interfaces from our property files via
the com.google.gwt.i18n.tools.I18NCreator. In principle it works
perfectly fine.

But there is one thing that does not work: Generating the interface
from plural forms [1] using com.google.gwt.i18n.tools.I18NCreator .

Something like:

cartItems=There are {0,number} items in your cart.
cartItems[one]=There is {0,number} item in your cart.

should become:

@DefaultLocale(en) // not required since this is the default
public class MyMessages extends Messages {
  @DefaultText(There are {0,number} items in your cart.)
  @PluralText({one, There is 1 item in your cart.)
  String cartItems(@PluralCount int itemCount);
}

...but does not get converted in an interface.

Does anybody know if that’s our fault or just not supported
com.google.gwt.i18n.tools.I18NCreator (GWT 2.3)?


Thanks a lot,

Raphael


[1] 
http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideI18nPluralForms.html

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Using -compileReport and JUnit

2011-05-12 Thread Raphael André Bauer
On Wed, May 11, 2011 at 10:48 PM, chris.ruffalo chris.ruff...@gmail.com wrote:

 I'm working on a GWT extension library and would like to get a compile
 report.  My project is just an adjunct to GWT and doesn't have any
 UI.  I will be creating samples when the library is finished but the
 bulk of my code generation is done now.

 Is there any way to set -compileReport while using JUnit?

Don't think it's possible. You need some kind of starting point to
make the cross compilation happen (usually an entry point of a
module). If you don't have such a starting point there is no way to
generate the compileReport.


Best,

Raphael


 Thanks.

 Chris

 --
 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 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Can CodeSplitting technique be used to load another Module within the same app

2011-05-10 Thread Raphael André Bauer
On Tue, May 10, 2011 at 11:17 AM, Kayode Odeyemi drey...@gmail.com wrote:
 Hello,

 I have an app that I want to split into modules. I already have the splitted
 modules,
 now I want to call it from the main module. Can this be achieved with
 GWT.runAsync?

 For example, I want to do this;

 GWT.runAsync(new RunAsyncCallback() {
   public void onFailure(Throwable caught) {
     Window.alert(Code download failed);
   }

   public void onSuccess() {
     // call a module at org.mycompany.Dashboard
   }
     });

You can do that. You can even call you own onModuleLoad on that module
- it's a simple call to an anonymous function.

But I guess it's more important to make sure that your splitting makes
sense. Be sure to check your code splitting in the story of your
compile (SYOC -
http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideCodeSplitting.html).


Best,

Raphael




 Regards

 --
 Odeyemi 'Kayode O.
 http://www.sinati.com. t: @charyorde

 --
 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
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: fail to parse gwt-user-2.3.0.jar!/com/google/gwt/user/UserAgent.gwt.xml error after upgrade to GWT 2.3.0

2011-05-07 Thread Raphael André Bauer
On Sat, May 7, 2011 at 6:15 AM, JosephLi joseph.l...@gmail.com wrote:
 hi all,

 I am still getting some weird error in my project even after:
 1.) convert all references of --com.google.gwt.requestfactory.shared--
 TO --com.google.web.bindery.requestfactory.shared--.

...
Hi Joseh,

as David already pointed out there is a thread on the gwt-maven-plugin
list covering the topic

http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users/browse_thread/thread/5f6c9324a3119c30/2a69785036291ef0?#2a69785036291ef0

The configuration was a bit confusing to me as well, but I documented
there what worked for me. I am pretty sure that it will work for you,
too. Just search for my mail there and follow the three step process I
describe.


Best,

Raphael


 2.) convert all references of --com.google.gwt.requestfactory.client--
 TO --com.google.web.bindery.requestfactory.gwt.client--.
 3.) update the pom.xml to up the GWT from 2.2.0 to 2.3.0.
 4.) update the pom.xml to update the gwt-maven-plugin version 2.1.0-1
 to 2.2.0
 5.) update the pom.xml to include the newer gwt-user, gwt-dev  gwt-
 servlet in the dependencies section within the gwt-maven-plugin.

 And below is the error msg:
 [INFO]    Validating newly compiled units
 [INFO]       [ERROR] Errors in 'jar:file:/C:/Users/Joseph/.m2/
 repository/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/
 google/gwt/editor/client/EditorDriver.java'
 [INFO]          [ERROR] Line 97: No source code is available for type
 javax.validation.ConstraintViolationT; did you forget to inherit a
 required module?
 [INFO]       [ERROR] Errors in 'jar:file:/C:/Users/Joseph/.m2/
 repository/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/
 google/gwt/editor/client/impl/BaseEditorDriver.java'
 [INFO]          [ERROR] Line 67: No source code is available for type
 javax.validation.ConstraintViolationT; did you forget to inherit a
 required module?
 [INFO]       [ERROR] Errors in 'jar:file:/C:/Users/Joseph/.m2/
 repository/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/
 google/gwt/editor/client/impl/SimpleViolation.java'
 [INFO]          [ERROR] Line 40: No source code is available for type
 javax.validation.ConstraintViolationT; did you forget to inherit a
 required module?

 .. errrors continue for a while, then followed by a bunch
 of warnings like the ones listed below...

 [INFO]       Rebinding com.google.gwt.user.client.UserAgentAsserter
 [INFO]          Checking rule generate-with
 class='com.google.web.bindery.requestfactory.gwt.rebind.RequestFactoryEditorDriverGenerator'/

 [INFO]             [WARN] Unknown type
 'com.google.web.bindery.requestfactory.gwt.client.RequestFactoryEditorDriver'
 specified in deferred binding rule
 [INFO]          Checking rule generate-with
 class='com.google.gwt.editor.rebind.SimpleBeanEditorDriverGenerator'/
 [INFO]             [WARN] Detected warnings related to
 'com.google.gwt.editor.client.SimpleBeanEditorDriver'.   Are
 validation-api-version.jar and validation-api-version-sources.jar
 on the classpath?
 [INFO]             Specify -logLevel DEBUG to see all errors.
 [INFO]             [WARN] Unknown type
 'com.google.gwt.editor.client.SimpleBeanEditorDriver' specified in
 deferred binding rule
 [INFO]       Rebinding com.google.gwt.user.client.UserAgentAsserter



 Since the errors and warnings are related to validation, I checked
 again the pom.xml and my local cached .m2 repo, the javax.validation
 jar is there and source jar is also there using mvn
 dependency:sources. So any body know what's going on here? And why
 does the warning say it need the sources.jar??? Also with the maven
 dependency config and jar naming convention, I don't think I would be
 able to include the source jar in the build classpath.

 Any help would be appreciated.

 Thanks,
 Joseph


 --
 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 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Reusable CSS inside CssResouce ClientBundle

2011-04-26 Thread Raphael André Bauer
Hi,


we are using CSS Resources and ClientBundles for some months now. And
- summing up - it's a really nice experience so far!

However, as our CSS Resources are growing bigger and bigger we would
like to have the ability to reuse some css code.

One example is the definition of gradients. There is a lot of boiler
plate code involved to make that happen for all browsers. And we have
to copy and paste that code for all elements that should use
gradients.

==Example:
   background-color: #CE; /* fallback color for retro browsers */
   background-image: -moz-linear-gradient(top, #ee, #ce); /* FF3.6 */
   background-image: -ms-linear-gradient(top, #ee, #ce); /* IE10 */
   background-image: -o-linear-gradient(top, #ee, #ce); /*
Opera 11.10+ */
   background-image: -webkit-gradient(linear, literal('0 0'),
literal(0 100%), from(#ee), to(#ce)); /* Saf4+, Chrome */
   background-image: -webkit-linear-gradient(top, #ee, #ce);
/* Chrome 10+, Saf5.1+ */
   background-image: linear-gradient(top, #ee, #ce); /*
standard compliant */
==end

That's only one example. But generally speaking, is there a way to
simply define that css at the beginning of a css file and reuse it all
the time? Our dream would be something like SASS
(http://sass-lang.com/) that uses mixins to accomplish that in an
(imho) nice manner.


Thanks a lot,


Raphael

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Login security question

2011-04-12 Thread Raphael André Bauer
On Tue, Apr 12, 2011 at 12:30 PM, Leung leung1_2...@yahoo.com wrote:
 Hi

 According to article LoginSecurityFAQ, 
 http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ , 
 I have a point that I really want someone to make it clear for me.

 From the article,
 Your server will then validate this login, and return a sessionID to your 
 GWT app. The GWT app will store this sessionID in a static field. For every 
 further request your GWT app makes to your server, include this sessionID in 
 the payload of the request. (Either in the JSON data or the object you are 
 transferring using GWT-RPC).

 I assume the server returns the sessionId by RPC to the client after 
 validation.
 How can I include this sessionID in the payload of the request using 
 GWT-RPC?
 How can I tell the sessionID is in the payload of the request or not in the 
 payload?

First part:
The session is always sent in the header if it is a cookie set by your
server. It's a http thing.

Second part:
Sending the session id via RCP must be done via a separate String in
your RPC interface. So manually add a String to your RPC.

Validating:
Your server can then compare those two values. As only a friendly
script can access the cookie of your domain your server can validate
if the request is ok... Otherwise rise a security exception...


Best,

Raphael


 Thanks
 Ming

 --
 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 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Visibility problems when using css.InterfaceGenerator

2011-04-01 Thread Raphael André Bauer
On Wed, Mar 30, 2011 at 12:07 PM, Thomas Broyer t.bro...@gmail.com wrote:
 Every member of an interface can only be public (and is implicitly so,
 without the need to explicitly use the 'public' keyword), including inner
 interfaces.
 http://java.sun.com/docs/books/jls/third_edition/html/interfaces.html#9.5

Thanks Thomas. That makes total sense.
But the problem are not the members of the interface, but the
visibility of the interface itself I guess
http://java.sun.com/docs/books/jls/third_edition/html/interfaces.html#9.1.1).

In my opinion
interface MyGeneratedCssInterface extends CssResource {

is quite different to
public interface MyGeneratedCssInterface extends CssResource {


Maybe my explanation of the problem was not the best. Sorry.


Best,

Raphael






 --
 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
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Combine two css files to one css resource

2011-04-01 Thread Raphael André Bauer
Hi,


we are currently using CssResource together with a ClientBundle to
style our ui.xml classes. It works really nice and everything is fine.

There is only one thing that our designers would love to have:
One interface that maps to many css files.

Our designers organize their stuff in more than one css file. However
for the sake of simplicity they like to have one accessor in gwt.xml
files.

For instance:
ui:with field='css' type='my.package.MyResourceBundle' /

contains methods annotated with different .css files.
@Source(first.css)
@CssResource.NotStrict
public FirstResource first();

@Source(second.css)
@CssResource.NotStrict
public SecondCssResource second();


I could therefore say:
g:SimplePanel ui:field='informationArea' styleName={css.first.gridSide}
or:
g:SimplePanel ui:field='talkArea' styleName={css.second.talkingGrid}


Works like a charm.

However, our designers would love to use:
css.gridSide and css.talingGrid directly. Without the need to know
the css file where stuff is coming from.


Is there a simple way to do this? All my efforts using @Shared,
combining Interfaces and such did not work.


Many thanks in advance!


Best,

Raphael

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Combine two css files to one css resource

2011-04-01 Thread Raphael André Bauer
On Fri, Apr 1, 2011 at 3:55 PM, Thomas Broyer t.bro...@gmail.com wrote:
 @Source({first.css, second.css}) ?
Yea! That works perfectly :)
Thanks!

Raphael

 --
 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
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT, Ads and Friendly IFrames

2011-03-25 Thread Raphael André Bauer
Hi,


people that write Ads seem to love the usage of document writes. That
is not 100% compatible with AJAX aka GWT and - in many cases -
potentially breaks the app. One nice solution imho might be the use of
Friendly IFrames (1). The benefit would be that people could continue
writing their Ads in the traditional way. But they will not break
the GWT client (Adsense did something not 100% similar this week (with
the intention to speed up things) (2)).

Is there any ready-to-use GWT solution available that encapsulates Ads
in IFrames? Maybe even allowing us to exchange Ads on demand when
Places in GWT change?


Just curious,


Thanks,

Raphael

(1) 
http://classroom.emediate.biz/doku.php?id=technical:integration:friendly_iframes
(2) 
http://adsense.blogspot.com/2011/03/making-web-faster-for-all-adsense-for.html

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Get value of GWT property at runtime

2011-03-25 Thread Raphael André Bauer
On Tue, Mar 15, 2011 at 2:54 PM, Paul Robinson ukcue...@gmail.com wrote:
 Possibly not as simple as you wanted, but you can do something like this:
 (1) Create base class com.foo.ThemeInfo and subclasses ThemeInfoOne and
 ThemeInfoTwo
 (2) Add this to your gwt.xml:
 replace-with class=com.foo.ThemeInfoOne
 when-type-is class=com.foo.ThemeInfo/
 when-property-is name=theme value=theme1/
 /replace-with

 replace-with class=com.foo.ThemeInfoTwo
 when-type-is class=com.foo.ThemeInfo/
 when-property-is name=theme value=theme2/
 /replace-with

 (3) In your client-side code:
  ThemeInfo info = GWT.create(ThemeInfo.class);

 and you'll get an instance of ThemeInfoOne when using theme1 and
 ThemeInfoTwo when using theme2 and an instance of the ThemeInfo base class
 otherwise

 This should let you do what you want, and also move the if using theme#1
 test to compile time.


Hi Paul,


I think that helps a lot. I initially thought about something similar,
but was not sure if it's the best idea. It involves a lot of overhead
imho. But - it's better than all other possibilities I can think of
now...

Thanks :)


Best,

Raphael


 HTH
 Paul

 On 15/03/11 12:46, Raphael André Bauer wrote:

 Hi,


 is there a simple way to get a gwt-property when the GWT app is running?

 e.g. I have:
 define-property name=theme/ values=theme1, theme2/

 Then at compile time I get nice permutations for theme1 and theme2. Cool
 so far.


 For some agile flexible fine-tuning it would be nice to get the value
 of theme.
 Something like GWT.getPermutationProperty(theme)

 Is this possible - or plain stupid because that's what compile time
 permutations are for... (I know that, but nevertheless...) ?


 Thanks!


 Raphael


 --
 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
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: math performance

2011-03-22 Thread Raphael André Bauer
On Mon, Mar 21, 2011 at 9:28 AM, Albert Lacambra alacam...@gmail.com wrote:
 Good to know! I supose that that is the only case, n? For us is much most
 faster in js mode that in dev mode.

Interesting. For us it was the complete opposite :) Depends of course
on the browser and the mathematical taks...

Best,

Raphael

 Al

 On 21 March 2011 09:24, Raphael André Bauer raphael.andre.ba...@gmail.com
 wrote:

 On Sat, Mar 19, 2011 at 6:24 PM, Y2i yur...@gmail.com wrote:
  I do a lot of math calculations (exp, log, sqrt, pow, asin, sin) but I
  haven't noticed any delays yet.

 Also a tiny notice from my side: Mathematical calculations in dev mode
 are most likely much faster than when you execute the real compiled
 version. The reason is that the JVM is much faster than any JS engine
 to date (imho).

 Cheers,

 Raphael




  Thanks for the heads up, I'll keep this in mind.
 
  --
  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
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 

 --
 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
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.




-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Visibility problems when using css.InterfaceGenerator

2011-03-22 Thread Raphael André Bauer
Hi,


we are using InterfaceGenerator quite heavily to generate interfaces
from our css files. Works quite nice.

But there is one thing I do not really understand.
If you generate an interface the default modifier is not set - meaning
that the modifier is via default protected.

Therefore I am getting visibility problems, when I want to access this
interface from other modules / packages.

What I do in my ResourceBundle is:

public interface MyResourceBundle extends ClientBundle {
@Source(Reset.css)
public Reset reset();
}

Error message is:
Reset is defined in an inaccessible class or interface

Well. Makes total sense as Reset is without visibility modifier.


My workaround currently is to use another interface that extends the
automatically generated interface:
public interface MyResourceBundle extends ClientBundle {
@Source(Reset.css)
public ResetPublic reset();
public interface ResetPublic extends Reset {}
}

Imho the workaround is not nice. And my question is: Why are generated
interfaces always without visibility modifier?
Or is there any other way to omit that problem?


Thanks!

Raphael

-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: math performance

2011-03-21 Thread Raphael André Bauer
On Sat, Mar 19, 2011 at 6:24 PM, Y2i yur...@gmail.com wrote:
 I do a lot of math calculations (exp, log, sqrt, pow, asin, sin) but I
 haven't noticed any delays yet.

Also a tiny notice from my side: Mathematical calculations in dev mode
are most likely much faster than when you execute the real compiled
version. The reason is that the JVM is much faster than any JS engine
to date (imho).

Cheers,

Raphael




 Thanks for the heads up, I'll keep this in mind.

 --
 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
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.


-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Code splitting like Facebook

2011-03-18 Thread Raphael André Bauer
On Tue, Mar 15, 2011 at 5:20 PM, ss.require ss.requ...@gmail.com wrote:
 MVP framework is a top-level gwt framework that uses all standard gwt
 features. In particular, it uses standard code splitting feature. I
 can split my code in  the same way as MVP does, but my initial problem
 still remains. I don't see any advantages of using MVP. Maybe, you
 mean something else or you have not understand my problem!

Using GWT's MVP can be a solution. Simply use an activity mapper that
creates individual activities using GWT's AsyncProxy (1). This way
activities are automatically code splitted with minimal code monkeying
involved.  A quick warning: It does not makes sense to code split
everything = If the split point is really small it can even decrease
performance.

Also check out the great gwt-platform project
(http://code.google.com/p/gwt-platform/). They have code splitting
also integrated into their own MVP framework. Quite nice.


Cheers,

Raphael
(1) 
http://ars-codia.raphaelbauer.com/2010/11/gwt-split-points-and-most-neglected.html






 On Mar 15, 3:25 pm, suersh babu sureshgbab...@gmail.com wrote:
 try using MVP frame work, so that code spliting done in much better way.









 On Tue, Mar 15, 2011 at 5:50 PM, ss.require ss.requ...@gmail.com wrote:
  Hi!
  I need to create a web-application with the design like Facebook. So I
  want to have a single gwt-module for the entire app and use code
  splitting feature for dynamic loading of all needed pages. But there
  is some problem:

  From main page(when the module is already loaded) a user can navigate
  to any page of my app. The total amount of pages will be very
  huge(Let's say 1000). If I use code splitting feature I must to
  place the next code-fragment 1000 times in my module:
  GWT.runAsync(new RunAsyncCallback() {
                                                 @Override
                                                 public void onSuccess() {
                                                         new
  SomePagelet().load();
                                                 }

                                                 @Override
                                                 public void
  onFailure(Throwable reason) {
                                                 }
                                         });
  Thus my single module will be a large size and the loading time will
  be very long as well. I want to find a way to say gwt what a pagelet
  to download in runtime! Now I see an only possible solution: 1)analyze
  compiled js scripts 2) then, extract the piece of the script that
  handles loading of the exclusive fragment 3)On the server I add
  extracted piece with specified pagelet-name to be downloaded to the
  output html.

  But this approach is hard. Does anybody have similar problems? Any
  useful advices would be very appreciated!

  --
  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
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

 --
 Regards
 Suresh Babu G

 http://www.AccountingGuru.inhttp://www.accountingguru.in/

 --
 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 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.



-- 
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 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



  1   2   3   >