Run as:
mvn clean jetty:run
And hit: http://localhost:8080/index.xhtml
Primefaces comes with a lot of widgets and extensions. It also has a very comprehensive guide
h:head
element is necessary in JSF because it loads all the required JS libraries.
h:form
element is also necessary otherwise autoComplete
or p:ajax
constructs will not work.
Also make sure to go through the common gotchas on this stackoverflow link