You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.
On a mac, when Mojarra kicks in it throws focus to the JBoss application due to it's use of AWT (which is used for image processing). To fix this, just add -Djava.awt.headless=true on line 263 of run.sh.