02 January 2011

Getting started with QT and OpenCV on Mac OS X

Just published a new article here:

Labels: , , ,

12 February 2010

RichFaces editor: how to intercept the “return” key to submit a form

I'll try to write more on my blog and keep you update about every technique I use and that can be very useful to you as well.

Today I needed to submit a form with an editor element when the user pressed the "return" key (instead of creating a new line).

The code is not so complicate but as the rich:editor uses the TinyMCE component you have to search all around to find the right way. Better to have a complete solution.

It consists on creating an handler onKeyPress and call a javascript function (created by a:jsFunction) to submit our form. Simpler doing then saying it.

To read all the article click the following link:

Demetrio Filocamo


JBoss RichFaces 3.3 (book) -

Learn RichFaces step by step developing a sample application.

Labels: , , , , ,

JBoss RichFaces 3.3 - Introduction

An introduction to JBoss RichFaces framework and to the book JBoss RichFaces (Packt) by Demetrio Filocamo.

RichFaces is a very useful open source framework that allows you to add Ajax capability to your JSF application (using the standard JSF components) without the need to write JavaScript code and manage JavaScript compatibility between browsers.

You can read more about the book here:

New book: JSF 1.2 Components

Hi guys,
I'm going to read and then review for Packt Publishing the new book JSF 1.2 Components by lan Hlavats, the developer behing JSF ToolBox for Dreamweaver. The book is about the most important JSF component frameworks we can use to empower our application. So starting from the Standard JSF Components we'll go through Facelets, Apache Tomahawk, Apache Trinidad, ICEfaces, JBoss Seam JSF Components and JBoss RichFaces.

It is also technically reviewed by very know guys on JSF field like Cagatay Civici (PMC member of open source JSF implementation Apache MyFaces and the project leader of popular PrimeFaces framework), Ted Goddard (Chief Software Architect at ICEsoft Technologies and is the technical leader for ICEfaces), Kito D. Mann (editor-in-chief of JSF Central - - and the author of JavaServer Faces in Action - Manning) and others.

I'll come back soon with something to say, in the meantime you can download the sample chapter about the Facelets Components by clicking here, or buy the book from the Packt website!



07 November 2009

JBoss RichFaces 3.3 - My book has been published!

Hi all,
the book I've worked on the last months has finally been published!!

JBoss RichFaces 3.3

JBoss RichFaces is a rich component library for JavaServer Faces and an AJAX framework that allows easy integration of Ajax capabilities into complex business applications. Do you wish to eliminate the time involved in writing JavaScript code and managing JavaScript-compatibility between browsers to build an Ajax web application quickly?

This book goes beyond the documentation to teach you how to do that. It will show you how to get the most out of JBoss RichFaces by explaining the key components and how you can use them to enhance your applications. Most importantly, you will learn how to integrate Ajax into your applications without using JavaScript, but only standard JSF components. You will learn how to create and customize your own components and add them to your new or existing applications.

First, the book introduces you to JBoss RichFaces and its components. It uses many examples of Ajax components which, among others, include: Calendar, Data Table, ToolTip, ToolBar, Menu, RichEditor, and Drag 'n' Drop. All these components will help you create the web site you always imagined. Key aspects of the RichFaces framework such as the Ajax framework, skinnability, and Component Development Kit (CDK) will help you customize the look of your web application. As you progress through the book, you will see a sample application that shows you how to build an advanced contact manager. You're also going to be amazed to know about the advanced topics you will learn such as developing new components, new skins, optimizing a web application, inserting components dynamically using Java instead of XHTML, and using JavaScript to manage components. This book is more than a reference with component example code: it's a manual that will guide you, step by step, through the development of a real Ajax JSF web application.

What This Book Covers

  • Chapter 1: What is RichFaces covers the aims of the RichFaces framework, its components, and what you can do by using it in a web application.

  • Chapter 2: Getting Ready explains how to configure your environment by creating a simple project using the seam-gen tool, adding support to Seam and Facelets, and the manual configuration for the RichFaces libraries. We will understand the IDE that we can use while developing with the framework.

  • In Chapter 3: First Steps, you will learn to build Ajax applications by developing a simple example, the basics of RichFaces step by step, from creating the project to editing the code, using very important components and their Ajax properties.

  • Chapter 4: The Application covers how to create the basics of our project by having a look at the side technologies we might know, in order to build good applications. It will cover templating with Facelets, JBoss Seam authentication, and customization of the entities.

  • Chapter 5: Making the Application Structure explains us how to create the login and registration system of the website. We'll look at all the features that a real application might have.

  • In Chapter 6: Making the Contacts List and Detail, we will develop the core feature of our application—contact management. We'll learn about Ajax interaction and containers, and about new Ajax components that RichFaces offers.

  • Chapter 7: Finishing the Application explains how to finish building the application using the RichFaces components, and about customizing them.

  • In Chapter 8: Skin Customization, we'll see all the powerful customization capabilities that the RichFaces framework offers.

  • Chapter 9: Creating a New plug 'n' skin covers how to create, customize, and package and deploy a new pluggable skin.

  • Chapter 10: Advanced Techniques explains you how to use and implement pushing, partial updates, and session expiration handling in order to develop advanced applications.

  • In Chapter 11: Component Development Kit, we'll see how to start a project in order to develop a simple JSF Ajax component in a simple and effective way using the features the CDK offers.

  • Appendix: RichFaces Components Overview covers a list of all the components of RichFaces with their functionalities.

Example chapter
You can download a sample chapter, Chapter 8: Skin Customization, by clicking here.

Where to buy it
You can buy JBoss RichFaces 3.3 from the Packt Publishing website.

Free shipping to the US, UK, Europe and selected Asian countries. For more information, please read the Packt Publishing shipping policy.
Alternatively, you can buy the book from Amazon,, Computer Manuals and most internet book retailers.

Thank you!


Labels: , , , , , , , , , , , , , , ,

03 April 2009

One-to-one relationship with auto-generated key using JPA/Hibernate using annotations

New post in my new blog!



Hibernate hbm2java and generated BigDecimal from MySQL decimal(10,2) type

Click on the link to read the article in my new blog!