Author: bayard Date: Mon Jan 5 21:14:39 2009 New Revision: 731833 URL: http://svn.apache.org/viewvc?rev=731833&view=rev Log: Migrating to M2
Added: jakarta/taglibs/sandbox/iterators/trunk/LICENSE.txt - copied unchanged from r731146, jakarta/taglibs/sandbox/unstandard/trunk/LICENSE.txt jakarta/taglibs/sandbox/iterators/trunk/NOTICE.txt (with props) jakarta/taglibs/sandbox/iterators/trunk/examples/build.properties.sample - copied unchanged from r731146, jakarta/taglibs/sandbox/iterators/trunk/build.properties.sample jakarta/taglibs/sandbox/iterators/trunk/examples/build.xml - copied unchanged from r731146, jakarta/taglibs/sandbox/iterators/trunk/build.xml jakarta/taglibs/sandbox/iterators/trunk/pom.xml (with props) jakarta/taglibs/sandbox/iterators/trunk/src/assembly/ - copied from r731146, jakarta/taglibs/sandbox/unstandard/trunk/src/assembly/ jakarta/taglibs/sandbox/iterators/trunk/src/main/ jakarta/taglibs/sandbox/iterators/trunk/src/main/resources/ jakarta/taglibs/sandbox/iterators/trunk/src/main/resources/META-INF/ jakarta/taglibs/sandbox/iterators/trunk/src/main/resources/META-INF/taglibs-iterators.tld (with props) jakarta/taglibs/sandbox/iterators/trunk/xdocs/ jakarta/taglibs/sandbox/iterators/trunk/xdocs/index.xml (with props) Removed: jakarta/taglibs/sandbox/iterators/trunk/build.properties.sample jakarta/taglibs/sandbox/iterators/trunk/build.xml jakarta/taglibs/sandbox/iterators/trunk/doc/ jakarta/taglibs/sandbox/iterators/trunk/xml/ Added: jakarta/taglibs/sandbox/iterators/trunk/NOTICE.txt URL: http://svn.apache.org/viewvc/jakarta/taglibs/sandbox/iterators/trunk/NOTICE.txt?rev=731833&view=auto ============================================================================== --- jakarta/taglibs/sandbox/iterators/trunk/NOTICE.txt (added) +++ jakarta/taglibs/sandbox/iterators/trunk/NOTICE.txt Mon Jan 5 21:14:39 2009 @@ -0,0 +1,5 @@ +Apache Jakarta Iterators Taglib +Copyright 2002-2009 The Apache Software Foundation + +This product includes software developed by +The Apache Software Foundation (http://www.apache.org/). Propchange: jakarta/taglibs/sandbox/iterators/trunk/NOTICE.txt ------------------------------------------------------------------------------ svn:eol-style = native Added: jakarta/taglibs/sandbox/iterators/trunk/pom.xml URL: http://svn.apache.org/viewvc/jakarta/taglibs/sandbox/iterators/trunk/pom.xml?rev=731833&view=auto ============================================================================== --- jakarta/taglibs/sandbox/iterators/trunk/pom.xml (added) +++ jakarta/taglibs/sandbox/iterators/trunk/pom.xml Mon Jan 5 21:14:39 2009 @@ -0,0 +1,81 @@ +<?xml version="1.0"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<!-- TODO: + Generate the doc war + Generate the examples war +--> +<project + xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> + <modelVersion>4.0.0</modelVersion> + <parent> + <groupId>org.apache.taglibs</groupId> + <artifactId>taglibs-parent</artifactId> + <version>1-SNAPSHOT</version> + </parent> + + <artifactId>iterators-taglib</artifactId> + <version>0.1-SNAPSHOT</version> + <name>Jakarta Iterators Taglib</name> + + <inceptionYear>2002</inceptionYear> + <description> + This tag library includes useful iteration tags that complement the set of standard iterator tags of the JSP Standard Tag Library (JSTL). + </description> + + <scm> + <connection>scm:svn:http://svn.apache.org/repos/asf/jakarta/taglibs/sandbox/iterators/trunk</connection> + <developerConnection>scm:svn:https://svn.apache.org/repos/asf/jakarta/taglibs/sandbox/iterators/trunk</developerConnection> + <url>http://svn.apache.org/viewvc/jakarta/taglibs/sandbox/iterators/trunk</url> + </scm> + + <developers> + <developer> + <name>Pierre Denamesle</name> + </developer> + </developers> + + <dependencies> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>servlet-api</artifactId> + <version>2.4</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>jsp-api</artifactId> + <version>2.0</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>javax.servlet</groupId> + <artifactId>jstl</artifactId> + <version>1.1.2</version> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>taglibs</groupId> + <artifactId>standard</artifactId> + <version>1.1.2</version> + <scope>provided</scope> + </dependency> + </dependencies> + +</project> Propchange: jakarta/taglibs/sandbox/iterators/trunk/pom.xml ------------------------------------------------------------------------------ svn:eol-style = native Added: jakarta/taglibs/sandbox/iterators/trunk/src/main/resources/META-INF/taglibs-iterators.tld URL: http://svn.apache.org/viewvc/jakarta/taglibs/sandbox/iterators/trunk/src/main/resources/META-INF/taglibs-iterators.tld?rev=731833&view=auto ============================================================================== --- jakarta/taglibs/sandbox/iterators/trunk/src/main/resources/META-INF/taglibs-iterators.tld (added) +++ jakarta/taglibs/sandbox/iterators/trunk/src/main/resources/META-INF/taglibs-iterators.tld Mon Jan 5 21:14:39 2009 @@ -0,0 +1,251 @@ +<?xml version="1.0" ?> +<!-- + Copyright 1999-2004 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> + +<taglib> + <tlib-version>1.0</tlib-version> + <jsp-version>1.2</jsp-version> + <short-name>iterators</short-name> + <uri>http://jakarta.apache.org/taglibs/iterators-1.0</uri> + <display-name>Iterators Tag library</display-name> + + <description> +<p>This tag library includes useful iteration tags that complement the set + of standard iterator tags of the JSP Standard Tag Library (JSTL). </p> +<h4><code><forCategories></code></h4> +<p>This iterator tag is exactly like <code><forEach></code>, with the addition + that it supports the concept of categories. For instance, in the example below, + the collection contains a list of athletes sorted by their associated + country. By using the <forCategories> tag, it is possible to display distinctive + headers and footers whenever a new country is encountered in the list.</p> + +<pre> + <iter:forCategories var="athlete" items="${athletes}"> + <iter:category value="${athlete.country}"> + <iter:header> + <h3><c:out value="${athlete.country}"/></h3> + </iter:header> + <iter:body> + <c:out value="${athlete.name}"/><br> + </iter:body> + <iter:footer> + •-•-•-•-• + </iter:footer> + </iter:category> + </iter:forCategories> +</pre> + +<h5>Canada</h5> +De Zwirek, Jeremie<br/> +Harvey, Pierre<br/> +•-•-•-•-• +<h5>France</h5> +De LaSalle, Jean-Yves <br/> + Marcoux, Pierre<br/> + Surinam, Jean-Francois<br/> + •-•-•-•-• +<h4><code><forColumns></code></h4> +<p>This iterator tag allows the handling of the items of a collection + in a columnwise fashion. Each iteration makes available as many items + as there are columns, and they are provided such that the ordering + sequence is column-wise.</p> +<p> +For instance, in the example below, the + collection contains a list of athletes sorted by their name. By + using the <forColumns> tag, it is possible to display the items of the + collection in multiple columns, keeping the display order on a column by column + basis.</p> + +<pre> +<table border="1" cellspacing="5"> +<iter:forColumns var="athlete" items="${athleteNames}" columns="4"> + <tr> + <td><c:out value="${athlete[0].lastName}" default=""/>, + <c:out value="${athlete[0].firstName}" default=""/></td> + <td><c:out value="${athlete[1].lastName}" default=""/><c:if test="${!empty athlete[1]}">,</c:if> + <c:out value="${athlete[1].firstName}" default=""/></td> + <td><c:out value="${athlete[2].lastName}" default=""/><c:if test="${!empty athlete[2]}">,</c:if> + <c:out value="${athlete[2].firstName}" default=""/></td> + <td><c:out value="${athlete[3].lastName}" default=""/><c:if test="{!empty athlete[3]}">,</c:if> + <c:out value="${athlete[3].firstName}" default=""/></td> + </tr> +</iter:forColumns> +</table> +</pre> + +<table border="1" cellspacing="5"> + + <tr> + <td>Armstrong, + Lance</td> + <td>Delisle, + Laurence</td> + <td>Hineault, + Bernard</td> + <td>Puhjo, + Dimas</td> + </tr> + + <tr> + <td>Biondi, + Matt</td> + <td>Fitzgerald, + Thomas</td> + <td>Le Potiron, + Jerome</td> + <td>St-Gelais, + Vincenzo</td> + </tr> + + <tr> + <td>Bonnehumeur, + Marc</td> + <td>Garcia, + Bruno</td> + <td>LeFrancois, + Jean-Marie</td> + <td>Zalluci, + Frederico</td> + </tr> + + <tr> + <td>Borg, + Boris</td> + <td>Guttenberg, + Moritz</td> + <td>Muller, + Hans</td> + <td></td> + </tr> + + <tr> + <td>Chenard, + Line</td> + <td>Hallenbuch, + Katherine</td> + <td>Pellegri-Llopart, + Eduardo</td> + <td></td> + </tr> + + <tr> + <td>De Zwirek, + Jeremie</td> + <td>Harvey, + Pierre</td> + <td>Poirot, + Hercule</td> + <td></td> + </tr> +</table> + </description> + + <tag> + <name>forCategories</name> + <tag-class>org.apache.taglibs.iterators.ForCategoriesTag</tag-class> + <body-content>JSP</body-content> + <attribute> + <name>items</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>begin</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>end</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>step</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>varStatus</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>category</name> + <tag-class>org.apache.taglibs.iterators.CategoryTag</tag-class> + <body-content>JSP</body-content> + <attribute> + <name>value</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>label</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> + + <tag> + <name>body</name> + <tag-class>org.apache.taglibs.iterators.BodyTag</tag-class> + <body-content>JSP</body-content> + </tag> + + <tag> + <name>header</name> + <tag-class>org.apache.taglibs.iterators.HeaderTag</tag-class> + <body-content>JSP</body-content> + </tag> + + <tag> + <name>footer</name> + <tag-class>org.apache.taglibs.iterators.FooterTag</tag-class> + <body-content>JSP</body-content> + </tag> + + <tag> + <name>forColumns</name> + <tag-class>org.apache.taglibs.iterators.ForColumnsTag</tag-class> + <body-content>JSP</body-content> + <attribute> + <name>items</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>var</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>varStatus</name> + <required>false</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + <attribute> + <name>columns</name> + <required>true</required> + <rtexprvalue>false</rtexprvalue> + </attribute> + </tag> +</taglib> Propchange: jakarta/taglibs/sandbox/iterators/trunk/src/main/resources/META-INF/taglibs-iterators.tld ------------------------------------------------------------------------------ svn:eol-style = native Added: jakarta/taglibs/sandbox/iterators/trunk/xdocs/index.xml URL: http://svn.apache.org/viewvc/jakarta/taglibs/sandbox/iterators/trunk/xdocs/index.xml?rev=731833&view=auto ============================================================================== --- jakarta/taglibs/sandbox/iterators/trunk/xdocs/index.xml (added) +++ jakarta/taglibs/sandbox/iterators/trunk/xdocs/index.xml Mon Jan 5 21:14:39 2009 @@ -0,0 +1,46 @@ +<?xml version="1.0"?> +<!-- + Copyright 1999-2004 The Apache Software Foundation + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<document> + +<properties> + <title>The Jakarta-Taglibs Project: Iterators Tag Library</title> +</properties> + +<body> + + <section name="Iterators Tag Library" href="Welcome"> +<p>This tag library includes useful iteration tags that complement the set + of standard iterator tags of the JSP Standard Tag Library (JSTL). </p> +<p> +<code><forCategories></code> supports the concept of categories, so that +headers and footers can be provided for items that belong to a same category +in the collection.</p> +<p> +<code><forColumns></code> +allows the handling of the items of a collection + in a columnwise fashion. Each iteration makes available as many items + as there are columns, and they are provided such that the ordering + sequence is column-wise.</p> + </section> + + <section name="Download" href="Download"> + <p>Not currently possible - instead you will have to build from source. </p> + </section> + + </body> + +</document> Propchange: jakarta/taglibs/sandbox/iterators/trunk/xdocs/index.xml ------------------------------------------------------------------------------ svn:eol-style = native --------------------------------------------------------------------- To unsubscribe, e-mail: taglibs-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: taglibs-dev-h...@jakarta.apache.org