Getting Started

In order to start using YUI4JSF, taglib definitions and YUI4JSF filter need to be configured

RELEASE

Of course you should get the latest release from

at first.

TAGLIB

If you're using JSP with JSF, the taglib definition would be;

<%@ taglib uri="http://yui4jsf.sourceforge.net" prefix="yui"%>       		
       		

Facelets taglib file for YUI4JSF is distributed in the released jar. A complete facelets example would be;

<html xmlns="http://www.w3.org/1999/xhtml" 
        xmlns:ui="http://java.sun.com/jsf/facelets" 
        xmlns:h="http://java.sun.com/jsf/html" 
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:yui="http://yui4jsf.sourceforge.net"
>
       		

YUI4JSF Filter

YUI4JSF Filter is used to inject yui resources in the head sections of documents

<filter>
	<filter-name>yui4jsf filter</filter-name>
	<filter-class>net.sf.yui4jsf.filter.YUI4JSFFilter</filter-class>
</filter>

<filter-mapping>
	<filter-name>yui4jsf filter</filter-name>
	<url-pattern>*.jsf</url-pattern>
</filter-mapping>
			

FacesServlet Mapping

If you haven't already defined, add the *.jsf mapping as a Faces Servlet mapping

<servlet-mapping>
	<servlet-name>Faces Servlet</servlet-name>
	<url-pattern>*.jsf</url-pattern>
</servlet-mapping>