Here is the sample application from the BLUG session “Life in the fast lane: Full Speed XPages”.
Also take a look at the lifecycle.nsf application from the XPages MasterClass project to learn more about the JSF Request Lifecycle.
And as a Java Developer, I recommend to take a closer look at the org.openntf.domino project on GitHub