Commit 912419d5 authored by Guus der Kinderen's avatar Guus der Kinderen

Update of taglib definition

parent 50eefe72
package org.jivesoftware.admin;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.BodyTagSupport;
import java.io.IOException;
public class ContentBoxTag extends BodyTagSupport {
private String title;
@Override
public int doEndTag() throws JspException
{
final String body = "<div class=\"jive-contentBoxHeader\">" +
title +
"</div>\n" +
"<div class=\"jive-contentBox\">" +
bodyContent.getString() +
"</div>\n";
try {
pageContext.getOut().write( body );
}
catch (IOException ioe) {
throw new JspException(ioe.getMessage());
}
return super.doEndTag();
}
public String getTitle()
{
return title;
}
public void setTitle( String title )
{
this.title = title;
}
}
<?xml version="1.0" encoding="ISO-8859-1"?> <?xml version="1.0" encoding="UTF-8"?>
<taglib xmlns="http://java.sun.com/xml/ns/j2ee"
<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.1//EN" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
"http://java.sun.com/j2ee/dtds/web-jsptaglibrary_1_1.dtd"> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd"
version="2.0">
<taglib> <description>Tab Library for Openfire Admin Console</description>
<tlibversion>1.0</tlibversion> <display-name>Admin Console Tags</display-name>
<jspversion>1.1</jspversion> <tlib-version>2.0</tlib-version>
<shortname>Tag Library for Openfire 2.0</shortname> <short-name>admin</short-name>
<uri>admin</uri> <uri>admin</uri>
<info>Tab Library for Openfire Admin Console</info>
<tag> <tag>
<name>tabs</name> <name>tabs</name>
<tagclass>org.jivesoftware.admin.TabsTag</tagclass> <tag-class>org.jivesoftware.admin.TabsTag</tag-class>
<bodycontent>JSP</bodycontent> <body-content>JSP</body-content>
<info />
<attribute> <attribute>
<name>css</name> <name>css</name>
<required>false</required> <required>false</required>
...@@ -42,9 +40,8 @@ ...@@ -42,9 +40,8 @@
</tag> </tag>
<tag> <tag>
<name>subnavbar</name> <name>subnavbar</name>
<tagclass>org.jivesoftware.admin.SubnavTag</tagclass> <tag-class>org.jivesoftware.admin.SubnavTag</tag-class>
<bodycontent>JSP</bodycontent> <body-content>JSP</body-content>
<info />
<attribute> <attribute>
<name>css</name> <name>css</name>
<required>false</required> <required>false</required>
...@@ -68,9 +65,8 @@ ...@@ -68,9 +65,8 @@
</tag> </tag>
<tag> <tag>
<name>sidebar</name> <name>sidebar</name>
<tagclass>org.jivesoftware.admin.SidebarTag</tagclass> <tag-class>org.jivesoftware.admin.SidebarTag</tag-class>
<bodycontent>JSP</bodycontent> <body-content>JSP</body-content>
<info />
<attribute> <attribute>
<name>css</name> <name>css</name>
<required>false</required> <required>false</required>
...@@ -99,9 +95,8 @@ ...@@ -99,9 +95,8 @@
</tag> </tag>
<tag> <tag>
<name>subsidebar</name> <name>subsidebar</name>
<tagclass>org.jivesoftware.admin.SubSidebarTag</tagclass> <tag-class>org.jivesoftware.admin.SubSidebarTag</tag-class>
<bodycontent>JSP</bodycontent> <body-content>JSP</body-content>
<info />
<attribute> <attribute>
<name>css</name> <name>css</name>
<required>false</required> <required>false</required>
...@@ -123,11 +118,20 @@ ...@@ -123,11 +118,20 @@
<rtexprvalue>true</rtexprvalue> <rtexprvalue>true</rtexprvalue>
</attribute> </attribute>
</tag> </tag>
<tag>
<name>contentBox</name>
<tag-class>org.jivesoftware.admin.ContentBoxTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>title</name>
<required>true</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
</tag>
<tag> <tag>
<name>infobox</name> <name>infobox</name>
<tagclass>org.jivesoftware.admin.InfoboxTag</tagclass> <tag-class>org.jivesoftware.admin.InfoboxTag</tag-class>
<bodycontent>JSP</bodycontent> <body-content>JSP</body-content>
<info />
<attribute> <attribute>
<name>type</name> <name>type</name>
<required>true</required> <required>true</required>
...@@ -136,9 +140,8 @@ ...@@ -136,9 +140,8 @@
</tag> </tag>
<tag> <tag>
<name>ASN1DER</name> <name>ASN1DER</name>
<tagclass>org.jivesoftware.admin.ASN1DERTag</tagclass> <tag-class>org.jivesoftware.admin.ASN1DERTag</tag-class>
<bodycontent>JSP</bodycontent> <body-content>JSP</body-content>
<info />
<attribute> <attribute>
<name>value</name> <name>value</name>
<required>true</required> <required>true</required>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment