Getting started

Install ButterFaces as maven dependency

ButterFaces is accessible by maven central repository. Add following dependency to use components for each JSF implementation (i.e. MyFaces)

<dependency>
    <groupId>de.larmic.butterfaces</groupId>
    <artifactId>components</artifactId>
    <version>2.1.20</version>
</dependency>

In pre 2.0.0 versions of ButterFaces some components are only supported by mojarra. In this case use following dependency

<dependency>
    <groupId>de.larmic.butterfaces</groupId>
    <artifactId>components-mojarra</artifactId>
    <version>2.0.0.CR1</version>
</dependency>

Install ButterFaces by yourself

You can clone git repository and install maven plugin by yourself using console

git@github.com:ButterFaces/ButterFaces.git
maven install

Using ButterFaces

Add http://butterfaces.org/components to your <html .../> and use <!DOCTYPE html> to activate html 5 features.

HINT with version 2.0.0 web.xml parameters has been renamed from de.larmic.butterfaces.x to org.butterfaces.x

<!DOCTYPE html>
<html lang="en"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:b="http://butterfaces.org/components"
      xmlns:f="http://xmlns.jcp.org/jsf/core">
      ...
    <b:text id="test" ... />
</html>

That's all!

results matching ""

    No results matching ""