If you need to determine which button is clicked on a mouse with a ClickHandler, you can use the NativeEvent class. Here is code that determines whether or not the ClickHandler was trigger by a right click or not (event is ClickEvent):

GWT 1.6 changed all Listeners to Handlers and in the process setup a few different practices. One possibility with GWT before 1.6 was to add a ClickListener to a FocusPanel and then remove it by calling the method removeClickListener(ClickListener listener). But, in 1.6 this is not an option with Handlers. There is no removeClickHandler(). Instead, when you add a handler to a widget, it returns an instance of HandlerRegistration. This can then be used to remove that handler. Here is an example of a handler being adding then removed:

Friday, July 24, 2009

The web site we're developing is JavaScript based, so we need to warn users if they come to our site with JavaScript disabled. The easiest way to do this is to use the HTML <noscript> tag (http://www.w3schools.com/TAGS/tag_noscript.asp).

For example:

<head> <script ... </script> </head> <body> <script ...></script> <noscript> <div class="noscript-warning"> <h1>Please turn on JavaScript to use this site.</h1> <p> It seems that you have JavaScript turned off. You will need to turn it on in order to use this site. </p> </div> </noscript> </body>

The contents of the <noscript> tag will only be displayed when JavaScript is disabled. When JavaScript is enabled, the tag and its contents will not be displayed at all.

I have a little problem... well, I don't know a lot of people and I don't know a good way to reach people for the club. Yeap... sounds stupid because I created the group, but that's my initiative I mean I have to motivate people to join the group.

So any idea ? ... little advice ? ... anything it's really appreciated and well... this is the best place to ask

ales--~--~---------~--~----~------------~-------~--~----~You received this message because you are subscribed to the GoogleGroups "gtug-managers" group.

On Jul 21, 2009, at 11:36 PM, ales wrote:

>> Hi.>> I have a little problem... well, I don't know a lot of people and I> don't know a good way to reach people for the club. Yeap... sounds> stupid because I created the group, but that's my initiative I mean I> have to motivate people to join the group.>> So any idea ? ... little advice ? ... anything it's really appreciated> and well... this is the best place to ask>> ales

Monday, July 20, 2009

This keyboard is incredibly flexible and the buttons have a real "press down" feeling to them, but as with any new keyboard there is much getting used to be overcome.

The seller advertised it as indestructible, so if you work in the chemical lab, or eat a lot of pizza while typing, that may be a good choice.

I like it because it is super light, flexible and lays down on the table which is good for my wrists. There are only blue and black versions available.

Works both with Mac and Windows.

After using it for few days I have the following problems:

- pressing buttons is a little harder than normal keyboard- you have to be more precise- space bar does not get pressed way too often and I end up with words stuck together- arrows placement is terrible- Windows/Apple special button is too small for as often as I use it- backspace is too small

Wednesday, July 15, 2009

So I've definitely made some progress in the Maven, GWT, and Eclipse integration. Below would be a working sample starting from a GWT project started using the google eclipse plugin.

Prerequisites:Eclipse 3.4Google Eclipse Pluginm2eclipse plugin

Create your gwt project:Create a pom for your project:Edit the pom to look like this (profiles and resource filtering are definitely not needed and can be removed) and add any other jars you may need for your project:

You'll have to install some of the jars into maven manually, they aren't really keeping up to date with these things. For the datanucleus-appengine-1.0.2.final.jar you have to use the one that was placed in the lib folder and run this command

At this time I would enable maven (I got some error message but just hit ok):If you are using profiles (you probably have an error in your project at this point) tell maven which active profile to use:You'll get a message if you want maven to update your project, hit ok.You're done, just ignore the warning about the missing gwt-servlet.jar, it will be there, just named differently.

now we just need to make an ant build.xml to make compiling, and deploying easy.

The video on that page was the first video I watch on App Engine and goes over the exact same thing I went over in my talk. It was a great first meeting. I'm looking forward to meeting more people and exchanging more ideas. Enjoy!

Friday, July 10, 2009

I also hope I didn't bore everyone too much since I got really technical. I will post later with updates and better comments on how everything works together. Next time we definitely need to have fewer presenters and more time for talking / mingling.

Thursday, July 9, 2009

I think it is only fair to ask ourselves before making a presentation... how much simpler could I explain this?

"OpenSocial is a set of common APIs that is implemented by... yada, yada"

hmm.. maybe not...

"Nobody likes to sign up to yet another new website, in fact is costs companies millions in marketing of dollars. However, joining by clicking a familiar Google Friend Connect icon seems to pose no obstacle..."

Wednesday, July 8, 2009

Google announced a Linux-based operating system where the applications will be Web based like Google Docs, Calendar, and any other RIA application we will write with GWT (Google Web Toolkit) on HTML5.

Why Google did not use Android for that purpose as I previously predicted? Google blog stated:

“Google Chrome OS is a new project, separate from Android. Android was designed from the beginning to work across a variety of devices from phones to set-top boxes to netbooks. Google Chrome OS is being created for people who spend most of their time on the web, and is being designed to power computers ranging from small netbooks to full-size desktop systems. While there are areas where Google Chrome OS and Android overlap, we believe choice will drive innovation for the benefit of everyone, including Google.”

The above statement tells me nothing, but my assumption is they took the same Linux base as Android, they added Chrome to it and many other useful features. I imagine that it will feel somewhat like Widgets Dashboard where everything is from the Web, but it is still the Desktop.

My biggest hope is that just like with Android, the Java will be the primary tool to develop Chrome OS applications on top of the Linux base.

There are many nay-sayers about hosting the apps in the "cloud" and not having them locally (while in the plane over Atlantic ocean), but Google has the solution for that as well.

We have been successfully using and sharing Google Docs for couple of years now and at this point I hate when someone sends me the Word document in the email.

I don't see any reason for NOT dumping the Eclipse IDE and writing all my shared Java code over the internet and using Google servers to deal with 12 minute compilation time of my GWT application. Who knows they might have it done in 3 minutes!

Can you imagine a Web based Photoshop incarnation where the 500 Mb layered image is stored in the cloud? You'd receive the small view-only version of your work (screen size chunk) and Google servers do the heavy lifting of applying the new filter, texture, mask, etc?!? You could do Photoshop on any $500 computer available and it would be much faster.

1) check out the project from SVN2) run ant to download the Maven2 dependencies locally and copy them to the war/WEB-INF/lib3) refresh Eclipse project so it knows that new jars are there4) remove jars from Project -> Properties -> Java Build Path5) add all jars from the war/WEB-INF/lib to make sure Eclipse knows the exact set of jars the pom.xml had