How to use PowerMock and Mockito to test static and private methods Introduction This article is not another diatribe to tell you the importance of unit testing. I think we can all agree that it is important...

JSF 2.x Tip of the Day: JSF Expression Language (EL) Keywords and Implicit Objects A friend of mine asked me if there was a list of reserved words in EL and JSF. He had previously looked for it, and after some Google search...

PrimeFaces AJAX Enabled <p:selectOneMenu /> I saw a question posed on stackoverflow called Trouble with Primefaces 3.0.M2 SelectOneMenu Ajax behavior and I had just done an example a...

How to Generate an SHA-2 (SHA-256) Self-Signed Certificate in Java I was working on a couple of SSL based issues when I made a couple of observations. The default self-signed key generation in Java does not ...

Making a System Call in Java This is an example on how to make a system call to the local operating system to execute external programs. This example was written to work...

JSF 2.1 Tip of the Day: PrimeFaces Dialog <p:dialog/> We have been doing a lot of work lately with PrimeFaces. A common set of questions comes up about displaying <p:dialog/> boxes on a pa...

JSF Tip of the Day: How do I reset input fields after a validation failure? I was asked earlier today how to reset fields in a JSF application, if the validation fails. In his case, he had a Richfaces table which had...

Creating a Maven Web Application Archetype in NetBeans 7.0 Image by quasarkitten via Flickr The basics for creating a Maven archetype can be found in the Maven - Guide to Creating Archetypes . The ...

JSF 2.x Facelets Form Based Authentication (j_security_check) Previously, I posted an example of how to use JSF 1.2 with form based authentication (j_security_check). In this example, I use JSF 2.x to...