When you are going to build a new web site, most of times you go through it thinking about the technology you’ll use to build it. Maybe you want to be on the cutting edge and you’ll use the latest or rarest content management system like Ghost or maybe you’ll use a wide extended system and full of available plugins (I’ve a mention about these later) like Wordpress.
Since the version 2.2 of the JSF specification build composite components is a really easy thing to do. I will describe here how we implemented one to reuse a piece of UI in many pages. From the answer of this StackOverflow question I’d learned about how to create the java part of this example.