Aspect4Facelets SourceForge.net Logo

Documentation

Installation Guide

Get use aspect4facelets in you application you have to do several configurations.

You need to download aspect4facelets from the download page and further more you need to download aspectj from the eclipse site.

As the facelets processor is extended using aspectJ you need to put the aspectrt.jar in your WEB-INF/lib folder.

Of cause, you have to add the aspect4facelets.jar to the WEB-INF/lib folder too.

Add or replace the following context parameter in your web.xml.

	<context-param>
		<param-name>facelets.RESOURCE_RESOLVER</param-name>
		<param-value>net.sf.aspect4facelets.AspectResolver</param-value>
	</context-param>
					

We also need to enable LTW (load time weaving) in the application server. This is done by adding the option -javaagent:pathto/aspectjweaver.jar (Make sure to adjust the pathto with the path to the jar file)