deluan
10/31/2010 - 1:25 AM

Adding shiro-faces taglib to your maven project

Adding shiro-faces taglib to your maven project

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:shiro="http://shiro.apache.org/tags">
<head>
    <title><ui:insert name="titulo">Shiro Faces Test</ui:insert></title>
</head>

<body>
    <p>Hi, <shiro:guest>Guest</shiro:guest>
          <shiro:user><shiro:principal/></shiro:user>!
    </p>
</body>

</html>
        <repositories>
                <repository>
                    <snapshots>
                        <enabled>false</enabled>
                    </snapshots>
                    <id>bintray-deluan-maven</id>
                    <name>bintray</name>
                    <url>http://dl.bintray.com/deluan/maven</url>
                </repository>
        </repositories>
        <dependency>
            <groupId>org.apache.shiro</groupId>
            <artifactId>shiro-faces</artifactId>
            <!-- See the latest version on the project's homepage -->
            <version>2.0</version>
        </dependency>