Skip to content

Instantly share code, notes, and snippets.

@deluan
Last active October 5, 2016 15:02
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deluan/655983 to your computer and use it in GitHub Desktop.
Save deluan/655983 to your computer and use it in GitHub Desktop.
Adding shiro-faces taglib to your maven project
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-faces</artifactId>
<!-- See the latest version on the project's homepage -->
<version>2.0</version>
</dependency>
<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>
<?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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment