Weekly Tech Bullet(in)

Summary
JSr303 (bean validation), Spring 3, Eclipse 3.6M4, Web UI Coolness, Misc Goodies, World Is Changing and...


JSR303, bean validation.

hibernate validator 4: https://www.hibernate.org/412.html
spring 3: http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/validation.html#validation-beanvalidation

and wicket integration
http://magnus-k-karlsson.blogspot.com/2009/10/integrate-jsr-303-bean-validation-and.html
http://42lines.net/content/integrating-hibernate-validator-and-wicket

maybe will be native with wicket 1.5

Spring 3
news roundup: http://www.infoq.com/news/2009/12/spring30
video+slide presentation, related with EE6 : http://www.infoq.com/presentations/Spring-and-Java-EE-6-Jurgen-Holler

Eclipse 3.6M4
Out, but without any real interesting news to justify a manual upgrade from M3. Wait for M5.
http://download.eclipse.org/eclipse/downloads/drops/S-3.6M4-200912101301/eclipse-news-M4.html

Web UI Coolness
http://ajaxian.com/archives/scripty2-in-the-wiiiild

Goodies

Downloadify is a tiny JavaScript + Flash library that enables the generation and saving of files on the fly, in the browser, without server interaction.
http://www.downloadify.info/downloadify/test.html

World is changing

google plans to replace HTTP:
http://blog.chromium.org/2009/11/2x-faster-web.html

finally, a memo: last week we had

Servlet 3.0 (and Glassfish 3.0) released, so here it comes JEE6:

EE6 tutorial: http://java.sun.com/javaee/6/docs/tutorial/doc/
Datasource definition: http://planets.sun.com/techtips/group/blogs/#78b02780-c047-4416-887c-6c22fc42c33f

and take a look at recent entries in these blogs:
http://blogs.sun.com/swchan/
http://blogs.sun.com/jluehe/

Eclipse Shortcuts I can't live without

You can set this going to Window | Preferences then General | Keys.
There, using text filter, you can for example write "rerun" and you
will find the shortcut for the first two advice here. Let's start.

F9 re-run last test
Yes, is different than F11. Without this, you have to move your hand
to pick the mouse and point to the single last run test, right click
and at this point you just lose your patience.

CTRL-F9 re-run last test debug
same as before, far less used but sometime should be needed...

ALT+CTRL+W close others editors
Sometime, often, you need to clean open editors to clean up your mind.
Being CTRL-W the standard shortcut to close "tabs" for all
applications, this sounds like a nice and intuitive shortcut.

ALT+F12 show jUnit view
I usually keep jUnit view minimized. The reason is that there is never
enough space to read the exceptions or the errors but being almost
full screen. So I keep it minimized and it opens automatically when
test runs, with a serious size. Sometimes you need to recall it. Being
F12 the shortcut to recall the Editor wherever you are, is easy to go
from jUnit to Editor and back with this two shortcuts.

ALT+J MoreUnit jump to test
Bbeing CTRl-J already set for the default and essential Eclipse
incremental search, we need a different one for this small and
essential plugin that allows us to navigate back and forward from a
class and its test case.

Default shortcuts really important to know:

ALT+SHIFT+X to run many things
ALT+SHIFT+Q to switch to different view
F12: go to Editor, from (almost) wherever you are.
CTRL+. navigate to next warning or error.
CTRL+, navigate to previous warning or error.
CTRL+SHIFT+L to show all the shortcut for the active view!

wicket-slides 0.8.0 released with Smoothgallery 2.1

I managed to deploy a new version of wicket-slides project, a wicket adaptor for the cool and well done Smoothgallery, a javascript slideshow.

The 0.8.x development cycle main introduction is the adoption of the development release of Smoothgallery, named 2.1dev. This release add some new features and even if it's development is blocked till January 2009, it is significantly better than 2.0 in terms of performance, uses mootools 1.2 and include the ReMooz javascript library for zooming.

There is not an official distribution, but I mavenized the build system and deploy artifacts on java.net maven2 repository. Here are the instructions to use in your maven project.

You need java.net maven2 repository:

      <repository>
         <id>java.net</id>
         <name>Java.net Repository for Maven</name>
         <url>http://download.java.net/maven/2/</url>
         <layout>default</layout>
      </repository>

And, of course, the wicket-slides dependencies.

      <dependency>
         <groupId>com.googlecode</groupId>
         <artifactId>wicket-slides</artifactId>
         <version>0.8.0-smoothgallery2.1dev</version>
      </dependency>

If you are not using maven, you can just download wicket-slides jar from here:
http://download.java.net/maven/2/com/googlecode/wicket-slides/