Simplify JSF

Posted Leave a commentPosted in simpliying JSF

This is the first part of a multipart series showing you how to make writing JSF page more fun. You will get better results writing less code.

Let’s have a look at a simple, yet typical form consisting of a single input field:

JSF source code

We have to write three lines of code to implement one input field. Looking carefully at the code, you will see the repetitions:

JSF source code with annotations showing the repetitions