Archive for May, 2009

Testing and Testable Code Presentation

May 28, 2009 3 comments

Two days ago I was doing presentation titled “Testing and testable code” at Wroclaw University of Technology. If interested how really start with TDD in your projects, how to keep your code with simple design and always maintain “code that talks”, I encourage you to check out the presentation. I might record the audio for this presentation if anyone interested. Let me know.


Java Server Faces 2.0 is out

May 28, 2009 Leave a comment

Today JSR-314 aka JSF 2.0 was finally released. Expert group was gathered 1st July 2007, so it took almost 2 years to finish the specification. I’m really looking forward to this spec, I am curious and anxious to see what is new. From what I heard, will pretty soon publish RefCards about JSF 2.0, so that should be a good place to start.

From what I saw so far, JSF2.0 tries to take up, where the JSF 1.0 left off. So we are going to hear lots about AJAX support and modularization. But just because those issues were taken into consideration, does not mean that they were handled the right way.  12 members of the expert group voted ‘yes’ for the new specification, however four were against. Those four includes Apache Foundation and IBM. I fear that, when new issues and problems arrive with this new specification, Apache and IBM will once again  say ‘We told you so’.

But right now I’m patiently waiting for reference implementation to try JSF2.0 myself. I really hope that things will get better.

And remember, whatever you want to say about JSF (and me specially since I was recently ranting about it) remember this: JSF is now standard and times where you had to code in pure JSP at work are long long gone.  Always better JSF then model2 jsp-servlet programming 😉

Categories: News Tags:

How-to: Installing Oracle on Ubuntu

May 25, 2009 2 comments

Installing Oracle XE on Ubuntu is quite easy and straightforward. Following steps show you how to install, configure and run Oracle XE database on Ubuntu Linux system.

1. Add new repository

1.1 Add this entry to your software sources: deb unstable main non-free.

You can do it by simply clicking: System->Software Sources->Third-Party Software (as shown below) or add this entry into the  /etc/apt/sources.list file. Choice is yours, same effect.


1.2 Add public key

Simply write into console wget -O- | sudo apt-key add – . But of course you can do it navigating to System->Software Sources->Authentication

2. Run Oracle installation

Simply type:

sudo apt-get install oracle-xe

and after installation is finished, run configuration program:

sudo /etc/init.d/oracle-xe configure

where you anwer four simple questions:

  1. Oracle Application Express port (default 8080)
  2. Port for database connection (default 1521)
  3. Password for user SYSTEM – the administrator
  4. yes or no question whether you would like to run database with startup of your system

And that’s it! You have running Oracle instance. You can start playing with it by running SQL*Plus or web application at

Test template you should always use

May 23, 2009 8 comments

Do you know Java Killers?

May 20, 2009 1 comment
Categories: Java Killers

JSF sucks, Wicket rocks?

May 19, 2009 6 comments

I always considered standards more valuable then tools that were not standardized. Thus I was always more interested in EJBs then Spring, always fan of JSF rather then any other frontend framework.

Recently I’ve been hired as a consultant (or should I say freelancer but consultant sounds more fancy 😉 ) and started developing webapplication with Wicket and Spring. During the job interview they’ve asked me what frontend framework I would use and/or recommend for developing webapplications in Java. I answered rather quickly: Java Server Faces.  Right now after almost 3 months of development in Wicket, I’m not so sure. Even more,  I wonder how I will ever be able to go back to JSF after experience with this completely different frontend framework . Seriously all the cumbersome, hard, sometimes impossible things in JSF are easy, simple and pretty much natural in Wicket.

Recently I read this post at Incremental Operations titled “JSF suck” and I must say that I agree with almost every case described there. Hard and almost never used by developers support for reusability, cumbersome API (with all the request – response phases) are just the pick of the icberg. If you are strong supporter of JSF, I encourage you to read previously mentioned post.

As I said before, currently I wonder how will I ever be able to go back to JSF.

Still not convinced? Probably you are exactly like me 3 months ago. Always ranting about people who try not use standards whenever it is possible, pure fan of JSF (regardless of the implementation, whether it its richfaces, icefaces or other). But I guess you never seen Wicket in action, have you? I strongly strongly encourage you to give it a try. For start create simple webapplication with welcome page and login page. Then make login part an reusable component and embbed it in welcome page. Write some functional tests, add validation support and then… try doing the same in JSF.  See the difference 🙂

Categories: Wicket Tags: ,

Testability – Presentation at Wroclaw University of Technology

May 15, 2009 2 comments

On 26th May 2009 I will talk about “Testable code” at Wroclaw University of Technology.  Presentation is inspired by Misko Hevery‘s blog, Joshua Bloch unofficial Java Bible (“Effective Java”), easyb way of testing,  Szczepan Feber‘s beautiful tests talk at GeeCON and my personal experience.

Talk is prepared for students, but I guess no one will mind if someone in the audience is not from the university. Anyway if interested in topic, I would be more then happy to see you there. Detailed info below.

“Testable code”

Wroclaw University of Technology, Wroclaw, Poland 😉

Building B-4, room 227

time: 9:15 AM – 10:45 AM


Presentation is now online and can be reached here.