JBoss Rich Faces SVN: r2497 - in trunk/docs/userguide: en/src/main/docbook and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-08-26 09:31:33 -0400 (Sun, 26 Aug 2007)
New Revision: 2497
Modified:
trunk/docs/userguide/en/src/main/docbook/master.xml
trunk/docs/userguide/pom.xml
Log:
included new components in to the build process
Modified: trunk/docs/userguide/en/src/main/docbook/master.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/master.xml 2007-08-26 13:30:46 UTC (rev 2496)
+++ trunk/docs/userguide/en/src/main/docbook/master.xml 2007-08-26 13:31:33 UTC (rev 2497)
@@ -44,6 +44,8 @@
<!ENTITY calendar_table SYSTEM "../../../target/generated/calendar.xml">
<!ENTITY tooltip_table SYSTEM "../../../target/generated/tooltip.xml">
<!ENTITY insert_table SYSTEM "../../../target/generated/insert.xml">
+<!ENTITY treeModel_table SYSTEM "../../../target/generated/tree-model.xml">
+<!ENTITY scrollableDataTable_table SYSTEM "../../../target/generated/scrollableDataTable.xml">
<!ENTITY coreComponents_table SYSTEM "../../../target/generated/a4j.xml">
]>
@@ -81,8 +83,8 @@
&dataTable_table;
&dnd_table;
&dropDownMenu_table;
+&menuComponents_table;
&effect_table;
-&menuComponents_table;
&gmap_table;
&virtualEarth_table;
&inputNumberSlider_table;
@@ -94,6 +96,7 @@
&paint2D_table;
&panel_table;
&panelBar_table;
+&scrollableDataTable_table;
&separator_table;
&simpleTogglePanel_table;
&spacer_table;
@@ -103,6 +106,7 @@
&toolBar_table;
&tooltip_table;
&tree_table;
+&treeModel_table;
Modified: trunk/docs/userguide/pom.xml
===================================================================
--- trunk/docs/userguide/pom.xml 2007-08-26 13:30:46 UTC (rev 2496)
+++ trunk/docs/userguide/pom.xml 2007-08-26 13:31:33 UTC (rev 2497)
@@ -263,6 +263,17 @@
org.richfaces.ui
</groupId>
<artifactId>
+ scrollableDataTable
+ </artifactId>
+ <version>
+ 3.1.0-SNAPSHOT
+ </version>
+ </artifactItem>
+ <artifactItem>
+ <groupId>
+ org.richfaces.ui
+ </groupId>
+ <artifactId>
simpleTogglePanel
</artifactId>
<version>
@@ -351,6 +362,16 @@
</artifactItem>
<artifactItem>
<groupId>
+ org.richfaces.ui
+ </groupId>
+ <artifactId>treeModel</artifactId>
+ <version>
+ 3.1.0-SNAPSHOT
+ </version>
+ </artifactItem>
+
+ <artifactItem>
+ <groupId>
org.richfaces.docs.xslt
</groupId>
<artifactId>
18 years, 8 months
JBoss Rich Faces SVN: r2496 - trunk/docs/userguide/en/src/main/docbook/included.
by richfaces-svn-commits@lists.jboss.org
Author: vkorluzhenko
Date: 2007-08-26 09:30:46 -0400 (Sun, 26 Aug 2007)
New Revision: 2496
Added:
trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.desc.xml
trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml
Log:
http://jira.jboss.com/jira/browse/RF-447 - added new component
Added: trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.desc.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.desc.xml (rev 0)
+++ trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.desc.xml 2007-08-26 13:30:46 UTC (rev 2496)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<section>
+<sectioninfo>
+<keywordset>
+ <keyword>scrollableDataTable</keyword>
+</keywordset>
+</sectioninfo>
+<section>
+<title>Description</title>
+ <para>The <emphasis role="bold">
+ <property><rich:scrollableDataTable></property>
+ </emphasis> component is used to represent the tabular data.</para>
+ <figure>
+ <title><rich:scrollableDataTable> component</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/scrollableDataTable.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section>
+ <title>Key Features</title>
+ <itemizedlist>
+ <listitem>Highly customizable look and feel</listitem>
+ <listitem>Variable content of the table cells</listitem>
+ <listitem>Dynamically fetching the rows from the server when the table is scrolled up and down</listitem>
+ <listitem>Resizing columns by mouse dragging the column bar</listitem>
+ <listitem>Sorting column by clicking the header</listitem>
+ <listitem>Fixed one or more left columns when table is scrolled horizontally</listitem>
+ <listitem>One and multi-selection rows mode</listitem>
+ <listitem>Built-it drag-n-drop support</listitem>
+ </itemizedlist>
+</section>
+</section>
\ No newline at end of file
Added: trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml
===================================================================
--- trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml (rev 0)
+++ trunk/docs/userguide/en/src/main/docbook/included/scrollableDataTable.xml 2007-08-26 13:30:46 UTC (rev 2496)
@@ -0,0 +1,226 @@
+<?xml version='1.0' encoding='UTF-8'?>
+
+<section>
+ <sectioninfo>
+ <keywordset>
+ <keyword>scrollableDataTable</keyword>
+ </keywordset>
+ </sectioninfo>
+
+ <table>
+ <title>Component identification parameters </title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Name</entry>
+ <entry>Value</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>component-type</entry>
+ <entry>org.richfaces.component.ScrollableDataTable</entry>
+ </row>
+ <row>
+ <entry>component-class</entry>
+ <entry>org.richfaces.component.html.HtmlScrollableDataTable</entry>
+ </row>
+ <row>
+ <entry>component-family</entry>
+ <entry>org.richfaces.component.ScrollableDataTable</entry>
+ </row>
+ <row>
+ <entry>renderer-type</entry>
+ <entry>org.richfaces.renderkit.html.ScrollableDataTableRenderer</entry>
+ </row>
+ <row>
+ <entry>tag-class</entry>
+ <entry>org.richfaces.taglib.ScrollableDataTableTag</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <section>
+ <title>Creating the Component with a Page Tag</title>
+ <para>Here is a simple example as it could be used on a page:</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+ <rich:scrollableDataTable value="#{dataTableScrollerBean.allCars}" var="category">
+ <!--...//Set of columns and header/footer facets-->
+ </rich:scrollableDataTable>
+...
+]]></programlisting>
+ </section>
+ <section>
+ <title>Dynamical creation from Java code</title>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="JAVA"><![CDATA[import org.richfaces.component.html.HtmlScrollableDataTable;
+...
+HtmlScrollableDataTable myScrollableDataTable = new HtmlScrollableDataTable();
+...
+]]></programlisting>
+ </section>
+ <!--section>
+ <title>Details of Usage</title>
+ <para>The <property>table</property> component is very similar to the custom JSF dataTable one,
+ except for the common peculiarities of any rich component:</para>
+ <itemizedlist>
+ <listitem>Skin support. The <property>table</property> completely meets a three-class
+ principle of Rich Faces skinnability</listitem>
+ <listitem>Support of Ajax updates for a limited set of strings</listitem>
+ </itemizedlist>
+ <para>Skins support is described in the <link linkend="ArchitectureOverview">corresponding
+ section</link>. Ajax support is possible because the component is created basing on the
+ <emphasis role="bold">
+ <property><a4j:repeat></property>
+ </emphasis> component and as a result the component has its possibilities of Ajax updates for
+ a limited set of strings. The component is implemented with the <emphasis>
+ <property>"ajaxKeys"</property>
+ </emphasis> attribute for a <property>table</property> and in contrast to the <emphasis
+ role="bold">
+ <property><a4j:repeat></property>
+ </emphasis> outputs the standard HTML structure for table rendering.</para>
+
+ <para>
+ <emphasis role="bold">Example:</emphasis>
+ </para>
+ <programlisting role="XML"><![CDATA[...
+ <rich:dataTable value="#{capitalsBean.capitals}" var="capitals"
+ ajaxKeys="#{bean.ajaxSet}" binding="#{bean.table}" id="table">
+ <Set of columns and header/footer facets>
+ </rich:dataTable>
+...
+ <a4j:commandButton action="#{bean.someAction}" reRender="table"/>
+...
+]]></programlisting>
+ <para>For such a table during <property>someAction</property> method processing called with AJAX
+ request when the key is pressed it's possible to fill in lot's of ajaxKeys
+ with strings indices that are to be updated. A resulting output on the client contains only
+ required strings and they are updated in the tree, even when update is specified for the whole
+ table.</para>
+
+ </section>
+ <section>
+ <title>Look-and-Feel Customization</title>
+ <para>For skinnability implementation the components use a <emphasis>
+ <property>style class redefinition method</property>
+ </emphasis>.</para>
+ <para>Default style classes are mapped on <emphasis><property>skin
+ parameters</property>.</emphasis></para>
+ <para>To redefine appearance of all dataTables at once, there are two ways:</para>
+ <itemizedlist>
+ <listitem>to redefine corresponding skin parameters</listitem>
+ <listitem>to add <emphasis>
+ <property>style classes</property>
+ </emphasis> used by the dataTable to your page style sheets</listitem>
+ </itemizedlist>
+ </section>
+
+ <section>
+ <title>Definition custom Style Classes</title>
+ <figure>
+ <title>DataTable class names</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/dataTable2.gif"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>On the screenshot there are class names defining the marked elements.</para>
+
+ <table>
+ <title>Component skin classes</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Class name</entry>
+ <entry>An element defined with a class</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry>rich-table</entry>
+ <entry>Applied to the <emphasis><property>"table"</property></emphasis> element</entry>
+ </row>
+ <row>
+ <entry>rich-table-caption</entry>
+ <entry>Applied to facet="caption"</entry>
+ </row>
+ <row>
+ <entry>rich-table-header</entry>
+ <entry>Applied to a whole header "header"</entry>
+ </row>
+ <row>
+ <entry>rich-table-headercell</entry>
+ <entry>Applied to a particular cell of a header "header"</entry>
+ </row>
+ <row>
+ <entry>rich-table-subheader</entry>
+ <entry>Applied to the whole subheader "header"</entry>
+ </row>
+ <row>
+ <entry>rich-table-subheadercell</entry>
+ <entry>Applied to a particular cell of subheader "header"</entry>
+ </row>
+ <row>
+ <entry>rich-table-cell</entry>
+ <entry> Applied to a particular table cell</entry>
+ </row>
+ <row>
+ <entry>rich-table-row</entry>
+ <entry>Applied to the whole table row</entry>
+ </row>
+ <row>
+ <entry>rich-table-subfooter</entry>
+ <entry>Applied to the whole subheader "footer"</entry>
+ </row>
+ <row>
+ <entry>rich-table-subfootercell</entry>
+ <entry>Applied to a particular subheader "footer"</entry>
+ </row>
+ <row>
+ <entry>rich-table-footer</entry>
+ <entry>Applied to the whole "footer"</entry>
+ </row>
+ <row>
+ <entry>rich-table- footercell</entry>
+ <entry>Applied to the specific of "footer"</entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+ <para>To redefine an appearance of all <property>tables</property> on a page, redefine the
+ corresponding class in the CSS file used with the page.</para>
+ <para>To redefine a style of a particular page, use <emphasis>
+ <property>"component class"</property>
+ </emphasis> attributes which list is the same as the <property>dataTable</property> one and is
+ known to you.</para>
+ </section>
+ <section>
+ <title>Relevant resources links</title>
+ <para>
+ <ulink url="http://livedemo.exadel.com/richfaces-demo/richfaces/dataTable.jsf?c=dataT..."
+ >Here</ulink> you can see the example of <emphasis role="bold"
+ ><rich:dataTable></emphasis> usage and sources for the given example. </para>
+ <para>The article about <emphasis role="bold"><rich:dataTable></emphasis>
+ flexibility can be found <ulink url="http://labs.jboss.com/wiki/RichFacesArticleDataTable"
+ >here</ulink>.</para>
+ <para>More information about using <emphasis role="bold"
+ ><rich:dataTable></emphasis> and <emphasis role="bold"
+ ><rich:subTable></emphasis> could be found on the <ulink
+ url="http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4059044#...">RichFaces Users Forum.</ulink>
+ </para>
+ <para>How to use <emphasis role="bold"><rich:dataTable></emphasis> and <emphasis
+ role="bold"><rich:dataScroller></emphasis> in a context of Extended
+ Data Model see <ulink
+ url="http://www.jboss.com/index.html?module=bb&op=viewtopic&t=115636"
+ >here</ulink>.</para>
+ </section-->
+</section>
18 years, 8 months
JBoss Rich Faces SVN: r2495 - trunk/framework/api/src/main/java/org/ajax4jsf.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-26 08:33:59 -0400 (Sun, 26 Aug 2007)
New Revision: 2495
Modified:
trunk/framework/api/src/main/java/org/ajax4jsf/Messages.java
Log:
http://jira.jboss.com/jira/browse/RF-601
Messages ContextCL -> ResourceBundle map added
Modified: trunk/framework/api/src/main/java/org/ajax4jsf/Messages.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/Messages.java 2007-08-25 10:31:25 UTC (rev 2494)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/Messages.java 2007-08-26 12:33:59 UTC (rev 2495)
@@ -22,32 +22,46 @@
package org.ajax4jsf;
import java.text.MessageFormat;
+import java.util.HashMap;
import java.util.Locale;
+import java.util.Map;
import java.util.ResourceBundle;
public class Messages {
private static final String BUNDLE_NAME = "org.ajax4jsf.messages";
- static ResourceBundle bundle = ResourceBundle.getBundle(BUNDLE_NAME, Locale.getDefault(), Thread.currentThread().getContextClassLoader());
+ private static Map bundles = new HashMap();
+
+ private static synchronized ResourceBundle getBundle() {
+ ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
+ ResourceBundle bundle = (ResourceBundle) bundles.get(contextClassLoader);
+ if (bundle == null) {
+ bundle = ResourceBundle.getBundle(BUNDLE_NAME, Locale.getDefault(), contextClassLoader);
+ bundles.put(contextClassLoader, bundle);
+ }
+
+ return bundle;
+ }
+
public static final String getMessage(String name) {
- String value = bundle.getString(name);
- return value == null ? "%" + name + "%" : bundle.getString(name);
+ String value = getBundle().getString(name);
+ return value == null ? "%" + name + "%" : value;
}
public static final String getMessage(String name, Object param) {
- String pattern = bundle.getString(name);
+ String pattern = getBundle().getString(name);
if(pattern == null) return "%" + name + "%";
return MessageFormat.format(pattern, new Object[]{param});
}
public static final String getMessage(String name, Object param1, Object param2) {
- String pattern = bundle.getString(name);
+ String pattern = getBundle().getString(name);
if(pattern == null) return "%" + name + "%";
return MessageFormat.format(pattern, new Object[]{param1, param2});
}
public static final String getMessage(String name, Object[] params) {
- String pattern = bundle.getString(name);
+ String pattern = getBundle().getString(name);
if(pattern == null) return "%" + name + "%";
return MessageFormat.format(pattern, params);
}
18 years, 8 months
JBoss Rich Faces SVN: r2494 - in trunk/ui/calendar: design/calendar-js and 3 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: akushunin
Date: 2007-08-25 06:31:25 -0400 (Sat, 25 Aug 2007)
New Revision: 2494
Modified:
trunk/ui/calendar/design/calendar-js/calendar-prototype.js
trunk/ui/calendar/design/calendar-js/calendar-xhtml.html
trunk/ui/calendar/design/calendar/calendar_div.html
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
Log:
RF-698, renaming calendar style classes
Modified: trunk/ui/calendar/design/calendar/calendar_div.html
===================================================================
--- trunk/ui/calendar/design/calendar/calendar_div.html 2007-08-25 01:40:38 UTC (rev 2493)
+++ trunk/ui/calendar/design/calendar/calendar_div.html 2007-08-25 10:31:25 UTC (rev 2494)
@@ -4,13 +4,13 @@
<head>
<title>calendar</title>
<style>
-.calendar_exterior{
+.rich-calendar-exterior{
border : 1px solid #c0c0c0; /*panelBorderColor*/
}
-.calendar_btn{
+.rich-calendar-btn{
cursor : pointer;
}
-.calendar_header{
+.rich-calendar-header{
border-bottom : 1px solid #c0c0c0; /*panelBorderColor*/
background : #C7D7EC; /*additionalBackgroundColor*/
font-size : 11px; /*generalSizeFont*/
@@ -19,12 +19,12 @@
height : 22px;
}
-.cell_size{
+.rich-cell-size{
width : 25px;
height : 22px;
}
-.calendar_cell{
+.rich-calendar-cell{
background-color : #FFFFFF; /*generalBackgroundColor*/
border-bottom : 1px solid #c0c0c0; /*panelBorderColor*/
border-right : 1px solid #c0c0c0; /*panelBorderColor*/
@@ -35,7 +35,7 @@
text-align : center;
}
-.calendar_tool{
+.rich-calendar-tool{
border-bottom : 1px solid #c0c0c0; /*panelBorderColor*/
background-color : #224986; /*headerBackgroundColor*/
font-size : 11px; /*headerSizeFont*/
@@ -48,7 +48,7 @@
height : 22px;
}
-.calendar_month{
+.rich-calendar-month{
border-bottom : 1px solid #c0c0c0; /*panelBorderColor*/
background-color : #224986; /*headerBackgroundColor*/
font-size : 11px; /*headerSizeFont*/
@@ -59,7 +59,7 @@
text-align : center;
}
-.calendar_days{
+.rich-calendar-days{
border-bottom : 1px solid #c0c0c0; /*panelBorderColor*/
border-right : 0px solid #c0c0c0; /*panelBorderColor*/
background : #C7D7EC; /*additionalBackgroundColor*/
@@ -70,7 +70,7 @@
height : 22px;
}
-.calendar_week{
+.rich-calendar-week{
border-bottom : 1px solid #c0c0c0; /*panelBorderColor*/
border-right : 1px solid #c0c0c0; /*panelBorderColor*/
font-size : 11px; /*generalSizeFont*/
@@ -81,37 +81,37 @@
width : 25px;
}
-.calendar_holly{
+.rich-calendar-holly{
background-color : #ffebda; /*unknown parameter - need to add*/
color : #ff7800; /*unknown parameter - need to add*/
}
-.calendar_current{
+.rich-calendar-current{
background-color : #ff7800; /*unknown parameter - need to add*/
color : #ffebda; /*unknown parameter - need to add*/
font-weight : bold;
}
-.calendar_spec{
+.rich-calendar-spec{
background-color : #e4f5e2; /*unknown parameter - need to add*/
}
-.calendar_select{
+.rich-calendar-select{
background-color : #224986; /*headerBackgroundColor*/
color : #FFFFFF; /*headerTextColor*/
font-weight : bold;
}
-.right_cell{
+.rich-right-cell{
border-right : 0px;
}
-.bottom_cell{
+.rich-bottom-cell{
border-bottom : 0px;
}
-.calendar_toolfooter{
+.rich-calendar-toolfooter{
border-top : 1px solid #c0c0c0; /*panelBorderColor*/
border-right : 0px solid #c0c0c0; /*panelBorderColor*/
background : #C7D7EC; /*additionalBackgroundColor*/
@@ -121,7 +121,7 @@
height : 22px;
}
-.calendar_footer{
+.rich-calendar-footer{
border-top : 1px solid #c0c0c0; /*panelBorderColor*/
border-right : 0px solid #c0c0c0; /*panelBorderColor*/
background : #C7D7EC; /*additionalBackgroundColor*/
@@ -141,9 +141,9 @@
<div>
-<table border="0" cellpadding="0" cellspacing="0" class="calendar_exterior">
+<table border="0" cellpadding="0" cellspacing="0" class="rich-calendar-exterior">
<tr>
- <td class="calendar_header" colspan="8">
+ <td class="rich-calendar-header" colspan="8">
Optional Header
</td>
</tr>
@@ -152,19 +152,19 @@
<td colspan="8">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
- <td class="calendar_tool calendar_btn">
+ <td class="rich-calendar-tool rich-calendar-btn">
««
</td>
- <td class="calendar_tool calendar_btn">
+ <td class="rich-calendar-tool rich-calendar-btn">
«
</td>
- <td class="calendar_month calendar_btn">
+ <td class="rich-calendar-month rich-calendar-btn">
June, 2007
</td>
- <td class="calendar_tool calendar_btn">
+ <td class="rich-calendar-tool rich-calendar-btn">
»
</td>
- <td class="calendar_tool calendar_btn">
+ <td class="rich-calendar-tool rich-calendar-btn">
»»
</td>
</tr>
@@ -172,163 +172,163 @@
</td>
</tr>
<tr>
- <td class="calendar_days">
+ <td class="rich-calendar-days">
<br>
</td>
- <td class="calendar_days">
+ <td class="rich-calendar-days">
Sun
</td>
- <td class="calendar_days">
+ <td class="rich-calendar-days">
Mon
</td>
- <td class="calendar_days">
+ <td class="rich-calendar-days">
Tue
</td>
- <td class="calendar_days">
+ <td class="rich-calendar-days">
Wed
</td>
- <td class="calendar_days">
+ <td class="rich-calendar-days">
Thu
</td>
- <td class="calendar_days">
+ <td class="rich-calendar-days">
Fri
</td>
- <td class="calendar_days right_cell">
+ <td class="rich-calendar-days rich-right-cell">
Sat
</td>
</tr>
<tr>
- <td class="calendar_week">
+ <td class="rich-calendar-week">
1
</td>
- <td class="cell_size calendar_cell calendar_holly">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-holly">
<br>
</td>
- <td class="cell_size calendar_cell calendar_cell">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-cell">
<br>
</td>
- <td class="cell_size calendar_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-btn">
1<br>
</td>
- <td class="cell_size calendar_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-btn">
2<br>
</td>
- <td class="cell_size calendar_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-btn">
3<br>
</td>
- <td class="cell_size calendar_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-btn">
4<br>
</td>
- <td class="cell_size calendar_cell calendar_holly right_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-holly rich-right-cell rich-calendar-btn">
5<br>
</td>
</tr>
<tr>
- <td class="calendar_week">
+ <td class="rich-calendar-week">
2
</td>
- <td class="cell_size calendar_cell calendar_holly calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-holly rich-calendar-btn">
6<br>
</td>
- <td class="cell_size calendar_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-btn">
7<br>
</td>
- <td class="cell_size calendar_cell calendar_current calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-current rich-calendar-btn">
8<br>
</td>
- <td class="cell_size calendar_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-btn">
9<br>
</td>
- <td class="cell_size calendar_cell calendar_spec calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-spec rich-calendar-btn">
10<br>
</td>
- <td class="cell_size calendar_cell calendar_spec calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-spec rich-calendar-btn">
11<br>
</td>
- <td class="cell_size calendar_cell calendar_holly right_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-holly rich-right-cell rich-calendar-btn">
12<br>
</td>
</tr>
<tr>
- <td class="calendar_week">
+ <td class="rich-calendar-week">
3
</td>
- <td class="cell_size calendar_cell calendar_holly calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-holly rich-calendar-btn">
13<br>
</td>
- <td class="cell_size calendar_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-btn">
14<br>
</td>
- <td class="cell_size calendar_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-btn">
15<br>
</td>
- <td class="cell_size calendar_cell calendar_spec calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-spec rich-calendar-btn">
16<br>
</td>
- <td class="cell_size calendar_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-btn">
17<br>
</td>
- <td class="cell_size calendar_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-btn">
18<br>
</td>
- <td class="cell_size calendar_cell calendar_holly right_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-holly rich-right-cell rich-calendar-btn">
19<br>
</td>
</tr>
<tr>
- <td class="calendar_week">
+ <td class="rich-calendar-week">
4
</td>
- <td class="cell_size calendar_cell calendar_holly calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-holly rich-calendar-btn">
20<br>
</td>
- <td class="cell_size calendar_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-btn">
21<br>
</td>
- <td class="cell_size calendar_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-btn">
22<br>
</td>
- <td class="cell_size calendar_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-btn">
23<br>
</td>
- <td class="cell_size calendar_cell calendar_select calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-select rich-calendar-btn">
24<br>
</td>
- <td class="cell_size calendar_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-btn">
25<br>
</td>
- <td class="cell_size calendar_cell calendar_holly right_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-holly rich-right-cell rich-calendar-btn">
26<br>
</td>
</tr>
<tr>
- <td class="calendar_week bottom_cell calendar_btn">
+ <td class="rich-calendar-week rich-bottom-cell rich-calendar-btn">
5
</td>
- <td class="cell_size calendar_cell calendar_holly bottom_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-holly rich-bottom-cell rich-calendar-btn">
27<br>
</td>
- <td class="cell_size calendar_cell bottom_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-bottom-cell rich-calendar-btn">
28<br>
</td>
- <td class="cell_size calendar_cell calendar_spec bottom_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-spec rich-bottom-cell rich-calendar-btn">
29<br>
</td>
- <td class="cell_size calendar_cell calendar_spec bottom_cell calendar_btn">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-spec rich-bottom-cell rich-calendar-btn">
30<br>
</td>
- <td class="cell_size calendar_cell bottom_cell">
+ <td class="rich-cell-size rich-calendar-cell rich-bottom-cell">
<br>
</td>
- <td class="cell_size calendar_cell bottom_cell">
+ <td class="rich-cell-size rich-calendar-cell rich-bottom-cell">
<br>
</td>
- <td class="cell_size calendar_cell calendar_holly right_cell bottom_cell">
+ <td class="rich-cell-size rich-calendar-cell rich-calendar-holly rich-right-cell rich-bottom-cell">
<br>
</td>
</tr>
@@ -336,13 +336,13 @@
<td colspan="8">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
- <td class="calendar_toolfooter calendar_btn">
+ <td class="rich-calendar-toolfooter rich-calendar-btn">
07/08/2007
</td>
- <td class="calendar_toolfooter" width="100%">
+ <td class="rich-calendar-toolfooter" width="100%">
<br>
</td>
- <td class="calendar_toolfooter calendar_btn" align="right">
+ <td class="rich-calendar-toolfooter rich-calendar-btn" align="right">
Today
</td>
</tr>
@@ -351,7 +351,7 @@
</tr>
<tr>
- <td class="calendar_footer" colspan="8">
+ <td class="rich-calendar-footer" colspan="8">
Optional Footer
</td>
</tr>
Modified: trunk/ui/calendar/design/calendar-js/calendar-prototype.js
===================================================================
--- trunk/ui/calendar/design/calendar-js/calendar-prototype.js 2007-08-25 01:40:38 UTC (rev 2493)
+++ trunk/ui/calendar/design/calendar-js/calendar-prototype.js 2007-08-25 10:31:25 UTC (rev 2494)
@@ -129,7 +129,7 @@
var weekDayHtml = this.params.weekDayMarkup( {weekDay: this.params.weekDayLabels[weekDayCounter]} );
if (weekDayCounter==6) weekDayCounter=0; else weekDayCounter++;
- htmlTextWeekDayBar+='<td id="'+this.params.weekDayBarId+i+'" class="'+(i==this.firstWeekendDayNumber || i==this.secondWeekendDayNumber ? "Weekendclass" : "Dayclass")+'">'+weekDayHtml+'</td>';
+ htmlTextWeekDayBar+='<td id="'+this.params.weekDayBarId+i+'" class="'+(i==this.firstWeekendDayNumber || i==this.secondWeekendDayNumber ? "rich-Weekendclass" : "rich-Dayclass")+'">'+weekDayHtml+'</td>';
}
htmlTextWeekDayBar+='</tr>\n';
@@ -189,9 +189,9 @@
{
this.selectedDate=new Date(this.currentDate);
this.selectedDate.setDate(obj.data);
- if (this.selectedDateElement) Element.removeClassName(this.selectedDateElement, "Selecteddayclass");
+ if (this.selectedDateElement) Element.removeClassName(this.selectedDateElement, "rich-Selectedrich-Dayclass");
this.selectedDateElement = obj;
- Element.addClassName(obj, "Selecteddayclass");
+ Element.addClassName(obj, "rich-Selectedrich-Dayclass");
$('div_'+this.params.dayListTableId+'_selected_date').innerHTML=obj.data+"/"+(this.currentDate.getMonth()+1)+"/"+this.currentDate.getFullYear();
} else {
@@ -280,7 +280,7 @@
this.days = [];
var dayCounter = previousMonthDays - wd + 1;
// previuos month days
- if (wd>0) while (dayCounter<=previousMonthDays) {this.days.push({day:dayCounter, _isWeekend: this.isWeekend(p), _month:-1, _className:"Disableddayclass"}); dayCounter++; p++; }
+ if (wd>0) while (dayCounter<=previousMonthDays) {this.days.push({day:dayCounter, _isWeekend: this.isWeekend(p), _month:-1, _className:"rich-Disabledrich-Dayclass"}); dayCounter++; p++; }
dayCounter = 1;
// current month days
@@ -291,9 +291,9 @@
while (dayCounter<firstDay)
{
if (this.isWeekend(p%7))
- this.days.push({day:dayCounter, _isWeekend: true, _month:0, _className:"Weekenddayclass", _hoverClassName:"Hoveredweekclass"});
+ this.days.push({day:dayCounter, _isWeekend: true, _month:0, _className:"rich-Weekendrich-Dayclass", _hoverClassName:"rich-Hoveredweekclass"});
else
- this.days.push({day:dayCounter, _isWeekend: false, _month:0, _className:"Commondayclass", _hoverClassName:"Hovereddayclass"});
+ this.days.push({day:dayCounter, _isWeekend: false, _month:0, _className:"rich-Commonrich-Dayclass", _hoverClassName:"rich-Hoveredrich-Dayclass"});
dayCounter++;
p++;
@@ -308,8 +308,8 @@
obj = this.daysData.days[idx];
obj._isWeekend = flag;
obj._month = 0;
- if (flag) {obj._className = "Weekenddayclass"; obj._hoverClassName = "Hoveredweekclass";}
- else {obj._className = "Commondayclass"; obj._hoverClassName = "Hovereddayclass";}
+ if (flag) {obj._className = "rich-Weekendrich-Dayclass"; obj._hoverClassName = "rich-Hoveredweekclass";}
+ else {obj._className = "rich-Commonrich-Dayclass"; obj._hoverClassName = "rich-Hoveredrich-Dayclass";}
this.days.push(obj);
idx++;
dayCounter++;
@@ -319,9 +319,9 @@
while (dayCounter<=currentMonthDays)
{
if (this.isWeekend(p%7))
- this.days.push({day:dayCounter, _isWeekend: true, _month:0, _className:"Weekenddayclass", _hoverClassName:"Hoveredweekclass"});
+ this.days.push({day:dayCounter, _isWeekend: true, _month:0, _className:"rich-Weekendrich-Dayclass", _hoverClassName:"rich-Hoveredweekclass"});
else
- this.days.push({day:dayCounter, _isWeekend: false, _month:0, _className:"Commondayclass", _hoverClassName:"Hovereddayclass"});
+ this.days.push({day:dayCounter, _isWeekend: false, _month:0, _className:"rich-Commonrich-Dayclass", _hoverClassName:"rich-Hoveredrich-Dayclass"});
dayCounter++;
p++;
}
@@ -329,7 +329,7 @@
// next month days
var ld = 7-p%7;
- if (ld!=7) while (dayCounter<=ld) { this.days.push({day:dayCounter++, _isWeekend: this.isWeekend(p%7), _month:1, _className:"Disableddayclass"}); }
+ if (ld!=7) while (dayCounter<=ld) { this.days.push({day:dayCounter++, _isWeekend: this.isWeekend(p%7), _month:1, _className:"rich-Disabledrich-Dayclass"}); }
// render
p=0;
@@ -361,8 +361,8 @@
if (dataobj) {
element.data=dataobj.day;
element.innerHTML = this.params.dayListMarkupArray[p]( dataobj );
- element.className = dataobj._className + (todayflag /*&& dataobj._month==0 */&& dataobj.day==todaydate ? " Todayclass" : "");
- if (selectedflag && dataobj._month==0 && dataobj.day==selecteddate) { this.selectedDateElement = element; element.className+=" Selecteddayclass"; }
+ element.className = dataobj._className + (todayflag /*&& dataobj._month==0 */&& dataobj.day==todaydate ? " rich-Torich-Dayclass" : "");
+ if (selectedflag && dataobj._month==0 && dataobj.day==selecteddate) { this.selectedDateElement = element; element.className+=" rich-Selectedrich-Dayclass"; }
this.setCellEvents(element);
p++;
} else {
Modified: trunk/ui/calendar/design/calendar-js/calendar-xhtml.html
===================================================================
--- trunk/ui/calendar/design/calendar-js/calendar-xhtml.html 2007-08-25 01:40:38 UTC (rev 2493)
+++ trunk/ui/calendar/design/calendar-js/calendar-xhtml.html 2007-08-25 10:31:25 UTC (rev 2494)
@@ -8,33 +8,33 @@
<meta http-equiv="Content-Type" content="text/xhtml" />
<style type="text/css">
-.Dayclass {
+.rich-Dayclass {
color: #000000;
font-weight:bold;
}
-.Weekendclass {
+.rich-Weekendclass {
color:#800000;
font-weight:bold;
}
-.Commondayclass {
+.rich-Commonrich-Dayclass {
color: #000080;
}
-.Hovereddayclass {
+.rich-Hoveredrich-Dayclass {
color:red;
}
-.Weekenddayclass {
+.rich-Weekendrich-Dayclass {
color:#800000;
}
-.Hoveredweekclass {
+.rich-Hoveredweekclass {
color:red;
}
-.Disableddayclass {
+.rich-Disabledrich-Dayclass {
color:gray;
}
-.Todayclass {
+.rich-Torich-Dayclass {
background-color: #f0f0f0;
}
-.Selecteddayclass {
+.rich-Selectedrich-Dayclass {
background-color: #f08080;
}
Modified: trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss
===================================================================
--- trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss 2007-08-25 01:40:38 UTC (rev 2493)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/css/calendar.xcss 2007-08-25 10:31:25 UTC (rev 2494)
@@ -3,29 +3,29 @@
xmlns:u='http:/jsf.exadel.com/template/util'
xmlns="http://www.w3.org/1999/xhtml" >
<f:verbatim><![CDATA[
-.calendar_exterior{
+.rich-calendar-exterior{
border : 1px solid;
}
-.calendar_btn{
+.rich-calendar-btn{
cursor : pointer;
}
-.calendar_header_optional{
+.rich-calendar-header-optional{
border-bottom : 1px solid;
padding : 7px;
height : 22px;
}
-.calendar_header{
+.rich-calendar-header{
border-right : 0px solid;
border-bottom : 1px solid;
}
-.cell_size{
+.rich-cell-size{
width : 25px;
height : 22px;
}
-.calendar_cell{
+.rich-calendar-cell{
border-bottom : 1px solid;
border-right : 1px solid;
padding : 0px;
@@ -33,19 +33,19 @@
text-align : center;
}
-.calendar_tool{
+.rich-calendar-tool{
vertical-align : middle;
text-align : center;
width : 25px;
height : 22px;
}
-.calendar_month{
+.rich-calendar-month{
vertical-align : middle;
text-align : center;
}
-.calendar_days{
+.rich-calendar-days{
border-bottom : 1px solid;
border-right : 0px solid;
vertical-align : middle;
@@ -53,7 +53,7 @@
height : 22px;
}
-.calendar_week{
+.rich-calendar-week{
border-bottom : 1px solid;
border-right : 1px solid;
/* background-color : #f5f5f5; /*unknown parameter - need to add*/ */
@@ -62,67 +62,67 @@
width : 25px;
}
-/*.calendar_holly{
+/*.rich-calendar-holly{
background-color : #ffebda; /*unknown parameter - need to add*/
color : #ff7800; /*unknown parameter - need to add*/
}*/
-/*.calendar_current{
+/*.rich-calendar-current{
background-color : #ff7800; /*unknown parameter - need to add*/
color : #ffebda; /*unknown parameter - need to add*/
font-weight : bold;
}*/
-.calendar_spec{
+.rich-calendar-spec{
background-color : #e4f5e2; /*unknown parameter - need to add*/
}
-.right_cell{
+.rich-right-cell{
border-right : 0px;
}
-.bottom_cell{
+.rich-bottom-cell{
border-bottom : 0px;
}
-.calendar_toolfooter{
+.rich-calendar-toolfooter{
padding : 0px 7px 0px 7px;
height : 22px;
}
-.calendar_footer_optional{
+.rich-calendar-footer-optional{
border-top : 1px solid;
border-right : 0px solid;
padding : 7px;
height : 22px;
}
-.calendar_footer{
+.rich-calendar-footer{
border-top : 1px solid;
border-right : 0px solid;
}
]]>
</f:verbatim>
- <u:selector name=".calendar_exterior">
+ <u:selector name=".rich-calendar-exterior">
<u:style name="border-color" skin="panelBorderColor"/>
</u:selector>
- <u:selector name=".calendar_header_optional">
+ <u:selector name=".rich-calendar-header-optional">
<u:style name="border-bottom-color" skin="panelBorderColor"/>
<u:style name="background-color" skin="additionalBackgroundColor"/>
<u:style name="font-size" skin="generalSizeFont"/>
<u:style name="font-family" skin="generalFamilyFont"/>
</u:selector>
- <u:selector name=".calendar_header">
+ <u:selector name=".rich-calendar-header">
<u:style name="border-bottom-color" skin="panelBorderColor"/>
<u:style name="background-color" skin="additionalBackgroundColor"/>
<u:style name="font-size" skin="generalSizeFont"/>
<u:style name="font-family" skin="generalFamilyFont"/>
</u:selector>
- <u:selector name=".calendar_cell">
+ <u:selector name=".rich-calendar-cell">
<u:style name="border-bottom-color" skin="panelBorderColor"/>
<u:style name="border-right-color" skin="panelBorderColor"/>
<u:style name="background-color" skin="generalBackgroundColor"/>
@@ -130,7 +130,7 @@
<u:style name="font-family" skin="generalFamilyFont"/>
</u:selector>
- <u:selector name=".calendar_tool">
+ <u:selector name=".rich-calendar-tool">
<u:style name="background-color" skin="headerBackgroundColor"/>
<u:style name="font-size" skin="headerSizeFont"/>
<u:style name="font-family" skin="headerFamilyFont"/>
@@ -138,7 +138,7 @@
<u:style name="color" skin="headerTextColor"/>
</u:selector>
- <u:selector name=".calendar_month">
+ <u:selector name=".rich-calendar-month">
<u:style name="background-color" skin="headerBackgroundColor"/>
<u:style name="font-size" skin="headerSizeFont"/>
<u:style name="font-family" skin="headerFamilyFont"/>
@@ -146,7 +146,7 @@
<u:style name="color" skin="headerTextColor"/>
</u:selector>
- <u:selector name=".calendar_days">
+ <u:selector name=".rich-calendar-days">
<u:style name="border-bottom-color" skin="panelBorderColor"/>
<u:style name="border-right-color" skin="panelBorderColor"/>
<u:style name="background" skin="additionalBackgroundColor"/>
@@ -154,12 +154,12 @@
<u:style name="font-family" skin="generalFamilyFont"/>
</u:selector>
- <u:selector name=".Weekendclass">
+ <u:selector name=".rich-Weekendclass">
<u:style name="color" value="red"/>
</u:selector>
/* background-color : #f5f5f5; unknown parameter - need to add*/
- <u:selector name=".calendar_week">
+ <u:selector name=".rich-calendar-week">
<u:style name="background" skin="additionalBackgroundColor"/>
<u:style name="border-bottom-color" skin="panelBorderColor"/>
<u:style name="border-right-color" skin="panelBorderColor"/>
@@ -168,54 +168,54 @@
</u:selector>
- <u:selector name=".calendar_holly">
+ <u:selector name=".rich-calendar-holly">
<u:style name="background-color" value="#ffebda"/> /*unknown parameter - need to add*/
<u:style name="color" value="#ff7800"/> /*unknown parameter - need to add*/
</u:selector>
/*
-.calendar_current{
+.rich-calendar-current{
background-color : #ff7800; /*unknown parameter - need to add
color : #ffebda; /*unknown parameter - need to add
font-weight : bold;
}
*/
/*
-.calendar_spec{
+.rich-calendar-spec{
background-color : #e4f5e2; /*unknown parameter - need to add
}
*/
- <u:selector name=".calendar_boundary_dates">
+ <u:selector name=".rich-calendar-boundary-dates">
<u:style name="color" value="#a0a0a0"/> /*unknown parameter - need to add*/
</u:selector>
- <u:selector name=".calendar_current">
+ <u:selector name=".rich-calendar-current">
<u:style name="background-color" value="#ff7800"/> /*unknown parameter - need to add*/
<u:style name="color" value="#ffebda"/> /*unknown parameter - need to add*/
<u:style name="font-weight" value="bold"/>
</u:selector>
- <u:selector name=".calendar_select">
+ <u:selector name=".rich-calendar-select">
<u:style name="background-color" skin="headerBackgroundColor"/>
<u:style name="color" skin="headerTextColor"/>
<u:style name="font-weight" skin="headerWeightFont"/>
</u:selector>
- <u:selector name=".calendar_hover">
+ <u:selector name=".rich-calendar-hover">
<u:style name="background-color" value="#f3f3f3"/> /*unknown parameter - need to add*/
</u:selector>
- <u:selector name=".calendar_current.calendar_hover">
+ <u:selector name=".rich-calendar-current.rich-calendar-hover">
<u:style name="color" value="#ff7800"/> /*unknown parameter - need to add*/
</u:selector>
- <u:selector name=".calendar_toolfooter">
+ <u:selector name=".rich-calendar-toolfooter">
<u:style name="background" skin="additionalBackgroundColor"/>
<u:style name="font-size" skin="generalSizeFont"/>
<u:style name="font-family" skin="generalFamilyFont"/>
</u:selector>
- <u:selector name=".calendar_footer_optional">
+ <u:selector name=".rich-calendar-footer-optional">
<u:style name="border-top-color" skin="panelBorderColor"/>
<u:style name="border-right-color" skin="panelBorderColor"/>
<u:style name="background" skin="additionalBackgroundColor"/>
@@ -223,7 +223,7 @@
<u:style name="font-family" skin="generalFamilyFont"/>
</u:selector>
- <u:selector name=".calendar_footer">
+ <u:selector name=".rich-calendar-footer">
<u:style name="border-top-color" skin="panelBorderColor"/>
<u:style name="border-right-color" skin="panelBorderColor"/>
<u:style name="background" skin="additionalBackgroundColor"/>
@@ -231,7 +231,7 @@
<u:style name="font-family" skin="generalFamilyFont"/>
</u:selector>
- <u:selector name=".calendar_popupicon">
+ <u:selector name=".rich-calendar-popupicon">
<u:style name="cursor" value="pointer"/>
<u:style name="vertical-align" value="middle"/>
</u:selector>
Modified: trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
--- trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-08-25 01:40:38 UTC (rev 2493)
+++ trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2007-08-25 10:31:25 UTC (rev 2494)
@@ -450,12 +450,12 @@
var htmlTextHeader = (!this.params.popup ? '<input id="'+this.INPUT_DATE_ID+'" name="'+this.INPUT_DATE_ID+'" type="hidden" style="display:none" value="'+this.getSelectedDateString(this.params.datePattern)+'"/>\n' : '') +
'<input id="'+this.id+'InputCurrentDate" name="'+this.id+'InputCurrentDate" type="hidden" style="display:none" value="'+this.getCurrentDate().format("MM/y")+'"/>\n' +
- '<table border="0" cellpadding="0" cellspacing="0" class="calendar_exterior"><tbody>\n';
+ '<table border="0" cellpadding="0" cellspacing="0" class="rich-calendar-exterior"><tbody>\n';
var colspan = (this.params.showWeeksBar ? "8" : "7");
- var htmlHeaderOptional = (this.params.headerOptionalMarkup) ? '<tr><td class="calendar_header_optional" colspan="'+colspan+'" id="'+this.id+'HeaderOptional"></td></tr>' : '';
- var htmlFooterOptional = (this.params.footerOptionalMarkup) ? '<tr><td class="calendar_footer_optional" colspan="'+colspan+'" id="'+this.id+'FooterOptional"></td></tr>' : '';
- var htmlControlsHeader = '<tr><td class="calendar_header" colspan="'+colspan+'" id="'+this.id+'Header"></td></tr>';
- var htmlControlsFooter = '<tr><td class="calendar_footer" colspan="'+colspan+'" id="'+this.id+'Footer"></td></tr>';
+ var htmlHeaderOptional = (this.params.headerOptionalMarkup) ? '<tr><td class="rich-calendar-header-optional" colspan="'+colspan+'" id="'+this.id+'HeaderOptional"></td></tr>' : '';
+ var htmlFooterOptional = (this.params.footerOptionalMarkup) ? '<tr><td class="rich-calendar-footer-optional" colspan="'+colspan+'" id="'+this.id+'FooterOptional"></td></tr>' : '';
+ var htmlControlsHeader = '<tr><td class="rich-calendar-header" colspan="'+colspan+'" id="'+this.id+'Header"></td></tr>';
+ var htmlControlsFooter = '<tr><td class="rich-calendar-footer" colspan="'+colspan+'" id="'+this.id+'Footer"></td></tr>';
var htmlTextFooter = '</tbody></table>\n'
var htmlTextIFrame = '';
@@ -484,17 +484,17 @@
if (this.params.showWeekDaysBar)
{
var htmlTextWeekDayBar = '<tr id="'+this.params.weekDayBarId+'">';
- if (this.params.showWeeksBar) htmlTextWeekDayBar+='<td class="calendar_days"><br/></td>';
+ if (this.params.showWeeksBar) htmlTextWeekDayBar+='<td class="rich-calendar-days"><br/></td>';
var weekDayCounter = this.params.firstWeekDay;
for (var i=0;i<7;i++)
{
var weekDayHtml = this.evaluateMarkup(this.params.weekDayMarkup, {weekDayLabel: this.params.weekDayLabelsShort[weekDayCounter], weekDayNumber:weekDayCounter, componentId:this.getWeekDayComponentId(i)} );
if (weekDayCounter==6) weekDayCounter=0; else weekDayCounter++;
- styleClass = "calendar_days";
- if (i==this.firstWeekendDayNumber || i==this.secondWeekendDayNumber) styleClass += " Weekendclass";
+ styleClass = "rich-calendar-days";
+ if (i==this.firstWeekendDayNumber || i==this.secondWeekendDayNumber) styleClass += " rich-Weekendclass";
- if (i==6) styleClass += " right_cell";
+ if (i==6) styleClass += " rich-right-cell";
htmlTextWeekDayBar+='<td class="'+styleClass+'">'+weekDayHtml+'</td>';
}
htmlTextWeekDayBar+='</tr>\n';
@@ -506,20 +506,20 @@
for (k=1;k<7;k++)
{
- bottomStyleClass = (k==6 ? "bottom_cell " : "");
+ bottomStyleClass = (k==6 ? "rich-bottom-cell " : "");
htmlTextWeek+='<tr id="'+this.params.weekNumberBarId+k+'">';
if (this.params.showWeeksBar)
{
var weekNumberHtml = this.evaluateMarkup(this.params.weekNumberMarkup, {weekNumber: k, componentId:this.getWeekNumberComponentId(k-1)} );
- htmlTextWeek+='<td class="calendar_week '+bottomStyleClass+'">'+weekNumberHtml+'</td>';
+ htmlTextWeek+='<td class="rich-calendar-week '+bottomStyleClass+'">'+weekNumberHtml+'</td>';
}
// day cells creation
for (var i=0;i<7;i++)
{
- styleClass = bottomStyleClass+"cell_size calendar_cell";
- if (i==this.firstWeekendDayNumber || i==this.secondWeekendDayNumber) styleClass+=" calendar_holly";
- if (i==6) styleClass+=" right_cell";
+ styleClass = bottomStyleClass+"rich-cell-size rich-calendar-cell";
+ if (i==this.firstWeekendDayNumber || i==this.secondWeekendDayNumber) styleClass+=" rich-calendar-holly";
+ if (i==6) styleClass+=" rich-right-cell";
htmlTextWeek+='<td class="'+styleClass+'" id="'+this.DATE_ELEMENT_ID+p+'"></td>';
p++;
@@ -733,9 +733,9 @@
{
this.selectedDate=new Date(this.currentDate);
this.selectedDate.setDate(obj.data);
- if (this.selectedDateElement) Element.removeClassName(this.selectedDateElement, "Selecteddayclass");
+ if (this.selectedDateElement) Element.removeClassName(this.selectedDateElement, "rich-Selectedrich-Dayclass");
this.selectedDateElement = obj;
- Element.addClassName(obj, "Selecteddayclass");
+ Element.addClassName(obj, "rich-Selectedrich-Dayclass");
$(this.INPUT_DATE_ID).value=this.getSelectedDateString(this.params.datePattern);
this.renderHeader();
@@ -763,7 +763,7 @@
if (obj)
{
var daydata = this.days[parseInt(obj.id.substr(this.DATE_ELEMENT_ID.length),10)];
- if (daydata._month==0) Element.addClassName(obj,'calendar_hover');
+ if (daydata._month==0) Element.addClassName(obj,'rich-calendar-hover');
}
},
@@ -772,7 +772,7 @@
if (obj)
{
var daydata = this.days[parseInt(obj.id.substr(this.DATE_ELEMENT_ID.length),10)];
- if (daydata._month==0) Element.removeClassName(obj,'calendar_hover');
+ if (daydata._month==0) Element.removeClassName(obj,'rich-calendar-hover');
}
},
@@ -920,7 +920,7 @@
//var _d=new Date();
if (this.selectedDateElement) {
- Element.classNames(this.selectedDateElement).remove("Selecteddayclass");
+ Element.classNames(this.selectedDateElement).remove("rich-Selectedrich-Dayclass");
this.selectedDateElement = null;
}
@@ -949,7 +949,7 @@
while (element)
{
- // TODO calendar_spec class not implemented
+ // TODO rich-calendar-spec class not implemented
// TODO fix start/stop event's calls
this.stopCellEvents(element);
@@ -959,28 +959,28 @@
// class styles
e = Element.classNames(element);
- if (dataobj._month!=0) { e.add('calendar_boundary_dates'); if (boundaryDatesModeFlag) e.add('calendar_btn'); else e.remove('calendar_btn');}
+ if (dataobj._month!=0) { e.add('rich-calendar-boundary-dates'); if (boundaryDatesModeFlag) e.add('rich-calendar-btn'); else e.remove('rich-calendar-btn');}
else
{
- e.remove('calendar_boundary_dates');
- e.add('calendar_btn');
+ e.remove('rich-calendar-boundary-dates');
+ e.add('rich-calendar-btn');
}
- // TODO make some optimization with calendar_current class
+ // TODO make some optimization with rich-calendar-current class
if (todayflag && dataobj._month==0 && dataobj.day==todaydate)
{
this.todayCellId = element.id;
this.todayCellColor = Element.getStyle(element, 'background-color').parseColor();
- e.add("calendar_current");
+ e.add("rich-calendar-current");
}
else
{
- e.remove("calendar_current");
+ e.remove("rich-calendar-current");
}
if (selectedflag && dataobj._month==0 && dataobj.day==selecteddate) {
this.selectedDateElement = element;
- e.add("Selecteddayclass");
+ e.add("rich-Selectedrich-Dayclass");
}
this.setCellEvents(element);
@@ -1133,7 +1133,7 @@
}
else
{
- if (this.selectedDateElement) Element.removeClassName(this.selectedDateElement, "Selecteddayclass");
+ if (this.selectedDateElement) Element.removeClassName(this.selectedDateElement, "rich-Selectedrich-Dayclass");
if (oldSelectedDate!=null) if (noUpdate) this.render(); else this.onUpdate();
this.today(noUpdate);
}
@@ -1163,7 +1163,7 @@
CalendarView.getControl = function(text, functionName) {
var attr = {
onclick: (functionName ? "Richfaces.invokeOnComponent('richfaces:calendar',this,'"+functionName+"');" : "")+"return false;",
- className: "calendar_btn"
+ className: "rich-calendar-btn"
};
return new E('div',attr,[new T(text)]);
@@ -1172,7 +1172,7 @@
CalendarView.getSelectedDateControl = function(text, functionName) {
var attr = {
onclick: "Richfaces.invokeOnComponent('richfaces:calendar',this,'selectDate'); return false;",
- className: "calendar_btn"
+ className: "rich-calendar-btn"
};
var a = [new T(text)];
@@ -1201,23 +1201,23 @@
[
new E('tr',{},
[
- new E('td',{'class': 'calendar_tool'},
+ new E('td',{'class': 'rich-calendar-tool'},
[
new ET(function (context) { return Richfaces.evalMacro("previousYearControl", context)})
]),
- new E('td',{'class': 'calendar_tool'},
+ new E('td',{'class': 'rich-calendar-tool'},
[
new ET(function (context) { return Richfaces.evalMacro("previousMonthControl", context)})
]),
- new E('td',{'class': 'calendar_month'},
+ new E('td',{'class': 'rich-calendar-month'},
[
new ET(function (context) { return Richfaces.evalMacro("currentMonthControl", context)})
]),
- new E('td',{'class': 'calendar_tool'},
+ new E('td',{'class': 'rich-calendar-tool'},
[
new ET(function (context) { return Richfaces.evalMacro("nextMonthControl", context)})
]),
- new E('td',{'class': 'calendar_tool'},
+ new E('td',{'class': 'rich-calendar-tool'},
[
new ET(function (context) { return Richfaces.evalMacro("nextYearControl", context)})
])
@@ -1233,15 +1233,15 @@
[
new E('tr',{},
[
- /*new E('td',{'class': 'calendar_toolfooter'},
+ /*new E('td',{'class': 'rich-calendar-toolfooter'},
[
new ET(function (context) { return Richfaces.evalMacro("resetSelectedDateControl", context)})
]),*/
- new E('td',{'class': 'calendar_toolfooter', 'style': 'white-space:nowrap'},
+ new E('td',{'class': 'rich-calendar-toolfooter', 'style': 'white-space:nowrap'},
[
new ET(function (context) { return Richfaces.evalMacro("selectedDateControl", context)})
]),
- new E('td',{'class': 'calendar_toolfooter', 'align': 'right'},
+ new E('td',{'class': 'rich-calendar-toolfooter', 'align': 'right'},
[
new ET(function (context) { return Richfaces.evalMacro("todayControl", context)})
])
Modified: trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
===================================================================
--- trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 2007-08-25 01:40:38 UTC (rev 2493)
+++ trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 2007-08-25 10:31:25 UTC (rev 2494)
@@ -136,7 +136,7 @@
onclick="#{onclick}">
</input>
<img id="#{clientId}PopupButton"
- class="calendar_popupicon"
+ class="rich-calendar-popupicon"
src="#{icon}"
accesskey="#{component.attributes['accesskey']}"
name="#{clientId}"
18 years, 8 months
JBoss Rich Faces SVN: r2493 - in trunk: docs/taglibxsl and 30 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2007-08-24 21:40:38 -0400 (Fri, 24 Aug 2007)
New Revision: 2493
Added:
trunk/docs/taglibxsl/
trunk/docs/taglibxsl/pom.xml
trunk/docs/taglibxsl/src/
trunk/docs/taglibxsl/src/main/
trunk/docs/taglibxsl/src/main/java/
trunk/docs/taglibxsl/src/main/java/org/
trunk/docs/taglibxsl/src/main/java/org/richfaces/
trunk/docs/taglibxsl/src/main/java/org/richfaces/App.java
trunk/docs/taglibxsl/src/main/resources/
trunk/docs/taglibxsl/src/main/resources/com/
trunk/docs/taglibxsl/src/main/resources/com/sun/
trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/
trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/
trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/alltags-frame.html.xsl
trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/alltags-noframe.html.xsl
trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/function.html.xsl
trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/help-doc.html.xsl
trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/index.html.xsl
trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/overview-frame.html.xsl
trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/overview-summary.html.xsl
trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/stylesheet.css
trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tag.html.xsl
trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld-frame.html.xsl
trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld-summary.html.xsl
trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld1_1-tld1_2.xsl
trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld1_2-tld2_0.xsl
trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld2_0-tld2_1.xsl
trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld2_1-tld2_1.xsl
trunk/docs/taglibxsl/src/test/
trunk/docs/taglibxsl/src/test/java/
trunk/docs/taglibxsl/src/test/java/org/
trunk/docs/taglibxsl/src/test/java/org/richfaces/
trunk/docs/taglibxsl/src/test/java/org/richfaces/AppTest.java
trunk/docs/taglibxsl/target/
trunk/docs/taglibxsl/target/classes/
trunk/docs/taglibxsl/target/classes/com/
trunk/docs/taglibxsl/target/classes/com/sun/
trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/
trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/
trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/alltags-frame.html.xsl
trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/alltags-noframe.html.xsl
trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/function.html.xsl
trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/help-doc.html.xsl
trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/index.html.xsl
trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/overview-frame.html.xsl
trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/overview-summary.html.xsl
trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/stylesheet.css
trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tag.html.xsl
trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld-frame.html.xsl
trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld-summary.html.xsl
trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld1_1-tld1_2.xsl
trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld1_2-tld2_0.xsl
trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld2_0-tld2_1.xsl
trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld2_1-tld2_1.xsl
trunk/docs/taglibxsl/target/classes/org/
trunk/docs/taglibxsl/target/classes/org/richfaces/
trunk/docs/taglibxsl/target/classes/org/richfaces/App.class
trunk/docs/taglibxsl/target/surefire-reports/
trunk/docs/taglibxsl/target/surefire-reports/TEST-org.richfaces.AppTest.xml
trunk/docs/taglibxsl/target/surefire-reports/org.richfaces.AppTest.txt
trunk/docs/taglibxsl/target/taglibxsl-3.1.0-SNAPSHOT.jar
trunk/docs/taglibxsl/target/test-classes/
trunk/docs/taglibxsl/target/test-classes/org/
trunk/docs/taglibxsl/target/test-classes/org/richfaces/
trunk/docs/taglibxsl/target/test-classes/org/richfaces/AppTest.class
trunk/samples/richfaces-demo/src/main/xslt/
trunk/samples/richfaces-demo/src/main/xslt/f.xsl
Modified:
trunk/docs/pom.xml
trunk/samples/richfaces-demo/pom.xml
trunk/ui/assembly/pom.xml
Log:
include generated tlddoc into demo application
Modified: trunk/docs/pom.xml
===================================================================
--- trunk/docs/pom.xml 2007-08-25 00:45:32 UTC (rev 2492)
+++ trunk/docs/pom.xml 2007-08-25 01:40:38 UTC (rev 2493)
@@ -1,3 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
<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">
<parent>
<artifactId>root</artifactId>
@@ -66,15 +67,15 @@
<layout>default</layout>
</pluginRepository>
</pluginRepositories>
- <dependencies>
- <dependency>
- <groupId>com.uwyn</groupId>
- <artifactId>jhighlight</artifactId>
- <version>1.0</version>
- </dependency>
- </dependencies>
-
+ <dependencies>
+ <dependency>
+ <groupId>com.uwyn</groupId>
+ <artifactId>jhighlight</artifactId>
+ <version>1.0</version>
+ </dependency>
+ </dependencies>
+
<modules>
<module>xslt</module>
<!--
@@ -82,5 +83,6 @@
<module>maven-docbook-plugin</module>
-->
<module>userguide</module>
- </modules>
+ <module>taglibxsl</module>
+ </modules>
</project>
\ No newline at end of file
Added: trunk/docs/taglibxsl/pom.xml
===================================================================
--- trunk/docs/taglibxsl/pom.xml (rev 0)
+++ trunk/docs/taglibxsl/pom.xml 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,21 @@
+<?xml version="1.0"?><project>
+ <parent>
+ <artifactId>docs</artifactId>
+ <groupId>org.richfaces</groupId>
+ <version>3.1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.docs</groupId>
+ <artifactId>taglibxsl</artifactId>
+ <name>taglibxsl</name>
+ <version>3.1.0-SNAPSHOT</version>
+ <url>http://maven.apache.org</url>
+ <dependencies>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>3.8.1</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Property changes on: trunk/docs/taglibxsl/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/docs/taglibxsl/src/main/java/org/richfaces/App.java
===================================================================
--- trunk/docs/taglibxsl/src/main/java/org/richfaces/App.java (rev 0)
+++ trunk/docs/taglibxsl/src/main/java/org/richfaces/App.java 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,13 @@
+package org.richfaces;
+
+/**
+ * Hello world!
+ *
+ */
+public class App
+{
+ public static void main( String[] args )
+ {
+ System.out.println( "Hello World!" );
+ }
+}
Property changes on: trunk/docs/taglibxsl/src/main/java/org/richfaces/App.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/alltags-frame.html.xsl
===================================================================
--- trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/alltags-frame.html.xsl (rev 0)
+++ trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/alltags-frame.html.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : alltags-frame.html.xsl
+ Created on : October 1, 2002, 5:37 PM
+ Author : mroth
+ Description:
+ Creates the all tags frame (lower left corner), listing all tags
+ and functions included in all tag libraries for this generation.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <html>
+ <head>
+ <title>All Tags / Functions</title>
+ <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"/>
+ </head>
+ <script>
+ function asd()
+ {
+ parent.document.title="All Tags / Functions";
+ }
+ </script>
+ <body bgcolor="white" onload="asd();">
+ <font size="+1" class="FrameHeadingFont">
+ <b>All Tags / Functions</b></font>
+ <br/>
+ <table border="0" width="100%">
+ <tr>
+ <td nowrap="true"><font class="FrameItemFont">
+ <xsl:apply-templates
+ select="javaee:tlds/javaee:taglib/javaee:tag|javaee:tlds/javaee:taglib/javaee:tag-file|javaee:tlds/javaee:taglib/javaee:function">
+ <xsl:sort select="../javaee:short-name"/>
+ <xsl:sort select="javaee:name"/>
+ </xsl:apply-templates>
+ </font></td>
+ </tr>
+ </table>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag|javaee:tag-file">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="../javaee:short-name"/>/<xsl:value-of select="javaee:name"/>.html</xsl:attribute>
+ <xsl:attribute name="target">tagFrame</xsl:attribute>
+ <xsl:value-of select="../javaee:short-name"/>:<xsl:value-of select="javaee:name"/>
+ </xsl:element>
+ <br/>
+ </xsl:template>
+
+ <!--
+ - Same as above, but add the () to indicate it's a function
+ - and change the HTML to .fn.html
+ -->
+ <xsl:template match="javaee:function">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="../javaee:short-name"/>/<xsl:value-of select="javaee:name"/>.fn.html</xsl:attribute>
+ <xsl:attribute name="target">tagFrame</xsl:attribute>
+ <i><xsl:value-of select="../javaee:short-name"/>:<xsl:value-of select="javaee:name"/>()</i>
+ </xsl:element>
+ <br/>
+ </xsl:template>
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/alltags-frame.html.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/alltags-noframe.html.xsl
===================================================================
--- trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/alltags-noframe.html.xsl (rev 0)
+++ trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/alltags-noframe.html.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : alltags-frame.html.xsl
+ Created on : October 1, 2002, 5:37 PM
+ Author : mroth
+ Description:
+ Creates the all tags page, listing all tags
+ and functions included in all tag libraries for this generation.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <html>
+ <head>
+ <title>All Tags / Functions</title>
+ <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"/>
+ </head>
+ <script>
+ function asd()
+ {
+ parent.document.title="All Tags / Functions";
+ }
+ </script>
+ <body bgcolor="white" onload="asd();">
+ <font size="+1" class="FrameHeadingFont">
+ <b>All Tags / Functions</b></font>
+ <br/>
+ <table border="0" width="100%">
+ <tr>
+ <td nowrap="true"><font class="FrameItemFont">
+ <xsl:apply-templates
+ select="javaee:tlds/javaee:taglib/javaee:tag|javaee:tlds/javaee:taglib/javaee:tag-file|javaee:tlds/javaee:taglib/javaee:function">
+ <xsl:sort select="../javaee:short-name"/>
+ <xsl:sort select="javaee:name"/>
+ </xsl:apply-templates>
+ </font></td>
+ </tr>
+ </table>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag|javaee:tag-file">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="../javaee:short-name"/>/<xsl:value-of select="javaee:name"/>.html</xsl:attribute>
+ <xsl:attribute name="target"></xsl:attribute>
+ <xsl:value-of select="../javaee:short-name"/>:<xsl:value-of select="javaee:name"/>
+ </xsl:element>
+ <br/>
+ </xsl:template>
+
+ <!--
+ - Same as above, but add the () to indicate it's a function
+ - and change the HTML to .fn.html
+ -->
+ <xsl:template match="javaee:function">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="../javaee:short-name"/>/<xsl:value-of select="javaee:name"/>.fn.html</xsl:attribute>
+ <xsl:attribute name="target">tagFrame</xsl:attribute>
+ <i><xsl:value-of select="../javaee:short-name"/>:<xsl:value-of select="javaee:name"/>()</i>
+ </xsl:element>
+ <br/>
+ </xsl:template>
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/alltags-noframe.html.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/function.html.xsl
===================================================================
--- trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/function.html.xsl (rev 0)
+++ trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/function.html.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,276 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : function.html.xsl
+ Created on : Februrary 25, 2003, 7:39 PM
+ Author : mroth
+ Description:
+ Creates the function detail page (right frame), listing the known
+ information for a given function in a tag library.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <xsl:param name="tlddoc-shortName">default</xsl:param>
+ <xsl:param name="tlddoc-functionName">default</xsl:param>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <xsl:apply-templates select="javaee:tlds/javaee:taglib"/>
+ </xsl:template>
+
+ <xsl:template match="javaee:taglib">
+ <xsl:if test="javaee:short-name=$tlddoc-shortName">
+ <xsl:apply-templates select="javaee:function"/>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="javaee:function">
+ <xsl:if test="javaee:name=$tlddoc-functionName">
+ <xsl:variable name="tldname">
+ <xsl:choose>
+ <xsl:when test="../javaee:display-name!=''">
+ <xsl:value-of select="../javaee:display-name"/>
+ </xsl:when>
+ <xsl:when test="../javaee:short-name!=''">
+ <xsl:value-of select="../javaee:short-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="title">
+ <xsl:value-of select="javaee:name"/>
+ (<xsl:value-of select="/javaee:tlds/javaee:config/javaee:window-title"/>)
+ </xsl:variable>
+ <html>
+ <head>
+ <title><xsl:value-of select="$title"/></title>
+ <meta name="keywords" content="$title"/>
+ <link rel="stylesheet" type="text/css" href="../stylesheet.css"
+ title="Style"/>
+ </head>
+ <script>
+ function asd()
+ {
+ parent.document.title="<xsl:value-of select="normalize-space($title)"/>";
+ }
+ </script>
+ <body bgcolor="white" onload="asd();">
+ <!-- =========== START OF NAVBAR =========== -->
+ <a name="navbar_top"><!-- --></a>
+ <table border="0" width="100%" cellpadding="1" cellspacing="0">
+ <tr>
+ <td COLSPAN="3" BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+ <a NAME="navbar_top_firstrow"><!-- --></a>
+ <table BORDER="0" CELLPADDING="0" CELLSPACING="3">
+ <tr ALIGN="center" VALIGN="top">
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a href="../overview-summary.html"><font CLASS="NavBarFont1"><b>Overview</b></font></a> </td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a href="tld-summary.html"><font CLASS="NavBarFont1"><b>Library</b></font></a> </td>
+ <td BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev">  <font CLASS="NavBarFont1Rev"> Tag </font> </td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a HREF="../help-doc.html"><font CLASS="NavBarFont1"><b>Help</b></font></a> </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top" ROWSPAN="3"><em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+ <!-- PREV TAGLIB -->
+ <!-- NEXT TAGLIB -->
+ </font></td>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+  <a HREF="../index.html" TARGET="_top"><b>FRAMES</b></a> 
+  <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="javaee:name"/>.fn.html</xsl:attribute>
+ <xsl:attribute name="target">_top</xsl:attribute>
+ <b>NO FRAMES</b>
+ </xsl:element> 
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="alltags-noframe.html" TARGET=""><B>All Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="../alltags-noframe.html" TARGET=""><b>All Tags</b></a>
+ </noscript>
+ </font></td>
+ </tr>
+ </table>
+ <!-- =========== END OF NAVBAR =========== -->
+
+ <hr/>
+ <h2><font size="-1"><xsl:value-of select="$tldname"/></font><br/>
+ Function <xsl:value-of select="javaee:name"/></h2>
+ <code>
+ <xsl:value-of select='substring-before(normalize-space(javaee:function-signature)," ")'/>
+ <b> <xsl:value-of select="javaee:name"/></b>(<xsl:value-of
+ select='substring-after(normalize-space(javaee:function-signature),"(")'/>
+ </code>
+ <hr/>
+ <xsl:value-of select="javaee:description" disable-output-escaping="yes"/><br/>
+ <p/>
+ <xsl:if test="javaee:example!=''">
+ <b>Example:</b><br/>
+ <pre>
+<xsl:value-of select="javaee:example"/>
+ </pre>
+ <p/>
+ </xsl:if>
+ <hr/>
+
+ <!-- Function Information -->
+ <table border="1" cellpadding="3" cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ <td colspan="2">
+ <font size="+2">
+ <b>Function Information</b>
+ </font>
+ </td>
+ </tr>
+ <tr>
+ <td>Function Class</td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:function-class!=''">
+ <xsl:value-of select="javaee:function-class"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ <tr>
+ <td>Function Signature</td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:function-signature!=''">
+ <xsl:value-of select="javaee:function-signature"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ <tr>
+ <td>Display Name</td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:display-name!=''">
+ <xsl:value-of select="javaee:display-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </table>
+ <br/>
+ <p/>
+
+ <!-- =========== START OF NAVBAR =========== -->
+ <a name="navbar_bottom"><!-- --></a>
+ <table border="0" width="100%" cellpadding="1" cellspacing="0">
+ <tr>
+ <td COLSPAN="3" BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+ <a NAME="navbar_bottom_firstrow"><!-- --></a>
+ <table BORDER="0" CELLPADDING="0" CELLSPACING="3">
+ <tr ALIGN="center" VALIGN="top">
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a href="../overview-summary.html"><font CLASS="NavBarFont1"><b>Overview</b></font></a> </td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a href="tld-summary.html"><font CLASS="NavBarFont1"><b>Library</b></font></a> </td>
+ <td BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev">  <font CLASS="NavBarFont1Rev"> Tag </font> </td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a HREF="../help-doc.html"><font CLASS="NavBarFont1"><b>Help</b></font></a> </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top" ROWSPAN="3"><em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+ <!-- PREV TAGLIB -->
+ <!-- NEXT TAGLIB -->
+ </font></td>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+  <a HREF="../index.html" TARGET="_top"><b>FRAMES</b></a> 
+  <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="javaee:name"/>.fn.html</xsl:attribute>
+ <xsl:attribute name="target">_top</xsl:attribute>
+ <b>NO FRAMES</b>
+ </xsl:element> 
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="alltags-noframe.html" TARGET=""><B>All Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="../alltags-noframe.html" TARGET=""><b>All Tags</b></a>
+ </noscript>
+ </font></td>
+ </tr>
+ </table>
+ <!-- =========== END OF NAVBAR =========== -->
+ <hr/>
+ <small><i>
+ Output Generated by
+ <a href="http://taglibrarydoc.dev.java.net/" target="_blank">Tag Library Documentation Generator</a>.
+ Java, JSP, and JavaServer Pages are trademarks or
+ registered trademarks of Sun Microsystems, Inc. in the US and other
+ countries. Copyright 2002-4 Sun Microsystems, Inc.
+ 4150 Network Circle
+ Santa Clara, CA 95054, U.S.A.
+ All Rights Reserved.
+ </i></small>
+ </body>
+ </html>
+ </xsl:if>
+ </xsl:template>
+
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/function.html.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/help-doc.html.xsl
===================================================================
--- trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/help-doc.html.xsl (rev 0)
+++ trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/help-doc.html.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,235 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : help-doc.html.xsl
+ Created on : October 2, 2002, 5:37 PM
+ Author : mroth
+ Description:
+ Creates the help-doc page for Tag Library Documentation Generator
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <HTML>
+ <HEAD>
+ <TITLE>
+ API Help (<xsl:value-of select="/javaee:tlds/javaee:config/javaee:window-title"/>)
+ </TITLE>
+ <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"/>
+ </HEAD>
+ <SCRIPT>
+ function asd() {
+ parent.document.title="API Help (<xsl:value-of select="normalize-space(/javaee:tlds/javaee:config/javaee:window-title)"/>)";
+ }
+ </SCRIPT>
+ <BODY BGCOLOR="white" onload="asd();">
+ <a name="navbar_top"><!-- --></a>
+ <table border="0" width="100%" cellpadding="1" cellspacing="0">
+ <tr>
+ <td COLSPAN="3" BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+ <a NAME="navbar_top_firstrow"><!-- --></a>
+ <table BORDER="0" CELLPADDING="0" CELLSPACING="3">
+ <tr ALIGN="center" VALIGN="top">
+ <td BGCOLOR="#FFFFFF" CLASS="NavBarCell1">  <a href="overview-summary.html"><font CLASS="NavBarFont1"><b>Overview</b></font></a> </td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <font CLASS="NavBarFont1"> Library </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <font CLASS="NavBarFont1"> Tag </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1Rev">  <font CLASS="NavBarFont1Rev"><b>Help</b></font> </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top" ROWSPAN="3"><em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+  PREV 
+  NEXT 
+ </font></td>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+  <a HREF="index.html" TARGET="_top"><b>FRAMES</b></a> 
+  <a HREF="help-doc.html" TARGET="_top"><b>NO FRAMES</b></a> 
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="alltags-noframe.html" TARGET=""><B>All Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="alltags-noframe.html" TARGET=""><b>All Tags</b></a>
+ </noscript>
+ </font></td>
+ </tr>
+ </table>
+ <HR/>
+ <CENTER>
+ <H1>How This Tag Library Document Is Organized</H1>
+ </CENTER>
+ This TLD (Tag Library Descriptor) document has pages corresponding
+ to the items in the navigation bar, described as follows.
+ <H3>Overview</H3>
+ <BLOCKQUOTE>
+ <P/>
+ The <A HREF="overview-summary.html">Overview</A> page is the front
+ page of this TLD document and provides a list of all tag libraries
+ with a summary for each.
+ </BLOCKQUOTE>
+ <H3>Library</H3>
+ <BLOCKQUOTE>
+ <P/>
+ Each tag library has a page that contains a list of its
+ validator, listeners, tags, and functions, with a summary for each.
+ This page can contain four categories:
+ <UL>
+ <li>Validator</li>
+ <li>Listeners</li>
+ <li>Tags</li>
+ <li>Functions</li>
+ </UL>
+ </BLOCKQUOTE>
+ <H3>Validator</H3>
+ <BLOCKQUOTE>
+ <P/>
+ A tag library can have at most one validator. If a tag library
+ has a validator, it has its own page describing the validator,
+ the class that implements the validator, and the available
+ initialization parameters.
+ </BLOCKQUOTE>
+ <h3>Listeners</h3>
+ <blockquote>
+ <p/>
+ A tag library can have zero or more listeners. If a tag library
+ has at least one listener, a page is generated that lists all
+ listener classes registered for the tag library.
+ </blockquote>
+ <h3>Tags</h3>
+ <blockquote>
+ <p/>
+ A tag library can have zero or more tags. Each tag has its own
+ page that describes the tag, its display name, its unique action
+ name, the class that implements the tag, the TagExtraInfo class,
+ the body content type, scripting variable information, attributes,
+ whether the tag supports dynamic attributes, and an optional
+ example use of the tag.
+ </blockquote>
+ <h3>Functions</h3>
+ <blockquote>
+ <p/>
+ A tag library can contain zero or more EL functions. If a tag
+ library has at least one function, a page is generated that lists
+ all functions, the class that implements the function, the
+ function signature, and an optional example use of the function.
+ </blockquote>
+ <!--
+ <H3>Index</H3>
+ <BLOCKQUOTE>
+ The <A HREF="index-files/index-1.html">Index</A> contains an
+ alphabetic list of all validators, listeners, tags, functions,
+ variables, and attributes.
+ </BLOCKQUOTE>
+ -->
+ <H3>Prev/Next</H3>
+ <blockquote>
+ These links take you to the next or previous validator, listener,
+ tag, function, or related page.
+ </blockquote>
+ <H3>Frames/No Frames</H3>
+ <blockquote>
+ These links show and hide the HTML frames. All pages are available
+ with or without frames.
+ </blockquote>
+ <BR/>
+ <HR/>
+ <a name="navbar_bottom"><!-- --></a>
+ <table border="0" width="100%" cellpadding="1" cellspacing="0">
+ <tr>
+ <td COLSPAN="3" BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+ <a NAME="navbar_bottom_firstrow"><!-- --></a>
+ <table BORDER="0" CELLPADDING="0" CELLSPACING="3">
+ <tr ALIGN="center" VALIGN="top">
+ <td BGCOLOR="#FFFFFF" CLASS="NavBarCell1">  <a href="overview-summary.html"><font CLASS="NavBarFont1"><b>Overview</b></font></a> </td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <font CLASS="NavBarFont1"> Library </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <font CLASS="NavBarFont1"> Tag </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1Rev">  <font CLASS="NavBarFont1Rev"><b>Help</b></font> </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top" ROWSPAN="3"><em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+  PREV 
+  NEXT 
+ </font></td>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+  <a HREF="index.html" TARGET="_top"><b>FRAMES</b></a> 
+  <a HREF="help-doc.html" TARGET="_top"><b>NO FRAMES</b></a> 
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="alltags-noframe.html" TARGET=""><B>All Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="alltags-noframe.html" TARGET=""><b>All Tags</b></a>
+ </noscript>
+ </font></td>
+ </tr>
+ </table>
+ <HR/>
+ <small><i>
+ Output Generated by
+ <a href="http://taglibrarydoc.dev.java.net/" target="_blank">Tag Library Documentation Generator</a>.
+ Java, JSP, and JavaServer Pages are trademarks or
+ registered trademarks of Sun Microsystems, Inc. in the US and other
+ countries. Copyright 2002-4 Sun Microsystems, Inc.
+ 4150 Network Circle
+ Santa Clara, CA 95054, U.S.A.
+ All Rights Reserved.
+ </i></small>
+ </BODY>
+ </HTML>
+ </xsl:template>
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/help-doc.html.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/index.html.xsl
===================================================================
--- trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/index.html.xsl (rev 0)
+++ trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/index.html.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : index.html.xsl
+ Created on : October 1, 2002, 5:37 PM
+ Author : mroth
+ Description:
+ Creates the index page for Tag Library Documentation Generator
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <html>
+ <head>
+ <title>
+ <xsl:value-of select="/javaee:tlds/javaee:config/javaee:window-title"/>
+ </title>
+ </head>
+ <frameset cols="20%,80%">
+ <frameset rows="30%,70%">
+ <frame src="overview-frame.html" name="tldListFrame"/>
+ <frame src="alltags-frame.html" name="tldFrame"/>
+ </frameset>
+ <frame src="overview-summary.html" name="tagFrame"/>
+ </frameset>
+ <noframes>
+ <h2>Frame Alert</h2>
+ <p/>
+ This document is designed to be viewed using the frames feature.
+ If you see this message, you are using a non-frame-capable web
+ client.
+ <br/>
+ Link to <a href="overview-summary.html">Non-frame version.</a>
+ </noframes>
+ </html>
+ </xsl:template>
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/index.html.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/overview-frame.html.xsl
===================================================================
--- trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/overview-frame.html.xsl (rev 0)
+++ trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/overview-frame.html.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,114 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : overview-frame.html.xsl
+ Created on : October 1, 2002, 5:37 PM
+ Author : mroth
+ Description:
+ Creates the overview frame (upper left corner), listing all tag
+ libraries included in this generation.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <html>
+ <head>
+ <title>
+ Overview (<xsl:value-of select="/javaee:tlds/javaee:config/javaee:window-title"/>)
+ </title>
+ <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"/>
+ </head>
+ <script>
+ function asd() {
+ parent.document.title="Overview (<xsl:value-of select="normalize-space(/javaee:tlds/javaee:config/javaee:window-title)"/>)";
+ }
+ </script>
+ <body bgcolor="white" onload="asd();">
+ <table border="0" width="100%">
+ <tr>
+ <td nowrap="true">
+ <font size="+1" class="FrameTitleFont">
+ <b><xsl:value-of select="/javaee:tlds/javaee:config/javaee:doc-title"/></b>
+ </font>
+ </td>
+ </tr>
+ </table>
+ <table border="0" width="100%">
+ <tr>
+ <td nowrap="true">
+ <font class="FrameItemFont">
+ <a href="alltags-frame.html" target="tldFrame"><xsl:text>All Tags / Functions</xsl:text></a>
+ </font>
+ <p/>
+ <font size="+1" class="FrameHeadingFont">
+ Tag Libraries
+ </font>
+ <br/>
+ <xsl:apply-templates select="javaee:tlds/javaee:taglib"/>
+ </td>
+ </tr>
+ </table>
+ <p/>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="javaee:taglib">
+ <font class="FrameItemFont">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="javaee:short-name"/>/tld-frame.html</xsl:attribute>
+ <xsl:attribute name="target">tldFrame</xsl:attribute>
+ <xsl:choose>
+ <xsl:when test="javaee:display-name!=''">
+ <xsl:value-of select="javaee:display-name"/>
+ </xsl:when>
+ <xsl:when test="javaee:short-name!=''">
+ <xsl:value-of select="javaee:short-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:element>
+ </font>
+ <br/>
+ </xsl:template>
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/overview-frame.html.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/overview-summary.html.xsl
===================================================================
--- trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/overview-summary.html.xsl (rev 0)
+++ trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/overview-summary.html.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,208 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : overview-summary.html.xsl
+ Created on : October 1, 2002, 5:37 PM
+ Author : mroth
+ Description:
+ Creates an overview summary (right frame), listing all tag
+ libraries included in this generation.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <html>
+ <head>
+ <title>
+ Overview (<xsl:value-of select="/javaee:tlds/javaee:config/javaee:window-title"/>)
+ </title>
+ <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"/>
+ </head>
+ <script>
+ function asd() {
+ parent.document.title="Overview (<xsl:value-of select="normalize-space(/javaee:tlds/javaee:config/javaee:window-title)"/>)";
+ }
+ </script>
+ <body bgcolor="white" onload="asd();">
+ <!-- =========== START OF NAVBAR =========== -->
+ <a name="navbar_top"><!-- --></a>
+ <table border="0" width="100%" cellpadding="1" cellspacing="0">
+ <tr>
+ <td COLSPAN="3" BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+ <a NAME="navbar_top_firstrow"><!-- --></a>
+ <table BORDER="0" CELLPADDING="0" CELLSPACING="3">
+ <tr ALIGN="center" VALIGN="top">
+ <td BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <font CLASS="NavBarFont1Rev"><b> Overview </b></font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <font CLASS="NavBarFont1"> Library </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <font CLASS="NavBarFont1"> Tag </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a HREF="help-doc.html"><font CLASS="NavBarFont1"><b>Help</b></font></a> </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top" ROWSPAN="3"><em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+ <!-- PREV -->
+ <!-- NEXT -->
+ </font></td>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+  <a HREF="index.html" TARGET="_top"><b>FRAMES</b></a> 
+  <a HREF="overview-summary.html" TARGET="_top"><b>NO FRAMES</b></a> 
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="alltags-noframe.html" TARGET=""><B>All Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="alltags-noframe.html" TARGET=""><b>All Tags</b></a>
+ </noscript>
+ </font></td>
+ </tr>
+ </table>
+ <!-- =========== END OF NAVBAR =========== -->
+ <hr/>
+ <center>
+ <h2><xsl:value-of select="/javaee:tlds/javaee:config/javaee:doc-title"/></h2>
+ </center>
+ <table BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
+ <tr BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+ <td COLSPAN="2"><font SIZE="+2">
+ <b>Tag Libraries</b>
+ </font></td>
+ </tr>
+ <xsl:apply-templates select="/javaee:tlds/javaee:taglib"/>
+ </table>
+ <p/>
+ <hr/>
+ <!-- =========== START OF NAVBAR =========== -->
+ <a name="navbar_bottom"><!-- --></a>
+ <table border="0" width="100%" cellpadding="1" cellspacing="0">
+ <tr>
+ <td COLSPAN="3" BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+ <a NAME="navbar_bottom_firstrow"><!-- --></a>
+ <table BORDER="0" CELLPADDING="0" CELLSPACING="3">
+ <tr ALIGN="center" VALIGN="top">
+ <td BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <font CLASS="NavBarFont1Rev"><b> Overview </b></font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <font CLASS="NavBarFont1"> Library </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <font CLASS="NavBarFont1"> Tag </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a HREF="help-doc.html"><font CLASS="NavBarFont1"><b>Help</b></font></a> </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top" ROWSPAN="3"><em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+ <!-- PREV -->
+ <!-- NEXT -->
+ </font></td>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+  <a HREF="index.html" TARGET="_top"><b>FRAMES</b></a> 
+  <a HREF="overview-summary.html" TARGET="_top"><b>NO FRAMES</b></a> 
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="alltags-noframe.html" TARGET=""><B>All Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="alltags-noframe.html" TARGET=""><b>All Tags</b></a>
+ </noscript>
+ </font></td>
+ </tr>
+ </table>
+ <!-- =========== END OF NAVBAR =========== -->
+ <hr/>
+ <small><i>
+ Output Generated by
+ <a href="http://taglibrarydoc.dev.java.net/" target="_blank">Tag Library Documentation Generator</a>.
+ Java, JSP, and JavaServer Pages are trademarks or
+ registered trademarks of Sun Microsystems, Inc. in the US and other
+ countries. Copyright 2002-4 Sun Microsystems, Inc.
+ 4150 Network Circle
+ Santa Clara, CA 95054, U.S.A.
+ All Rights Reserved.
+ </i></small>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="javaee:taglib">
+ <tr BGCOLOR="white" valign="top" CLASS="TableRowColor">
+ <td WIDTH="20%"><b>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="javaee:short-name"/>/tld-summary.html</xsl:attribute>
+ <xsl:choose>
+ <xsl:when test="javaee:display-name!=''">
+ <xsl:value-of select="javaee:display-name"/>
+ </xsl:when>
+ <xsl:when test="javaee:short-name!=''">
+ <xsl:value-of select="javaee:short-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:element>
+ </b></td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:description!=''">
+ <pre>
+ <xsl:value-of select="javaee:description" disable-output-escaping="yes"/>
+ </pre>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>No Description</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:template>
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/overview-summary.html.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/stylesheet.css
===================================================================
--- trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/stylesheet.css (rev 0)
+++ trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/stylesheet.css 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,60 @@
+/* Javadoc style sheet */
+
+/*
+ * <license>
+ * Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * * Neither the name of Sun Microsystems, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * </license>
+ */
+
+/* Define colors, fonts and other style attributes here to override the defaults */
+
+/* Page background color */
+body { background-color: #FFFFFF }
+
+/* Table colors */
+.TableHeadingColor { background: #CCCCFF } /* Dark mauve */
+.TableSubHeadingColor { background: #EEEEFF } /* Light mauve */
+.TableRowColor { background: #FFFFFF } /* White */
+
+/* Font used in left-hand frame lists */
+.FrameTitleFont { font-size: 10pts; font-family: Helvetica, Arial, san-serif }
+.FrameHeadingFont { font-size: 10pts; font-family: Helvetica, Arial, san-serif }
+.FrameItemFont { font-size: 10pts; font-family: Helvetica, Arial, san-serif }
+
+/* Example of smaller, sans-serif font in frames */
+/* .FrameItemFont { font-size: 10pt; font-family: Helvetica, Arial, sans-serif } */
+
+/* Navigation bar fonts and colors */
+.NavBarCell1 { background-color:#EEEEFF;}/* Light mauve */
+.NavBarCell1Rev { background-color:#00008B;}/* Dark Blue */
+.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;}
+.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;}
+
+.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;}
+.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;}
+
Property changes on: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/stylesheet.css
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tag.html.xsl
===================================================================
--- trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tag.html.xsl (rev 0)
+++ trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tag.html.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,317 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : tag.html.xsl
+ Created on : December 18, 2002, 5:22 PM
+ Author : mroth
+ Description:
+ Creates the tag detail page (right frame), listing the known
+ information for a given tag in a tag library.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
+
+ <xsl:param name="tlddoc-shortName">default</xsl:param>
+ <xsl:param name="tlddoc-tagName">default</xsl:param>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <xsl:apply-templates select="javaee:tlds/javaee:taglib"/>
+ </xsl:template>
+
+ <xsl:template match="javaee:taglib">
+ <xsl:if test="javaee:short-name=$tlddoc-shortName">
+ <xsl:apply-templates select="javaee:tag|javaee:tag-file"/>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag|javaee:tag-file">
+ <xsl:if test="javaee:name=$tlddoc-tagName">
+ <xsl:variable name="tldname">
+ <xsl:choose>
+ <xsl:when test="../javaee:display-name!=''">
+ <xsl:value-of select="../javaee:display-name"/>
+ </xsl:when>
+ <xsl:when test="../javaee:short-name!=''">
+ <xsl:value-of select="../javaee:short-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="title">
+ <xsl:value-of select="javaee:name"/>
+ (<xsl:value-of select="/javaee:tlds/javaee:config/javaee:window-title"/>)
+ </xsl:variable>
+
+ <!-- Tag Information -->
+ <table class="doctable" cellpadding="3" cellspacing="0" width="100%">
+ <tr class="TableHeadingColor">
+ <td colspan="2">
+ <font size="+2">
+ <b>Tag Information</b>
+ </font>
+ </td>
+ </tr>
+ <tr>
+ <td>Tag Class</td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:tag-class!=''">
+ <xsl:value-of select="javaee:tag-class"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ <tr>
+ <td>TagExtraInfo Class</td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:tei-class!=''">
+ <xsl:value-of select="javaee:tei-class"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ <tr>
+ <td>Body Content</td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:body-content!=''">
+ <xsl:value-of select="javaee:body-content"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ <tr>
+ <td>Display Name</td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:display-name!=''">
+ <xsl:value-of select="javaee:display-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </table>
+
+ <!-- Attribute Information -->
+ <table class="doctable" cellpadding="3" cellspacing="0" width="100%">
+ <tr class="TableHeadingColor">
+ <td colspan="5">
+ <font size="+2">
+ <b>Attributes</b>
+ </font>
+ </td>
+ </tr>
+ <xsl:choose>
+ <xsl:when test="count(javaee:attribute)>0">
+ <tr>
+ <td><b>Name</b></td>
+ <td><b>Required</b></td>
+ <td><b>Request-time</b></td>
+ <td><b>Type</b></td>
+ <td><b>Description</b></td>
+ </tr>
+ <xsl:apply-templates select="javaee:attribute"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <td colspan="5"><i>No Attributes Defined.</i></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </table>
+
+ <!-- Variable Information -->
+ <table border="1" cellpadding="3" cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ <td colspan="5">
+ <font size="+2">
+ <b>Variables</b>
+ </font>
+ </td>
+ </tr>
+ <xsl:choose>
+ <xsl:when test="count(javaee:variable)>0">
+ <tr>
+ <td><b>Name</b></td>
+ <td><b>Type</b></td>
+ <td><b>Declare</b></td>
+ <td><b>Scope</b></td>
+ <td><b>Description</b></td>
+ </tr>
+ <xsl:apply-templates select="javaee:variable"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <td colspan="2"><i>No Variables Defined.</i></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </table>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="javaee:attribute">
+ <tr valign="top">
+ <td><xsl:apply-templates select="javaee:name"/></td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:required!=''">
+ <xsl:value-of select="javaee:required"/>
+ </xsl:when>
+ <xsl:otherwise>false</xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:rtexprvalue!=''">
+ <xsl:value-of select="javaee:rtexprvalue"/>
+ </xsl:when>
+ <xsl:otherwise>false</xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:deferred-value">
+ <xsl:choose>
+ <xsl:when test="javaee:deferred-value/javaee:type">
+ <code>javax.el.ValueExpression</code>
+ <br/>(<i>must evaluate to </i><code><xsl:value-of
+ select="javaee:deferred-value/javaee:type"/></code>)
+ </xsl:when>
+ <xsl:otherwise>
+ <code>javax.el.ValueExpression</code>
+ <br/>(<i>must evaluate to </i><code>java.lang.Object</code>)
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="javaee:deferred-method">
+ <xsl:choose>
+ <xsl:when test="javaee:deferred-method/javaee:method-signature">
+ <code>javax.el.MethodExpression</code>
+ <br/>(<i>signature must match </i><code><xsl:value-of
+ select="javaee:deferred-method/javaee:method-signature"/></code>)
+ </xsl:when>
+ <xsl:otherwise>
+ <code>javax.el.MethodExpression</code>
+ <br/>(<i>signature must match </i><code>void methodname()</code>)
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="javaee:type!=''">
+ <code><xsl:value-of select="javaee:type"/></code>
+ </xsl:when>
+ <xsl:otherwise>
+ <code>java.lang.String</code>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:description!=''">
+ <xsl:value-of select="javaee:description" disable-output-escaping="yes"/>
+ </xsl:when>
+ <xsl:otherwise><i>No Description</i></xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="javaee:variable">
+ <tr>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:name-given!=''">
+ <xsl:value-of select="javaee:name-given"/>
+ </xsl:when>
+ <xsl:when test="javaee:name-from-attribute!=''">
+ <i>From attribute '<xsl:value-of select="javaee:name-from-attribute"/>'</i>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>Unknown</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:variable-class!=''">
+ <code><xsl:value-of select="javaee:variable-class"/></code>
+ </xsl:when>
+ <xsl:otherwise><code>java.lang.String</code></xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:declare!=''">
+ <xsl:value-of select="javaee:declare"/>
+ </xsl:when>
+ <xsl:otherwise>true</xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:scope!=''">
+ <xsl:value-of select="javaee:scope"/>
+ </xsl:when>
+ <xsl:otherwise>NESTED</xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:description!=''">
+ <xsl:value-of select="javaee:description" disable-output-escaping="yes"/>
+ </xsl:when>
+ <xsl:otherwise><i>No Description</i></xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:template>
+
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tag.html.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld-frame.html.xsl
===================================================================
--- trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld-frame.html.xsl (rev 0)
+++ trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld-frame.html.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,188 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : tld-frame.html.xsl
+ Created on : December 18, 2002, 11:40 AM
+ Author : mroth
+ Description:
+ Creates the TLD frame (lower-left hand corner), listing the tags
+ and functions that are in this particular tag library.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <xsl:param name="tlddoc-shortName">default</xsl:param>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <xsl:apply-templates select="javaee:tlds/javaee:taglib"/>
+ </xsl:template>
+
+ <xsl:template match="javaee:taglib">
+ <xsl:if test="javaee:short-name=$tlddoc-shortName">
+ <xsl:variable name="tldname">
+ <xsl:choose>
+ <xsl:when test="javaee:display-name!=''">
+ <xsl:value-of select="javaee:display-name"/>
+ </xsl:when>
+ <xsl:when test="javaee:short-name!=''">
+ <xsl:value-of select="javaee:short-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="tldfull">
+ <xsl:value-of select="$tldname"/>
+ <xsl:choose>
+ <xsl:when test="javaee:description!=''">
+ (<xsl:value-of select="javaee:description" disable-output-escaping="yes"/>)
+ </xsl:when>
+ <xsl:otherwise>
+ No Description
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <html>
+ <head>
+ <title>
+ <xsl:value-of select="$tldfull"/>
+ </title>
+ <meta name="keywords" content="$tldfull"/>
+ <link rel="stylesheet" type="text/css" href="../stylesheet.css"
+ title="Style"/>
+ <script>
+ function asd()
+ {
+ parent.document.title="<xsl:value-of select="normalize-space($tldfull)"/>";
+ }
+ </script>
+ </head>
+ <body bgcolor="white" onload="asd();">
+ <font size="+1" class="FrameTitleFont">
+ <a href="tld-summary.html" target="tagFrame">
+ <xsl:value-of select="$tldname"/>
+ </a>
+ </font>
+ <table border="0" width="100%">
+ <xsl:if test="(count(javaee:tag)+count(javaee:tag-file))>0">
+ <tr>
+ <td nowrap="true">
+ <font size="+1" class="FrameHeadingFont">
+ Tags
+ </font> 
+ <font class="FrameItemFont">
+ <xsl:apply-templates select="javaee:tag|javaee:tag-file"/>
+ </font>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="count(javaee:function)>0">
+ <tr>
+ <td nowrap="true">
+ <font size="+1" class="FrameHeadingFont">
+ Functions
+ </font> 
+ <font class="FrameItemFont">
+ <xsl:apply-templates select="javaee:function"/>
+ </font>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="count(javaee:validator)>0">
+ <tr>
+ <td nowrap="true">
+ <font size="+1" class="FrameHeadingFont">
+ Validator
+ </font> 
+ <font class="FrameItemFont">
+ <xsl:apply-templates select="javaee:validator"/>
+ </font>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="count(javaee:listener)>0">
+ <tr>
+ <td nowrap="true">
+ <font size="+1" class="FrameHeadingFont">
+ Listeners
+ </font> 
+ <font class="FrameItemFont">
+ <xsl:apply-templates select="javaee:listener"/>
+ </font>
+ </td>
+ </tr>
+ </xsl:if>
+ </table>
+ <!-- <table ... -->
+ </body>
+ </html>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag|javaee:tag-file">
+ <br/>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="javaee:name"/>.html</xsl:attribute>
+ <xsl:attribute name="target">tagFrame</xsl:attribute>
+ <xsl:value-of select="../javaee:short-name"/>:<xsl:value-of select="javaee:name"/>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="javaee:function">
+ <br/>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="javaee:name"/>.fn.html</xsl:attribute>
+ <xsl:attribute name="target">tagFrame</xsl:attribute>
+ <i><xsl:value-of select="../javaee:short-name"/>:<xsl:value-of select="javaee:name"/>()</i>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="javaee:validator">
+ <br/>
+ <xsl:value-of select="javaee:validator-class"/>
+ </xsl:template>
+
+ <xsl:template match="javaee:listener">
+ <br/>
+ <xsl:value-of select="javaee:listener-class"/>
+ </xsl:template>
+
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld-frame.html.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld-summary.html.xsl
===================================================================
--- trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld-summary.html.xsl (rev 0)
+++ trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld-summary.html.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,445 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : tld-summary.html.xsl
+ Created on : December 18, 2002, 3:46 PM
+ Author : mroth
+ Description:
+ Creates the TLD summary (right frame), listing the tags
+ and functions that are in this particular tag library and
+ their descriptions.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <xsl:param name="tlddoc-shortName">default</xsl:param>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <xsl:apply-templates select="javaee:tlds/javaee:taglib"/>
+ </xsl:template>
+
+ <xsl:template match="javaee:taglib">
+ <xsl:if test="javaee:short-name=$tlddoc-shortName">
+ <xsl:variable name="tldname">
+ <xsl:choose>
+ <xsl:when test="javaee:display-name!=''">
+ <xsl:value-of select="javaee:display-name"/>
+ </xsl:when>
+ <xsl:when test="javaee:short-name!=''">
+ <xsl:value-of select="javaee:short-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="title">
+ <xsl:value-of select="$tldname"/>
+ (<xsl:value-of select="/javaee:tlds/javaee:config/javaee:window-title"/>)
+ </xsl:variable>
+ <html>
+ <head>
+ <title><xsl:value-of select="$title"/></title>
+ <link rel="stylesheet" type="text/css" href="../stylesheet.css"
+ title="styie"/>
+ </head>
+ <script>
+ function asd()
+ {
+ parent.document.title="<xsl:value-of select="normalize-space($title)"/>";
+ }
+ </script>
+ <body bgcolor="white" onload="asd();">
+ <!-- =========== START OF NAVBAR =========== -->
+ <a name="navbar_top"><!-- --></a>
+ <table border="0" width="100%" cellpadding="1" cellspacing="0">
+ <tr>
+ <td COLSPAN="3" BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+ <a NAME="navbar_top_firstrow"><!-- --></a>
+ <table BORDER="0" CELLPADDING="0" CELLSPACING="3">
+ <tr ALIGN="center" VALIGN="top">
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a href="../overview-summary.html"><font CLASS="NavBarFont1"><b>Overview</b></font></a> </td>
+ <td BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev">  <font CLASS="NavBarFont1Rev"> Library </font> </td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <font CLASS="NavBarFont1"> Tag </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a HREF="../help-doc.html"><font CLASS="NavBarFont1"><b>Help</b></font></a> </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top" ROWSPAN="3"><em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+ <!-- PREV TAGLIB -->
+ <!-- NEXT TAGLIB -->
+ </font></td>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+  <a HREF="../index.html" TARGET="_top"><b>FRAMES</b></a> 
+  <a HREF="tld-summary.html" TARGET="_top"><b>NO FRAMES</b></a> 
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="alltags-noframe.html" TARGET=""><B>All Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="../alltags-noframe.html" TARGET=""><b>All Tags</b></a>
+ </noscript>
+ </font></td>
+ </tr>
+ </table>
+ <!-- =========== END OF NAVBAR =========== -->
+
+ <hr/>
+ <h2><xsl:value-of select="$tldname"/></h2>
+ <hr/>
+ <xsl:if test="(javaee:uri!='') and (javaee:short-name!='')">
+ <b>Standard Syntax:</b><br/>
+ <code>
+     
+ <xsl:choose>
+ <xsl:when test='starts-with(javaee:uri,"/WEB-INF/tags")'>
+ <%@ taglib prefix="<xsl:value-of select="javaee:short-name"/>" tagdir="<xsl:value-of select="javaee:uri"/>" %><br/>
+ </xsl:when>
+ <xsl:otherwise>
+ <%@ taglib prefix="<xsl:value-of select="javaee:short-name"/>" uri="<xsl:value-of select="javaee:uri"/>" %><br/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </code>
+ <br/>
+ <b>XML Syntax:</b><br/>
+ <code>
+     
+ <xsl:choose>
+ <xsl:when test='starts-with(javaee:uri,"/WEB-INF/tags")'>
+ <anyxmlelement xmlns:<xsl:value-of select="javaee:short-name"/>="urn:jsptagdir:<xsl:value-of select="javaee:uri"/>" /><br/>
+ </xsl:when>
+ <xsl:when test='starts-with(javaee:uri,"/")'>
+ <anyxmlelement xmlns:<xsl:value-of select="javaee:short-name"/>="urn:jsptld:<xsl:value-of select="javaee:uri"/>" /><br/>
+ </xsl:when>
+ <xsl:otherwise>
+ <anyxmlelement xmlns:<xsl:value-of select="javaee:short-name"/>="<xsl:value-of select="javaee:uri"/>" /><br/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </code>
+ <hr/>
+ </xsl:if>
+ <xsl:choose>
+ <xsl:when test="javaee:description!=''">
+ <pre>
+ <xsl:value-of select="javaee:description" disable-output-escaping="yes"/>
+ </pre>
+ </xsl:when>
+ <xsl:otherwise>
+ No Description
+ </xsl:otherwise>
+ </xsl:choose>
+ <p/>
+ <table border="1" cellpadding="3" cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ <td colspan="2">
+ <font size="+2"><b>Tag Library Information</b></font>
+ </td>
+ </tr>
+ <tr>
+ <td>Display Name</td>
+ <xsl:choose>
+ <xsl:when test="javaee:display-name!=''">
+ <td><xsl:value-of select="javaee:display-name"/></td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td><i>None</i></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tr>
+ <tr>
+ <td>Version</td>
+ <xsl:choose>
+ <xsl:when test="javaee:tlib-version!=''">
+ <td><xsl:value-of select="javaee:tlib-version"/></td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td><i>None</i></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tr>
+ <tr>
+ <td>Short Name</td>
+ <xsl:choose>
+ <xsl:when test="javaee:short-name!=''">
+ <td><xsl:value-of select="javaee:short-name"/></td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td><i>None</i></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tr>
+ <tr>
+ <td>URI</td>
+ <xsl:choose>
+ <xsl:when test="javaee:uri!=''">
+ <td><xsl:value-of select="javaee:uri"/></td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td><i>None</i></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tr>
+ </table>
+  
+ <p/>
+ <!-- tags and tag files -->
+ <xsl:if test="(count(javaee:tag)+count(javaee:tag-file)) > 0">
+ <table border="1" cellpadding="3" cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ <td colspan="2">
+ <font size="+2"><b>Tag Summary</b></font>
+ </td>
+ </tr>
+ <xsl:apply-templates select="javaee:tag|javaee:tag-file"/>
+ </table>
+  
+ <p/>
+ </xsl:if>
+ <!-- functions -->
+ <xsl:if test="count(javaee:function) > 0">
+ <table border="1" cellpadding="3" cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ <td colspan="3">
+ <font size="+2"><b>Function Summary</b></font>
+ </td>
+ </tr>
+ <xsl:apply-templates select="javaee:function"/>
+ </table>
+  
+ <p/>
+ </xsl:if>
+ <!-- validators -->
+ <xsl:if test="count(javaee:validator) > 0">
+ <table border="1" cellpadding="3" cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ <td colspan="2">
+ <font size="+2"><b>Tag Library Validator</b></font>
+ </td>
+ </tr>
+ <xsl:apply-templates select="javaee:validator"/>
+ </table>
+  
+ <p/>
+ </xsl:if>
+ <!-- listeners -->
+ <xsl:if test="count(javaee:listener) > 0">
+ <table border="1" cellpadding="3" cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ <td>
+ <font size="+2"><b>Listeners</b></font>
+ </td>
+ </tr>
+ <xsl:apply-templates select="javaee:listener"/>
+ </table>
+  
+ <p/>
+ </xsl:if>
+ <!-- taglib-extensions -->
+
+ <!-- =========== START OF NAVBAR =========== -->
+ <a name="navbar_bottom"><!-- --></a>
+ <table border="0" width="100%" cellpadding="1" cellspacing="0">
+ <tr>
+ <td COLSPAN="3" BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+ <a NAME="navbar_bottom_firstrow"><!-- --></a>
+ <table BORDER="0" CELLPADDING="0" CELLSPACING="3">
+ <tr ALIGN="center" VALIGN="top">
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a href="../overview-summary.html"><font CLASS="NavBarFont1"><b>Overview</b></font></a> </td>
+ <td BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev">  <font CLASS="NavBarFont1Rev"> Library </font> </td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <font CLASS="NavBarFont1"> Tag </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a HREF="../help-doc.html"><font CLASS="NavBarFont1"><b>Help</b></font></a> </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top" ROWSPAN="3"><em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+ <!-- PREV TAGLIB -->
+ <!-- NEXT TAGLIB -->
+ </font></td>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+  <a HREF="../index.html" TARGET="_top"><b>FRAMES</b></a> 
+  <a HREF="tld-summary.html" TARGET="_top"><b>NO FRAMES</b></a> 
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="alltags-noframe.html" TARGET=""><B>All Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="../alltags-noframe.html" TARGET=""><b>All Tags</b></a>
+ </noscript>
+ </font></td>
+ </tr>
+ </table>
+ <!-- =========== END OF NAVBAR =========== -->
+ <hr/>
+ <small><i>
+ Java, JSP, and JavaServer Pages are trademarks or registered
+ trademarks of Sun Microsystems, Inc. in the US and other countries.
+ Copyright 2002-3 Sun Microsystems, Inc.
+ 4150 Network Circle
+ Santa Clara, CA 95054, U.S.A.
+ All Rights Reserved.
+ </i></small>
+ </body>
+ </html>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag|javaee:tag-file">
+ <tr bgcolor="white" class="TableRowColor">
+ <td width="15%">
+ <b>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="javaee:name"/>.html</xsl:attribute>
+ <xsl:value-of select="javaee:name"/>
+ </xsl:element>
+ </b>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:description!=''">
+ <xsl:value-of select="javaee:description" disable-output-escaping="yes"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>No Description</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="javaee:function">
+ <tr bgcolor="white" class="TableRowColor">
+ <td width="15%" nowrap="" align="right">
+ <code><xsl:value-of select='substring-before(normalize-space(javaee:function-signature)," ")'/></code>
+ </td>
+ <td width="15%" nowrap="">
+ <code><b>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="javaee:name"/>.fn.html</xsl:attribute>
+ <xsl:value-of select="javaee:name"/>
+ </xsl:element>
+ </b>( <xsl:value-of select='substring-after(normalize-space(javaee:function-signature),"(")'/>
+ </code>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:description!=''">
+ <xsl:value-of select="javaee:description" disable-output-escaping="yes"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>No Description</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="javaee:validator">
+ <tr valign="top" bgcolor="white" class="TableRowColor">
+ <td width="15%">
+ <b><xsl:value-of select="javaee:validator-class"/></b>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:description!=''">
+ <xsl:value-of select="javaee:description" disable-output-escaping="yes"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>No Description</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:if test="count(javaee:init-param)>0">
+ <blockquote>
+ <b>Initialization Parameters:</b><br/>
+ <table border="1">
+ <tr>
+ <td><b>Name</b></td>
+ <td><b>Value</b></td>
+ <td><b>Description</b></td>
+ </tr>
+ <xsl:apply-templates select="javaee:init-param"/>
+ </table>
+ </blockquote>
+ </xsl:if>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="javaee:init-param">
+ <tr valign="top">
+ <td><xsl:value-of select="javaee:param-name"/></td>
+ <td><xsl:value-of select="javaee:param-value"/></td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:param-description!=''">
+ <xsl:value-of select="javaee:param-description"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>No Description</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="javaee:listener">
+ <tr valign="top" bgcolor="white" class="TableRowColor">
+ <td>
+ <b><xsl:value-of select="javaee:listener-class"/></b>
+ </td>
+ </tr>
+ </xsl:template>
+
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld-summary.html.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld1_1-tld1_2.xsl
===================================================================
--- trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld1_1-tld1_2.xsl (rev 0)
+++ trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld1_1-tld1_2.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+
+ Translates a JSP 1.1 TLD into a JSP 1.2 TLD, using the following
+ conversion rules:
+
+ 1. Change the document type definition for the TLD to:
+ <!DOCTYPE taglib
+ PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
+ "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
+ 2. Change the <tlibversion> element to <tlib-version>
+ 3. Change the optional <jspversion> element to <jsp-version>. If no
+ element exists, supply one that's set to 1.2
+ 4. Change the <shortname> element to <short-name>
+ 5. Preserve the original optional <uri> tag
+ 6. Change the optional <info> tag to <description>
+ 7. Preserve each tag/name
+ 8. Change each tag/tagclass to tag/tag-class
+ 9. Change each optional tag/teiclass to tag/tei-class
+ 10. Change each optional tag/bodycontent to tag/body-content
+ 11. Change each optional tag/info to tag/description
+ 12. Preserve each tag/attribute element and its contents.
+
+ Side-effect: Strips the id attributes
+
+ Author: Mark Roth
+
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:output method="xml" indent="yes"
+ doctype-system="http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"
+ doctype-public="-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"/>
+
+ <xsl:template match="/taglib">
+ <taglib>
+ <xsl:apply-templates select="tlibversion"/>
+ <jsp-version>1.2</jsp-version>
+ <xsl:apply-templates select="shortname"/>
+ <xsl:apply-templates select="uri"/>
+ <xsl:apply-templates select="info"/>
+ <xsl:apply-templates select="tag"/>
+ </taglib>
+ </xsl:template>
+
+ <!-- Rename to tlib-version -->
+ <xsl:template match="tlibversion">
+ <tlib-version><xsl:apply-templates/></tlib-version>
+ </xsl:template>
+
+ <!-- Rename to jsp-version -->
+ <xsl:template match="jspversion">
+ <jsp-version><xsl:apply-templates/></jsp-version>
+ </xsl:template>
+
+ <!-- Rename to short-name -->
+ <xsl:template match="shortname">
+ <short-name><xsl:apply-templates/></short-name>
+ </xsl:template>
+
+ <!-- Preserve uri -->
+ <xsl:template match="uri">
+ <uri><xsl:apply-templates/></uri>
+ </xsl:template>
+
+ <!-- Rename to description -->
+ <xsl:template match="info">
+ <description><xsl:apply-templates/></description>
+ </xsl:template>
+
+ <xsl:template match="tag">
+ <tag>
+ <xsl:apply-templates select="name"/>
+ <xsl:apply-templates select="tagclass"/>
+ <xsl:apply-templates select="teiclass"/>
+ <xsl:apply-templates select="bodycontent"/>
+ <xsl:apply-templates select="info"/>
+ <xsl:apply-templates select="attribute"/>
+ </tag>
+ </xsl:template>
+
+ <!-- Preserve name -->
+ <xsl:template match="name">
+ <name><xsl:apply-templates/></name>
+ </xsl:template>
+
+ <!-- Rename to tag-class -->
+ <xsl:template match="tagclass">
+ <tag-class><xsl:apply-templates/></tag-class>
+ </xsl:template>
+
+ <!-- Rename to tei-class -->
+ <xsl:template match="teiclass">
+ <tei-class><xsl:apply-templates/></tei-class>
+ </xsl:template>
+
+ <!-- Rename to body-content -->
+ <xsl:template match="bodycontent">
+ <body-content><xsl:apply-templates/></body-content>
+ </xsl:template>
+
+ <!-- Rename to description -->
+ <xsl:template match="info">
+ <description><xsl:apply-templates/></description>
+ </xsl:template>
+
+ <!-- Preserve attribute -->
+ <xsl:template match="attribute">
+ <attribute>
+ <xsl:apply-templates/>
+ </attribute>
+ </xsl:template>
+
+ <xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld1_1-tld1_2.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld1_2-tld2_0.xsl
===================================================================
--- trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld1_2-tld2_0.xsl (rev 0)
+++ trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld1_2-tld2_0.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,290 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+
+ Translates a JSP 1.2 TLD into a JSP 2.0 TLD, using the following
+ conversion rules:
+
+ 1. Change the <taglib> element to read as follows:
+ <taglib xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+ http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd">
+ 2. Remove all id attributes from all elements.
+ 3. Remove <jsp-version> element and add an attribute to <taglib>
+ called 'version' with the value "2.0".
+ 4. Under <taglib>, if a <description> element exists, move it to
+ the top.
+ 5. Under <taglib>, if a <display-name> element exists, move it
+ to the top, after the <description> element.
+ 6. Under <taglib>, if a <small-icon> and/or <large-icon> element
+ exists, wrap them in an <icon> element and move it to the
+ top, after the <display-name> element.
+ 7. For each taglib/validator element, if a <description> element
+ exists, move it to the top, under <validator>.
+ 8. For each taglib/validator/init-param element, if a
+ <description> element exists, move it to the top, under
+ <init-param>.
+ 9. For each taglib/tag element, if a <description> element
+ exists, move it to the top, under <tag>.
+ 10. For each taglib/tag element, if a <display-name> element
+ exists, move it to the top, after the <description> element,
+ under <tag>.
+ 11. For each taglib/tag element, if a <small-icon> and/or
+ <large-icon> element exists, wrap them in an <icon> element
+ and move it to the top, after the <display-name> element,
+ under <tag>.
+ 12. For each taglib/tag element, if no <body-content> element
+ exists, supply a default value of "JSP"
+ 13. For each taglib/tag/variable element, if a <description>
+ element exists, move it to the top, under <variable>.
+ 14. For each taglib/tag/attribute element, if a <description>
+ element exists, move it to the top, under <attribute>.
+
+ Author: Mark Roth
+
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:output method="xml" indent="yes"/>
+
+ <xsl:template match="/taglib">
+ <xsl:element name="taglib" namespace="http://java.sun.com/xml/ns/j2ee">
+ <xsl:attribute name="xsi:schemaLocation" namespace="http://www.w3.org/2001/XMLSchema-instance">http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd</xsl:attribute>
+ <xsl:attribute name="version">2.0</xsl:attribute>
+ <xsl:apply-templates select="description"/>
+ <xsl:apply-templates select="display-name"/>
+ <xsl:if test="small-icon|large-icon">
+ <icon xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="small-icon"/>
+ <xsl:apply-templates select="large-icon"/>
+ </icon>
+ </xsl:if>
+ <xsl:apply-templates select="tlib-version"/>
+ <xsl:apply-templates select="short-name"/>
+ <xsl:apply-templates select="uri"/>
+ <xsl:apply-templates select="validator"/>
+ <xsl:apply-templates select="listener"/>
+ <xsl:apply-templates select="tag"/>
+ </xsl:element>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="description">
+ <description xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </description>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="display-name">
+ <display-name xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </display-name>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="tlib-version">
+ <tlib-version xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </tlib-version>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="short-name">
+ <short-name xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </short-name>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="uri">
+ <uri xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </uri>
+ </xsl:template>
+
+ <xsl:template match="validator">
+ <validator xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="description"/>
+ <xsl:apply-templates select="validator-class"/>
+ <xsl:apply-templates select="init-param"/>
+ </validator>
+ </xsl:template>
+
+ <xsl:template match="init-param">
+ <init-param xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="description"/>
+ <xsl:apply-templates select="param-name"/>
+ <xsl:apply-templates select="param-value"/>
+ </init-param>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="param-name">
+ <param-name xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </param-name>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="param-value">
+ <param-value xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </param-value>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="listener">
+ <listener xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="listener-class"/>
+ </listener>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="listener-class">
+ <listener-class xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </listener-class>
+ </xsl:template>
+
+ <xsl:template match="tag">
+ <tag xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="description"/>
+ <xsl:apply-templates select="display-name"/>
+ <xsl:if test="small-icon|large-icon">
+ <icon xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="small-icon"/>
+ <xsl:apply-templates select="large-icon"/>
+ </icon>
+ </xsl:if>
+ <xsl:apply-templates select="name"/>
+ <xsl:apply-templates select="tag-class"/>
+ <xsl:apply-templates select="tei-class"/>
+ <xsl:choose>
+ <xsl:when test="body-content">
+ <xsl:apply-templates select="body-content"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <!--
+ - Explicitly Insert the default body-content since this is
+ - now a required element
+ -->
+ <body-content xmlns="http://java.sun.com/xml/ns/j2ee">JSP</body-content>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:apply-templates select="variable"/>
+ <xsl:apply-templates select="attribute"/>
+ <xsl:apply-templates select="example"/>
+ </tag>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="name">
+ <name xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </name>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="tag-class">
+ <tag-class xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </tag-class>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="tei-class">
+ <tei-class xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </tei-class>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="body-content">
+ <body-content xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </body-content>
+ </xsl:template>
+
+ <xsl:template match="variable">
+ <variable xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="description"/>
+ <xsl:apply-templates select="name-given"/>
+ <xsl:apply-templates select="name-from-attribute"/>
+ <xsl:apply-templates select="variable-class"/>
+ <xsl:apply-templates select="declare"/>
+ <xsl:apply-templates select="scope"/>
+ </variable>
+ </xsl:template>
+
+ <xsl:template match="attribute">
+ <attribute xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="description"/>
+ <xsl:apply-templates select="name"/>
+ <xsl:apply-templates select="required"/>
+ <xsl:apply-templates select="rtexprvalue"/>
+ <xsl:apply-templates select="type"/>
+ </attribute>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="required">
+ <required xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </required>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="rtexprvalue">
+ <rtexprvalue xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </rtexprvalue>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="example">
+ <example xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </example>
+ </xsl:template>
+
+ <xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld1_2-tld2_0.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld2_0-tld2_1.xsl
===================================================================
--- trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld2_0-tld2_1.xsl (rev 0)
+++ trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld2_0-tld2_1.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+
+ Identity transformation (changing from the J2EE namespace
+ to the Java EE namespace), added for flexibility.
+
+ 1. Change the <taglib> element to read as follows:
+ <taglib xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+ http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd">
+
+ Author: Mark Roth
+
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:j2ee="http://java.sun.com/xml/ns/j2ee">
+ <xsl:output method="xml" indent="yes"/>
+
+ <xsl:template match="/j2ee:taglib">
+ <xsl:element name="taglib" namespace="http://java.sun.com/xml/ns/javaee">
+ <xsl:attribute name="xsi:schemaLocation" namespace="http://www.w3.org/2001/XMLSchema-instance">http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd</xsl:attribute>
+ <xsl:attribute name="version">2.1</xsl:attribute>
+ <xsl:apply-templates select="*"/>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="j2ee:*">
+ <xsl:element name="{local-name()}" namespace="http://java.sun.com/xml/ns/javaee">
+ <xsl:copy-of select="@*"/>
+ <xsl:apply-templates/>
+ </xsl:element>
+ </xsl:template>
+
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld2_0-tld2_1.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld2_1-tld2_1.xsl
===================================================================
--- trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld2_1-tld2_1.xsl (rev 0)
+++ trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld2_1-tld2_1.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+
+ Identity transformation, added for flexibility.
+
+ 1. Remove any tag-extension, function-extension and taglib-extension
+ elements.
+
+ Author: Mark Roth
+
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee">
+ <xsl:output method="xml" indent="yes"/>
+
+ <xsl:template match="/javaee:taglib">
+ <xsl:element name="taglib" namespace="http://java.sun.com/xml/ns/javaee">
+ <xsl:attribute name="xsi:schemaLocation"
+ namespace="http://www.w3.org/2001/XMLSchema-instance">http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd</xsl:attribute>
+ <xsl:attribute name="version">2.1</xsl:attribute>
+ <xsl:apply-templates select="*"/>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag-extension">
+ </xsl:template>
+
+ <xsl:template match="javaee:function-extension">
+ </xsl:template>
+
+ <xsl:template match="javaee:taglib-extension">
+ </xsl:template>
+
+ <xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="text()">
+ <xsl:value-of select="normalize-space(.)" />
+ </xsl:template>
+
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/src/main/resources/com/sun/tlddoc/resources/tld2_1-tld2_1.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/src/test/java/org/richfaces/AppTest.java
===================================================================
--- trunk/docs/taglibxsl/src/test/java/org/richfaces/AppTest.java (rev 0)
+++ trunk/docs/taglibxsl/src/test/java/org/richfaces/AppTest.java 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,38 @@
+package org.richfaces;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+/**
+ * Unit test for simple App.
+ */
+public class AppTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public AppTest( String testName )
+ {
+ super( testName );
+ }
+
+ /**
+ * @return the suite of tests being tested
+ */
+ public static Test suite()
+ {
+ return new TestSuite( AppTest.class );
+ }
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testApp()
+ {
+ assertTrue( true );
+ }
+}
Property changes on: trunk/docs/taglibxsl/src/test/java/org/richfaces/AppTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/alltags-frame.html.xsl
===================================================================
--- trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/alltags-frame.html.xsl (rev 0)
+++ trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/alltags-frame.html.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : alltags-frame.html.xsl
+ Created on : October 1, 2002, 5:37 PM
+ Author : mroth
+ Description:
+ Creates the all tags frame (lower left corner), listing all tags
+ and functions included in all tag libraries for this generation.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <html>
+ <head>
+ <title>All Tags / Functions</title>
+ <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"/>
+ </head>
+ <script>
+ function asd()
+ {
+ parent.document.title="All Tags / Functions";
+ }
+ </script>
+ <body bgcolor="white" onload="asd();">
+ <font size="+1" class="FrameHeadingFont">
+ <b>All Tags / Functions</b></font>
+ <br/>
+ <table border="0" width="100%">
+ <tr>
+ <td nowrap="true"><font class="FrameItemFont">
+ <xsl:apply-templates
+ select="javaee:tlds/javaee:taglib/javaee:tag|javaee:tlds/javaee:taglib/javaee:tag-file|javaee:tlds/javaee:taglib/javaee:function">
+ <xsl:sort select="../javaee:short-name"/>
+ <xsl:sort select="javaee:name"/>
+ </xsl:apply-templates>
+ </font></td>
+ </tr>
+ </table>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag|javaee:tag-file">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="../javaee:short-name"/>/<xsl:value-of select="javaee:name"/>.html</xsl:attribute>
+ <xsl:attribute name="target">tagFrame</xsl:attribute>
+ <xsl:value-of select="../javaee:short-name"/>:<xsl:value-of select="javaee:name"/>
+ </xsl:element>
+ <br/>
+ </xsl:template>
+
+ <!--
+ - Same as above, but add the () to indicate it's a function
+ - and change the HTML to .fn.html
+ -->
+ <xsl:template match="javaee:function">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="../javaee:short-name"/>/<xsl:value-of select="javaee:name"/>.fn.html</xsl:attribute>
+ <xsl:attribute name="target">tagFrame</xsl:attribute>
+ <i><xsl:value-of select="../javaee:short-name"/>:<xsl:value-of select="javaee:name"/>()</i>
+ </xsl:element>
+ <br/>
+ </xsl:template>
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/alltags-frame.html.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/alltags-noframe.html.xsl
===================================================================
--- trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/alltags-noframe.html.xsl (rev 0)
+++ trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/alltags-noframe.html.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : alltags-frame.html.xsl
+ Created on : October 1, 2002, 5:37 PM
+ Author : mroth
+ Description:
+ Creates the all tags page, listing all tags
+ and functions included in all tag libraries for this generation.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <html>
+ <head>
+ <title>All Tags / Functions</title>
+ <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"/>
+ </head>
+ <script>
+ function asd()
+ {
+ parent.document.title="All Tags / Functions";
+ }
+ </script>
+ <body bgcolor="white" onload="asd();">
+ <font size="+1" class="FrameHeadingFont">
+ <b>All Tags / Functions</b></font>
+ <br/>
+ <table border="0" width="100%">
+ <tr>
+ <td nowrap="true"><font class="FrameItemFont">
+ <xsl:apply-templates
+ select="javaee:tlds/javaee:taglib/javaee:tag|javaee:tlds/javaee:taglib/javaee:tag-file|javaee:tlds/javaee:taglib/javaee:function">
+ <xsl:sort select="../javaee:short-name"/>
+ <xsl:sort select="javaee:name"/>
+ </xsl:apply-templates>
+ </font></td>
+ </tr>
+ </table>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag|javaee:tag-file">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="../javaee:short-name"/>/<xsl:value-of select="javaee:name"/>.html</xsl:attribute>
+ <xsl:attribute name="target"></xsl:attribute>
+ <xsl:value-of select="../javaee:short-name"/>:<xsl:value-of select="javaee:name"/>
+ </xsl:element>
+ <br/>
+ </xsl:template>
+
+ <!--
+ - Same as above, but add the () to indicate it's a function
+ - and change the HTML to .fn.html
+ -->
+ <xsl:template match="javaee:function">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="../javaee:short-name"/>/<xsl:value-of select="javaee:name"/>.fn.html</xsl:attribute>
+ <xsl:attribute name="target">tagFrame</xsl:attribute>
+ <i><xsl:value-of select="../javaee:short-name"/>:<xsl:value-of select="javaee:name"/>()</i>
+ </xsl:element>
+ <br/>
+ </xsl:template>
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/alltags-noframe.html.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/function.html.xsl
===================================================================
--- trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/function.html.xsl (rev 0)
+++ trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/function.html.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,276 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : function.html.xsl
+ Created on : Februrary 25, 2003, 7:39 PM
+ Author : mroth
+ Description:
+ Creates the function detail page (right frame), listing the known
+ information for a given function in a tag library.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <xsl:param name="tlddoc-shortName">default</xsl:param>
+ <xsl:param name="tlddoc-functionName">default</xsl:param>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <xsl:apply-templates select="javaee:tlds/javaee:taglib"/>
+ </xsl:template>
+
+ <xsl:template match="javaee:taglib">
+ <xsl:if test="javaee:short-name=$tlddoc-shortName">
+ <xsl:apply-templates select="javaee:function"/>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="javaee:function">
+ <xsl:if test="javaee:name=$tlddoc-functionName">
+ <xsl:variable name="tldname">
+ <xsl:choose>
+ <xsl:when test="../javaee:display-name!=''">
+ <xsl:value-of select="../javaee:display-name"/>
+ </xsl:when>
+ <xsl:when test="../javaee:short-name!=''">
+ <xsl:value-of select="../javaee:short-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="title">
+ <xsl:value-of select="javaee:name"/>
+ (<xsl:value-of select="/javaee:tlds/javaee:config/javaee:window-title"/>)
+ </xsl:variable>
+ <html>
+ <head>
+ <title><xsl:value-of select="$title"/></title>
+ <meta name="keywords" content="$title"/>
+ <link rel="stylesheet" type="text/css" href="../stylesheet.css"
+ title="Style"/>
+ </head>
+ <script>
+ function asd()
+ {
+ parent.document.title="<xsl:value-of select="normalize-space($title)"/>";
+ }
+ </script>
+ <body bgcolor="white" onload="asd();">
+ <!-- =========== START OF NAVBAR =========== -->
+ <a name="navbar_top"><!-- --></a>
+ <table border="0" width="100%" cellpadding="1" cellspacing="0">
+ <tr>
+ <td COLSPAN="3" BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+ <a NAME="navbar_top_firstrow"><!-- --></a>
+ <table BORDER="0" CELLPADDING="0" CELLSPACING="3">
+ <tr ALIGN="center" VALIGN="top">
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a href="../overview-summary.html"><font CLASS="NavBarFont1"><b>Overview</b></font></a> </td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a href="tld-summary.html"><font CLASS="NavBarFont1"><b>Library</b></font></a> </td>
+ <td BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev">  <font CLASS="NavBarFont1Rev"> Tag </font> </td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a HREF="../help-doc.html"><font CLASS="NavBarFont1"><b>Help</b></font></a> </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top" ROWSPAN="3"><em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+ <!-- PREV TAGLIB -->
+ <!-- NEXT TAGLIB -->
+ </font></td>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+  <a HREF="../index.html" TARGET="_top"><b>FRAMES</b></a> 
+  <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="javaee:name"/>.fn.html</xsl:attribute>
+ <xsl:attribute name="target">_top</xsl:attribute>
+ <b>NO FRAMES</b>
+ </xsl:element> 
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="alltags-noframe.html" TARGET=""><B>All Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="../alltags-noframe.html" TARGET=""><b>All Tags</b></a>
+ </noscript>
+ </font></td>
+ </tr>
+ </table>
+ <!-- =========== END OF NAVBAR =========== -->
+
+ <hr/>
+ <h2><font size="-1"><xsl:value-of select="$tldname"/></font><br/>
+ Function <xsl:value-of select="javaee:name"/></h2>
+ <code>
+ <xsl:value-of select='substring-before(normalize-space(javaee:function-signature)," ")'/>
+ <b> <xsl:value-of select="javaee:name"/></b>(<xsl:value-of
+ select='substring-after(normalize-space(javaee:function-signature),"(")'/>
+ </code>
+ <hr/>
+ <xsl:value-of select="javaee:description" disable-output-escaping="yes"/><br/>
+ <p/>
+ <xsl:if test="javaee:example!=''">
+ <b>Example:</b><br/>
+ <pre>
+<xsl:value-of select="javaee:example"/>
+ </pre>
+ <p/>
+ </xsl:if>
+ <hr/>
+
+ <!-- Function Information -->
+ <table border="1" cellpadding="3" cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ <td colspan="2">
+ <font size="+2">
+ <b>Function Information</b>
+ </font>
+ </td>
+ </tr>
+ <tr>
+ <td>Function Class</td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:function-class!=''">
+ <xsl:value-of select="javaee:function-class"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ <tr>
+ <td>Function Signature</td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:function-signature!=''">
+ <xsl:value-of select="javaee:function-signature"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ <tr>
+ <td>Display Name</td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:display-name!=''">
+ <xsl:value-of select="javaee:display-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </table>
+ <br/>
+ <p/>
+
+ <!-- =========== START OF NAVBAR =========== -->
+ <a name="navbar_bottom"><!-- --></a>
+ <table border="0" width="100%" cellpadding="1" cellspacing="0">
+ <tr>
+ <td COLSPAN="3" BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+ <a NAME="navbar_bottom_firstrow"><!-- --></a>
+ <table BORDER="0" CELLPADDING="0" CELLSPACING="3">
+ <tr ALIGN="center" VALIGN="top">
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a href="../overview-summary.html"><font CLASS="NavBarFont1"><b>Overview</b></font></a> </td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a href="tld-summary.html"><font CLASS="NavBarFont1"><b>Library</b></font></a> </td>
+ <td BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev">  <font CLASS="NavBarFont1Rev"> Tag </font> </td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a HREF="../help-doc.html"><font CLASS="NavBarFont1"><b>Help</b></font></a> </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top" ROWSPAN="3"><em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+ <!-- PREV TAGLIB -->
+ <!-- NEXT TAGLIB -->
+ </font></td>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+  <a HREF="../index.html" TARGET="_top"><b>FRAMES</b></a> 
+  <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="javaee:name"/>.fn.html</xsl:attribute>
+ <xsl:attribute name="target">_top</xsl:attribute>
+ <b>NO FRAMES</b>
+ </xsl:element> 
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="alltags-noframe.html" TARGET=""><B>All Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="../alltags-noframe.html" TARGET=""><b>All Tags</b></a>
+ </noscript>
+ </font></td>
+ </tr>
+ </table>
+ <!-- =========== END OF NAVBAR =========== -->
+ <hr/>
+ <small><i>
+ Output Generated by
+ <a href="http://taglibrarydoc.dev.java.net/" target="_blank">Tag Library Documentation Generator</a>.
+ Java, JSP, and JavaServer Pages are trademarks or
+ registered trademarks of Sun Microsystems, Inc. in the US and other
+ countries. Copyright 2002-4 Sun Microsystems, Inc.
+ 4150 Network Circle
+ Santa Clara, CA 95054, U.S.A.
+ All Rights Reserved.
+ </i></small>
+ </body>
+ </html>
+ </xsl:if>
+ </xsl:template>
+
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/function.html.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/help-doc.html.xsl
===================================================================
--- trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/help-doc.html.xsl (rev 0)
+++ trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/help-doc.html.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,235 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : help-doc.html.xsl
+ Created on : October 2, 2002, 5:37 PM
+ Author : mroth
+ Description:
+ Creates the help-doc page for Tag Library Documentation Generator
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <HTML>
+ <HEAD>
+ <TITLE>
+ API Help (<xsl:value-of select="/javaee:tlds/javaee:config/javaee:window-title"/>)
+ </TITLE>
+ <LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"/>
+ </HEAD>
+ <SCRIPT>
+ function asd() {
+ parent.document.title="API Help (<xsl:value-of select="normalize-space(/javaee:tlds/javaee:config/javaee:window-title)"/>)";
+ }
+ </SCRIPT>
+ <BODY BGCOLOR="white" onload="asd();">
+ <a name="navbar_top"><!-- --></a>
+ <table border="0" width="100%" cellpadding="1" cellspacing="0">
+ <tr>
+ <td COLSPAN="3" BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+ <a NAME="navbar_top_firstrow"><!-- --></a>
+ <table BORDER="0" CELLPADDING="0" CELLSPACING="3">
+ <tr ALIGN="center" VALIGN="top">
+ <td BGCOLOR="#FFFFFF" CLASS="NavBarCell1">  <a href="overview-summary.html"><font CLASS="NavBarFont1"><b>Overview</b></font></a> </td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <font CLASS="NavBarFont1"> Library </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <font CLASS="NavBarFont1"> Tag </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1Rev">  <font CLASS="NavBarFont1Rev"><b>Help</b></font> </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top" ROWSPAN="3"><em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+  PREV 
+  NEXT 
+ </font></td>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+  <a HREF="index.html" TARGET="_top"><b>FRAMES</b></a> 
+  <a HREF="help-doc.html" TARGET="_top"><b>NO FRAMES</b></a> 
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="alltags-noframe.html" TARGET=""><B>All Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="alltags-noframe.html" TARGET=""><b>All Tags</b></a>
+ </noscript>
+ </font></td>
+ </tr>
+ </table>
+ <HR/>
+ <CENTER>
+ <H1>How This Tag Library Document Is Organized</H1>
+ </CENTER>
+ This TLD (Tag Library Descriptor) document has pages corresponding
+ to the items in the navigation bar, described as follows.
+ <H3>Overview</H3>
+ <BLOCKQUOTE>
+ <P/>
+ The <A HREF="overview-summary.html">Overview</A> page is the front
+ page of this TLD document and provides a list of all tag libraries
+ with a summary for each.
+ </BLOCKQUOTE>
+ <H3>Library</H3>
+ <BLOCKQUOTE>
+ <P/>
+ Each tag library has a page that contains a list of its
+ validator, listeners, tags, and functions, with a summary for each.
+ This page can contain four categories:
+ <UL>
+ <li>Validator</li>
+ <li>Listeners</li>
+ <li>Tags</li>
+ <li>Functions</li>
+ </UL>
+ </BLOCKQUOTE>
+ <H3>Validator</H3>
+ <BLOCKQUOTE>
+ <P/>
+ A tag library can have at most one validator. If a tag library
+ has a validator, it has its own page describing the validator,
+ the class that implements the validator, and the available
+ initialization parameters.
+ </BLOCKQUOTE>
+ <h3>Listeners</h3>
+ <blockquote>
+ <p/>
+ A tag library can have zero or more listeners. If a tag library
+ has at least one listener, a page is generated that lists all
+ listener classes registered for the tag library.
+ </blockquote>
+ <h3>Tags</h3>
+ <blockquote>
+ <p/>
+ A tag library can have zero or more tags. Each tag has its own
+ page that describes the tag, its display name, its unique action
+ name, the class that implements the tag, the TagExtraInfo class,
+ the body content type, scripting variable information, attributes,
+ whether the tag supports dynamic attributes, and an optional
+ example use of the tag.
+ </blockquote>
+ <h3>Functions</h3>
+ <blockquote>
+ <p/>
+ A tag library can contain zero or more EL functions. If a tag
+ library has at least one function, a page is generated that lists
+ all functions, the class that implements the function, the
+ function signature, and an optional example use of the function.
+ </blockquote>
+ <!--
+ <H3>Index</H3>
+ <BLOCKQUOTE>
+ The <A HREF="index-files/index-1.html">Index</A> contains an
+ alphabetic list of all validators, listeners, tags, functions,
+ variables, and attributes.
+ </BLOCKQUOTE>
+ -->
+ <H3>Prev/Next</H3>
+ <blockquote>
+ These links take you to the next or previous validator, listener,
+ tag, function, or related page.
+ </blockquote>
+ <H3>Frames/No Frames</H3>
+ <blockquote>
+ These links show and hide the HTML frames. All pages are available
+ with or without frames.
+ </blockquote>
+ <BR/>
+ <HR/>
+ <a name="navbar_bottom"><!-- --></a>
+ <table border="0" width="100%" cellpadding="1" cellspacing="0">
+ <tr>
+ <td COLSPAN="3" BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+ <a NAME="navbar_bottom_firstrow"><!-- --></a>
+ <table BORDER="0" CELLPADDING="0" CELLSPACING="3">
+ <tr ALIGN="center" VALIGN="top">
+ <td BGCOLOR="#FFFFFF" CLASS="NavBarCell1">  <a href="overview-summary.html"><font CLASS="NavBarFont1"><b>Overview</b></font></a> </td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <font CLASS="NavBarFont1"> Library </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <font CLASS="NavBarFont1"> Tag </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1Rev">  <font CLASS="NavBarFont1Rev"><b>Help</b></font> </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top" ROWSPAN="3"><em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+  PREV 
+  NEXT 
+ </font></td>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+  <a HREF="index.html" TARGET="_top"><b>FRAMES</b></a> 
+  <a HREF="help-doc.html" TARGET="_top"><b>NO FRAMES</b></a> 
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="alltags-noframe.html" TARGET=""><B>All Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="alltags-noframe.html" TARGET=""><b>All Tags</b></a>
+ </noscript>
+ </font></td>
+ </tr>
+ </table>
+ <HR/>
+ <small><i>
+ Output Generated by
+ <a href="http://taglibrarydoc.dev.java.net/" target="_blank">Tag Library Documentation Generator</a>.
+ Java, JSP, and JavaServer Pages are trademarks or
+ registered trademarks of Sun Microsystems, Inc. in the US and other
+ countries. Copyright 2002-4 Sun Microsystems, Inc.
+ 4150 Network Circle
+ Santa Clara, CA 95054, U.S.A.
+ All Rights Reserved.
+ </i></small>
+ </BODY>
+ </HTML>
+ </xsl:template>
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/help-doc.html.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/index.html.xsl
===================================================================
--- trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/index.html.xsl (rev 0)
+++ trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/index.html.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : index.html.xsl
+ Created on : October 1, 2002, 5:37 PM
+ Author : mroth
+ Description:
+ Creates the index page for Tag Library Documentation Generator
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <html>
+ <head>
+ <title>
+ <xsl:value-of select="/javaee:tlds/javaee:config/javaee:window-title"/>
+ </title>
+ </head>
+ <frameset cols="20%,80%">
+ <frameset rows="30%,70%">
+ <frame src="overview-frame.html" name="tldListFrame"/>
+ <frame src="alltags-frame.html" name="tldFrame"/>
+ </frameset>
+ <frame src="overview-summary.html" name="tagFrame"/>
+ </frameset>
+ <noframes>
+ <h2>Frame Alert</h2>
+ <p/>
+ This document is designed to be viewed using the frames feature.
+ If you see this message, you are using a non-frame-capable web
+ client.
+ <br/>
+ Link to <a href="overview-summary.html">Non-frame version.</a>
+ </noframes>
+ </html>
+ </xsl:template>
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/index.html.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/overview-frame.html.xsl
===================================================================
--- trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/overview-frame.html.xsl (rev 0)
+++ trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/overview-frame.html.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,114 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : overview-frame.html.xsl
+ Created on : October 1, 2002, 5:37 PM
+ Author : mroth
+ Description:
+ Creates the overview frame (upper left corner), listing all tag
+ libraries included in this generation.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <html>
+ <head>
+ <title>
+ Overview (<xsl:value-of select="/javaee:tlds/javaee:config/javaee:window-title"/>)
+ </title>
+ <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"/>
+ </head>
+ <script>
+ function asd() {
+ parent.document.title="Overview (<xsl:value-of select="normalize-space(/javaee:tlds/javaee:config/javaee:window-title)"/>)";
+ }
+ </script>
+ <body bgcolor="white" onload="asd();">
+ <table border="0" width="100%">
+ <tr>
+ <td nowrap="true">
+ <font size="+1" class="FrameTitleFont">
+ <b><xsl:value-of select="/javaee:tlds/javaee:config/javaee:doc-title"/></b>
+ </font>
+ </td>
+ </tr>
+ </table>
+ <table border="0" width="100%">
+ <tr>
+ <td nowrap="true">
+ <font class="FrameItemFont">
+ <a href="alltags-frame.html" target="tldFrame"><xsl:text>All Tags / Functions</xsl:text></a>
+ </font>
+ <p/>
+ <font size="+1" class="FrameHeadingFont">
+ Tag Libraries
+ </font>
+ <br/>
+ <xsl:apply-templates select="javaee:tlds/javaee:taglib"/>
+ </td>
+ </tr>
+ </table>
+ <p/>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="javaee:taglib">
+ <font class="FrameItemFont">
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="javaee:short-name"/>/tld-frame.html</xsl:attribute>
+ <xsl:attribute name="target">tldFrame</xsl:attribute>
+ <xsl:choose>
+ <xsl:when test="javaee:display-name!=''">
+ <xsl:value-of select="javaee:display-name"/>
+ </xsl:when>
+ <xsl:when test="javaee:short-name!=''">
+ <xsl:value-of select="javaee:short-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:element>
+ </font>
+ <br/>
+ </xsl:template>
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/overview-frame.html.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/overview-summary.html.xsl
===================================================================
--- trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/overview-summary.html.xsl (rev 0)
+++ trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/overview-summary.html.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,208 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : overview-summary.html.xsl
+ Created on : October 1, 2002, 5:37 PM
+ Author : mroth
+ Description:
+ Creates an overview summary (right frame), listing all tag
+ libraries included in this generation.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <html>
+ <head>
+ <title>
+ Overview (<xsl:value-of select="/javaee:tlds/javaee:config/javaee:window-title"/>)
+ </title>
+ <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"/>
+ </head>
+ <script>
+ function asd() {
+ parent.document.title="Overview (<xsl:value-of select="normalize-space(/javaee:tlds/javaee:config/javaee:window-title)"/>)";
+ }
+ </script>
+ <body bgcolor="white" onload="asd();">
+ <!-- =========== START OF NAVBAR =========== -->
+ <a name="navbar_top"><!-- --></a>
+ <table border="0" width="100%" cellpadding="1" cellspacing="0">
+ <tr>
+ <td COLSPAN="3" BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+ <a NAME="navbar_top_firstrow"><!-- --></a>
+ <table BORDER="0" CELLPADDING="0" CELLSPACING="3">
+ <tr ALIGN="center" VALIGN="top">
+ <td BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <font CLASS="NavBarFont1Rev"><b> Overview </b></font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <font CLASS="NavBarFont1"> Library </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <font CLASS="NavBarFont1"> Tag </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a HREF="help-doc.html"><font CLASS="NavBarFont1"><b>Help</b></font></a> </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top" ROWSPAN="3"><em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+ <!-- PREV -->
+ <!-- NEXT -->
+ </font></td>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+  <a HREF="index.html" TARGET="_top"><b>FRAMES</b></a> 
+  <a HREF="overview-summary.html" TARGET="_top"><b>NO FRAMES</b></a> 
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="alltags-noframe.html" TARGET=""><B>All Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="alltags-noframe.html" TARGET=""><b>All Tags</b></a>
+ </noscript>
+ </font></td>
+ </tr>
+ </table>
+ <!-- =========== END OF NAVBAR =========== -->
+ <hr/>
+ <center>
+ <h2><xsl:value-of select="/javaee:tlds/javaee:config/javaee:doc-title"/></h2>
+ </center>
+ <table BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
+ <tr BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+ <td COLSPAN="2"><font SIZE="+2">
+ <b>Tag Libraries</b>
+ </font></td>
+ </tr>
+ <xsl:apply-templates select="/javaee:tlds/javaee:taglib"/>
+ </table>
+ <p/>
+ <hr/>
+ <!-- =========== START OF NAVBAR =========== -->
+ <a name="navbar_bottom"><!-- --></a>
+ <table border="0" width="100%" cellpadding="1" cellspacing="0">
+ <tr>
+ <td COLSPAN="3" BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+ <a NAME="navbar_bottom_firstrow"><!-- --></a>
+ <table BORDER="0" CELLPADDING="0" CELLSPACING="3">
+ <tr ALIGN="center" VALIGN="top">
+ <td BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <font CLASS="NavBarFont1Rev"><b> Overview </b></font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <font CLASS="NavBarFont1"> Library </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <font CLASS="NavBarFont1"> Tag </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a HREF="help-doc.html"><font CLASS="NavBarFont1"><b>Help</b></font></a> </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top" ROWSPAN="3"><em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+ <!-- PREV -->
+ <!-- NEXT -->
+ </font></td>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+  <a HREF="index.html" TARGET="_top"><b>FRAMES</b></a> 
+  <a HREF="overview-summary.html" TARGET="_top"><b>NO FRAMES</b></a> 
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="alltags-noframe.html" TARGET=""><B>All Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="alltags-noframe.html" TARGET=""><b>All Tags</b></a>
+ </noscript>
+ </font></td>
+ </tr>
+ </table>
+ <!-- =========== END OF NAVBAR =========== -->
+ <hr/>
+ <small><i>
+ Output Generated by
+ <a href="http://taglibrarydoc.dev.java.net/" target="_blank">Tag Library Documentation Generator</a>.
+ Java, JSP, and JavaServer Pages are trademarks or
+ registered trademarks of Sun Microsystems, Inc. in the US and other
+ countries. Copyright 2002-4 Sun Microsystems, Inc.
+ 4150 Network Circle
+ Santa Clara, CA 95054, U.S.A.
+ All Rights Reserved.
+ </i></small>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template match="javaee:taglib">
+ <tr BGCOLOR="white" valign="top" CLASS="TableRowColor">
+ <td WIDTH="20%"><b>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="javaee:short-name"/>/tld-summary.html</xsl:attribute>
+ <xsl:choose>
+ <xsl:when test="javaee:display-name!=''">
+ <xsl:value-of select="javaee:display-name"/>
+ </xsl:when>
+ <xsl:when test="javaee:short-name!=''">
+ <xsl:value-of select="javaee:short-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:element>
+ </b></td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:description!=''">
+ <pre>
+ <xsl:value-of select="javaee:description" disable-output-escaping="yes"/>
+ </pre>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>No Description</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:template>
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/overview-summary.html.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/stylesheet.css
===================================================================
--- trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/stylesheet.css (rev 0)
+++ trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/stylesheet.css 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,60 @@
+/* Javadoc style sheet */
+
+/*
+ * <license>
+ * Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are met:
+ *
+ * * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * * Neither the name of Sun Microsystems, Inc. nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ * ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * </license>
+ */
+
+/* Define colors, fonts and other style attributes here to override the defaults */
+
+/* Page background color */
+body { background-color: #FFFFFF }
+
+/* Table colors */
+.TableHeadingColor { background: #CCCCFF } /* Dark mauve */
+.TableSubHeadingColor { background: #EEEEFF } /* Light mauve */
+.TableRowColor { background: #FFFFFF } /* White */
+
+/* Font used in left-hand frame lists */
+.FrameTitleFont { font-size: 10pts; font-family: Helvetica, Arial, san-serif }
+.FrameHeadingFont { font-size: 10pts; font-family: Helvetica, Arial, san-serif }
+.FrameItemFont { font-size: 10pts; font-family: Helvetica, Arial, san-serif }
+
+/* Example of smaller, sans-serif font in frames */
+/* .FrameItemFont { font-size: 10pt; font-family: Helvetica, Arial, sans-serif } */
+
+/* Navigation bar fonts and colors */
+.NavBarCell1 { background-color:#EEEEFF;}/* Light mauve */
+.NavBarCell1Rev { background-color:#00008B;}/* Dark Blue */
+.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;}
+.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;}
+
+.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;}
+.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;}
+
Property changes on: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/stylesheet.css
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tag.html.xsl
===================================================================
--- trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tag.html.xsl (rev 0)
+++ trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tag.html.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,317 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : tag.html.xsl
+ Created on : December 18, 2002, 5:22 PM
+ Author : mroth
+ Description:
+ Creates the tag detail page (right frame), listing the known
+ information for a given tag in a tag library.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
+
+ <xsl:param name="tlddoc-shortName">default</xsl:param>
+ <xsl:param name="tlddoc-tagName">default</xsl:param>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <xsl:apply-templates select="javaee:tlds/javaee:taglib"/>
+ </xsl:template>
+
+ <xsl:template match="javaee:taglib">
+ <xsl:if test="javaee:short-name=$tlddoc-shortName">
+ <xsl:apply-templates select="javaee:tag|javaee:tag-file"/>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag|javaee:tag-file">
+ <xsl:if test="javaee:name=$tlddoc-tagName">
+ <xsl:variable name="tldname">
+ <xsl:choose>
+ <xsl:when test="../javaee:display-name!=''">
+ <xsl:value-of select="../javaee:display-name"/>
+ </xsl:when>
+ <xsl:when test="../javaee:short-name!=''">
+ <xsl:value-of select="../javaee:short-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="title">
+ <xsl:value-of select="javaee:name"/>
+ (<xsl:value-of select="/javaee:tlds/javaee:config/javaee:window-title"/>)
+ </xsl:variable>
+
+ <!-- Tag Information -->
+ <table class="doctable" cellpadding="3" cellspacing="0" width="100%">
+ <tr class="TableHeadingColor">
+ <td colspan="2">
+ <font size="+2">
+ <b>Tag Information</b>
+ </font>
+ </td>
+ </tr>
+ <tr>
+ <td>Tag Class</td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:tag-class!=''">
+ <xsl:value-of select="javaee:tag-class"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ <tr>
+ <td>TagExtraInfo Class</td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:tei-class!=''">
+ <xsl:value-of select="javaee:tei-class"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ <tr>
+ <td>Body Content</td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:body-content!=''">
+ <xsl:value-of select="javaee:body-content"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ <tr>
+ <td>Display Name</td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:display-name!=''">
+ <xsl:value-of select="javaee:display-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>None</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </table>
+
+ <!-- Attribute Information -->
+ <table class="doctable" cellpadding="3" cellspacing="0" width="100%">
+ <tr class="TableHeadingColor">
+ <td colspan="5">
+ <font size="+2">
+ <b>Attributes</b>
+ </font>
+ </td>
+ </tr>
+ <xsl:choose>
+ <xsl:when test="count(javaee:attribute)>0">
+ <tr>
+ <td><b>Name</b></td>
+ <td><b>Required</b></td>
+ <td><b>Request-time</b></td>
+ <td><b>Type</b></td>
+ <td><b>Description</b></td>
+ </tr>
+ <xsl:apply-templates select="javaee:attribute"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <td colspan="5"><i>No Attributes Defined.</i></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </table>
+
+ <!-- Variable Information -->
+ <table border="1" cellpadding="3" cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ <td colspan="5">
+ <font size="+2">
+ <b>Variables</b>
+ </font>
+ </td>
+ </tr>
+ <xsl:choose>
+ <xsl:when test="count(javaee:variable)>0">
+ <tr>
+ <td><b>Name</b></td>
+ <td><b>Type</b></td>
+ <td><b>Declare</b></td>
+ <td><b>Scope</b></td>
+ <td><b>Description</b></td>
+ </tr>
+ <xsl:apply-templates select="javaee:variable"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <td colspan="2"><i>No Variables Defined.</i></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </table>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="javaee:attribute">
+ <tr valign="top">
+ <td><xsl:apply-templates select="javaee:name"/></td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:required!=''">
+ <xsl:value-of select="javaee:required"/>
+ </xsl:when>
+ <xsl:otherwise>false</xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:rtexprvalue!=''">
+ <xsl:value-of select="javaee:rtexprvalue"/>
+ </xsl:when>
+ <xsl:otherwise>false</xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:deferred-value">
+ <xsl:choose>
+ <xsl:when test="javaee:deferred-value/javaee:type">
+ <code>javax.el.ValueExpression</code>
+ <br/>(<i>must evaluate to </i><code><xsl:value-of
+ select="javaee:deferred-value/javaee:type"/></code>)
+ </xsl:when>
+ <xsl:otherwise>
+ <code>javax.el.ValueExpression</code>
+ <br/>(<i>must evaluate to </i><code>java.lang.Object</code>)
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="javaee:deferred-method">
+ <xsl:choose>
+ <xsl:when test="javaee:deferred-method/javaee:method-signature">
+ <code>javax.el.MethodExpression</code>
+ <br/>(<i>signature must match </i><code><xsl:value-of
+ select="javaee:deferred-method/javaee:method-signature"/></code>)
+ </xsl:when>
+ <xsl:otherwise>
+ <code>javax.el.MethodExpression</code>
+ <br/>(<i>signature must match </i><code>void methodname()</code>)
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
+ <xsl:when test="javaee:type!=''">
+ <code><xsl:value-of select="javaee:type"/></code>
+ </xsl:when>
+ <xsl:otherwise>
+ <code>java.lang.String</code>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:description!=''">
+ <xsl:value-of select="javaee:description" disable-output-escaping="yes"/>
+ </xsl:when>
+ <xsl:otherwise><i>No Description</i></xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="javaee:variable">
+ <tr>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:name-given!=''">
+ <xsl:value-of select="javaee:name-given"/>
+ </xsl:when>
+ <xsl:when test="javaee:name-from-attribute!=''">
+ <i>From attribute '<xsl:value-of select="javaee:name-from-attribute"/>'</i>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>Unknown</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:variable-class!=''">
+ <code><xsl:value-of select="javaee:variable-class"/></code>
+ </xsl:when>
+ <xsl:otherwise><code>java.lang.String</code></xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:declare!=''">
+ <xsl:value-of select="javaee:declare"/>
+ </xsl:when>
+ <xsl:otherwise>true</xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:scope!=''">
+ <xsl:value-of select="javaee:scope"/>
+ </xsl:when>
+ <xsl:otherwise>NESTED</xsl:otherwise>
+ </xsl:choose>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:description!=''">
+ <xsl:value-of select="javaee:description" disable-output-escaping="yes"/>
+ </xsl:when>
+ <xsl:otherwise><i>No Description</i></xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:template>
+
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tag.html.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld-frame.html.xsl
===================================================================
--- trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld-frame.html.xsl (rev 0)
+++ trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld-frame.html.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,188 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : tld-frame.html.xsl
+ Created on : December 18, 2002, 11:40 AM
+ Author : mroth
+ Description:
+ Creates the TLD frame (lower-left hand corner), listing the tags
+ and functions that are in this particular tag library.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <xsl:param name="tlddoc-shortName">default</xsl:param>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <xsl:apply-templates select="javaee:tlds/javaee:taglib"/>
+ </xsl:template>
+
+ <xsl:template match="javaee:taglib">
+ <xsl:if test="javaee:short-name=$tlddoc-shortName">
+ <xsl:variable name="tldname">
+ <xsl:choose>
+ <xsl:when test="javaee:display-name!=''">
+ <xsl:value-of select="javaee:display-name"/>
+ </xsl:when>
+ <xsl:when test="javaee:short-name!=''">
+ <xsl:value-of select="javaee:short-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="tldfull">
+ <xsl:value-of select="$tldname"/>
+ <xsl:choose>
+ <xsl:when test="javaee:description!=''">
+ (<xsl:value-of select="javaee:description" disable-output-escaping="yes"/>)
+ </xsl:when>
+ <xsl:otherwise>
+ No Description
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <html>
+ <head>
+ <title>
+ <xsl:value-of select="$tldfull"/>
+ </title>
+ <meta name="keywords" content="$tldfull"/>
+ <link rel="stylesheet" type="text/css" href="../stylesheet.css"
+ title="Style"/>
+ <script>
+ function asd()
+ {
+ parent.document.title="<xsl:value-of select="normalize-space($tldfull)"/>";
+ }
+ </script>
+ </head>
+ <body bgcolor="white" onload="asd();">
+ <font size="+1" class="FrameTitleFont">
+ <a href="tld-summary.html" target="tagFrame">
+ <xsl:value-of select="$tldname"/>
+ </a>
+ </font>
+ <table border="0" width="100%">
+ <xsl:if test="(count(javaee:tag)+count(javaee:tag-file))>0">
+ <tr>
+ <td nowrap="true">
+ <font size="+1" class="FrameHeadingFont">
+ Tags
+ </font> 
+ <font class="FrameItemFont">
+ <xsl:apply-templates select="javaee:tag|javaee:tag-file"/>
+ </font>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="count(javaee:function)>0">
+ <tr>
+ <td nowrap="true">
+ <font size="+1" class="FrameHeadingFont">
+ Functions
+ </font> 
+ <font class="FrameItemFont">
+ <xsl:apply-templates select="javaee:function"/>
+ </font>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="count(javaee:validator)>0">
+ <tr>
+ <td nowrap="true">
+ <font size="+1" class="FrameHeadingFont">
+ Validator
+ </font> 
+ <font class="FrameItemFont">
+ <xsl:apply-templates select="javaee:validator"/>
+ </font>
+ </td>
+ </tr>
+ </xsl:if>
+ <xsl:if test="count(javaee:listener)>0">
+ <tr>
+ <td nowrap="true">
+ <font size="+1" class="FrameHeadingFont">
+ Listeners
+ </font> 
+ <font class="FrameItemFont">
+ <xsl:apply-templates select="javaee:listener"/>
+ </font>
+ </td>
+ </tr>
+ </xsl:if>
+ </table>
+ <!-- <table ... -->
+ </body>
+ </html>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag|javaee:tag-file">
+ <br/>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="javaee:name"/>.html</xsl:attribute>
+ <xsl:attribute name="target">tagFrame</xsl:attribute>
+ <xsl:value-of select="../javaee:short-name"/>:<xsl:value-of select="javaee:name"/>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="javaee:function">
+ <br/>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="javaee:name"/>.fn.html</xsl:attribute>
+ <xsl:attribute name="target">tagFrame</xsl:attribute>
+ <i><xsl:value-of select="../javaee:short-name"/>:<xsl:value-of select="javaee:name"/>()</i>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="javaee:validator">
+ <br/>
+ <xsl:value-of select="javaee:validator-class"/>
+ </xsl:template>
+
+ <xsl:template match="javaee:listener">
+ <br/>
+ <xsl:value-of select="javaee:listener-class"/>
+ </xsl:template>
+
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld-frame.html.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld-summary.html.xsl
===================================================================
--- trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld-summary.html.xsl (rev 0)
+++ trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld-summary.html.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,445 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+ Document : tld-summary.html.xsl
+ Created on : December 18, 2002, 3:46 PM
+ Author : mroth
+ Description:
+ Creates the TLD summary (right frame), listing the tags
+ and functions that are in this particular tag library and
+ their descriptions.
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fo="http://www.w3.org/1999/XSL/Format">
+
+ <xsl:output method="html" indent="yes"/>
+
+ <xsl:param name="tlddoc-shortName">default</xsl:param>
+
+ <!-- template rule matching source root element -->
+ <xsl:template match="/">
+ <xsl:apply-templates select="javaee:tlds/javaee:taglib"/>
+ </xsl:template>
+
+ <xsl:template match="javaee:taglib">
+ <xsl:if test="javaee:short-name=$tlddoc-shortName">
+ <xsl:variable name="tldname">
+ <xsl:choose>
+ <xsl:when test="javaee:display-name!=''">
+ <xsl:value-of select="javaee:display-name"/>
+ </xsl:when>
+ <xsl:when test="javaee:short-name!=''">
+ <xsl:value-of select="javaee:short-name"/>
+ </xsl:when>
+ <xsl:otherwise>
+ Unnamed TLD
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+ <xsl:variable name="title">
+ <xsl:value-of select="$tldname"/>
+ (<xsl:value-of select="/javaee:tlds/javaee:config/javaee:window-title"/>)
+ </xsl:variable>
+ <html>
+ <head>
+ <title><xsl:value-of select="$title"/></title>
+ <link rel="stylesheet" type="text/css" href="../stylesheet.css"
+ title="styie"/>
+ </head>
+ <script>
+ function asd()
+ {
+ parent.document.title="<xsl:value-of select="normalize-space($title)"/>";
+ }
+ </script>
+ <body bgcolor="white" onload="asd();">
+ <!-- =========== START OF NAVBAR =========== -->
+ <a name="navbar_top"><!-- --></a>
+ <table border="0" width="100%" cellpadding="1" cellspacing="0">
+ <tr>
+ <td COLSPAN="3" BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+ <a NAME="navbar_top_firstrow"><!-- --></a>
+ <table BORDER="0" CELLPADDING="0" CELLSPACING="3">
+ <tr ALIGN="center" VALIGN="top">
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a href="../overview-summary.html"><font CLASS="NavBarFont1"><b>Overview</b></font></a> </td>
+ <td BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev">  <font CLASS="NavBarFont1Rev"> Library </font> </td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <font CLASS="NavBarFont1"> Tag </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a HREF="../help-doc.html"><font CLASS="NavBarFont1"><b>Help</b></font></a> </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top" ROWSPAN="3"><em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+ <!-- PREV TAGLIB -->
+ <!-- NEXT TAGLIB -->
+ </font></td>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+  <a HREF="../index.html" TARGET="_top"><b>FRAMES</b></a> 
+  <a HREF="tld-summary.html" TARGET="_top"><b>NO FRAMES</b></a> 
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="alltags-noframe.html" TARGET=""><B>All Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="../alltags-noframe.html" TARGET=""><b>All Tags</b></a>
+ </noscript>
+ </font></td>
+ </tr>
+ </table>
+ <!-- =========== END OF NAVBAR =========== -->
+
+ <hr/>
+ <h2><xsl:value-of select="$tldname"/></h2>
+ <hr/>
+ <xsl:if test="(javaee:uri!='') and (javaee:short-name!='')">
+ <b>Standard Syntax:</b><br/>
+ <code>
+     
+ <xsl:choose>
+ <xsl:when test='starts-with(javaee:uri,"/WEB-INF/tags")'>
+ <%@ taglib prefix="<xsl:value-of select="javaee:short-name"/>" tagdir="<xsl:value-of select="javaee:uri"/>" %><br/>
+ </xsl:when>
+ <xsl:otherwise>
+ <%@ taglib prefix="<xsl:value-of select="javaee:short-name"/>" uri="<xsl:value-of select="javaee:uri"/>" %><br/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </code>
+ <br/>
+ <b>XML Syntax:</b><br/>
+ <code>
+     
+ <xsl:choose>
+ <xsl:when test='starts-with(javaee:uri,"/WEB-INF/tags")'>
+ <anyxmlelement xmlns:<xsl:value-of select="javaee:short-name"/>="urn:jsptagdir:<xsl:value-of select="javaee:uri"/>" /><br/>
+ </xsl:when>
+ <xsl:when test='starts-with(javaee:uri,"/")'>
+ <anyxmlelement xmlns:<xsl:value-of select="javaee:short-name"/>="urn:jsptld:<xsl:value-of select="javaee:uri"/>" /><br/>
+ </xsl:when>
+ <xsl:otherwise>
+ <anyxmlelement xmlns:<xsl:value-of select="javaee:short-name"/>="<xsl:value-of select="javaee:uri"/>" /><br/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </code>
+ <hr/>
+ </xsl:if>
+ <xsl:choose>
+ <xsl:when test="javaee:description!=''">
+ <pre>
+ <xsl:value-of select="javaee:description" disable-output-escaping="yes"/>
+ </pre>
+ </xsl:when>
+ <xsl:otherwise>
+ No Description
+ </xsl:otherwise>
+ </xsl:choose>
+ <p/>
+ <table border="1" cellpadding="3" cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ <td colspan="2">
+ <font size="+2"><b>Tag Library Information</b></font>
+ </td>
+ </tr>
+ <tr>
+ <td>Display Name</td>
+ <xsl:choose>
+ <xsl:when test="javaee:display-name!=''">
+ <td><xsl:value-of select="javaee:display-name"/></td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td><i>None</i></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tr>
+ <tr>
+ <td>Version</td>
+ <xsl:choose>
+ <xsl:when test="javaee:tlib-version!=''">
+ <td><xsl:value-of select="javaee:tlib-version"/></td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td><i>None</i></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tr>
+ <tr>
+ <td>Short Name</td>
+ <xsl:choose>
+ <xsl:when test="javaee:short-name!=''">
+ <td><xsl:value-of select="javaee:short-name"/></td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td><i>None</i></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tr>
+ <tr>
+ <td>URI</td>
+ <xsl:choose>
+ <xsl:when test="javaee:uri!=''">
+ <td><xsl:value-of select="javaee:uri"/></td>
+ </xsl:when>
+ <xsl:otherwise>
+ <td><i>None</i></td>
+ </xsl:otherwise>
+ </xsl:choose>
+ </tr>
+ </table>
+  
+ <p/>
+ <!-- tags and tag files -->
+ <xsl:if test="(count(javaee:tag)+count(javaee:tag-file)) > 0">
+ <table border="1" cellpadding="3" cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ <td colspan="2">
+ <font size="+2"><b>Tag Summary</b></font>
+ </td>
+ </tr>
+ <xsl:apply-templates select="javaee:tag|javaee:tag-file"/>
+ </table>
+  
+ <p/>
+ </xsl:if>
+ <!-- functions -->
+ <xsl:if test="count(javaee:function) > 0">
+ <table border="1" cellpadding="3" cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ <td colspan="3">
+ <font size="+2"><b>Function Summary</b></font>
+ </td>
+ </tr>
+ <xsl:apply-templates select="javaee:function"/>
+ </table>
+  
+ <p/>
+ </xsl:if>
+ <!-- validators -->
+ <xsl:if test="count(javaee:validator) > 0">
+ <table border="1" cellpadding="3" cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ <td colspan="2">
+ <font size="+2"><b>Tag Library Validator</b></font>
+ </td>
+ </tr>
+ <xsl:apply-templates select="javaee:validator"/>
+ </table>
+  
+ <p/>
+ </xsl:if>
+ <!-- listeners -->
+ <xsl:if test="count(javaee:listener) > 0">
+ <table border="1" cellpadding="3" cellspacing="0" width="100%">
+ <tr bgcolor="#CCCCFF" class="TableHeadingColor">
+ <td>
+ <font size="+2"><b>Listeners</b></font>
+ </td>
+ </tr>
+ <xsl:apply-templates select="javaee:listener"/>
+ </table>
+  
+ <p/>
+ </xsl:if>
+ <!-- taglib-extensions -->
+
+ <!-- =========== START OF NAVBAR =========== -->
+ <a name="navbar_bottom"><!-- --></a>
+ <table border="0" width="100%" cellpadding="1" cellspacing="0">
+ <tr>
+ <td COLSPAN="3" BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+ <a NAME="navbar_bottom_firstrow"><!-- --></a>
+ <table BORDER="0" CELLPADDING="0" CELLSPACING="3">
+ <tr ALIGN="center" VALIGN="top">
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a href="../overview-summary.html"><font CLASS="NavBarFont1"><b>Overview</b></font></a> </td>
+ <td BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev">  <font CLASS="NavBarFont1Rev"> Library </font> </td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <font CLASS="NavBarFont1"> Tag </font></td>
+ <td BGCOLOR="#EEEEFF" CLASS="NavBarCell1">  <a HREF="../help-doc.html"><font CLASS="NavBarFont1"><b>Help</b></font></a> </td>
+ </tr>
+ </table>
+ </td>
+ <td ALIGN="right" VALIGN="top" ROWSPAN="3"><em>
+ </em>
+ </td>
+ </tr>
+ <tr>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+ <!-- PREV TAGLIB -->
+ <!-- NEXT TAGLIB -->
+ </font></td>
+ <td BGCOLOR="white" CLASS="NavBarCell2"><font SIZE="-2">
+  <a HREF="../index.html" TARGET="_top"><b>FRAMES</b></a> 
+  <a HREF="tld-summary.html" TARGET="_top"><b>NO FRAMES</b></a> 
+ <script>
+ <!--
+ if(window==top) {
+ document.writeln('<A HREF="alltags-noframe.html" TARGET=""><B>All Tags</B></A>');
+ }
+ //-->
+ </script>
+ <noscript>
+ <a HREF="../alltags-noframe.html" TARGET=""><b>All Tags</b></a>
+ </noscript>
+ </font></td>
+ </tr>
+ </table>
+ <!-- =========== END OF NAVBAR =========== -->
+ <hr/>
+ <small><i>
+ Java, JSP, and JavaServer Pages are trademarks or registered
+ trademarks of Sun Microsystems, Inc. in the US and other countries.
+ Copyright 2002-3 Sun Microsystems, Inc.
+ 4150 Network Circle
+ Santa Clara, CA 95054, U.S.A.
+ All Rights Reserved.
+ </i></small>
+ </body>
+ </html>
+ </xsl:if>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag|javaee:tag-file">
+ <tr bgcolor="white" class="TableRowColor">
+ <td width="15%">
+ <b>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="javaee:name"/>.html</xsl:attribute>
+ <xsl:value-of select="javaee:name"/>
+ </xsl:element>
+ </b>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:description!=''">
+ <xsl:value-of select="javaee:description" disable-output-escaping="yes"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>No Description</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="javaee:function">
+ <tr bgcolor="white" class="TableRowColor">
+ <td width="15%" nowrap="" align="right">
+ <code><xsl:value-of select='substring-before(normalize-space(javaee:function-signature)," ")'/></code>
+ </td>
+ <td width="15%" nowrap="">
+ <code><b>
+ <xsl:element name="a">
+ <xsl:attribute name="href"><xsl:value-of select="javaee:name"/>.fn.html</xsl:attribute>
+ <xsl:value-of select="javaee:name"/>
+ </xsl:element>
+ </b>( <xsl:value-of select='substring-after(normalize-space(javaee:function-signature),"(")'/>
+ </code>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:description!=''">
+ <xsl:value-of select="javaee:description" disable-output-escaping="yes"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>No Description</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="javaee:validator">
+ <tr valign="top" bgcolor="white" class="TableRowColor">
+ <td width="15%">
+ <b><xsl:value-of select="javaee:validator-class"/></b>
+ </td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:description!=''">
+ <xsl:value-of select="javaee:description" disable-output-escaping="yes"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>No Description</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:if test="count(javaee:init-param)>0">
+ <blockquote>
+ <b>Initialization Parameters:</b><br/>
+ <table border="1">
+ <tr>
+ <td><b>Name</b></td>
+ <td><b>Value</b></td>
+ <td><b>Description</b></td>
+ </tr>
+ <xsl:apply-templates select="javaee:init-param"/>
+ </table>
+ </blockquote>
+ </xsl:if>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="javaee:init-param">
+ <tr valign="top">
+ <td><xsl:value-of select="javaee:param-name"/></td>
+ <td><xsl:value-of select="javaee:param-value"/></td>
+ <td>
+ <xsl:choose>
+ <xsl:when test="javaee:param-description!=''">
+ <xsl:value-of select="javaee:param-description"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <i>No Description</i>
+ </xsl:otherwise>
+ </xsl:choose>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template match="javaee:listener">
+ <tr valign="top" bgcolor="white" class="TableRowColor">
+ <td>
+ <b><xsl:value-of select="javaee:listener-class"/></b>
+ </td>
+ </tr>
+ </xsl:template>
+
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld-summary.html.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld1_1-tld1_2.xsl
===================================================================
--- trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld1_1-tld1_2.xsl (rev 0)
+++ trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld1_1-tld1_2.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+
+ Translates a JSP 1.1 TLD into a JSP 1.2 TLD, using the following
+ conversion rules:
+
+ 1. Change the document type definition for the TLD to:
+ <!DOCTYPE taglib
+ PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
+ "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
+ 2. Change the <tlibversion> element to <tlib-version>
+ 3. Change the optional <jspversion> element to <jsp-version>. If no
+ element exists, supply one that's set to 1.2
+ 4. Change the <shortname> element to <short-name>
+ 5. Preserve the original optional <uri> tag
+ 6. Change the optional <info> tag to <description>
+ 7. Preserve each tag/name
+ 8. Change each tag/tagclass to tag/tag-class
+ 9. Change each optional tag/teiclass to tag/tei-class
+ 10. Change each optional tag/bodycontent to tag/body-content
+ 11. Change each optional tag/info to tag/description
+ 12. Preserve each tag/attribute element and its contents.
+
+ Side-effect: Strips the id attributes
+
+ Author: Mark Roth
+
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:output method="xml" indent="yes"
+ doctype-system="http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd"
+ doctype-public="-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"/>
+
+ <xsl:template match="/taglib">
+ <taglib>
+ <xsl:apply-templates select="tlibversion"/>
+ <jsp-version>1.2</jsp-version>
+ <xsl:apply-templates select="shortname"/>
+ <xsl:apply-templates select="uri"/>
+ <xsl:apply-templates select="info"/>
+ <xsl:apply-templates select="tag"/>
+ </taglib>
+ </xsl:template>
+
+ <!-- Rename to tlib-version -->
+ <xsl:template match="tlibversion">
+ <tlib-version><xsl:apply-templates/></tlib-version>
+ </xsl:template>
+
+ <!-- Rename to jsp-version -->
+ <xsl:template match="jspversion">
+ <jsp-version><xsl:apply-templates/></jsp-version>
+ </xsl:template>
+
+ <!-- Rename to short-name -->
+ <xsl:template match="shortname">
+ <short-name><xsl:apply-templates/></short-name>
+ </xsl:template>
+
+ <!-- Preserve uri -->
+ <xsl:template match="uri">
+ <uri><xsl:apply-templates/></uri>
+ </xsl:template>
+
+ <!-- Rename to description -->
+ <xsl:template match="info">
+ <description><xsl:apply-templates/></description>
+ </xsl:template>
+
+ <xsl:template match="tag">
+ <tag>
+ <xsl:apply-templates select="name"/>
+ <xsl:apply-templates select="tagclass"/>
+ <xsl:apply-templates select="teiclass"/>
+ <xsl:apply-templates select="bodycontent"/>
+ <xsl:apply-templates select="info"/>
+ <xsl:apply-templates select="attribute"/>
+ </tag>
+ </xsl:template>
+
+ <!-- Preserve name -->
+ <xsl:template match="name">
+ <name><xsl:apply-templates/></name>
+ </xsl:template>
+
+ <!-- Rename to tag-class -->
+ <xsl:template match="tagclass">
+ <tag-class><xsl:apply-templates/></tag-class>
+ </xsl:template>
+
+ <!-- Rename to tei-class -->
+ <xsl:template match="teiclass">
+ <tei-class><xsl:apply-templates/></tei-class>
+ </xsl:template>
+
+ <!-- Rename to body-content -->
+ <xsl:template match="bodycontent">
+ <body-content><xsl:apply-templates/></body-content>
+ </xsl:template>
+
+ <!-- Rename to description -->
+ <xsl:template match="info">
+ <description><xsl:apply-templates/></description>
+ </xsl:template>
+
+ <!-- Preserve attribute -->
+ <xsl:template match="attribute">
+ <attribute>
+ <xsl:apply-templates/>
+ </attribute>
+ </xsl:template>
+
+ <xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld1_1-tld1_2.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld1_2-tld2_0.xsl
===================================================================
--- trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld1_2-tld2_0.xsl (rev 0)
+++ trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld1_2-tld2_0.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,290 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+
+ Translates a JSP 1.2 TLD into a JSP 2.0 TLD, using the following
+ conversion rules:
+
+ 1. Change the <taglib> element to read as follows:
+ <taglib xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+ http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd">
+ 2. Remove all id attributes from all elements.
+ 3. Remove <jsp-version> element and add an attribute to <taglib>
+ called 'version' with the value "2.0".
+ 4. Under <taglib>, if a <description> element exists, move it to
+ the top.
+ 5. Under <taglib>, if a <display-name> element exists, move it
+ to the top, after the <description> element.
+ 6. Under <taglib>, if a <small-icon> and/or <large-icon> element
+ exists, wrap them in an <icon> element and move it to the
+ top, after the <display-name> element.
+ 7. For each taglib/validator element, if a <description> element
+ exists, move it to the top, under <validator>.
+ 8. For each taglib/validator/init-param element, if a
+ <description> element exists, move it to the top, under
+ <init-param>.
+ 9. For each taglib/tag element, if a <description> element
+ exists, move it to the top, under <tag>.
+ 10. For each taglib/tag element, if a <display-name> element
+ exists, move it to the top, after the <description> element,
+ under <tag>.
+ 11. For each taglib/tag element, if a <small-icon> and/or
+ <large-icon> element exists, wrap them in an <icon> element
+ and move it to the top, after the <display-name> element,
+ under <tag>.
+ 12. For each taglib/tag element, if no <body-content> element
+ exists, supply a default value of "JSP"
+ 13. For each taglib/tag/variable element, if a <description>
+ element exists, move it to the top, under <variable>.
+ 14. For each taglib/tag/attribute element, if a <description>
+ element exists, move it to the top, under <attribute>.
+
+ Author: Mark Roth
+
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:output method="xml" indent="yes"/>
+
+ <xsl:template match="/taglib">
+ <xsl:element name="taglib" namespace="http://java.sun.com/xml/ns/j2ee">
+ <xsl:attribute name="xsi:schemaLocation" namespace="http://www.w3.org/2001/XMLSchema-instance">http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd</xsl:attribute>
+ <xsl:attribute name="version">2.0</xsl:attribute>
+ <xsl:apply-templates select="description"/>
+ <xsl:apply-templates select="display-name"/>
+ <xsl:if test="small-icon|large-icon">
+ <icon xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="small-icon"/>
+ <xsl:apply-templates select="large-icon"/>
+ </icon>
+ </xsl:if>
+ <xsl:apply-templates select="tlib-version"/>
+ <xsl:apply-templates select="short-name"/>
+ <xsl:apply-templates select="uri"/>
+ <xsl:apply-templates select="validator"/>
+ <xsl:apply-templates select="listener"/>
+ <xsl:apply-templates select="tag"/>
+ </xsl:element>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="description">
+ <description xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </description>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="display-name">
+ <display-name xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </display-name>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="tlib-version">
+ <tlib-version xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </tlib-version>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="short-name">
+ <short-name xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </short-name>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="uri">
+ <uri xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </uri>
+ </xsl:template>
+
+ <xsl:template match="validator">
+ <validator xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="description"/>
+ <xsl:apply-templates select="validator-class"/>
+ <xsl:apply-templates select="init-param"/>
+ </validator>
+ </xsl:template>
+
+ <xsl:template match="init-param">
+ <init-param xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="description"/>
+ <xsl:apply-templates select="param-name"/>
+ <xsl:apply-templates select="param-value"/>
+ </init-param>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="param-name">
+ <param-name xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </param-name>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="param-value">
+ <param-value xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </param-value>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="listener">
+ <listener xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="listener-class"/>
+ </listener>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="listener-class">
+ <listener-class xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </listener-class>
+ </xsl:template>
+
+ <xsl:template match="tag">
+ <tag xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="description"/>
+ <xsl:apply-templates select="display-name"/>
+ <xsl:if test="small-icon|large-icon">
+ <icon xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="small-icon"/>
+ <xsl:apply-templates select="large-icon"/>
+ </icon>
+ </xsl:if>
+ <xsl:apply-templates select="name"/>
+ <xsl:apply-templates select="tag-class"/>
+ <xsl:apply-templates select="tei-class"/>
+ <xsl:choose>
+ <xsl:when test="body-content">
+ <xsl:apply-templates select="body-content"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <!--
+ - Explicitly Insert the default body-content since this is
+ - now a required element
+ -->
+ <body-content xmlns="http://java.sun.com/xml/ns/j2ee">JSP</body-content>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:apply-templates select="variable"/>
+ <xsl:apply-templates select="attribute"/>
+ <xsl:apply-templates select="example"/>
+ </tag>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="name">
+ <name xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </name>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="tag-class">
+ <tag-class xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </tag-class>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="tei-class">
+ <tei-class xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </tei-class>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="body-content">
+ <body-content xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </body-content>
+ </xsl:template>
+
+ <xsl:template match="variable">
+ <variable xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="description"/>
+ <xsl:apply-templates select="name-given"/>
+ <xsl:apply-templates select="name-from-attribute"/>
+ <xsl:apply-templates select="variable-class"/>
+ <xsl:apply-templates select="declare"/>
+ <xsl:apply-templates select="scope"/>
+ </variable>
+ </xsl:template>
+
+ <xsl:template match="attribute">
+ <attribute xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates select="description"/>
+ <xsl:apply-templates select="name"/>
+ <xsl:apply-templates select="required"/>
+ <xsl:apply-templates select="rtexprvalue"/>
+ <xsl:apply-templates select="type"/>
+ </attribute>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="required">
+ <required xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </required>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="rtexprvalue">
+ <rtexprvalue xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </rtexprvalue>
+ </xsl:template>
+
+ <!-- Strip the id attribute: -->
+ <xsl:template match="example">
+ <example xmlns="http://java.sun.com/xml/ns/j2ee">
+ <xsl:apply-templates/>
+ </example>
+ </xsl:template>
+
+ <xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld1_2-tld2_0.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld2_0-tld2_1.xsl
===================================================================
--- trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld2_0-tld2_1.xsl (rev 0)
+++ trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld2_0-tld2_1.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+
+ Identity transformation (changing from the J2EE namespace
+ to the Java EE namespace), added for flexibility.
+
+ 1. Change the <taglib> element to read as follows:
+ <taglib xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
+ http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd">
+
+ Author: Mark Roth
+
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:j2ee="http://java.sun.com/xml/ns/j2ee">
+ <xsl:output method="xml" indent="yes"/>
+
+ <xsl:template match="/j2ee:taglib">
+ <xsl:element name="taglib" namespace="http://java.sun.com/xml/ns/javaee">
+ <xsl:attribute name="xsi:schemaLocation" namespace="http://www.w3.org/2001/XMLSchema-instance">http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd</xsl:attribute>
+ <xsl:attribute name="version">2.1</xsl:attribute>
+ <xsl:apply-templates select="*"/>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="j2ee:*">
+ <xsl:element name="{local-name()}" namespace="http://java.sun.com/xml/ns/javaee">
+ <xsl:copy-of select="@*"/>
+ <xsl:apply-templates/>
+ </xsl:element>
+ </xsl:template>
+
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld2_0-tld2_1.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld2_1-tld2_1.xsl
===================================================================
--- trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld2_1-tld2_1.xsl (rev 0)
+++ trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld2_1-tld2_1.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+
+<!--
+ - <license>
+ - Copyright (c) 2003-2004, Sun Microsystems, Inc.
+ - All rights reserved.
+ -
+ - Redistribution and use in source and binary forms, with or without
+ - modification, are permitted provided that the following conditions are met:
+ -
+ - * Redistributions of source code must retain the above copyright
+ - notice, this list of conditions and the following disclaimer.
+ - * Redistributions in binary form must reproduce the above copyright
+ - notice, this list of conditions and the following disclaimer in the
+ - documentation and/or other materials provided with the distribution.
+ - * Neither the name of Sun Microsystems, Inc. nor the names of its
+ - contributors may be used to endorse or promote products derived from
+ - this software without specific prior written permission.
+ -
+ - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ - "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ - TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+ - PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
+ - CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+ - EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+ - ROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ - LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ - NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ - SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ - </license>
+ -->
+
+<!--
+
+ Identity transformation, added for flexibility.
+
+ 1. Remove any tag-extension, function-extension and taglib-extension
+ elements.
+
+ Author: Mark Roth
+
+-->
+
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:javaee="http://java.sun.com/xml/ns/javaee">
+ <xsl:output method="xml" indent="yes"/>
+
+ <xsl:template match="/javaee:taglib">
+ <xsl:element name="taglib" namespace="http://java.sun.com/xml/ns/javaee">
+ <xsl:attribute name="xsi:schemaLocation"
+ namespace="http://www.w3.org/2001/XMLSchema-instance">http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd</xsl:attribute>
+ <xsl:attribute name="version">2.1</xsl:attribute>
+ <xsl:apply-templates select="*"/>
+ </xsl:element>
+ </xsl:template>
+
+ <xsl:template match="javaee:tag-extension">
+ </xsl:template>
+
+ <xsl:template match="javaee:function-extension">
+ </xsl:template>
+
+ <xsl:template match="javaee:taglib-extension">
+ </xsl:template>
+
+ <xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="text()">
+ <xsl:value-of select="normalize-space(.)" />
+ </xsl:template>
+
+</xsl:stylesheet>
Property changes on: trunk/docs/taglibxsl/target/classes/com/sun/tlddoc/resources/tld2_1-tld2_1.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/target/classes/org/richfaces/App.class
===================================================================
(Binary files differ)
Property changes on: trunk/docs/taglibxsl/target/classes/org/richfaces/App.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/docs/taglibxsl/target/surefire-reports/TEST-org.richfaces.AppTest.xml
===================================================================
--- trunk/docs/taglibxsl/target/surefire-reports/TEST-org.richfaces.AppTest.xml (rev 0)
+++ trunk/docs/taglibxsl/target/surefire-reports/TEST-org.richfaces.AppTest.xml 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<testsuite failures="0" time="0.016" errors="0" skipped="0" tests="1" name="org.richfaces.AppTest">
+ <properties>
+ <property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
+ <property name="sun.boot.library.path" value="/usr/local/jdk1.6.0_02/jre/lib/i386"/>
+ <property name="java.vm.version" value="1.6.0_02-b05"/>
+ <property name="java.vm.vendor" value="Sun Microsystems Inc."/>
+ <property name="java.vendor.url" value="http://java.sun.com/"/>
+ <property name="path.separator" value=":"/>
+ <property name="java.vm.name" value="Java HotSpot(TM) Server VM"/>
+ <property name="file.encoding.pkg" value="sun.io"/>
+ <property name="user.country" value="US"/>
+ <property name="sun.java.launcher" value="SUN_STANDARD"/>
+ <property name="sun.os.patch.level" value="unknown"/>
+ <property name="java.vm.specification.name" value="Java Virtual Machine Specification"/>
+ <property name="user.dir" value="/home/asmirnov/work/refactor/richfaces/docs/taglibxsl"/>
+ <property name="java.runtime.version" value="1.6.0_02-b05"/>
+ <property name="java.awt.graphicsenv" value="sun.awt.X11GraphicsEnvironment"/>
+ <property name="basedir" value="/home/asmirnov/work/refactor/richfaces/docs/taglibxsl"/>
+ <property name="java.endorsed.dirs" value="/usr/local/jdk1.6.0_02/jre/lib/endorsed"/>
+ <property name="os.arch" value="i386"/>
+ <property name="java.io.tmpdir" value="/tmp"/>
+ <property name="line.separator" value="
+"/>
+ <property name="java.vm.specification.vendor" value="Sun Microsystems Inc."/>
+ <property name="os.name" value="Linux"/>
+ <property name="sun.jnu.encoding" value="UTF-8"/>
+ <property name="java.library.path" value="/usr/local/jdk1.6.0_02/jre/lib/i386/server:/usr/local/jdk1.6.0_02/jre/lib/i386:/usr/local/jdk1.6.0_02/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib"/>
+ <property name="java.specification.name" value="Java Platform API Specification"/>
+ <property name="java.class.version" value="50.0"/>
+ <property name="sun.management.compiler" value="HotSpot Server Compiler"/>
+ <property name="os.version" value="2.6.22.4-65.fc7"/>
+ <property name="user.home" value="/home/asmirnov"/>
+ <property name="user.timezone" value=""/>
+ <property name="java.awt.printerjob" value="sun.print.PSPrinterJob"/>
+ <property name="file.encoding" value="UTF-8"/>
+ <property name="java.specification.version" value="1.6"/>
+ <property name="user.name" value="asmirnov"/>
+ <property name="java.class.path" value="/home/asmirnov/.m2/repository/org/codehaus/plexus/plexus-archiver/1.0-alpha-7/plexus-archiver-1.0-alpha-7.jar:/home/asmirnov/.m2/repository/org/apache/maven/surefire/surefire-api/2.3/surefire-api-2.3.jar:/home/asmirnov/.m2/repository/org/codehaus/plexus/plexus-container-default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.jar:/home/asmirnov/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar:/home/asmirnov/.m2/repository/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.jar:/home/asmirnov/.m2/repository/org/apache/maven/surefire/surefire-booter/2.3/surefire-booter-2.3.jar:/home/asmirnov/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar:/home/asmirnov/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar"/>
+ <property name="java.vm.specification.version" value="1.0"/>
+ <property name="sun.arch.data.model" value="32"/>
+ <property name="java.home" value="/usr/local/jdk1.6.0_02/jre"/>
+ <property name="java.specification.vendor" value="Sun Microsystems Inc."/>
+ <property name="user.language" value="en"/>
+ <property name="java.vm.info" value="mixed mode"/>
+ <property name="java.version" value="1.6.0_02"/>
+ <property name="java.ext.dirs" value="/usr/local/jdk1.6.0_02/jre/lib/ext:/usr/java/packages/lib/ext"/>
+ <property name="sun.boot.class.path" value="/usr/local/jdk1.6.0_02/jre/lib/resources.jar:/usr/local/jdk1.6.0_02/jre/lib/rt.jar:/usr/local/jdk1.6.0_02/jre/lib/sunrsasign.jar:/usr/local/jdk1.6.0_02/jre/lib/jsse.jar:/usr/local/jdk1.6.0_02/jre/lib/jce.jar:/usr/local/jdk1.6.0_02/jre/lib/charsets.jar:/usr/local/jdk1.6.0_02/jre/classes"/>
+ <property name="java.vendor" value="Sun Microsystems Inc."/>
+ <property name="localRepository" value="/home/asmirnov/.m2/repository"/>
+ <property name="file.separator" value="/"/>
+ <property name="java.vendor.url.bug" value="http://java.sun.com/cgi-bin/bugreport.cgi"/>
+ <property name="sun.cpu.endian" value="little"/>
+ <property name="sun.io.unicode.encoding" value="UnicodeLittle"/>
+ <property name="sun.desktop" value="gnome"/>
+ <property name="sun.cpu.isalist" value=""/>
+ </properties>
+ <testcase time="0.003" name="testApp"/>
+</testsuite>
\ No newline at end of file
Property changes on: trunk/docs/taglibxsl/target/surefire-reports/TEST-org.richfaces.AppTest.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/docs/taglibxsl/target/surefire-reports/org.richfaces.AppTest.txt
===================================================================
--- trunk/docs/taglibxsl/target/surefire-reports/org.richfaces.AppTest.txt (rev 0)
+++ trunk/docs/taglibxsl/target/surefire-reports/org.richfaces.AppTest.txt 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,4 @@
+-------------------------------------------------------------------------------
+Test set: org.richfaces.AppTest
+-------------------------------------------------------------------------------
+Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.025 sec
Property changes on: trunk/docs/taglibxsl/target/surefire-reports/org.richfaces.AppTest.txt
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/docs/taglibxsl/target/taglibxsl-3.1.0-SNAPSHOT.jar
===================================================================
(Binary files differ)
Property changes on: trunk/docs/taglibxsl/target/taglibxsl-3.1.0-SNAPSHOT.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/docs/taglibxsl/target/test-classes/org/richfaces/AppTest.class
===================================================================
(Binary files differ)
Property changes on: trunk/docs/taglibxsl/target/test-classes/org/richfaces/AppTest.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/samples/richfaces-demo/pom.xml
===================================================================
--- trunk/samples/richfaces-demo/pom.xml 2007-08-25 00:45:32 UTC (rev 2492)
+++ trunk/samples/richfaces-demo/pom.xml 2007-08-25 01:40:38 UTC (rev 2493)
@@ -35,6 +35,66 @@
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>unpack</id>
+ <phase>generate-resources</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>richfaces-ui</artifactId>
+ <version>${project.version}</version>
+ </artifactItem>
+ </artifactItems>
+ <outputDirectory>
+ ${project.build.directory}/richfaces
+ </outputDirectory>
+ <overWriteReleases>
+ false
+ </overWriteReleases>
+ <overWriteSnapshots>
+ true
+ </overWriteSnapshots>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>net.sourceforge.maven-taglib</groupId>
+ <artifactId>maven-taglib-plugin</artifactId>
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces.docs</groupId>
+ <artifactId>taglibxsl</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+ <configuration>
+ <srcDir>
+ ${project.build.directory}/richfaces/META-INF
+ </srcDir>
+ <tldDocDir>
+ ${project.build.directory}/${project.build.finalName}/WEB-INF/tlddoc
+ </tldDocDir>
+ </configuration>
+
+ <executions>
+ <execution>
+ <id>attach-javadoc</id>
+ <phase>process-resources</phase>
+ <goals>
+ <goal>taglibdoc</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
@@ -48,7 +108,9 @@
<webResources>
<resource>
<!-- this is relative to the pom.xml directory -->
- <directory>${basedir}/src/main/java</directory>
+ <directory>
+ ${basedir}/src/main/java
+ </directory>
<targetPath>/WEB-INF/src</targetPath>
</resource>
</webResources>
Added: trunk/samples/richfaces-demo/src/main/xslt/f.xsl
===================================================================
--- trunk/samples/richfaces-demo/src/main/xslt/f.xsl (rev 0)
+++ trunk/samples/richfaces-demo/src/main/xslt/f.xsl 2007-08-25 01:40:38 UTC (rev 2493)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:javaee="http://java.sun.com/JSP/TagLibraryDescriptor"
+ version="1.0" exclude-result-prefixes="javaee">
+ <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/>
+ <xsl:param name="lang" />
+ <xsl:param name="title" />
+ <xsl:param name="separator" />
+
+ <xsl:template match="javaee:table | table">
+ <xsl:call-template name="tag" />
+ </xsl:template>
+
+ <xsl:template name="tag">
+ <xsl:copy-of select="./*"/>
+ </xsl:template>
+</xsl:transform>
\ No newline at end of file
Property changes on: trunk/samples/richfaces-demo/src/main/xslt/f.xsl
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/ui/assembly/pom.xml
===================================================================
--- trunk/ui/assembly/pom.xml 2007-08-25 00:45:32 UTC (rev 2492)
+++ trunk/ui/assembly/pom.xml 2007-08-25 01:40:38 UTC (rev 2493)
@@ -105,7 +105,7 @@
<id>attach-javadoc</id>
<phase>process-resources</phase>
<goals>
- <goal>taglibdoc</goal>
+ <goal>taglibdocjar</goal>
</goals>
</execution>
</executions>
18 years, 8 months
JBoss Rich Faces SVN: r2492 - in trunk/framework/api/src/main/java/org: richfaces/skin and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-24 20:45:32 -0400 (Fri, 24 Aug 2007)
New Revision: 2492
Modified:
trunk/framework/api/src/main/java/org/ajax4jsf/Messages.java
trunk/framework/api/src/main/java/org/richfaces/skin/SkinFactory.java
Log:
http://jira.jboss.com/jira/browse/RF-601 :
- messages bundle
- SkinFactory
switched to ContextCL
Modified: trunk/framework/api/src/main/java/org/ajax4jsf/Messages.java
===================================================================
--- trunk/framework/api/src/main/java/org/ajax4jsf/Messages.java 2007-08-24 23:22:01 UTC (rev 2491)
+++ trunk/framework/api/src/main/java/org/ajax4jsf/Messages.java 2007-08-25 00:45:32 UTC (rev 2492)
@@ -22,11 +22,12 @@
package org.ajax4jsf;
import java.text.MessageFormat;
+import java.util.Locale;
import java.util.ResourceBundle;
public class Messages {
private static final String BUNDLE_NAME = "org.ajax4jsf.messages";
- static ResourceBundle bundle = ResourceBundle.getBundle(BUNDLE_NAME);
+ static ResourceBundle bundle = ResourceBundle.getBundle(BUNDLE_NAME, Locale.getDefault(), Thread.currentThread().getContextClassLoader());
public static final String getMessage(String name) {
String value = bundle.getString(name);
Modified: trunk/framework/api/src/main/java/org/richfaces/skin/SkinFactory.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/skin/SkinFactory.java 2007-08-24 23:22:01 UTC (rev 2491)
+++ trunk/framework/api/src/main/java/org/richfaces/skin/SkinFactory.java 2007-08-25 00:45:32 UTC (rev 2492)
@@ -86,7 +86,7 @@
Messages.SET_SKIN_FACTORY_INFO,
factoryClassName));
}
- Class clazz = Class.forName(factoryClassName);
+ Class clazz = Class.forName(factoryClassName, false, loader);
try {
// try construct factory chain.
Constructor factoryConstructor = clazz
18 years, 8 months
JBoss Rich Faces SVN: r2491 - in trunk: framework/impl/src/main/java/org/ajax4jsf/component and 28 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: alexsmirnov
Date: 2007-08-24 19:22:01 -0400 (Fri, 24 Aug 2007)
New Revision: 2491
Added:
trunk/sandbox/ui/state/
trunk/sandbox/ui/state/pom.xml
trunk/sandbox/ui/state/src/
trunk/sandbox/ui/state/src/main/
trunk/sandbox/ui/state/src/main/config/
trunk/sandbox/ui/state/src/main/config/component/
trunk/sandbox/ui/state/src/main/config/component/state.xml
trunk/sandbox/ui/state/src/main/config/component/states.xml
trunk/sandbox/ui/state/src/main/java/
trunk/sandbox/ui/state/src/main/java/org/
trunk/sandbox/ui/state/src/main/java/org/richfaces/
trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/
trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/
trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StatePropertyResolver.java
trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateResolver.java
trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/component/
trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/component/UIState.java
trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/component/UIStates.java
trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/model/
trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/model/State.java
trunk/sandbox/ui/state/src/main/resources/
trunk/sandbox/ui/state/src/main/templates/
trunk/sandbox/ui/state/src/main/templates/README
trunk/sandbox/ui/state/src/main/templates/org/
trunk/sandbox/ui/state/src/main/templates/org/richfaces/
trunk/sandbox/ui/state/src/main/templates/org/richfaces/ui/
trunk/sandbox/ui/state/src/main/templates/org/richfaces/ui/htmlState.jspx
trunk/sandbox/ui/state/src/main/templates/org/richfaces/ui/htmlStates.jspx
trunk/sandbox/ui/state/src/test/
trunk/sandbox/ui/state/src/test/java/
trunk/sandbox/ui/state/src/test/java/org/
trunk/sandbox/ui/state/src/test/java/org/richfaces/
trunk/sandbox/ui/state/src/test/java/org/richfaces/ui/
trunk/sandbox/ui/state/src/test/java/org/richfaces/ui/component/
trunk/sandbox/ui/state/src/test/java/org/richfaces/ui/component/JSFComponentTest.java
trunk/ui/insert/src/main/java/org/richfaces/ui/component/DummyHighLight.java
trunk/ui/insert/src/main/java/org/richfaces/ui/component/Highlight.java
trunk/ui/insert/src/main/java/org/richfaces/ui/component/HighlightImpl.java
Removed:
trunk/ui/insert/src/main/java/org/richfaces/ui/component/Highlight.java
Modified:
trunk/framework/impl/src/main/java/org/ajax4jsf/component/UIDataAdaptor.java
trunk/framework/impl/src/main/resources/org/ajax4jsf/messages.properties
trunk/pom.xml
trunk/samples/pom.xml
trunk/sandbox/ui/pom.xml
trunk/ui/assembly/pom.xml
trunk/ui/insert/src/main/java/org/ajax4jsf/renderkit/AbstractInsertRenderer.java
Log:
Fix http://jira.jboss.com/jira/browse/RF-680
change default JSF version to 1.2_04-p02 for samples.
add 'state' component to sandbox
Modified: trunk/framework/impl/src/main/java/org/ajax4jsf/component/UIDataAdaptor.java
===================================================================
--- trunk/framework/impl/src/main/java/org/ajax4jsf/component/UIDataAdaptor.java 2007-08-24 22:01:17 UTC (rev 2490)
+++ trunk/framework/impl/src/main/java/org/ajax4jsf/component/UIDataAdaptor.java 2007-08-24 23:22:01 UTC (rev 2491)
@@ -405,8 +405,8 @@
Object key = (Object) iter.next();
ajaxVisitor.process(context, key, null);
}
- setRowKey(savedKey);
- restoreOrigValue();
+ setRowKey(context,savedKey);
+ restoreOrigValue(context);
} else {
if(_log.isDebugEnabled()){
_log.debug("Component "+getClientId(context)+" children components for all rows");
Modified: trunk/framework/impl/src/main/resources/org/ajax4jsf/messages.properties
===================================================================
--- trunk/framework/impl/src/main/resources/org/ajax4jsf/messages.properties 2007-08-24 22:01:17 UTC (rev 2490)
+++ trunk/framework/impl/src/main/resources/org/ajax4jsf/messages.properties 2007-08-24 23:22:01 UTC (rev 2491)
@@ -250,5 +250,6 @@
AJAX_VIEW_EXPIRED=View state could't be restored - reload page ?
SKIN_CYCLIC_REFERENCE=Cyclic reference in Skin configuration for property \: {0}
SKIN_ILLEGAL_REFERENCE=Reference for property "{0}" not present in Skin configuration
-NULL_ATTRIBUTE_ERROR=Requied attribute {0} for component {1} is null
-UI_INSERT_RESOURCE_NOT_FOUND="Resource {1} not found, component {0}
\ No newline at end of file
+NULL_ATTRIBUTE_ERROR=Required attribute {0} for component {1} is null
+UI_INSERT_RESOURCE_NOT_FOUND="Resource {1} not found, component {0}
+HIGHLIGHT_LIBRARY_NOT_FOUND="In order to use highlight attribute of the rich:insert component, add jhighlight.jar from https://jhighlight.dev.java.net/ into application."
\ No newline at end of file
Modified: trunk/pom.xml
===================================================================
--- trunk/pom.xml 2007-08-24 22:01:17 UTC (rev 2490)
+++ trunk/pom.xml 2007-08-24 23:22:01 UTC (rev 2491)
@@ -38,7 +38,7 @@
<id>maven-repository.dev.java.net</id>
<name>Java.net Repository for Maven</name>
<url>
- https://maven-repository.dev.java.net/nonav/repository
+ http://download.java.net/maven/1
</url>
<layout>legacy</layout>
</repository>
Modified: trunk/samples/pom.xml
===================================================================
--- trunk/samples/pom.xml 2007-08-24 22:01:17 UTC (rev 2490)
+++ trunk/samples/pom.xml 2007-08-24 23:22:01 UTC (rev 2491)
@@ -185,12 +185,12 @@
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
- <version>1.2_04</version>
+ <version>1.2_04-p02</version>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-impl</artifactId>
- <version>1.2_04</version>
+ <version>1.2_04-p02</version>
<scope>runtime</scope>
</dependency>
</dependencies>
@@ -240,12 +240,12 @@
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
- <version>1.2_04</version>
+ <version>1.2_04-p02</version>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-impl</artifactId>
- <version>1.2_04</version>
+ <version>1.2_04-p02</version>
<scope>runtime</scope>
</dependency>
</dependencies>
@@ -285,12 +285,12 @@
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
- <version>1.2_04</version>
+ <version>1.2_04-p02</version>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-impl</artifactId>
- <version>1.2_04</version>
+ <version>1.2_04-p02</version>
<scope>runtime</scope>
</dependency>
<dependency>
@@ -339,13 +339,13 @@
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-impl</artifactId>
- <version>1.2_04</version>
+ <version>1.2_04-p02</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
- <version>1.2_04</version>
+ <version>1.2_04-p02</version>
<scope>provided</scope>
</dependency>
</dependencies>
Modified: trunk/sandbox/ui/pom.xml
===================================================================
--- trunk/sandbox/ui/pom.xml 2007-08-24 22:01:17 UTC (rev 2490)
+++ trunk/sandbox/ui/pom.xml 2007-08-24 23:22:01 UTC (rev 2491)
@@ -1,18 +1,18 @@
-<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">
- <parent>
- <artifactId>ui</artifactId>
- <groupId>org.richfaces</groupId>
- <version>3.1.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.richfaces.sandbox</groupId>
- <packaging>pom</packaging>
- <artifactId>ui</artifactId>
- <name>Richfaces Sandbox UI</name>
- <modules>
- <module>panel2</module>
- <module>simpleTogglePanel2</module>
- </modules>
+<?xml version="1.0" encoding="UTF-8"?>
+<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">
+ <parent>
+ <artifactId>ui</artifactId>
+ <groupId>org.richfaces</groupId>
+ <version>3.1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.sandbox</groupId>
+ <packaging>pom</packaging>
+ <artifactId>ui</artifactId>
+ <name>Richfaces Sandbox UI</name>
+ <modules>
+ <module>panel2</module>
+ <module>simpleTogglePanel2</module>
+ <module>state</module>
+ </modules>
</project>
\ No newline at end of file
Added: trunk/sandbox/ui/state/pom.xml
===================================================================
--- trunk/sandbox/ui/state/pom.xml (rev 0)
+++ trunk/sandbox/ui/state/pom.xml 2007-08-24 23:22:01 UTC (rev 2491)
@@ -0,0 +1,43 @@
+<?xml version="1.0"?><project>
+ <parent>
+ <artifactId>ui</artifactId>
+ <groupId>org.richfaces.sandbox</groupId>
+ <version>3.1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.richfaces.ui</groupId>
+ <artifactId>state</artifactId>
+ <name>state</name>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.richfaces.cdk</groupId>
+ <artifactId>maven-cdk-plugin</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ <executions>
+ <execution>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>generate</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <library>
+ <prefix>org.richfaces.ui</prefix>
+ <taglib>
+ <shortName>state</shortName>
+ </taglib>
+ </library>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>org.richfaces.framework</groupId>
+ <artifactId>richfaces-impl</artifactId>
+ <version>3.1.0-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+</project>
\ No newline at end of file
Property changes on: trunk/sandbox/ui/state/pom.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/sandbox/ui/state/src/main/config/component/state.xml
===================================================================
--- trunk/sandbox/ui/state/src/main/config/component/state.xml (rev 0)
+++ trunk/sandbox/ui/state/src/main/config/component/state.xml 2007-08-24 23:22:01 UTC (rev 2491)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN" "https://ajax4jsf.dev.java.net/nonav/dtds/component-config.dtd" >
+<components>
+ <component>
+ <name>org.richfaces.ui.State</name>
+ <family>org.richfaces.ui.State</family>
+ <classname>org.richfaces.ui.component.html.HtmlState</classname>
+ <superclass>org.richfaces.ui.component.UIState</superclass>
+ <description>
+ <![CDATA[
+ ]]>
+ </description>
+ <renderer generate="true" override="true">
+ <name>org.richfaces.ui.StateRenderer</name>
+ <template>org/richfaces/ui/htmlState.jspx</template>
+ </renderer>
+ <tag>
+ <name>state</name>
+ <classname>org.richfaces.ui.taglib.StateTag</classname>
+ <superclass>
+ org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
+ </superclass>
+ </tag>
+ <!--
+ <taghandler>
+ <classname>org.ajax4jsf.tag.TestHandler</classname>
+ </taghandler>
+ -->
+ &ui_component_attributes;
+ <!--
+ <property>
+ <name>param</name>
+ <classname>java.lang.String</classname>
+ <description>
+ </description>
+ <defaultvalue>"default"</defaultvalue>
+ </property>
+ -->
+ </component>
+</components>
Property changes on: trunk/sandbox/ui/state/src/main/config/component/state.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/sandbox/ui/state/src/main/config/component/states.xml
===================================================================
--- trunk/sandbox/ui/state/src/main/config/component/states.xml (rev 0)
+++ trunk/sandbox/ui/state/src/main/config/component/states.xml 2007-08-24 23:22:01 UTC (rev 2491)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE components PUBLIC "-//AJAX4JSF//CDK Generator config/EN" "https://ajax4jsf.dev.java.net/nonav/dtds/component-config.dtd" >
+<components>
+ <component>
+ <name>org.richfaces.ui.States</name>
+ <family>org.richfaces.ui.States</family>
+ <classname>org.richfaces.ui.component.html.HtmlStates</classname>
+ <superclass>org.richfaces.ui.component.UIStates</superclass>
+ <description>
+ <![CDATA[
+ ]]>
+ </description>
+ <renderer generate="true" override="true">
+ <name>org.richfaces.ui.StatesRenderer</name>
+ <template>org/richfaces/ui/htmlStates.jspx</template>
+ </renderer>
+ <tag>
+ <name>states</name>
+ <classname>org.richfaces.ui.taglib.StatesTag</classname>
+ <superclass>
+ org.ajax4jsf.webapp.taglib.HtmlComponentTagBase
+ </superclass>
+ </tag>
+ <!--
+ <taghandler>
+ <classname>org.ajax4jsf.tag.TestHandler</classname>
+ </taghandler>
+ -->
+ &ui_component_attributes;
+ <!--
+ <property>
+ <name>param</name>
+ <classname>java.lang.String</classname>
+ <description>
+ </description>
+ <defaultvalue>"default"</defaultvalue>
+ </property>
+ -->
+ </component>
+</components>
Property changes on: trunk/sandbox/ui/state/src/main/config/component/states.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StatePropertyResolver.java
===================================================================
--- trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StatePropertyResolver.java (rev 0)
+++ trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StatePropertyResolver.java 2007-08-24 23:22:01 UTC (rev 2491)
@@ -0,0 +1,96 @@
+/**
+ *
+ */
+package org.richfaces.ui.application;
+
+import javax.faces.el.EvaluationException;
+import javax.faces.el.PropertyNotFoundException;
+import javax.faces.el.PropertyResolver;
+
+/**
+ * @author asmirnov
+ *
+ */
+public class StatePropertyResolver extends PropertyResolver {
+
+ /* (non-Javadoc)
+ * @see javax.faces.el.PropertyResolver#getType(java.lang.Object, java.lang.Object)
+ */
+ @Override
+ public Class getType(Object arg0, Object arg1) throws EvaluationException,
+ PropertyNotFoundException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.el.PropertyResolver#getType(java.lang.Object, int)
+ */
+ @Override
+ public Class getType(Object arg0, int arg1) throws EvaluationException,
+ PropertyNotFoundException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.el.PropertyResolver#getValue(java.lang.Object, java.lang.Object)
+ */
+ @Override
+ public Object getValue(Object arg0, Object arg1)
+ throws EvaluationException, PropertyNotFoundException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.el.PropertyResolver#getValue(java.lang.Object, int)
+ */
+ @Override
+ public Object getValue(Object arg0, int arg1) throws EvaluationException,
+ PropertyNotFoundException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.el.PropertyResolver#isReadOnly(java.lang.Object, java.lang.Object)
+ */
+ @Override
+ public boolean isReadOnly(Object arg0, Object arg1)
+ throws EvaluationException, PropertyNotFoundException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.el.PropertyResolver#isReadOnly(java.lang.Object, int)
+ */
+ @Override
+ public boolean isReadOnly(Object arg0, int arg1)
+ throws EvaluationException, PropertyNotFoundException {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.el.PropertyResolver#setValue(java.lang.Object, java.lang.Object, java.lang.Object)
+ */
+ @Override
+ public void setValue(Object arg0, Object arg1, Object arg2)
+ throws EvaluationException, PropertyNotFoundException {
+ // TODO Auto-generated method stub
+
+ }
+
+ /* (non-Javadoc)
+ * @see javax.faces.el.PropertyResolver#setValue(java.lang.Object, int, java.lang.Object)
+ */
+ @Override
+ public void setValue(Object arg0, int arg1, Object arg2)
+ throws EvaluationException, PropertyNotFoundException {
+ // TODO Auto-generated method stub
+
+ }
+
+}
Property changes on: trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StatePropertyResolver.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateResolver.java
===================================================================
--- trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateResolver.java (rev 0)
+++ trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateResolver.java 2007-08-24 23:22:01 UTC (rev 2491)
@@ -0,0 +1,26 @@
+/**
+ *
+ */
+package org.richfaces.ui.application;
+
+import javax.faces.context.FacesContext;
+import javax.faces.el.EvaluationException;
+import javax.faces.el.VariableResolver;
+
+/**
+ * @author asmirnov
+ *
+ */
+public class StateResolver extends VariableResolver {
+
+ /* (non-Javadoc)
+ * @see javax.faces.el.VariableResolver#resolveVariable(javax.faces.context.FacesContext, java.lang.String)
+ */
+ @Override
+ public Object resolveVariable(FacesContext arg0, String arg1)
+ throws EvaluationException {
+ // TODO Auto-generated method stub
+ return null;
+ }
+
+}
Property changes on: trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/application/StateResolver.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/component/UIState.java
===================================================================
--- trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/component/UIState.java (rev 0)
+++ trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/component/UIState.java 2007-08-24 23:22:01 UTC (rev 2491)
@@ -0,0 +1,19 @@
+/**
+ *
+ */
+
+package org.richfaces.ui.component;
+
+import javax.faces.component.UIComponentBase;
+
+/**
+ * JSF component class
+ *
+ */
+public abstract class UIState extends UIComponentBase {
+
+ private static final String COMPONENT_TYPE = "org.richfaces.ui.State";
+
+ private static final String COMPONENT_FAMILY = "org.richfaces.ui.State";
+
+}
Property changes on: trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/component/UIState.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/component/UIStates.java
===================================================================
--- trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/component/UIStates.java (rev 0)
+++ trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/component/UIStates.java 2007-08-24 23:22:01 UTC (rev 2491)
@@ -0,0 +1,19 @@
+/**
+ *
+ */
+
+package org.richfaces.ui.component;
+
+import javax.faces.component.UIComponentBase;
+
+/**
+ * JSF component class
+ *
+ */
+public abstract class UIStates extends UIComponentBase {
+
+ private static final String COMPONENT_TYPE = "org.richfaces.ui.States";
+
+ private static final String COMPONENT_FAMILY = "org.richfaces.ui.States";
+
+}
Property changes on: trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/component/UIStates.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/model/State.java
===================================================================
--- trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/model/State.java (rev 0)
+++ trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/model/State.java 2007-08-24 23:22:01 UTC (rev 2491)
@@ -0,0 +1,20 @@
+/**
+ *
+ */
+package org.richfaces.ui.model;
+
+import javax.faces.el.MethodBinding;
+
+/**
+ * @author asmirnov
+ *
+ */
+public interface State {
+
+ public Object getProperty(String name);
+
+ public MethodBinding getAction(String name);
+
+ public String getNavigation(String outcome);
+
+}
Property changes on: trunk/sandbox/ui/state/src/main/java/org/richfaces/ui/model/State.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Added: trunk/sandbox/ui/state/src/main/templates/README
===================================================================
Added: trunk/sandbox/ui/state/src/main/templates/org/richfaces/ui/htmlState.jspx
===================================================================
--- trunk/sandbox/ui/state/src/main/templates/org/richfaces/ui/htmlState.jspx (rev 0)
+++ trunk/sandbox/ui/state/src/main/templates/org/richfaces/ui/htmlState.jspx 2007-08-24 23:22:01 UTC (rev 2491)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:root
+ xmlns:f="http://ajax4jsf.org/cdk/template"
+ xmlns:c=" http://java.sun.com/jsf/core"
+ xmlns:ui=" http://ajax4jsf.org/cdk/ui"
+ xmlns:u=" http://ajax4jsf.org/cdk/u"
+ xmlns:x=" http://ajax4jsf.org/cdk/x"
+ class="org.richfaces.ui.renderkit.html.StateRenderer"
+ baseclass="org.ajax4jsf.renderkit.AjaxComponentRendererBase"
+ component="org.richfaces.ui.component.UIState"
+ >
+ <f:clientid var="clientId"/>
+ <div id="#{clientId}"
+ x:passThruWithExclusions="value,name,type,id"
+ >
+ </div>
+</f:root>
\ No newline at end of file
Property changes on: trunk/sandbox/ui/state/src/main/templates/org/richfaces/ui/htmlState.jspx
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/state/src/main/templates/org/richfaces/ui/htmlStates.jspx
===================================================================
--- trunk/sandbox/ui/state/src/main/templates/org/richfaces/ui/htmlStates.jspx (rev 0)
+++ trunk/sandbox/ui/state/src/main/templates/org/richfaces/ui/htmlStates.jspx 2007-08-24 23:22:01 UTC (rev 2491)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<f:root
+ xmlns:f="http://ajax4jsf.org/cdk/template"
+ xmlns:c=" http://java.sun.com/jsf/core"
+ xmlns:ui=" http://ajax4jsf.org/cdk/ui"
+ xmlns:u=" http://ajax4jsf.org/cdk/u"
+ xmlns:x=" http://ajax4jsf.org/cdk/x"
+ class="org.richfaces.ui.renderkit.html.StatesRenderer"
+ baseclass="org.ajax4jsf.renderkit.AjaxComponentRendererBase"
+ component="org.richfaces.ui.component.UIStates"
+ >
+ <f:clientid var="clientId"/>
+ <div id="#{clientId}"
+ x:passThruWithExclusions="value,name,type,id"
+ >
+ </div>
+</f:root>
\ No newline at end of file
Property changes on: trunk/sandbox/ui/state/src/main/templates/org/richfaces/ui/htmlStates.jspx
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/sandbox/ui/state/src/test/java/org/richfaces/ui/component/JSFComponentTest.java
===================================================================
--- trunk/sandbox/ui/state/src/test/java/org/richfaces/ui/component/JSFComponentTest.java (rev 0)
+++ trunk/sandbox/ui/state/src/test/java/org/richfaces/ui/component/JSFComponentTest.java 2007-08-24 23:22:01 UTC (rev 2491)
@@ -0,0 +1,53 @@
+/**
+ * License Agreement.
+ *
+ * Rich Faces - Natural Ajax for Java Server Faces (JSF)
+ *
+ * Copyright (C) 2007 Exadel, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+package org.richfaces.ui.component;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+import javax.faces.component.UIComponent;
+
+/**
+ * Unit test for simple Component.
+ */
+public class JSFComponentTest
+ extends TestCase
+{
+ /**
+ * Create the test case
+ *
+ * @param testName name of the test case
+ */
+ public JSFComponentTest( String testName )
+ {
+ super( testName );
+ }
+
+
+ /**
+ * Rigourous Test :-)
+ */
+ public void testComponent()
+ {
+ assertTrue( true );
+ }
+}
Property changes on: trunk/sandbox/ui/state/src/test/java/org/richfaces/ui/component/JSFComponentTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Modified: trunk/ui/assembly/pom.xml
===================================================================
--- trunk/ui/assembly/pom.xml 2007-08-24 22:01:17 UTC (rev 2490)
+++ trunk/ui/assembly/pom.xml 2007-08-24 23:22:01 UTC (rev 2491)
@@ -139,7 +139,7 @@
en
</artifactId>
<version>
- 3.1.0-SNAPSHOT
+ ${project.version}
</version>
<type>war</type>
<classifier>pdf</classifier>
Modified: trunk/ui/insert/src/main/java/org/ajax4jsf/renderkit/AbstractInsertRenderer.java
===================================================================
--- trunk/ui/insert/src/main/java/org/ajax4jsf/renderkit/AbstractInsertRenderer.java 2007-08-24 22:01:17 UTC (rev 2490)
+++ trunk/ui/insert/src/main/java/org/ajax4jsf/renderkit/AbstractInsertRenderer.java 2007-08-24 23:22:01 UTC (rev 2491)
@@ -17,14 +17,17 @@
import org.ajax4jsf.Messages;
import org.ajax4jsf.renderkit.RendererUtils.HTML;
+import org.richfaces.ui.component.DummyHighLight;
import org.richfaces.ui.component.Highlight;
+import org.richfaces.ui.component.HighlightImpl;
import org.richfaces.ui.component.UIInsert;
/**
* @author asmirnov
*
*/
-public abstract class AbstractInsertRenderer extends HeaderResourcesRendererBase {
+public abstract class AbstractInsertRenderer extends
+ HeaderResourcesRendererBase {
private static final Object ERROR_MESSAGE_CLASS = "dr-insert-error";
@@ -38,16 +41,14 @@
renderStream(context, component, inputStream);
} else {
String errorContent = component.getErrorContent();
- if( null != errorContent && null != (inputStream = externalContext.getResourceAsStream(errorContent))){
+ if (null != errorContent
+ && null != (inputStream = externalContext
+ .getResourceAsStream(errorContent))) {
// Render default content, if src not found.
renderStream(context, component, inputStream);
} else {
// Render error message for a not found resource.
- ResponseWriter writer = context.getResponseWriter();
- writer.startElement(HTML.SPAN_ELEM, component);
- writer.writeAttribute(HTML.class_ATTRIBUTE, ERROR_MESSAGE_CLASS, null);
- writer.write(Messages.getMessage("UI_INSERT_RESOURCE_NOT_FOUND", new Object[]{component.getClientId(context),component.getSrc()}));
- writer.endElement(HTML.SPAN_ELEM);
+ renderErrorMessage(context, component, "UI_INSERT_RESOURCE_NOT_FOUND");
}
}
} else {
@@ -61,6 +62,25 @@
/**
* @param context
* @param component
+ * @param message TODO
+ * @throws IOException
+ */
+ private void renderErrorMessage(FacesContext context, UIInsert component, String message)
+ throws IOException {
+ ResponseWriter writer = context.getResponseWriter();
+ writer.startElement(HTML.SPAN_ELEM, component);
+ writer.writeAttribute(HTML.class_ATTRIBUTE,
+ ERROR_MESSAGE_CLASS, null);
+ writer.write(Messages.getMessage(
+ message, new Object[] {
+ component.getClientId(context),
+ component.getSrc() }));
+ writer.endElement(HTML.SPAN_ELEM);
+ }
+
+ /**
+ * @param context
+ * @param component
* @param inputStream
* @throws UnsupportedEncodingException
* @throws FacesException
@@ -90,22 +110,22 @@
in.close();
}
} else {
- ByteArrayOutputStream out = new ByteArrayOutputStream();
+ Highlight highlighter;
try {
- Highlight highlighter = new Highlight(component
- .getHighlight());
- highlighter.highlight(component.getSrc(), inputStream,
- out, encoding, true);
+ highlighter = new HighlightImpl(component.getHighlight());
+
+ } catch (NoClassDefFoundError e) {
+ renderErrorMessage(context, component, "HIGHLIGHT_LIBRARY_NOT_FOUND");
+ highlighter = new DummyHighLight();
+ }
+ try {
+ highlighter.highlight(component.getSrc(), inputStream, writer,
+ encoding);
} catch (IOException e) {
throw new FacesException(e);
} finally {
inputStream.close();
}
- if (null != encoding) {
- writer.write(out.toString(encoding));
- } else {
- writer.write(out.toString());
- }
}
}
Added: trunk/ui/insert/src/main/java/org/richfaces/ui/component/DummyHighLight.java
===================================================================
--- trunk/ui/insert/src/main/java/org/richfaces/ui/component/DummyHighLight.java (rev 0)
+++ trunk/ui/insert/src/main/java/org/richfaces/ui/component/DummyHighLight.java 2007-08-24 23:22:01 UTC (rev 2491)
@@ -0,0 +1,41 @@
+/**
+ *
+ */
+package org.richfaces.ui.component;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+
+import javax.faces.context.ResponseWriter;
+
+import org.ajax4jsf.renderkit.RendererUtils.HTML;
+
+/**
+ * @author asmirnov
+ *
+ */
+public class DummyHighLight implements Highlight {
+
+ /* (non-Javadoc)
+ * @see org.richfaces.ui.component.Highlight#highlight(java.lang.String, java.io.InputStream, java.io.OutputStream, java.lang.String, boolean)
+ */
+ public void highlight(String name, InputStream in, ResponseWriter out,
+ String encoding) throws IOException {
+ out.startElement("pre",null);
+ InputStreamReader reader;
+ if (null != encoding) {
+ reader = new InputStreamReader(in, encoding);
+ } else {
+ reader = new InputStreamReader(in);
+ }
+ char[] temp = new char[1024];
+ int bytes;
+ while ((bytes = reader.read(temp)) > 0) {
+ out.writeText(temp, 0, bytes);
+ }
+ out.endElement("pre");
+ }
+
+
+}
Property changes on: trunk/ui/insert/src/main/java/org/richfaces/ui/component/DummyHighLight.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Date Revision Author
Deleted: trunk/ui/insert/src/main/java/org/richfaces/ui/component/Highlight.java
===================================================================
--- trunk/ui/insert/src/main/java/org/richfaces/ui/component/Highlight.java 2007-08-24 22:01:17 UTC (rev 2490)
+++ trunk/ui/insert/src/main/java/org/richfaces/ui/component/Highlight.java 2007-08-24 23:22:01 UTC (rev 2491)
@@ -1,62 +0,0 @@
-/**
- *
- */
-package org.richfaces.ui.component;
-
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-
-import javax.faces.FacesException;
-
-import com.uwyn.jhighlight.renderer.Renderer;
-import com.uwyn.jhighlight.renderer.XhtmlRendererFactory;
-
-/**
- * @author asmirnov
- *
- */
-public class Highlight {
-
-
-
- private Renderer _renderer;
-
- public Highlight(String type) {
- _renderer = XhtmlRendererFactory.getRenderer(type);
- if(null == _renderer){
- throw new FacesException("Unknown type ["+type+"] to highlight source");
- }
- }
-
- /**
- * @param name
- * @param in
- * @param out
- * @param encoding
- * @param fragment
- * @throws IOException
- * @see com.uwyn.jhighlight.renderer.Renderer#highlight(java.lang.String, java.io.InputStream, java.io.OutputStream, java.lang.String, boolean)
- */
- public void highlight(String name, InputStream in, OutputStream out,
- String encoding, boolean fragment) throws IOException {
- _renderer.highlight(name, in, out, encoding, fragment);
- }
-
- /**
- * @param name
- * @param in
- * @param encoding
- * @param fragment
- * @return
- * @throws IOException
- * @see com.uwyn.jhighlight.renderer.Renderer#highlight(java.lang.String, java.lang.String, java.lang.String, boolean)
- */
- public String highlight(String name, String in, String encoding,
- boolean fragment) throws IOException {
- return _renderer.highlight(name, in, encoding, fragment);
- }
-
-
-
-}
Added: trunk/ui/insert/src/main/java/org/richfaces/ui/component/Highlight.java
===================================================================
--- trunk/ui/insert/src/main/java/org/richfaces/ui/component/Highlight.java (rev 0)
+++ trunk/ui/insert/src/main/java/org/richfaces/ui/component/Highlight.java 2007-08-24 23:22:01 UTC (rev 2491)
@@ -0,0 +1,23 @@
+package org.richfaces.ui.component;
+
+import java.io.IOException;
+import java.io.InputStream;
+
+import javax.faces.context.ResponseWriter;
+
+public interface Highlight {
+
+ /**
+ * @param name
+ * @param in
+ * @param out
+ * @param encoding
+ * @throws IOException
+ * @see com.uwyn.jhighlight.renderer.Renderer#highlight(java.lang.String, java.io.InputStream, java.io.OutputStream, java.lang.String, boolean)
+ */
+ public void highlight(String name, InputStream in, ResponseWriter out,
+ String encoding) throws IOException;
+
+
+
+}
\ No newline at end of file
Copied: trunk/ui/insert/src/main/java/org/richfaces/ui/component/HighlightImpl.java (from rev 2484, trunk/ui/insert/src/main/java/org/richfaces/ui/component/Highlight.java)
===================================================================
--- trunk/ui/insert/src/main/java/org/richfaces/ui/component/HighlightImpl.java (rev 0)
+++ trunk/ui/insert/src/main/java/org/richfaces/ui/component/HighlightImpl.java 2007-08-24 23:22:01 UTC (rev 2491)
@@ -0,0 +1,56 @@
+/**
+ *
+ */
+package org.richfaces.ui.component;
+
+import java.io.ByteArrayOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+
+import javax.faces.FacesException;
+import javax.faces.context.ResponseWriter;
+
+import com.uwyn.jhighlight.renderer.Renderer;
+import com.uwyn.jhighlight.renderer.XhtmlRendererFactory;
+
+/**
+ * @author asmirnov
+ *
+ */
+public class HighlightImpl implements Highlight {
+
+
+
+ private Renderer _renderer;
+
+ public HighlightImpl(String type) {
+ _renderer = XhtmlRendererFactory.getRenderer(type);
+ if(null == _renderer){
+ throw new FacesException("Unknown type ["+type+"] to highlight source");
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see org.richfaces.ui.component.Highlight#highlight(java.lang.String, java.io.InputStream, java.io.OutputStream, java.lang.String, boolean)
+ */
+ public void highlight(String name, InputStream in, ResponseWriter out,
+ String encoding) throws IOException {
+ ByteArrayOutputStream outStream = new ByteArrayOutputStream();
+ _renderer.highlight(name, in, outStream, encoding, true);
+ if(null == encoding){
+ out.write(outStream.toString());
+ } else {
+ out.write(outStream.toString(encoding));
+ }
+ }
+
+ /* (non-Javadoc)
+ * @see org.richfaces.ui.component.Highlight#highlight(java.lang.String, java.lang.String, java.lang.String, boolean)
+ */
+ public String highlight(String name, String in, String encoding) throws IOException {
+ return _renderer.highlight(name, in, encoding, true);
+ }
+
+
+
+}
18 years, 8 months
JBoss Rich Faces SVN: r2490 - in trunk/samples/richfaces-demo/src/main/webapp: richfaces/scrollableDataTable and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: SergeySmirnov
Date: 2007-08-24 18:01:17 -0400 (Fri, 24 Aug 2007)
New Revision: 2490
Removed:
trunk/samples/richfaces-demo/src/main/webapp/WEB-INF/src/org/
Modified:
trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/examples/scrollableDataTable.xhtml
trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/usage.xhtml
Log:
demo update. scrollableDataTable intro description is added.
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/examples/scrollableDataTable.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/examples/scrollableDataTable.xhtml 2007-08-24 21:56:45 UTC (rev 2489)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/examples/scrollableDataTable.xhtml 2007-08-24 22:01:17 UTC (rev 2490)
@@ -5,48 +5,40 @@
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
- <style>
+ <style type="text/css">
+ .col {
+ color:red;
+ }
</style>
<h:form>
<rich:spacer height="30" />
- <rich:scrollableDataTable rowKeyVar="rkv" frozenColCount="1" height="400px" width="700px" id="carList" rows="40" columnClasses="col"
+ <rich:scrollableDataTable rowKeyVar="rkv" frozenColCount="1" height="400px"
+ width="700px" id="carList" rows="40" columnClasses="col"
value="#{dataTableScrollerBean.allCars}" var="category" sortMode="single">
<rich:column id="make">
- <f:facet name="header">
- <h:outputText styleClass="headerText" value="Make" />
- </f:facet>
+ <f:facet name="header"><h:outputText styleClass="headerText" value="Make" /></f:facet>
<h:outputText value="#{category.make}" />
</rich:column>
<rich:column id="model">
- <f:facet name="header">
- <h:outputText styleClass="headerText" value="Model" />
- </f:facet>
+ <f:facet name="header"><h:outputText styleClass="headerText" value="Model" /></f:facet>
<h:outputText value="#{category.model}" />
</rich:column>
<rich:column id="price">
- <f:facet name="header">
- <h:outputText styleClass="headerText" value="Price" />
- </f:facet>
+ <f:facet name="header"><h:outputText styleClass="headerText" value="Price" /></f:facet>
<h:outputText value="#{category.price}" />
</rich:column>
<rich:column id="mileage">
- <f:facet name="header">
- <h:outputText styleClass="headerText" value="Mileage" />
- </f:facet>
+ <f:facet name="header"><h:outputText styleClass="headerText" value="Mileage" /></f:facet>
<h:outputText value="#{category.mileage}" />
</rich:column>
<rich:column width="200px" id="vin">
- <f:facet name="header">
- <h:outputText styleClass="headerText" value="VIN" />
- </f:facet>
+ <f:facet name="header"><h:outputText styleClass="headerText" value="VIN" /></f:facet>
<h:outputText value="#{category.vin}" />
</rich:column>
<rich:column id="stock">
- <f:facet name="header">
- <h:outputText styleClass="headerText" value="Stock" />
- </f:facet>
+ <f:facet name="header"><h:outputText styleClass="headerText" value="Stock" /></f:facet>
<h:outputText value="#{category.stock}" />
</rich:column>
Modified: trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/usage.xhtml
===================================================================
--- trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/usage.xhtml 2007-08-24 21:56:45 UTC (rev 2489)
+++ trunk/samples/richfaces-demo/src/main/webapp/richfaces/scrollableDataTable/usage.xhtml 2007-08-24 22:01:17 UTC (rev 2490)
@@ -9,7 +9,18 @@
<ui:define name="sample">
- <p>Scrollable Data Table</p>
+ <p>rich:scrollableDataTable represents the tabular data and has the following features
+ <ul>
+ <li>variable content of the table cells;</li>
+ <li>dynamically fetching the rows from the server when the table is scrolled up and down;</li>
+ <li>resizing columns by mouse dragging the column bar;</li>
+ <li>sorting column by clicking the header;</li>
+ <li>fixed one or more left columns when table is scrolled horizontally;</li>
+ <li>one and multi-selection rows mode;</li>
+ <li>built-it drag-n-drop support;</li>
+ <li>customizing the table look-n-fill from skin parameters</li>
+ </ul>
+ </p>
<div class="sample-container">
<ui:include src="/richfaces/scrollableDataTable/examples/scrollableDataTable.xhtml"/>
@@ -18,6 +29,11 @@
<ui:param name="openlabel" value="View Page Source" />
</ui:include>
</div>
+
+ <p>
+
+ </p>
+
</ui:define>
</ui:composition>
</html>
18 years, 8 months
JBoss Rich Faces SVN: r2489 - trunk/ui/calendar/src/main/templates/org/richfaces.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-24 17:56:45 -0400 (Fri, 24 Aug 2007)
New Revision: 2489
Modified:
trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
Log:
http://jira.jboss.com/jira/browse/RF-666
Modified: trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
===================================================================
--- trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 2007-08-24 19:13:37 UTC (rev 2488)
+++ trunk/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 2007-08-24 21:56:45 UTC (rev 2489)
@@ -84,11 +84,16 @@
);
</script>
</div>
+
+ <f:call name="addPopupToAjaxRendered" />
+
+ <span id="#{clientId}Popup" >
<jsp:scriptlet>
<![CDATA[
boolean popup = getUtils().isBooleanAttribute(component, "popup");
- if (popup) {
- addPopupToAjaxRendered(context, component);
+ if (!popup) {
+ getUtils().writeAttribute(writer, "style", "display: none");
+ } else {
boolean showInput = getUtils().isBooleanAttribute(component, "showInput");
boolean manualInput = getUtils().isBooleanAttribute(component, "enableManualInput");
@@ -111,7 +116,6 @@
</jsp:scriptlet>
<f:resource name="org.richfaces.renderkit.html.iconimages.CalendarIcon" var="icon" />
- <span id="#{clientId}Popup" >
<input
id="#{clientId}InputDate"
name="#{clientId}InputDate"
@@ -140,10 +144,10 @@
style="vertical-align: middle"
tabindex="#{component.attributes['tabindex']}">
</img>
- </span>
<jsp:scriptlet>
<![CDATA[
}
]]>
</jsp:scriptlet>
+ </span>
</f:root>
18 years, 8 months
JBoss Rich Faces SVN: r2488 - in trunk: samples/tree-demo/src/main/java/org/richfaces and 9 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: nbelaevski
Date: 2007-08-24 15:13:37 -0400 (Fri, 24 Aug 2007)
New Revision: 2488
Modified:
trunk/framework/api/src/main/java/org/richfaces/event/AjaxSelectedEvent.java
trunk/framework/api/src/main/java/org/richfaces/event/NodeSelectedEvent.java
trunk/samples/tree-demo/src/main/java/org/richfaces/Bean.java
trunk/samples/tree-demo/src/main/webapp/pages/index.jsp
trunk/ui/tree/src/main/java/org/richfaces/component/UITree.java
trunk/ui/tree/src/main/java/org/richfaces/renderkit/NodeRendererBase.java
trunk/ui/tree/src/main/java/org/richfaces/renderkit/TreeDataModelEventNavigator.java
trunk/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js
trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree.js
trunk/ui/tree/src/main/templates/htmlTree.jspx
trunk/ui/tree/src/main/templates/htmlTreeNode.jspx
trunk/ui/tree/src/test/java/org/richfaces/component/TreeComponentTest.java
trunk/ui/tree/src/test/java/org/richfaces/component/events/TreeEventsListenersTest.java
trunk/ui/tree/src/test/java/org/richfaces/component/events/TreeEventsTest.java
trunk/ui/tree/src/test/java/org/richfaces/renderkit/TreeRowKeyComparatorTest.java
Log:
http://jira.jboss.com/jira/browse/RF-642
Possibility to update ambigious node by AJAX added, demo updated
Modified: trunk/framework/api/src/main/java/org/richfaces/event/AjaxSelectedEvent.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/event/AjaxSelectedEvent.java 2007-08-24 18:58:45 UTC (rev 2487)
+++ trunk/framework/api/src/main/java/org/richfaces/event/AjaxSelectedEvent.java 2007-08-24 19:13:37 UTC (rev 2488)
@@ -23,6 +23,8 @@
import javax.faces.component.UIComponent;
+import org.richfaces.model.TreeRowKey;
+
/**
* @author Konstantin Mishin
*
@@ -34,8 +36,8 @@
*/
private static final long serialVersionUID = 1156974665865521208L;
- public AjaxSelectedEvent(UIComponent component) {
- super(component);
+ public AjaxSelectedEvent(UIComponent component, TreeRowKey oldSelection) {
+ super(component, oldSelection);
}
}
Modified: trunk/framework/api/src/main/java/org/richfaces/event/NodeSelectedEvent.java
===================================================================
--- trunk/framework/api/src/main/java/org/richfaces/event/NodeSelectedEvent.java 2007-08-24 18:58:45 UTC (rev 2487)
+++ trunk/framework/api/src/main/java/org/richfaces/event/NodeSelectedEvent.java 2007-08-24 19:13:37 UTC (rev 2488)
@@ -25,6 +25,8 @@
import javax.faces.event.FacesEvent;
import javax.faces.event.FacesListener;
+import org.richfaces.model.TreeRowKey;
+
/**
* @author Nick Belaevski - nbelaevski(a)exadel.com
* created 27.11.2006
@@ -32,8 +34,12 @@
*/
public class NodeSelectedEvent extends FacesEvent {
- public NodeSelectedEvent(UIComponent component) {
+ private TreeRowKey oldSelection;
+
+ public NodeSelectedEvent(UIComponent component, TreeRowKey oldSelection) {
super(component);
+
+ this.oldSelection = oldSelection;
}
/**
@@ -56,4 +62,8 @@
public void processListener(FacesListener listener) {
((NodeSelectedListener) listener).processSelection(this);
}
+
+ public TreeRowKey getOldSelection() {
+ return oldSelection;
+ }
}
Modified: trunk/samples/tree-demo/src/main/java/org/richfaces/Bean.java
===================================================================
--- trunk/samples/tree-demo/src/main/java/org/richfaces/Bean.java 2007-08-24 18:58:45 UTC (rev 2487)
+++ trunk/samples/tree-demo/src/main/java/org/richfaces/Bean.java 2007-08-24 19:13:37 UTC (rev 2488)
@@ -85,6 +85,8 @@
private int counter = 0;
+ private int counter1 = 0;
+
public String getIcon() {
return icon;
}
@@ -187,14 +189,14 @@
public void onSelect(NodeSelectedEvent event) {
System.out.println("Node selected: " + getTree(event).getRowKey());
UITree tree = getTree(event);
- Set keys = tree.getAjaxKeys();
- if (keys == null) {
- keys = new HashSet();
- tree.setAjaxKeys(keys);
- }
+// Set keys = tree.getAjaxKeys();
+// if (keys == null) {
+// keys = new HashSet();
+// tree.setAjaxKeys(keys);
+// }
- keys.add(tree.getRowKey());
- keys.add(new ListRowKey());
+ //keys.add(tree.getRowKey());
+ //keys.add(new ListRowKey());
if (getTree(event).getTreeNode()!=null) {
selectedNode = getTree(event).getTreeNode();
@@ -202,6 +204,17 @@
}
}
+ public boolean getReRenderValue() {
+ return false;
+ }
+
+ public void setReRenderValue(boolean value) {
+ if (value) {
+ Set set = tree.getOrCreateDetachableRowKeys();
+ set.add(tree.getRowKey());
+ }
+ }
+
public void onSelectInc(NodeSelectedEvent event) {
counter ++;
@@ -439,4 +452,13 @@
break;
}
}
+
+ public int getCounter1() {
+ return counter1;
+ }
+
+ public void incCounter1() {
+ tree.setAjaxKeys(null);
+ counter1++;
+ }
}
\ No newline at end of file
Modified: trunk/samples/tree-demo/src/main/webapp/pages/index.jsp
===================================================================
--- trunk/samples/tree-demo/src/main/webapp/pages/index.jsp 2007-08-24 18:58:45 UTC (rev 2487)
+++ trunk/samples/tree-demo/src/main/webapp/pages/index.jsp 2007-08-24 19:13:37 UTC (rev 2488)
@@ -1,5 +1,5 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
- "http://www.w3.org/TR/html4/loose.dtd">
+<!-- DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd"-->
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
@@ -157,6 +157,8 @@
<rich:treeNode ondrop="blinkElement(this.getElement())" type="input" dropListener="#{bean.processDrop}" oncollapse="Element.removeClassName(event['treeItem'].getElement(), 'colored')" onexpand="Element.addClassName(event['treeItem'].getElement(), 'colored')">
<h:outputText value="#{data} : " />
+ <h:outputText value="#{bean.counter1} : " />
+ <h:selectBooleanCheckbox value="#{bean.reRenderValue}" />
<h:inputText value="#{data.name}" required="true" styleClass="inputs">
</h:inputText>
@@ -168,6 +170,8 @@
</rich:treeNode>
</rich:tree>
+ <a4j:commandButton value="Increase counter" action="#{bean.incCounter1}" />
+
<h:outputText value="Enter path to expand, eg. [webApp_:id__1 , webApp_:id__1:7 ]:" />
<h:inputText value="#{bean.pathToExpand}">
<a4j:support event="onchange" reRender="tree" action="#{bean.expandNode}"/>
Modified: trunk/ui/tree/src/main/java/org/richfaces/component/UITree.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/component/UITree.java 2007-08-24 18:58:45 UTC (rev 2487)
+++ trunk/ui/tree/src/main/java/org/richfaces/component/UITree.java 2007-08-24 19:13:37 UTC (rev 2488)
@@ -22,8 +22,10 @@
package org.richfaces.component;
import java.io.IOException;
+import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
+import java.util.Set;
import javax.faces.application.Application;
import javax.faces.component.NamingContainer;
@@ -107,6 +109,8 @@
private UITreeNode defaultFacet;
+ private Set detachableRowKeys;
+
public UITree() {
super();
@@ -395,7 +399,7 @@
TreeState state = (TreeState) getComponentState();
if (!state.isSelected(null)) {
- new NodeSelectedEvent(this).queue();
+ new NodeSelectedEvent(this, state.getSelectedNode()).queue();
}
}
@@ -814,6 +818,22 @@
return null;
}
+
+
+ public Set getDetachableRowKeys() {
+ return detachableRowKeys;
+ }
+
+ public void resetDetachableRowKeys() {
+ detachableRowKeys = null;
+ }
+
+ public Set getOrCreateDetachableRowKeys() {
+ if (detachableRowKeys == null) {
+ detachableRowKeys = new HashSet();
+ }
+ return detachableRowKeys;
+ }
}
Modified: trunk/ui/tree/src/main/java/org/richfaces/renderkit/NodeRendererBase.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/renderkit/NodeRendererBase.java 2007-08-24 18:58:45 UTC (rev 2487)
+++ trunk/ui/tree/src/main/java/org/richfaces/renderkit/NodeRendererBase.java 2007-08-24 19:13:37 UTC (rev 2488)
@@ -249,11 +249,10 @@
UITreeNode node = (UITreeNode) component;
UITree tree = node.getUITree();
-
+ TreeRowKey key = (TreeRowKey) tree.getRowKey();
Map requestMap = context.getExternalContext().getRequestParameterMap();
String id = node.getClientId(context);
TreeState componentState = (TreeState) tree.getComponentState();
- TreeRowKey key = (TreeRowKey) tree.getRowKey();
String nodeExpandedId = id + NODE_EXPANDED_INPUT_SUFFIX;
Object nodeExpandedValue = requestMap.get(nodeExpandedId);
@@ -289,17 +288,16 @@
if (tree.getAttributes().get(
UITree.SELECTED_NODE_PARAMETER_NAME) == null) {
- new NodeSelectedEvent(tree).queue();
- new NodeSelectedEvent(node).queue();
+ new NodeSelectedEvent(tree, componentState.getSelectedNode()).queue();
+ new NodeSelectedEvent(node, componentState.getSelectedNode()).queue();
} else {
- new AjaxSelectedEvent(tree).queue();
- new AjaxSelectedEvent(node).queue();
+ new AjaxSelectedEvent(tree, componentState.getSelectedNode()).queue();
+ new AjaxSelectedEvent(node, componentState.getSelectedNode()).queue();
}
}
tree.getAttributes().remove(UITree.SELECTION_INPUT_ATTRIBUTE);
}
-
}
public String getAjaxSelectedListenerFlag(FacesContext context,
Modified: trunk/ui/tree/src/main/java/org/richfaces/renderkit/TreeDataModelEventNavigator.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/renderkit/TreeDataModelEventNavigator.java 2007-08-24 18:58:45 UTC (rev 2487)
+++ trunk/ui/tree/src/main/java/org/richfaces/renderkit/TreeDataModelEventNavigator.java 2007-08-24 19:13:37 UTC (rev 2488)
@@ -128,6 +128,10 @@
protected TreeRowKey getRowKey() {
return this.rowKey;
}
+
+ protected TreeRowKey getFloatingKey() {
+ return floatingKey;
+ }
protected boolean isStackedLastElement() {
if (stackedLast != null) {
Modified: trunk/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java
===================================================================
--- trunk/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java 2007-08-24 18:58:45 UTC (rev 2487)
+++ trunk/ui/tree/src/main/java/org/richfaces/renderkit/TreeRendererBase.java 2007-08-24 19:13:37 UTC (rev 2488)
@@ -23,12 +23,12 @@
import java.io.IOException;
import java.util.ArrayList;
-import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
+import java.util.TreeSet;
import javax.faces.FacesException;
import javax.faces.component.NamingContainer;
@@ -60,6 +60,18 @@
TreeRowKey treeRowKey1 = (TreeRowKey) key1;
TreeRowKey treeRowKey2 = (TreeRowKey) key2;
+ if (treeRowKey1 == null) {
+ if (treeRowKey2 == null) {
+ return 0;
+ } else {
+ return -1;
+ }
+ } else {
+ if (treeRowKey2 == null) {
+ return 1;
+ }
+ }
+
Iterator iterator1 = treeRowKey1.iterator();
Iterator iterator2 = treeRowKey2.iterator();
@@ -174,6 +186,15 @@
if (!context.isExpanded()) {
getUtils().writeAttribute(writer, "style", "display: none;");
+ } else {
+ if (tree.isShowConnectingLines()) {
+ TreeRowKey floatingKey = getFloatingKey();
+ //need the expression only for AJAX update root
+ if (floatingKey != null && floatingKey.equals(context.getRowKey())) {
+ String expression = "background-image:expression(this.nextSibling ? '' : 'none')";
+ getUtils().writeAttribute(writer, "style", expression);
+ }
+ }
}
String styleClasses = "";
@@ -202,11 +223,14 @@
private TreeStateAdvisor methodBindingAdvisor = null;
+ private Object floatingKey;
+
private DataVisitorWithLastElement(Flag flag, UITree tree,
- RendererDataModelEventNavigator navigator) {
+ RendererDataModelEventNavigator navigator, Object rowKey) {
this.flag = flag;
this.tree = tree;
this.navigator = navigator;
+ this.floatingKey = rowKey;
}
public void process(FacesContext context, Object rowKey, Object argument)
@@ -223,22 +247,19 @@
UITreeNode nodeFacet = tree.getNodeFacet();
Object oldAttrValue = nodeFacet.getAttributes().get("isLastElement");
+ Object oldAjaxRootAttrValue = nodeFacet.getAttributes().get("isAjaxUpdateRoot");
try {
nodeFacet.getAttributes().put("isLastElement", new Boolean(isLastElement));
-
+ nodeFacet.getAttributes().put("isAjaxUpdateRoot", new Boolean(floatingKey != null && floatingKey.equals(rowKey)));
ResponseWriter writer = context.getResponseWriter();
if (isLastElement) {
writer.startElement("p", tree);
- writer.writeAttribute("class", "last-node", null);
+ writer.writeAttribute("class", "dr-tree-last-node-marker", null);
writer.endElement("p");
-
- writer.startElement("div", tree);
- renderChild(context, nodeFacet);
- writer.endElement("div");
- } else {
- renderChild(context, nodeFacet);
}
+ renderChild(context, nodeFacet);
+
c = new Context();
c.setClientId(nodeFacet.getClientId(context) + NamingContainer.SEPARATOR_CHAR);
@@ -255,6 +276,12 @@
} else {
nodeFacet.getAttributes().remove("isLastElement");
}
+
+ if (oldAjaxRootAttrValue != null) {
+ nodeFacet.getAttributes().put("isAjaxUpdateRoot", oldAjaxRootAttrValue);
+ } else {
+ nodeFacet.getAttributes().remove("isAjaxUpdateRoot");
+ }
}
}
@@ -361,13 +388,17 @@
try {
Set ajaxKeys = tree.getAjaxKeys();
if (ajaxKeys != null) {
- List list = new ArrayList(ajaxKeys.size());
- list.addAll(ajaxKeys);
- Collections.sort(list, treeRowKeyComparator);
- Iterator ajaxKeysItr = list.iterator();
+ Set keys = tree.getDetachableRowKeys();
+ Set sortedKeys = new TreeSet(treeRowKeyComparator);
+ sortedKeys.addAll(ajaxKeys);
+ if (keys != null) {
+ sortedKeys.addAll(keys);
+ }
+ Iterator ajaxKeysItr = sortedKeys.iterator();
TreeRowKey lastKey = null;
+ boolean nullRoot = false;
- while (ajaxKeysItr.hasNext()) {
+ while (!nullRoot && ajaxKeysItr.hasNext()) {
TreeRowKey key = (TreeRowKey) ajaxKeysItr.next();
if (lastKey == null) {
@@ -381,7 +412,8 @@
}
}
- if (key != null && key.depth() == 0) {
+ if (key == null || key.depth() == 0) {
+ nullRoot = true;
key = null;
}
@@ -405,6 +437,7 @@
}
}
+ tree.resetDetachableRowKeys();
//ajaxKeys.clear();
}
} catch (Exception e) {
@@ -582,7 +615,7 @@
};
input.walk(context, new DataVisitorWithLastElement(droppedDownToLevelFlag, input,
- levelNavigator), treeRange, key, null);
+ levelNavigator, key), treeRange, key, null);
/*if (key != null) {
closeLevelDownTable(context, input, writer);
Modified: trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss
===================================================================
--- trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss 2007-08-24 18:58:45 UTC (rev 2487)
+++ trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/css/tree.xcss 2007-08-24 19:13:37 UTC (rev 2488)
@@ -80,7 +80,7 @@
cursor: pointer;
}
-.last-node {
+.dr-tree-last-node-marker {
display: none;
}
@@ -116,12 +116,12 @@
<f:resource f:key="org.richfaces.renderkit.html.images.TreeLineNodeImage"/>
</u:style>
</u:selector>
-<u:selector name="p.last-node+* .rich-tree-node-handleicon">
+<u:selector name="p.dr-tree-last-node-marker+* .rich-tree-node-handleicon, .dr-tree-h-ic-line-last">
<u:style name="background-image">
<f:resource f:key="org.richfaces.renderkit.html.images.TreeLineLastImage"/>
</u:style>
</u:selector>
-<u:selector name="p.last-node+*+div.dr-tree-h-ic-line">
+<u:selector name="p.dr-tree-last-node-marker+*+div.dr-tree-h-ic-line">
<u:style name="background-image" value="none" />
</u:selector>
<u:selector name=".dr-tree-h-ic-line-exp">
Modified: trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js
===================================================================
--- trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js 2007-08-24 18:58:45 UTC (rev 2487)
+++ trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree-item.js 2007-08-24 19:13:37 UTC (rev 2488)
@@ -1,6 +1,6 @@
Tree.Item = Class.create();
Tree.Item.prototype = {
- initialize: function(id, tree, parent) {
+ initialize: function(id, tree, parent, ajaxUpdate) {
this.parent = parent;
this.tree = tree;
this.elements = {};
@@ -26,7 +26,7 @@
this.elementID.icon = this.id + Tree.ID_DEVIDER + Tree.ID_ICON;
this.elementID.text = this.id + Tree.ID_DEVIDER + Tree.ID_TEXT;
- this.getElements(element);
+ this.getElements(element, ajaxUpdate);
this.eventSelectionClick = this.toggleSelection.bindAsEventListener(this);
this.eventMouseOut = this.processMouseOut.bindAsEventListener(this);
@@ -82,7 +82,7 @@
}
},
- getElements: function(element) {
+ getElements: function(element, ajaxUpdate) {
this.childs = [];
/*var contextMenu = Richfaces.getNSAttribute("oncontextmenu", $(this.elementID.icon));
@@ -92,6 +92,21 @@
var childsTd = element.nextSibling;//$(this.elementID.children);
+ if (ajaxUpdate && this.tree.showConnectingLines) {
+ var cell = element.rows[0].cells[0];
+ if (cell.style && cell.style.removeExpression) {
+ cell.style.backgroundImage = cell.currentStyle.backgroundImage;
+ cell.style.removeExpression('backgroundImage');
+ }
+
+ if (childsTd) {
+ if (childsTd.style && childsTd.style.removeExpression) {
+ childsTd.style.backgroundImage = childsTd.currentStyle.backgroundImage;
+ childsTd.style.removeExpression('backgroundImage');
+ }
+ }
+ }
+
if (childsTd) {
var child = childsTd.firstChild;
while ( child != null )
Modified: trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree.js
===================================================================
--- trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree.js 2007-08-24 18:58:45 UTC (rev 2487)
+++ trunk/ui/tree/src/main/resources/org/richfaces/renderkit/html/scripts/tree.js 2007-08-24 19:13:37 UTC (rev 2488)
@@ -19,7 +19,7 @@
Tree.CLASS_AJAX_SELECTED_LISTENER_FLAG = "ajax_selected_listener_flag";
Tree.prototype = {
- initialize: function(id, input, switchType, events, onAjaxSelect, toggleOnClick) {
+ initialize: function(id, input, switchType, events, onAjaxSelect, toggleOnClick, showConnectingLines) {
this.childs = [];
this.elements = {};
@@ -33,6 +33,7 @@
this.inputId = input;
this.input = $(this.inputId);
this.toggleOnClick = toggleOnClick;
+ this.showConnectingLines = showConnectingLines;
var options = Object.extend({
columnCount: 0
@@ -107,14 +108,14 @@
}.bindAsEventListener(this));
},
- getElements: function() {
+ getElements: function(ajaxUpdate) {
this.elements.contentTd = $(this.id +
Tree.ID_DEVIDER + Tree.ID_CHILDS_ROW/* + Tree.ID_DEVIDER + Tree.ID_CHILDS_TD*/);
if (this.elements.contentTd) {
for(var child = this.elements.contentTd.firstChild; child != null; child = child.nextSibling ) {
if (child.nodeType == 1 && child.tagName.toLowerCase() == "table") {
- this.addChild(new Tree.Item(child, this, this));
+ this.addChild(new Tree.Item(child, this, this, ajaxUpdate));
}
}
/*
@@ -145,7 +146,7 @@
}
this.childs = [];
- this.getElements();
+ this.getElements(true);
}
}
@@ -162,7 +163,7 @@
if (cid == nodeId) {
child.destroy();
- node.childs[i] = new Tree.Item(cid, this, child.parent);
+ node.childs[i] = new Tree.Item(cid, this, child.parent, true);
break;
} else {
var scid = cid.substring(0, cid.lastIndexOf(':'));
Modified: trunk/ui/tree/src/main/templates/htmlTree.jspx
===================================================================
--- trunk/ui/tree/src/main/templates/htmlTree.jspx 2007-08-24 18:58:45 UTC (rev 2487)
+++ trunk/ui/tree/src/main/templates/htmlTree.jspx 2007-08-24 19:13:37 UTC (rev 2488)
@@ -59,7 +59,8 @@
function(event) {
#{this:getAjaxScript(context, component)}
},
- #{component.toggleOnClick}
+ #{component.toggleOnClick},
+ #{component.showConnectingLines}
);
#{this:getScriptContributions(context, component)}
</script>
Modified: trunk/ui/tree/src/main/templates/htmlTreeNode.jspx
===================================================================
--- trunk/ui/tree/src/main/templates/htmlTreeNode.jspx 2007-08-24 18:58:45 UTC (rev 2487)
+++ trunk/ui/tree/src/main/templates/htmlTreeNode.jspx 2007-08-24 19:13:37 UTC (rev 2488)
@@ -41,6 +41,18 @@
<f:parameter value="id,onclick"/>
</f:call>
<td class="dr-tree-h-ic rich-tree-node-handleicon #{line}">
+ <jsp:scriptlet>
+ <![CDATA[
+ if (Boolean.TRUE.equals(component.getAttributes().get("isAjaxUpdateRoot")) && component.getUITree().isShowConnectingLines()) {
+ String lineBasic = getResource("org.richfaces.renderkit.html.images.TreeLineNodeImage").getUri(context, component);
+ String lineLast = getResource("org.richfaces.renderkit.html.images.TreeLineLastImage").getUri(context, component);
+ getUtils().writeAttribute(writer, "style",
+ "background-image:expression(this.parentNode.parentNode.parentNode.nextSibling.nextSibling ? " +
+ "'url(" + lineBasic + ")' : 'url(" + lineLast + ")')");
+ }
+ ]]>
+ </jsp:scriptlet>
+
<div>
<jsp:scriptlet>
<![CDATA[
Modified: trunk/ui/tree/src/test/java/org/richfaces/component/TreeComponentTest.java
===================================================================
--- trunk/ui/tree/src/test/java/org/richfaces/component/TreeComponentTest.java 2007-08-24 18:58:45 UTC (rev 2487)
+++ trunk/ui/tree/src/test/java/org/richfaces/component/TreeComponentTest.java 2007-08-24 19:13:37 UTC (rev 2488)
@@ -500,7 +500,7 @@
*/
public final void testQueueEventFacesEvent() {
NodeExpandedEvent nodeExpandedEvent = new NodeExpandedEvent(tree);
- NodeSelectedEvent nodeSelectedEvent = new NodeSelectedEvent(tree);
+ NodeSelectedEvent nodeSelectedEvent = new NodeSelectedEvent(tree, null);
ExpandAllCommandEvent expandAllCommandEvent = new ExpandAllCommandEvent(tree);
DragEvent dragEvent = new DragEvent(tree);
DropEvent dropEvent = new DropEvent(tree);
@@ -525,7 +525,7 @@
tree.setImmediate(true);
NodeExpandedEvent nodeExpandedEvent = new NodeExpandedEvent(tree);
- NodeSelectedEvent nodeSelectedEvent = new NodeSelectedEvent(tree);
+ NodeSelectedEvent nodeSelectedEvent = new NodeSelectedEvent(tree, null);
ExpandAllCommandEvent expandAllCommandEvent = new ExpandAllCommandEvent(tree);
DragEvent dragEvent = new DragEvent(tree);
DropEvent dropEvent = new DropEvent(tree);
Modified: trunk/ui/tree/src/test/java/org/richfaces/component/events/TreeEventsListenersTest.java
===================================================================
--- trunk/ui/tree/src/test/java/org/richfaces/component/events/TreeEventsListenersTest.java 2007-08-24 18:58:45 UTC (rev 2487)
+++ trunk/ui/tree/src/test/java/org/richfaces/component/events/TreeEventsListenersTest.java 2007-08-24 19:13:37 UTC (rev 2488)
@@ -73,7 +73,7 @@
}
public void testNodeSelectedListener() {
- NodeSelectedEvent event = new NodeSelectedEvent(source);
+ NodeSelectedEvent event = new NodeSelectedEvent(source, null);
SelectListener listener = new SelectListener();
Modified: trunk/ui/tree/src/test/java/org/richfaces/component/events/TreeEventsTest.java
===================================================================
--- trunk/ui/tree/src/test/java/org/richfaces/component/events/TreeEventsTest.java 2007-08-24 18:58:45 UTC (rev 2487)
+++ trunk/ui/tree/src/test/java/org/richfaces/component/events/TreeEventsTest.java 2007-08-24 19:13:37 UTC (rev 2488)
@@ -106,7 +106,7 @@
assertNotNull(events);
assertEquals(0, events.size());
- AjaxSelectedEvent event = new AjaxSelectedEvent(treeNode);
+ AjaxSelectedEvent event = new AjaxSelectedEvent(treeNode, null);
TreeEvents.invokeListenerBindings(treeNode, event, facesContext);
assertEquals(1, events.size());
@@ -130,7 +130,7 @@
assertEquals(0, events.size());
assertEquals(0, binding.getInvocationArgs().length);
- AjaxSelectedEvent event = new AjaxSelectedEvent(treeNode);
+ AjaxSelectedEvent event = new AjaxSelectedEvent(treeNode, null);
TreeEvents.invokeListenerBindings(treeNode, event, facesContext);
assertNotNull(events);
@@ -157,7 +157,7 @@
MockMethodBinding binding = new MockMethodBinding();
treeNode.setNodeSelectListener(binding);
- NodeSelectedEvent event = new NodeSelectedEvent(treeNode);
+ NodeSelectedEvent event = new NodeSelectedEvent(treeNode, null);
TreeEvents.invokeListenerBindings(treeNode, event, facesContext);
Object[][] args = binding.getInvocationArgs();
Modified: trunk/ui/tree/src/test/java/org/richfaces/renderkit/TreeRowKeyComparatorTest.java
===================================================================
--- trunk/ui/tree/src/test/java/org/richfaces/renderkit/TreeRowKeyComparatorTest.java 2007-08-24 18:58:45 UTC (rev 2487)
+++ trunk/ui/tree/src/test/java/org/richfaces/renderkit/TreeRowKeyComparatorTest.java 2007-08-24 19:13:37 UTC (rev 2488)
@@ -24,6 +24,7 @@
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
+import java.util.Iterator;
import org.richfaces.model.ListRowKey;
@@ -76,20 +77,25 @@
list.add(predKey);
list.add(supKey);
list.add(key);
+ list.add(null);
list.add(emptyKey);
+ list.add(null);
list.add(predLongKey);
Collections.sort(list, comparator);
- assertEquals(emptyKey, list.get(0));
- assertEquals(predKey, list.get(1));
- assertEquals(predLongKey, list.get(2));
- assertEquals(predSupKey, list.get(3));
- assertEquals(eqkey, list.get(4));
- assertEquals(key, list.get(5));
- assertEquals(supKey, list.get(6));
- assertEquals(succKey, list.get(7));
- assertEquals(succSupKey, list.get(8));
+ Iterator iterator = list.iterator();
+ assertNull(iterator.next());
+ assertNull(iterator.next());
+ assertEquals(emptyKey, iterator.next());
+ assertEquals(predKey, iterator.next());
+ assertEquals(predLongKey, iterator.next());
+ assertEquals(predSupKey, iterator.next());
+ assertEquals(eqkey, iterator.next());
+ assertEquals(key, iterator.next());
+ assertEquals(supKey, iterator.next());
+ assertEquals(succKey, iterator.next());
+ assertEquals(succSupKey, iterator.next());
}
}
18 years, 8 months