JBoss Tools SVN: r6231 - in trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test: META-INF and 25 other directories.
by jbosstools-commits@lists.jboss.org
Author: dsakovich
Date: 2008-02-11 08:50:58 -0500 (Mon, 11 Feb 2008)
New Revision: 6231
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/.classpath
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/.project
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/META-INF/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/META-INF/MANIFEST.MF
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/build.properties
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/plugin.xml
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.classpath
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.project
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.jdt.core.prefs
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.jst.common.project.facet.core.prefs
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.wst.common.component
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/META-INF/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/META-INF/MANIFEST.MF
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/c.tld
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/fmt.tld
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/fn.tld
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/lib/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/lib/jstl.jar
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/lib/standard.jar
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/permittedTaglibs.tld
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/scriptfree.tld
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/sql.tld
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/tags/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/tags/catalog.tag
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/tags/double.tag
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/web.xml
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/x.tld
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/attribute.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/body.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/declaration.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_include_absolute.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_include_relative.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_page.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_tag.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_taglib.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/doBody.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/element.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/expression.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/forward.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/forward1.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/get_property.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include_absolute.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include_relative.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/output.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/plugin.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/root.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/scriptlet.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/set_property.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/text.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/useBean.jsp
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/AnalogClock.class
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/CustomParser.class
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/JavaClock.class
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/ParamParser.class
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/src/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/src/org/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/src/org/jboss/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/src/org/jboss/jsp/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/src/org/jboss/jsp/test/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/src/org/jboss/jsp/test/Calendar.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/src/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/src/org/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPAllTests.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPComponentTest.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPTestPlugin.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1688
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/.classpath
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/.classpath (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/.classpath 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/.project
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/.project (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/.project 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.jsf.vpe.jsp.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/META-INF/MANIFEST.MF (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/META-INF/MANIFEST.MF 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,20 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Test Plug-in
+Bundle-SymbolicName: org.jboss.tools.jsf.vpe.jsp.test;singleton:=true
+Bundle-Version: 1.0.0
+Bundle-Activator: org.jboss.tools.jsf.vpe.jsp.test.JSPTestPlugin
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.jboss.tools.vpe,
+ org.junit,
+ org.eclipse.core.resources,
+ org.eclipse.ui.ide,
+ org.jboss.tools.common,
+ org.jboss.tools.jsf.vpe.ui.test,
+ org.jboss.tools.jst.jsp,
+ org.jboss.tools.vpe.xulrunner,
+ org.mozilla.xpcom
+Eclipse-LazyStart: true
+Export-Package: org.jboss.tools.jsf.vpe.jsp.test
+Bundle-ClassPath: jsp-tests.jar
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/build.properties
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/build.properties (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/build.properties 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,11 @@
+bin.includes = META-INF/,\
+ jsp-tests.jar,\
+ plugin.xml,\
+ resources/
+jars.compile.order = jsp-tests.jar
+source.jsp-tests.jar = src/
+output.jsp-tests.jar = bin/
+src.includes = META-INF/,\
+ build.properties,\
+ src/,\
+ resources/
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/plugin.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/plugin.xml (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/plugin.xml 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+<plugin>
+ <extension
+ point="org.jboss.tools.jsf.vpe.ui.tests">
+ <tests
+ description="JSP Tests"
+ name="JSP Tests"
+ testSuite="org.jboss.tools.jsf.vpe.jsp.test.JSPAllTests">
+ </tests>
+ </extension>
+
+</plugin>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.classpath
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.classpath (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.classpath 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v6.0"/>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <classpathentry kind="output" path="build/classes"/>
+</classpath>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.project
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.project (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.project 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>jspTest</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ </natures>
+</projectDescription>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.jdt.core.prefs 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,7 @@
+#Tue Feb 05 16:02:57 GMT+02:00 2008
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.jst.common.project.facet.core.prefs
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.jst.common.project.facet.core.prefs (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.jst.common.project.facet.core.prefs 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,4 @@
+#Tue Feb 05 16:02:58 GMT+02:00 2008
+classpath.helper/org.eclipse.jdt.launching.JRE_CONTAINER/owners=jst.java\:5.0
+classpath.helper/org.eclipse.jst.server.core.container\:\:org.eclipse.jst.server.tomcat.runtimeTarget\:\:Apache\ Tomcat\ v6.0/owners=jst.web\:2.5
+eclipse.preferences.version=1
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.wst.common.component
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.wst.common.component (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.wst.common.component 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+<wb-module deploy-name="jspTest">
+<wb-resource deploy-path="/" source-path="/WebContent"/>
+<wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/>
+<property name="context-root" value="jspTest"/>
+<property name="java-output-path" value="build/classes"/>
+</wb-module>
+</project-modules>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.wst.common.project.facet.core.xml (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/.settings/org.eclipse.wst.common.project.facet.core.xml 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="Apache Tomcat v6.0"/>
+ <fixed facet="jst.web"/>
+ <fixed facet="jst.java"/>
+ <installed facet="jst.java" version="5.0"/>
+ <installed facet="jst.web" version="2.5"/>
+</faceted-project>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/META-INF/MANIFEST.MF (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/META-INF/MANIFEST.MF 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/c.tld
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/c.tld (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/c.tld 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,563 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<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"
+ version="2.0">
+
+ <description>JSTL 1.1 core library</description>
+ <display-name>JSTL core</display-name>
+ <tlib-version>1.1</tlib-version>
+ <short-name>c</short-name>
+ <uri>http://java.sun.com/jsp/jstl/core</uri>
+
+ <validator>
+ <description>
+ Provides core validation features for JSTL tags.
+ </description>
+ <validator-class>
+ org.apache.taglibs.standard.tlv.JstlCoreTLV
+ </validator-class>
+ </validator>
+
+ <tag>
+ <description>
+ Catches any Throwable that occurs in its body and optionally
+ exposes it.
+ </description>
+ <name>catch</name>
+ <tag-class>org.apache.taglibs.standard.tag.common.core.CatchTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Name of the exported scoped variable for the
+exception thrown from a nested action. The type of the
+scoped variable is the type of the exception thrown.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Simple conditional tag that establishes a context for
+ mutually exclusive conditional operations, marked by
+ <when> and <otherwise>
+ </description>
+ <name>choose</name>
+ <tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag</tag-class>
+ <body-content>JSP</body-content>
+ </tag>
+
+ <tag>
+ <description>
+ Simple conditional tag, which evalutes its body if the
+ supplied condition is true and optionally exposes a Boolean
+ scripting variable representing the evaluation of this condition
+ </description>
+ <name>if</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.core.IfTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+The test condition that determines whether or
+not the body content should be processed.
+ </description>
+ <name>test</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ <type>boolean</type>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable for the
+resulting value of the test condition. The type
+of the scoped variable is Boolean.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope for var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Retrieves an absolute or relative URL and exposes its contents
+ to either the page, a String in 'var', or a Reader in 'varReader'.
+ </description>
+ <name>import</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.core.ImportTag</tag-class>
+ <tei-class>org.apache.taglibs.standard.tei.ImportTEI</tei-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+The URL of the resource to import.
+ </description>
+ <name>url</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable for the
+resource's content. The type of the scoped
+variable is String.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope for var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable for the
+resource's content. The type of the scoped
+variable is Reader.
+ </description>
+ <name>varReader</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the context when accessing a relative
+URL resource that belongs to a foreign
+context.
+ </description>
+ <name>context</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Character encoding of the content at the input
+resource.
+ </description>
+ <name>charEncoding</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ The basic iteration tag, accepting many different
+ collection types and supporting subsetting and other
+ functionality
+ </description>
+ <name>forEach</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.core.ForEachTag</tag-class>
+ <tei-class>org.apache.taglibs.standard.tei.ForEachTEI</tei-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Collection of items to iterate over.
+ </description>
+ <name>items</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <type>java.lang.Object</type>
+ </attribute>
+ <attribute>
+ <description>
+If items specified:
+Iteration begins at the item located at the
+specified index. First item of the collection has
+index 0.
+If items not specified:
+Iteration begins with index set at the value
+specified.
+ </description>
+ <name>begin</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <type>int</type>
+ </attribute>
+ <attribute>
+ <description>
+If items specified:
+Iteration ends at the item located at the
+specified index (inclusive).
+If items not specified:
+Iteration ends when index reaches the value
+specified.
+ </description>
+ <name>end</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <type>int</type>
+ </attribute>
+ <attribute>
+ <description>
+Iteration will only process every step items of
+the collection, starting with the first one.
+ </description>
+ <name>step</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <type>int</type>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable for the
+current item of the iteration. This scoped
+variable has nested visibility. Its type depends
+on the object of the underlying collection.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable for the
+status of the iteration. Object exported is of type
+javax.servlet.jsp.jstl.core.LoopTagStatus. This scoped variable has nested
+visibility.
+ </description>
+ <name>varStatus</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Iterates over tokens, separated by the supplied delimeters
+ </description>
+ <name>forTokens</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.core.ForTokensTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+String of tokens to iterate over.
+ </description>
+ <name>items</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ <type>java.lang.String</type>
+ </attribute>
+ <attribute>
+ <description>
+The set of delimiters (the characters that
+separate the tokens in the string).
+ </description>
+ <name>delims</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ <type>java.lang.String</type>
+ </attribute>
+ <attribute>
+ <description>
+Iteration begins at the token located at the
+specified index. First token has index 0.
+ </description>
+ <name>begin</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <type>int</type>
+ </attribute>
+ <attribute>
+ <description>
+Iteration ends at the token located at the
+specified index (inclusive).
+ </description>
+ <name>end</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <type>int</type>
+ </attribute>
+ <attribute>
+ <description>
+Iteration will only process every step tokens
+of the string, starting with the first one.
+ </description>
+ <name>step</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <type>int</type>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable for the
+current item of the iteration. This scoped
+variable has nested visibility.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable for the
+status of the iteration. Object exported is of
+type
+javax.servlet.jsp.jstl.core.LoopTag
+Status. This scoped variable has nested
+visibility.
+ </description>
+ <name>varStatus</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Like <%= ... >, but for expressions.
+ </description>
+ <name>out</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.core.OutTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Expression to be evaluated.
+ </description>
+ <name>value</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Default value if the resulting value is null.
+ </description>
+ <name>default</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Determines whether characters <,>,&,'," in the
+resulting string should be converted to their
+corresponding character entity codes. Default value is
+true.
+ </description>
+ <name>escapeXml</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+
+ <tag>
+ <description>
+ Subtag of <choose> that follows <when> tags
+ and runs only if all of the prior conditions evaluated to
+ 'false'
+ </description>
+ <name>otherwise</name>
+ <tag-class>org.apache.taglibs.standard.tag.common.core.OtherwiseTag</tag-class>
+ <body-content>JSP</body-content>
+ </tag>
+
+ <tag>
+ <description>
+ Adds a parameter to a containing 'import' tag's URL.
+ </description>
+ <name>param</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.core.ParamTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Name of the query string parameter.
+ </description>
+ <name>name</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Value of the parameter.
+ </description>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Redirects to a new URL.
+ </description>
+ <name>redirect</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.core.RedirectTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+The URL of the resource to redirect to.
+ </description>
+ <name>url</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the context when redirecting to a relative URL
+resource that belongs to a foreign context.
+ </description>
+ <name>context</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Removes a scoped variable (from a particular scope, if specified).
+ </description>
+ <name>remove</name>
+ <tag-class>org.apache.taglibs.standard.tag.common.core.RemoveTag</tag-class>
+ <body-content>empty</body-content>
+ <attribute>
+ <description>
+Name of the scoped variable to be removed.
+ </description>
+ <name>var</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope for var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Sets the result of an expression evaluation in a 'scope'
+ </description>
+ <name>set</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.core.SetTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Name of the exported scoped variable to hold the value
+specified in the action. The type of the scoped variable is
+whatever type the value expression evaluates to.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Expression to be evaluated.
+ </description>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Target object whose property will be set. Must evaluate to
+a JavaBeans object with setter property property, or to a
+java.util.Map object.
+ </description>
+ <name>target</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the property to be set in the target object.
+ </description>
+ <name>property</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope for var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Creates a URL with optional query parameters.
+ </description>
+ <name>url</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.core.UrlTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Name of the exported scoped variable for the
+processed url. The type of the scoped variable is
+String.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope for var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+URL to be processed.
+ </description>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the context when specifying a relative URL
+resource that belongs to a foreign context.
+ </description>
+ <name>context</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Subtag of <choose> that includes its body if its
+ condition evalutes to 'true'
+ </description>
+ <name>when</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.core.WhenTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+The test condition that determines whether or not the
+body content should be processed.
+ </description>
+ <name>test</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ <type>boolean</type>
+ </attribute>
+ </tag>
+
+</taglib>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/fmt.tld
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/fmt.tld (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/fmt.tld 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,671 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<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"
+ version="2.0">
+
+ <description>JSTL 1.1 i18n-capable formatting library</description>
+ <display-name>JSTL fmt</display-name>
+ <tlib-version>1.1</tlib-version>
+ <short-name>fmt</short-name>
+ <uri>http://java.sun.com/jsp/jstl/fmt</uri>
+
+ <validator>
+ <description>
+ Provides core validation features for JSTL tags.
+ </description>
+ <validator-class>
+ org.apache.taglibs.standard.tlv.JstlFmtTLV
+ </validator-class>
+ </validator>
+
+ <tag>
+ <description>
+ Sets the request character encoding
+ </description>
+ <name>requestEncoding</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.fmt.RequestEncodingTag</tag-class>
+ <body-content>empty</body-content>
+ <attribute>
+ <description>
+Name of character encoding to be applied when
+decoding request parameters.
+ </description>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Stores the given locale in the locale configuration variable
+ </description>
+ <name>setLocale</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.fmt.SetLocaleTag</tag-class>
+ <body-content>empty</body-content>
+ <attribute>
+ <description>
+A String value is interpreted as the
+printable representation of a locale, which
+must contain a two-letter (lower-case)
+language code (as defined by ISO-639),
+and may contain a two-letter (upper-case)
+country code (as defined by ISO-3166).
+Language and country codes must be
+separated by hyphen (-) or underscore
+(_).
+ </description>
+ <name>value</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Vendor- or browser-specific variant.
+See the java.util.Locale javadocs for
+more information on variants.
+ </description>
+ <name>variant</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope of the locale configuration variable.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Specifies the time zone for any time formatting or parsing actions
+ nested in its body
+ </description>
+ <name>timeZone</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.fmt.TimeZoneTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+The time zone. A String value is interpreted as
+a time zone ID. This may be one of the time zone
+IDs supported by the Java platform (such as
+"America/Los_Angeles") or a custom time zone
+ID (such as "GMT-8"). See
+java.util.TimeZone for more information on
+supported time zone formats.
+ </description>
+ <name>value</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Stores the given time zone in the time zone configuration variable
+ </description>
+ <name>setTimeZone</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.fmt.SetTimeZoneTag</tag-class>
+ <body-content>empty</body-content>
+ <attribute>
+ <description>
+The time zone. A String value is interpreted as
+a time zone ID. This may be one of the time zone
+IDs supported by the Java platform (such as
+"America/Los_Angeles") or a custom time zone
+ID (such as "GMT-8"). See java.util.TimeZone for
+more information on supported time zone
+formats.
+ </description>
+ <name>value</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable which
+stores the time zone of type
+java.util.TimeZone.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope of var or the time zone configuration
+variable.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Loads a resource bundle to be used by its tag body
+ </description>
+ <name>bundle</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.fmt.BundleTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Resource bundle base name. This is the bundle's
+fully-qualified resource name, which has the same
+form as a fully-qualified class name, that is, it uses
+"." as the package component separator and does not
+have any file type (such as ".class" or ".properties")
+suffix.
+ </description>
+ <name>basename</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Prefix to be prepended to the value of the message
+key of any nested <fmt:message> action.
+ </description>
+ <name>prefix</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Loads a resource bundle and stores it in the named scoped variable or
+ the bundle configuration variable
+ </description>
+ <name>setBundle</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.fmt.SetBundleTag</tag-class>
+ <body-content>empty</body-content>
+ <attribute>
+ <description>
+Resource bundle base name. This is the bundle's
+fully-qualified resource name, which has the same
+form as a fully-qualified class name, that is, it uses
+"." as the package component separator and does not
+have any file type (such as ".class" or ".properties")
+suffix.
+ </description>
+ <name>basename</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable which stores
+the i18n localization context of type
+javax.servlet.jsp.jstl.fmt.LocalizationC
+ontext.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope of var or the localization context
+configuration variable.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Maps key to localized message and performs parametric replacement
+ </description>
+ <name>message</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.fmt.MessageTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Message key to be looked up.
+ </description>
+ <name>key</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Localization context in whose resource
+bundle the message key is looked up.
+ </description>
+ <name>bundle</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable
+which stores the localized message.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope of var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Supplies an argument for parametric replacement to a containing
+ <message> tag
+ </description>
+ <name>param</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.fmt.ParamTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Argument used for parametric replacement.
+ </description>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Formats a numeric value as a number, currency, or percentage
+ </description>
+ <name>formatNumber</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.fmt.FormatNumberTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Numeric value to be formatted.
+ </description>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Specifies whether the value is to be
+formatted as number, currency, or
+percentage.
+ </description>
+ <name>type</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Custom formatting pattern.
+ </description>
+ <name>pattern</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+ISO 4217 currency code. Applied only
+when formatting currencies (i.e. if type is
+equal to "currency"); ignored otherwise.
+ </description>
+ <name>currencyCode</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Currency symbol. Applied only when
+formatting currencies (i.e. if type is equal
+to "currency"); ignored otherwise.
+ </description>
+ <name>currencySymbol</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Specifies whether the formatted output
+will contain any grouping separators.
+ </description>
+ <name>groupingUsed</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Maximum number of digits in the integer
+portion of the formatted output.
+ </description>
+ <name>maxIntegerDigits</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Minimum number of digits in the integer
+portion of the formatted output.
+ </description>
+ <name>minIntegerDigits</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Maximum number of digits in the
+fractional portion of the formatted output.
+ </description>
+ <name>maxFractionDigits</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Minimum number of digits in the
+fractional portion of the formatted output.
+ </description>
+ <name>minFractionDigits</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable
+which stores the formatted result as a
+String.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope of var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Parses the string representation of a number, currency, or percentage
+ </description>
+ <name>parseNumber</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.fmt.ParseNumberTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+String to be parsed.
+ </description>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Specifies whether the string in the value
+attribute should be parsed as a number,
+currency, or percentage.
+ </description>
+ <name>type</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Custom formatting pattern that determines
+how the string in the value attribute is to be
+parsed.
+ </description>
+ <name>pattern</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Locale whose default formatting pattern (for
+numbers, currencies, or percentages,
+respectively) is to be used during the parse
+operation, or to which the pattern specified
+via the pattern attribute (if present) is
+applied.
+ </description>
+ <name>parseLocale</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Specifies whether just the integer portion of
+the given value should be parsed.
+ </description>
+ <name>integerOnly</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable which
+stores the parsed result (of type
+java.lang.Number).
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope of var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Formats a date and/or time using the supplied styles and pattern
+ </description>
+ <name>formatDate</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.fmt.FormatDateTag</tag-class>
+ <body-content>empty</body-content>
+ <attribute>
+ <description>
+Date and/or time to be formatted.
+ </description>
+ <name>value</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Specifies whether the time, the date, or both
+the time and date components of the given
+date are to be formatted.
+ </description>
+ <name>type</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Predefined formatting style for dates. Follows
+the semantics defined in class
+java.text.DateFormat. Applied only
+when formatting a date or both a date and
+time (i.e. if type is missing or is equal to
+"date" or "both"); ignored otherwise.
+ </description>
+ <name>dateStyle</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Predefined formatting style for times. Follows
+the semantics defined in class
+java.text.DateFormat. Applied only
+when formatting a time or both a date and
+time (i.e. if type is equal to "time" or "both");
+ignored otherwise.
+ </description>
+ <name>timeStyle</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Custom formatting style for dates and times.
+ </description>
+ <name>pattern</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Time zone in which to represent the formatted
+time.
+ </description>
+ <name>timeZone</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable which
+stores the formatted result as a String.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope of var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Parses the string representation of a date and/or time
+ </description>
+ <name>parseDate</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.fmt.ParseDateTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Date string to be parsed.
+ </description>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Specifies whether the date string in the
+value attribute is supposed to contain a
+time, a date, or both.
+ </description>
+ <name>type</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Predefined formatting style for days
+which determines how the date
+component of the date string is to be
+parsed. Applied only when formatting a
+date or both a date and time (i.e. if type
+is missing or is equal to "date" or "both");
+ignored otherwise.
+ </description>
+ <name>dateStyle</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Predefined formatting styles for times
+which determines how the time
+component in the date string is to be
+parsed. Applied only when formatting a
+time or both a date and time (i.e. if type
+is equal to "time" or "both"); ignored
+otherwise.
+ </description>
+ <name>timeStyle</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Custom formatting pattern which
+determines how the date string is to be
+parsed.
+ </description>
+ <name>pattern</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Time zone in which to interpret any time
+information in the date string.
+ </description>
+ <name>timeZone</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Locale whose predefined formatting styles
+for dates and times are to be used during
+the parse operation, or to which the
+pattern specified via the pattern
+attribute (if present) is applied.
+ </description>
+ <name>parseLocale</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable in
+which the parsing result (of type
+java.util.Date) is stored.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope of var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+</taglib>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/fn.tld
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/fn.tld (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/fn.tld 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,207 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<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"
+ version="2.0">
+
+ <description>JSTL 1.1 functions library</description>
+ <display-name>JSTL functions</display-name>
+ <tlib-version>1.1</tlib-version>
+ <short-name>fn</short-name>
+ <uri>http://java.sun.com/jsp/jstl/functions</uri>
+
+ <function>
+ <description>
+ Tests if an input string contains the specified substring.
+ </description>
+ <name>contains</name>
+ <function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>boolean contains(java.lang.String, java.lang.String)</function-signature>
+ <example>
+ <c:if test="${fn:contains(name, searchString)}">
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Tests if an input string contains the specified substring in a case insensitive way.
+ </description>
+ <name>containsIgnoreCase</name>
+ <function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>boolean containsIgnoreCase(java.lang.String, java.lang.String)</function-signature>
+ <example>
+ <c:if test="${fn:containsIgnoreCase(name, searchString)}">
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Tests if an input string ends with the specified suffix.
+ </description>
+ <name>endsWith</name>
+ <function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>boolean endsWith(java.lang.String, java.lang.String)</function-signature>
+ <example>
+ <c:if test="${fn:endsWith(filename, ".txt")}">
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Escapes characters that could be interpreted as XML markup.
+ </description>
+ <name>escapeXml</name>
+ <function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>java.lang.String escapeXml(java.lang.String)</function-signature>
+ <example>
+ ${fn:escapeXml(param:info)}
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Returns the index withing a string of the first occurrence of a specified substring.
+ </description>
+ <name>indexOf</name>
+ <function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>int indexOf(java.lang.String, java.lang.String)</function-signature>
+ <example>
+ ${fn:indexOf(name, "-")}
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Joins all elements of an array into a string.
+ </description>
+ <name>join</name>
+ <function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>java.lang.String join(java.lang.String[], java.lang.String)</function-signature>
+ <example>
+ ${fn:join(array, ";")}
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Returns the number of items in a collection, or the number of characters in a string.
+ </description>
+ <name>length</name>
+ <function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>int length(java.lang.Object)</function-signature>
+ <example>
+ You have ${fn:length(shoppingCart.products)} in your shopping cart.
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Returns a string resulting from replacing in an input string all occurrences
+ of a "before" string into an "after" substring.
+ </description>
+ <name>replace</name>
+ <function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>java.lang.String replace(java.lang.String, java.lang.String, java.lang.String)</function-signature>
+ <example>
+ ${fn:replace(text, "-", "•")}
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Splits a string into an array of substrings.
+ </description>
+ <name>split</name>
+ <function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>java.lang.String[] split(java.lang.String, java.lang.String)</function-signature>
+ <example>
+ ${fn:split(customerNames, ";")}
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Tests if an input string starts with the specified prefix.
+ </description>
+ <name>startsWith</name>
+ <function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>boolean startsWith(java.lang.String, java.lang.String)</function-signature>
+ <example>
+ <c:if test="${fn:startsWith(product.id, "100-")}">
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Returns a subset of a string.
+ </description>
+ <name>substring</name>
+ <function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>java.lang.String substring(java.lang.String, int, int)</function-signature>
+ <example>
+ P.O. Box: ${fn:substring(zip, 6, -1)}
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Returns a subset of a string following a specific substring.
+ </description>
+ <name>substringAfter</name>
+ <function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>java.lang.String substringAfter(java.lang.String, java.lang.String)</function-signature>
+ <example>
+ P.O. Box: ${fn:substringAfter(zip, "-")}
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Returns a subset of a string before a specific substring.
+ </description>
+ <name>substringBefore</name>
+ <function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>java.lang.String substringBefore(java.lang.String, java.lang.String)</function-signature>
+ <example>
+ Zip (without P.O. Box): ${fn:substringBefore(zip, "-")}
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Converts all of the characters of a string to lower case.
+ </description>
+ <name>toLowerCase</name>
+ <function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>java.lang.String toLowerCase(java.lang.String)</function-signature>
+ <example>
+ Product name: ${fn.toLowerCase(product.name)}
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Converts all of the characters of a string to upper case.
+ </description>
+ <name>toUpperCase</name>
+ <function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>java.lang.String toUpperCase(java.lang.String)</function-signature>
+ <example>
+ Product name: ${fn.UpperCase(product.name)}
+ </example>
+ </function>
+
+ <function>
+ <description>
+ Removes white spaces from both ends of a string.
+ </description>
+ <name>trim</name>
+ <function-class>org.apache.taglibs.standard.functions.Functions</function-class>
+ <function-signature>java.lang.String trim(java.lang.String)</function-signature>
+ <example>
+ Name: ${fn.trim(name)}
+ </example>
+ </function>
+
+</taglib>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/lib/jstl.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/lib/jstl.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/lib/standard.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/lib/standard.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/permittedTaglibs.tld
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/permittedTaglibs.tld (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/permittedTaglibs.tld 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<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"
+ version="2.0">
+ <description>
+ Restricts JSP pages to the JSTL tag libraries
+ </description>
+ <display-name>permittedTaglibs</display-name>
+ <tlib-version>1.1</tlib-version>
+ <short-name>permittedTaglibs</short-name>
+ <uri>http://jakarta.apache.org/taglibs/standard/permittedTaglibs</uri>
+
+ <validator>
+ <validator-class>
+ javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV
+ </validator-class>
+ <init-param>
+ <description>
+ Whitespace-separated list of taglib URIs to permit. This example
+ TLD for the Standard Taglib allows only JSTL 'el' taglibs to be
+ imported.
+ </description>
+ <param-name>permittedTaglibs</param-name>
+ <param-value>
+ http://java.sun.com/jsp/jstl/core
+ http://java.sun.com/jsp/jstl/fmt
+ http://java.sun.com/jsp/jstl/sql
+ http://java.sun.com/jsp/jstl/xml
+ </param-value>
+ </init-param>
+ </validator>
+</taglib>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/scriptfree.tld
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/scriptfree.tld (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/scriptfree.tld 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<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"
+ version="2.0">
+ <description>
+ Validates JSP pages to prohibit use of scripting elements.
+ </description>
+ <tlib-version>1.1</tlib-version>
+ <short-name>scriptfree</short-name>
+ <uri>http://jakarta.apache.org/taglibs/standard/scriptfree</uri>
+
+ <validator>
+ <description>
+ Validates prohibitions against scripting elements.
+ </description>
+ <validator-class>
+ javax.servlet.jsp.jstl.tlv.ScriptFreeTLV
+ </validator-class>
+ <init-param>
+ <description>
+ Controls whether or not declarations are considered valid.
+ </description>
+ <param-name>allowDeclarations</param-name>
+ <param-value>false</param-value>
+ </init-param>
+ <init-param>
+ <description>
+ Controls whether or not scriptlets are considered valid.
+ </description>
+ <param-name>allowScriptlets</param-name>
+ <param-value>false</param-value>
+ </init-param>
+ <init-param>
+ <description>
+ Controls whether or not top-level expressions are considered valid.
+ </description>
+ <param-name>allowExpressions</param-name>
+ <param-value>false</param-value>
+ </init-param>
+ <init-param>
+ <description>
+ Controls whether or not expressions used to supply request-time
+ attribute values are considered valid.
+ </description>
+ <param-name>allowRTExpressions</param-name>
+ <param-value>false</param-value>
+ </init-param>
+ </validator>
+</taglib>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/sql.tld
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/sql.tld (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/sql.tld 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,289 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<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"
+ version="2.0">
+
+ <description>JSTL 1.1 sql library</description>
+ <display-name>JSTL sql</display-name>
+ <tlib-version>1.1</tlib-version>
+ <short-name>sql</short-name>
+ <uri>http://java.sun.com/jsp/jstl/sql</uri>
+
+ <validator>
+ <description>
+ Provides core validation features for JSTL tags.
+ </description>
+ <validator-class>
+ org.apache.taglibs.standard.tlv.JstlSqlTLV
+ </validator-class>
+ </validator>
+
+ <tag>
+ <description>
+ Provides nested database action elements with a shared Connection,
+ set up to execute all statements as one transaction.
+ </description>
+ <name>transaction</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.sql.TransactionTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+DataSource associated with the database to access. A
+String value represents a relative path to a JNDI
+resource or the parameters for the JDBC
+DriverManager facility.
+ </description>
+ <name>dataSource</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Transaction isolation level. If not specified, it is the
+isolation level the DataSource has been configured
+with.
+ </description>
+ <name>isolation</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Executes the SQL query defined in its body or through the
+ sql attribute.
+ </description>
+ <name>query</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.sql.QueryTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Name of the exported scoped variable for the
+query result. The type of the scoped variable is
+javax.servlet.jsp.jstl.sql.
+Result (see Chapter 16 "Java APIs").
+ </description>
+ <name>var</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope of var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+SQL query statement.
+ </description>
+ <name>sql</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Data source associated with the database to
+query. A String value represents a relative path
+to a JNDI resource or the parameters for the
+DriverManager class.
+ </description>
+ <name>dataSource</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+The returned Result object includes the rows
+starting at the specified index. The first row of
+the original query result set is at index 0. If not
+specified, rows are included starting from the
+first row at index 0.
+ </description>
+ <name>startRow</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+The maximum number of rows to be included in
+the query result. If not specified, or set to -1, no
+limit on the maximum number of rows is
+enforced.
+ </description>
+ <name>maxRows</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Executes the SQL update defined in its body or through the
+ sql attribute.
+ </description>
+ <name>update</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.sql.UpdateTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Name of the exported scoped variable for the result
+of the database update. The type of the scoped
+variable is java.lang.Integer.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope of var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+SQL update statement.
+ </description>
+ <name>sql</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Data source associated with the database to update.
+A String value represents a relative path to a JNDI
+resource or the parameters for the JDBC
+DriverManager class.
+ </description>
+ <name>dataSource</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Sets a parameter in an SQL statement to the specified value.
+ </description>
+ <name>param</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.sql.ParamTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Parameter value.
+ </description>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Sets a parameter in an SQL statement to the specified java.util.Date value.
+ </description>
+ <name>dateParam</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.sql.DateParamTag</tag-class>
+ <body-content>empty</body-content>
+ <attribute>
+ <description>
+Parameter value for DATE, TIME, or
+TIMESTAMP column in a database table.
+ </description>
+ <name>value</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+One of "date", "time" or "timestamp".
+ </description>
+ <name>type</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Creates a simple DataSource suitable only for prototyping.
+ </description>
+ <name>setDataSource</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.sql.SetDataSourceTag</tag-class>
+ <body-content>empty</body-content>
+ <attribute>
+ <description>
+Name of the exported scoped variable
+for the data source specified. Type can
+be String or DataSource.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+If var is specified, scope of the
+exported variable. Otherwise, scope of
+the data source configuration variable.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Data source. If specified as a string, it
+can either be a relative path to a JNDI
+resource, or a JDBC parameters string
+as defined in Section 10.1.1.
+ </description>
+ <name>dataSource</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+JDBC parameter: driver class name.
+ </description>
+ <name>driver</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+JDBC parameter: URL associated with
+the database.
+ </description>
+ <name>url</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+JDBC parameter: database user on
+whose behalf the connection to the
+database is being made.
+ </description>
+ <name>user</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+JDBC parameter: user password
+ </description>
+ <name>password</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+</taglib>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/tags/catalog.tag
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/tags/catalog.tag (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/tags/catalog.tag 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,46 @@
+<jsp:directive.taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
+<jsp:directive.taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
+
+<jsp:directive.attribute name="bookDB" required="true" type="com.sun.bookstore3.database.BookDB" %>
+<jsp:directive.attribute name="color" required="true" />
+<jsp:directive.attribute name="normalPrice" fragment="true" />
+<jsp:directive.attribute name="onSale" fragment="true" />
+<jsp:directive.variable name-given="price" />
+<jsp:directive.variable name-given="salePrice" />
+
+<center>
+<table summary="layout">
+<c:forEach var="book" begin="0" items="${bookDB.books}">
+ <tr>
+ <c:set var="bookId" value="${book.bookId}" />
+ <td bgcolor="${color}">
+ <c:url var="url" value="/bookdetails" >
+ <c:param name="bookId" value="${bookId}" />
+ </c:url>
+ <a href="${url}"><strong>${book.title} </strong></a></td>
+ <td bgcolor="${color}" rowspan=2>
+
+ <c:set var="salePrice" value="${book.price * .85}" />
+ <c:set var="price" value="${book.price}" />
+ <c:choose>
+ <c:when test="${book.onSale}" >
+ <jsp:invoke fragment="onSale" />
+ </c:when>
+ <c:otherwise>
+ <jsp:invoke fragment="normalPrice" />
+ </c:otherwise>
+ </c:choose>
+ </td>
+ <td bgcolor="${color}" rowspan=2>
+ <c:url var="url" value="/bookcatalog" >
+ <c:param name="Add" value="${bookId}" />
+ </c:url>
+ <p><strong><a href="${url}"> <fmt:message key="CartAdd"/> </a></td></tr>
+ <tr>
+ <td bgcolor="#ffffff">
+ <fmt:message key="By"/> <em>${book.firstName} ${book.surname}</em></td></tr>
+</c:forEach>
+</table>
+</center>
+
+
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/tags/double.tag
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/tags/double.tag (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/tags/double.tag 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,3 @@
+<%-- double.tag --%>
+<jsp:doBody />
+<jsp:doBody />
\ No newline at end of file
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/web.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/web.xml (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/web.xml 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
+ <display-name>jspTest</display-name>
+ <welcome-file-list>
+ <welcome-file>index.html</welcome-file>
+ <welcome-file>index.htm</welcome-file>
+ <welcome-file>index.jsp</welcome-file>
+ <welcome-file>default.html</welcome-file>
+ <welcome-file>default.htm</welcome-file>
+ <welcome-file>default.jsp</welcome-file>
+ </welcome-file-list>
+</web-app>
\ No newline at end of file
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/x.tld
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/x.tld (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/WEB-INF/x.tld 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,448 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<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"
+ version="2.0">
+
+ <description>JSTL 1.1 XML library</description>
+ <display-name>JSTL XML</display-name>
+ <tlib-version>1.1</tlib-version>
+ <short-name>x</short-name>
+ <uri>http://java.sun.com/jsp/jstl/xml</uri>
+
+ <validator>
+ <description>
+ Provides validation features for JSTL XML tags.
+ </description>
+ <validator-class>
+ org.apache.taglibs.standard.tlv.JstlXmlTLV
+ </validator-class>
+ </validator>
+
+ <tag>
+ <description>
+ Simple conditional tag that establishes a context for
+ mutually exclusive conditional operations, marked by
+ <when> and <otherwise>
+ </description>
+ <name>choose</name>
+ <tag-class>org.apache.taglibs.standard.tag.common.core.ChooseTag</tag-class>
+ <body-content>JSP</body-content>
+ </tag>
+
+ <tag>
+ <description>
+ Like <%= ... >, but for XPath expressions.
+ </description>
+ <name>out</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.xml.ExprTag</tag-class>
+ <body-content>empty</body-content>
+ <attribute>
+ <description>
+XPath expression to be evaluated.
+ </description>
+ <name>select</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Determines whether characters <,>,&,'," in the
+resulting string should be converted to their
+corresponding character entity codes. Default
+value is true.
+ </description>
+ <name>escapeXml</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ XML conditional tag, which evalutes its body if the
+ supplied XPath expression evalutes to 'true' as a boolean
+ </description>
+ <name>if</name>
+ <tag-class>org.apache.taglibs.standard.tag.common.xml.IfTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+The test condition that tells whether or not the
+body content should be processed.
+ </description>
+ <name>select</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable for the
+resulting value of the test condition. The type
+of the scoped variable is Boolean.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope for var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ XML iteration tag.
+ </description>
+ <name>forEach</name>
+ <tag-class>org.apache.taglibs.standard.tag.common.xml.ForEachTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Name of the exported scoped variable for the
+current item of the iteration. This scoped variable
+has nested visibility. Its type depends on the
+result of the XPath expression in the select
+attribute.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+XPath expression to be evaluated.
+ </description>
+ <name>select</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Iteration begins at the item located at the
+specified index. First item of the collection has
+index 0.
+ </description>
+ <name>begin</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <type>int</type>
+ </attribute>
+ <attribute>
+ <description>
+Iteration ends at the item located at the specified
+index (inclusive).
+ </description>
+ <name>end</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <type>int</type>
+ </attribute>
+ <attribute>
+ <description>
+Iteration will only process every step items of
+the collection, starting with the first one.
+ </description>
+ <name>step</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ <type>int</type>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable for the
+status of the iteration. Object exported is of type
+javax.servlet.jsp.jstl.core.LoopTagStatus. This scoped variable has nested visibility.
+ </description>
+ <name>varStatus</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Subtag of <choose> that follows <when> tags
+ and runs only if all of the prior conditions evaluated to
+ 'false'
+ </description>
+ <name>otherwise</name>
+ <tag-class>org.apache.taglibs.standard.tag.common.core.OtherwiseTag</tag-class>
+ <body-content>JSP</body-content>
+ </tag>
+
+ <tag>
+ <description>
+ Adds a parameter to a containing 'transform' tag's Transformer
+ </description>
+ <name>param</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.xml.ParamTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Name of the transformation parameter.
+ </description>
+ <name>name</name>
+ <required>true</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Value of the parameter.
+ </description>
+ <name>value</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Parses XML content from 'source' attribute or 'body'
+ </description>
+ <name>parse</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.xml.ParseTag</tag-class>
+ <tei-class>org.apache.taglibs.standard.tei.XmlParseTEI</tei-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Name of the exported scoped variable for
+the parsed XML document. The type of the
+scoped variable is implementation
+dependent.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Name of the exported scoped variable for
+the parsed XML document. The type of the
+scoped variable is
+org.w3c.dom.Document.
+ </description>
+ <name>varDom</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope for var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope for varDom.
+ </description>
+ <name>scopeDom</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Deprecated. Use attribute 'doc' instead.
+ </description>
+ <name>xml</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Source XML document to be parsed.
+ </description>
+ <name>doc</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+The system identifier (URI) for parsing the
+XML document.
+ </description>
+ <name>systemId</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Filter to be applied to the source
+document.
+ </description>
+ <name>filter</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Saves the result of an XPath expression evaluation in a 'scope'
+ </description>
+ <name>set</name>
+ <tag-class>org.apache.taglibs.standard.tag.common.xml.SetTag</tag-class>
+ <body-content>empty</body-content>
+ <attribute>
+ <description>
+Name of the exported scoped variable to hold
+the value specified in the action. The type of the
+scoped variable is whatever type the select
+expression evaluates to.
+ </description>
+ <name>var</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+XPath expression to be evaluated.
+ </description>
+ <name>select</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope for var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Conducts a transformation given a source XML document
+ and an XSLT stylesheet
+ </description>
+ <name>transform</name>
+ <tag-class>org.apache.taglibs.standard.tag.rt.xml.TransformTag</tag-class>
+ <tei-class>org.apache.taglibs.standard.tei.XmlTransformTEI</tei-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+Name of the exported
+scoped variable for the
+transformed XML
+document. The type of the
+scoped variable is
+org.w3c.dom.Document.
+ </description>
+ <name>var</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Scope for var.
+ </description>
+ <name>scope</name>
+ <required>false</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Result
+Object that captures or
+processes the transformation
+result.
+ </description>
+ <name>result</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Deprecated. Use attribute
+'doc' instead.
+ </description>
+ <name>xml</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Source XML document to be
+transformed. (If exported by
+<x:set>, it must correspond
+to a well-formed XML
+document, not a partial
+document.)
+ </description>
+ <name>doc</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+Deprecated. Use attribute
+'docSystemId' instead.
+ </description>
+ <name>xmlSystemId</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+The system identifier (URI)
+for parsing the XML
+document.
+ </description>
+ <name>docSystemId</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+javax.xml.transform.Source
+Transformation stylesheet as
+a String, Reader, or
+Source object.
+ </description>
+ <name>xslt</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ <attribute>
+ <description>
+The system identifier (URI)
+for parsing the XSLT
+stylesheet.
+ </description>
+ <name>xsltSystemId</name>
+ <required>false</required>
+ <rtexprvalue>true</rtexprvalue>
+ </attribute>
+ </tag>
+
+ <tag>
+ <description>
+ Subtag of <choose> that includes its body if its
+ expression evalutes to 'true'
+ </description>
+ <name>when</name>
+ <tag-class>org.apache.taglibs.standard.tag.common.xml.WhenTag</tag-class>
+ <body-content>JSP</body-content>
+ <attribute>
+ <description>
+The test condition that tells whether or
+not the body content should be
+processed
+ </description>
+ <name>select</name>
+ <required>true</required>
+ <rtexprvalue>false</rtexprvalue>
+ </attribute>
+ </tag>
+
+</taglib>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/attribute.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/attribute.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/attribute.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>jsp:attribute test</title>
+ </head>
+ <body>
+ <h1>jsp:attribute test</h1>
+ <jsp:attribute name="user">User</jsp:attribute>
+ <p>User is : ${param.user}</p>
+ </body>
+ </html>
+</jsp:root>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/body.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/body.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/body.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>jsp:body test</title>
+ </head>
+ <jsp:body>
+ <h1>jsp:body test</h1>
+ </jsp:body>
+ </html>
+</jsp:root>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/declaration.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/declaration.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/declaration.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
+<jsp:directive.page import="java.util.Date"/>
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>Declaration test</title>
+ </head>
+ <body>
+ <h1>Declaration test</h1>
+ <jsp:declaration>
+ Date date = new Date();
+ </jsp:declaration>
+ <jsp:scriptlet>
+ out.println(date);
+ </jsp:scriptlet>
+ </body>
+ </html>
+</jsp:root>
+
\ No newline at end of file
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_include_absolute.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_include_absolute.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_include_absolute.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>jsp:directive.include test with absolute path</title>
+ </head>
+ <body>
+ <h1>jsp:directive.include test with absolute path</h1>
+ <jsp:directive.include file="/pages/components/include.jsp"/>
+ </body>
+ </html>
+</jsp:root>
+
\ No newline at end of file
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_include_relative.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_include_relative.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_include_relative.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>jsp:directive.include test with relative path</title>
+ </head>
+ <body>
+ <h1>jsp:directive.include test with relative path</h1>
+ <jsp:directive.include file="./include.jsp"/>
+ </body>
+ </html>
+</jsp:root>
+
\ No newline at end of file
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_page.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_page.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_page.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
+ <jsp:directive.page import="java.util.Date" />
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>jsp:directive.page test</title>
+ </head>
+ <body>
+ <h1>jsp:directive.page test</h1>
+ <jsp:expression>
+ new Date()
+ </jsp:expression>
+ </body>
+ </html>
+</jsp:root>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_tag.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_tag.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_tag.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+ xmlns:c="http://java.sun.com/jsp/jstl/core">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>jsp:directive.tag test</title>
+ </head>
+ <body>
+ <h1>jsp:directive.tag test</h1>
+ <ul>
+ <c:forEach var="color" begin="0" items="${colorMap}">
+ <li>${color.key} = <font color="${color.value}">${color.value}</font><li>
+ </c:forEach>
+ </ul>
+ </body>
+ </html>
+</jsp:root>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_taglib.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_taglib.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/directive_taglib.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
+ <jsp:directive.taglib uri="http://java.sun.com/jstl/core" prefix="c" />
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>jsp:directive.taglib test</title>
+ </head>
+ <body>
+ <h1>jsp:directive.taglib test</h1>
+ <c:set var="bookId" value="${book.bookId}" />
+ </body>
+ </html>
+</jsp:root>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/doBody.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/doBody.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/doBody.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
+ xmlns:tags="/WEB-INF/tags">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>jsp:doBody test</title>
+ </head>
+ <jsp:body>
+ <h1>jsp:doBody test</h1>
+ <tags:double>
+ This text will be printed twice.<br/>
+ </tags:double>
+ </jsp:body>
+ </html>
+</jsp:root>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/element.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/element.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/element.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>jsp:element test</title>
+ </head>
+ <jsp:element name="body">
+ <jsp:body>
+ <h1>jsp:element test</h1>
+ </jsp:body>
+ </jsp:element>
+ </html>
+</jsp:root>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/expression.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/expression.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/expression.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
+<jsp:directive.page import="java.util.Date"/>
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>Expression test</title>
+ </head>
+ <body>
+ <h1>Expression test</h1>
+ <jsp:expression>
+ new Date()
+ </jsp:expression>
+ </body>
+ </html>
+</jsp:root>
+
\ No newline at end of file
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/forward.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/forward.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/forward.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>jsp:body test</title>
+ </head>
+ <jsp:body>
+ <h1>jsp:forward test</h1>
+ <jsp:forward page="forward1.jsp">
+ <jsp:param name="username" value="User" />
+ </jsp:forward>
+ </jsp:body>
+ </html>
+</jsp:root>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/forward1.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/forward1.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/forward1.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>jsp:body test</title>
+ </head>
+ <body>
+ <h1>jsp:forward test</h1>
+ <p>User is : ${param.username}</p>
+
+ </body>
+ </html>
+</jsp:root>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/get_property.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/get_property.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/get_property.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>jsp:getProperty test</title>
+ </head>
+ <body>
+ <h1>jsp:getProperty test</h1>
+ <jsp:useBean id="calendar" scope="page" class="org.jboss.jsp.test.Calendar" />
+ <h2>Calendar for <jsp:getProperty name="calendar"
+ property="username" /></h2>
+ </body>
+ </html>
+</jsp:root>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,3 @@
+<jsp:expression>
+ new java.util.Date()
+</jsp:expression>
\ No newline at end of file
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include_absolute.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include_absolute.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include_absolute.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>jsp:include test with absolute path</title>
+ </head>
+ <body>
+ <h1>jsp:include test with absolute path</h1>
+ <jsp:include page="/pages/components/include.jsp"/>
+ </body>
+ </html>
+</jsp:root>
+
\ No newline at end of file
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include_relative.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include_relative.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/include_relative.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>jsp:include test with relative path</title>
+ </head>
+ <body>
+ <h1>jsp:include test with relative path</h1>
+ <jsp:include page="./include.jsp"/>
+ </body>
+ </html>
+</jsp:root>
+
\ No newline at end of file
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/output.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/output.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/output.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>jsp:output test</title>
+ </head>
+ <body>
+ <h1>jsp:output test</h1>
+ <jsp:output doctype-root-element="html"
+ doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
+ doctype-system="http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
+ </body>
+ </html>
+</jsp:root>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/plugin.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/plugin.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/plugin.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>jsp:plugin test</title>
+ </head>
+ <body>
+ <h1>jsp:plugin test</h1>
+ <jsp:plugin type="applet" code="JavaClock.class"
+ codebase="/resources/applets" width="160"
+ height="150">
+ <jsp:fallback>
+ Plugin tag not supported.
+ </jsp:fallback>
+ </jsp:plugin>
+ </body>
+ </html>
+</jsp:root>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/root.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/root.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/root.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>jsp:root test</title>
+ </head>
+ <body>
+ <h1>jsp:root test</h1>
+ </body>
+ </html>
+</jsp:root>
+
\ No newline at end of file
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/scriptlet.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/scriptlet.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/scriptlet.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
+ <jsp:directive.page import="java.util.Date" />
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>Scriptlet Test</title>
+ </head>
+ <body>
+ <h1>Scriptlet Test</h1>
+ <jsp:scriptlet>
+ out.print(new Date());
+ </jsp:scriptlet>
+ </body>
+ </html>
+</jsp:root>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/set_property.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/set_property.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/set_property.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>jsp:setProperty test</title>
+ </head>
+ <body>
+ <h1>jsp:setProperty test</h1>
+ <jsp:useBean id="calendar" scope="page" class="org.jboss.jsp.test.Calendar" />
+ <jsp:setProperty name="calendar" property="username" value="User" />
+ <h2>Calendar for <jsp:getProperty name="calendar"
+ property="username" /></h2>
+ </body>
+ </html>
+</jsp:root>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/text.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/text.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/text.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>text test</title>
+ </head>
+ <body>
+ <h1>text test</h1>
+ <jsp:text>
+ Any Text
+ </jsp:text>
+ </body>
+ </html>
+</jsp:root>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/useBean.jsp
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/useBean.jsp (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/pages/components/useBean.jsp 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
+ <jsp:directive.page contentType="application/xhtml+xml; charset=UTF-8" />
+ <![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]>
+ <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">]]>
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+ <title>jsp:setProperty test</title>
+ </head>
+ <body>
+ <h1>jsp:setProperty test</h1>
+ <jsp:useBean id="calendar" scope="page" class="org.jboss.jsp.test.Calendar" />
+ <jsp:setProperty name="calendar" property="username" value="User" />
+ <h2>Calendar for <jsp:getProperty name="calendar"
+ property="username" /></h2>
+ </body>
+ </html>
+</jsp:root>
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/AnalogClock.class
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/AnalogClock.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/CustomParser.class
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/CustomParser.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/JavaClock.class
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/JavaClock.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/ParamParser.class
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/WebContent/resources/applets/ParamParser.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/src/org/jboss/jsp/test/Calendar.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/src/org/jboss/jsp/test/Calendar.java (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/resources/jspTest/src/org/jboss/jsp/test/Calendar.java 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,25 @@
+package org.jboss.jsp.test;
+
+import java.util.Date;
+
+public class Calendar {
+ String username;
+ Date date;
+
+ public String getUsername() {
+ return username;
+ }
+
+ public void setUsername(String username) {
+ this.username = username;
+ }
+
+ public Date getDate() {
+ return date;
+ }
+
+ public void setDate(Date date) {
+ this.date = date;
+ }
+
+}
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPAllTests.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPAllTests.java (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPAllTests.java 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,39 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.vpe.jsp.test;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.jboss.tools.vpe.ui.test.VpeTestSetup;
+import org.jboss.tools.vpe.ui.test.beans.ImportBean;
+
+public class JSPAllTests {
+ public static Test suite() {
+
+ TestSuite suite = new TestSuite("Tests for Vpe JSP components");
+ // $JUnit-BEGIN$
+
+ suite.addTestSuite(JSPComponentTest.class);
+
+ // $JUnit-END$
+ List<ImportBean> importProjects = new ArrayList<ImportBean>();
+ ImportBean importBean = new ImportBean();
+ importBean.setImportProjectName(JSPComponentTest.IMPORT_PROJECT_NAME);
+ importBean.setImportProjectPath(JSPTestPlugin.getPluginResourcePath());
+ importProjects.add(importBean);
+ return new VpeTestSetup(suite,importProjects);
+
+ }
+}
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPComponentTest.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPComponentTest.java (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPComponentTest.java 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,291 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.vpe.jsp.test;
+
+import org.eclipse.core.resources.IFile;
+import org.jboss.tools.vpe.ui.test.TestUtil;
+import org.jboss.tools.vpe.ui.test.VpeTest;
+
+/**
+ *
+ * Class for testing all jsp components
+ *
+ * @author dsakovich(a)exadel.com
+ *
+ */
+public class JSPComponentTest extends VpeTest {
+
+ // import project name
+ public static final String IMPORT_PROJECT_NAME = "jspTest";
+
+ public JSPComponentTest(String name) {
+ super(name);
+ setCheckWarning(false);
+ }
+
+ /**
+ * Test for jsp:declaration
+ *
+ * @throws Throwable
+ */
+ public void testDeclaration() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/declaration.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ /**
+ * Test for jsp:expression
+ *
+ * @throws Throwable
+ */
+ public void testExpression() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/expression.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ /**
+ * Test for jsp:scriptlet
+ *
+ * @throws Throwable
+ */
+ public void testScriptlet() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/scriptlet.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ /**
+ * Test for jsp:directive.attribute
+ *
+ * @throws Throwable
+ */
+ public void testDirectiveAttribute() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "../WEB-INF/tags/catalog.tag", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+ }
+
+ /**
+ * Test for jsp:directive.include
+ *
+ * @throws Throwable
+ */
+ public void testDirectiveInclude() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/directive_include_absolute.jsp",
+ IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/directive_include_relative.jsp",
+ IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:include
+ *
+ * @throws Throwable
+ */
+ public void testInclude() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/include_absolute.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/include_relative.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:directive.page
+ *
+ * @throws Throwable
+ */
+ public void testDirectivePage() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/directive_page.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:directive.tag
+ *
+ * @throws Throwable
+ */
+ public void testDirectiveTag() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/directive_tag.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:directive.taglib
+ *
+ * @throws Throwable
+ */
+ public void testDirectiveTaglib() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/directive_taglib.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:directive.variable
+ *
+ * @throws Throwable
+ */
+ public void testDirectiveVariable() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "../WEB-INF/tags/catalog.tag", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:attribute
+ *
+ * @throws Throwable
+ */
+ public void testAttribute() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/attribute.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:body
+ *
+ * @throws Throwable
+ */
+ public void testBody() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/body.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:element
+ *
+ * @throws Throwable
+ */
+ public void testElement() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/element.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:doBody
+ *
+ * @throws Throwable
+ */
+ public void testDoBody() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "../WEB-INF/tags/double.tag", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:forward
+ *
+ * @throws Throwable
+ */
+ public void testForward() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/forward.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:getProperty
+ *
+ * @throws Throwable
+ */
+ public void testGetProperty() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/get_property.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:invoke
+ *
+ * @throws Throwable
+ */
+ public void testInvoke() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "../WEB-INF/tags/catalog.tag", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:output
+ *
+ * @throws Throwable
+ */
+ public void testOutput() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/output.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:plugin
+ *
+ * @throws Throwable
+ */
+ public void testPlugin() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/plugin.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:root
+ *
+ * @throws Throwable
+ */
+ public void testRoot() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/root.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:setProperty
+ *
+ * @throws Throwable
+ */
+ public void testSetProperty() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/set_property.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:text
+ *
+ * @throws Throwable
+ */
+ public void testText() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/text.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+ /**
+ * Test for jsp:useBean
+ *
+ * @throws Throwable
+ */
+ public void testUseBean() throws Throwable {
+ performTestForVpeComponent((IFile) TestUtil.getComponentPath(
+ "components/useBean.jsp", IMPORT_PROJECT_NAME)); // $NON-NLS-1$
+
+ }
+
+}
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPTestPlugin.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPTestPlugin.java (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsp.test/src/org/jboss/tools/jsf/vpe/jsp/test/JSPTestPlugin.java 2008-02-11 13:50:58 UTC (rev 6231)
@@ -0,0 +1,79 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.vpe.jsp.test;
+
+import java.net.URL;
+
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.runtime.Platform;
+import org.jboss.tools.common.log.BaseUIPlugin;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class JSPTestPlugin extends BaseUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.jsf.vpe.jsp.test";
+
+ // The shared instance
+ private static JSPTestPlugin plugin;
+
+ /**
+ * The constructor
+ */
+ public JSPTestPlugin() {
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static JSPTestPlugin getDefault() {
+ return plugin;
+ }
+
+ public static String getPluginResourcePath() {
+ Bundle bundle = Platform.getBundle(PLUGIN_ID);
+ URL url = null;
+ try {
+ url = bundle == null ? null : FileLocator.resolve(bundle
+ .getEntry("/resources")); // $NON-NLS-1$
+ } catch (Exception e) {
+ url = bundle.getEntry("/resources"); // $NON-NLS-1$
+ }
+ return (url == null) ? null : url.getPath();
+ }
+
+}
16 years, 4 months
JBoss Tools SVN: r6229 - in trunk/hibernatetools/docs/resources: styles/en and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: afedosik
Date: 2008-02-11 08:27:32 -0500 (Mon, 11 Feb 2008)
New Revision: 6229
Added:
trunk/hibernatetools/docs/resources/support/lib/avalon-framework-4.2.0.jar
trunk/hibernatetools/docs/resources/support/lib/batik-all-1.6.jar
trunk/hibernatetools/docs/resources/support/lib/commons-io-1.3.1.jar
trunk/hibernatetools/docs/resources/support/lib/commons-logging-1.0.4.jar
trunk/hibernatetools/docs/resources/support/lib/fop-hyph.jar
trunk/hibernatetools/docs/resources/support/lib/fop-sandbox.jar
trunk/hibernatetools/docs/resources/support/lib/fop-transcoder-allinone.jar
trunk/hibernatetools/docs/resources/support/lib/fop-transcoder.jar
trunk/hibernatetools/docs/resources/support/lib/serializer-2.7.0.jar
trunk/hibernatetools/docs/resources/support/lib/servlet-2.2.jar
trunk/hibernatetools/docs/resources/support/lib/xalan-2.7.0.jar
trunk/hibernatetools/docs/resources/support/lib/xercesImpl-2.7.1.jar
trunk/hibernatetools/docs/resources/support/lib/xml-apis-1.3.02.jar
trunk/hibernatetools/docs/resources/support/lib/xmlgraphics-commons-1.2.jar
Modified:
trunk/hibernatetools/docs/resources/styles/en/fopdf.xsl
trunk/hibernatetools/docs/resources/support.xml
trunk/hibernatetools/docs/resources/support/docbook-xsl/html/param.xsl
trunk/hibernatetools/docs/resources/support/lib/fop.jar
Log:
http://jira.jboss.com/jira/browse/JBDS-185 FOP is updated (version 0.94)
Modified: trunk/hibernatetools/docs/resources/styles/en/fopdf.xsl
===================================================================
--- trunk/hibernatetools/docs/resources/styles/en/fopdf.xsl 2008-02-11 11:04:35 UTC (rev 6228)
+++ trunk/hibernatetools/docs/resources/styles/en/fopdf.xsl 2008-02-11 13:27:32 UTC (rev 6229)
@@ -112,7 +112,7 @@
<xsl:variable name="Version">
<xsl:choose>
<xsl:when test="//releaseinfo">
- <xsl:text>JBoss </xsl:text>
+ <xsl:text></xsl:text>
<xsl:value-of select="//releaseinfo"/>
</xsl:when>
<xsl:otherwise>
@@ -215,7 +215,7 @@
<xsl:param name="tablecolumns.extension">0</xsl:param>
<!-- FOP provide only PDF Bookmarks at the moment -->
- <xsl:param name="fop.extensions">1</xsl:param>
+ <xsl:param name="fop1.extensions">1</xsl:param>
Modified: trunk/hibernatetools/docs/resources/support/docbook-xsl/html/param.xsl
===================================================================
--- trunk/hibernatetools/docs/resources/support/docbook-xsl/html/param.xsl 2008-02-11 11:04:35 UTC (rev 6228)
+++ trunk/hibernatetools/docs/resources/support/docbook-xsl/html/param.xsl 2008-02-11 13:27:32 UTC (rev 6229)
@@ -262,7 +262,7 @@
<xsl:param name="index.term.separator"/>
<xsl:param name="index.range.separator"/>
<xsl:param name="index.prefer.titleabbrev" select="0"/>
-<xsl:param name="ignore.image.scaling" select="0"/>
+<xsl:param name="ignore.image.scaling" select="1"/>
<xsl:param name="inherit.keywords" select="1"/>
<xsl:param name="insert.xref.page.number">no</xsl:param>
<xsl:param name="javahelp.encoding">iso-8859-1</xsl:param>
Added: trunk/hibernatetools/docs/resources/support/lib/avalon-framework-4.2.0.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/docs/resources/support/lib/avalon-framework-4.2.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/docs/resources/support/lib/batik-all-1.6.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/docs/resources/support/lib/batik-all-1.6.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/docs/resources/support/lib/commons-io-1.3.1.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/docs/resources/support/lib/commons-io-1.3.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/docs/resources/support/lib/commons-logging-1.0.4.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/docs/resources/support/lib/commons-logging-1.0.4.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/docs/resources/support/lib/fop-hyph.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/docs/resources/support/lib/fop-hyph.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/docs/resources/support/lib/fop-sandbox.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/docs/resources/support/lib/fop-sandbox.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/docs/resources/support/lib/fop-transcoder-allinone.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/docs/resources/support/lib/fop-transcoder-allinone.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/docs/resources/support/lib/fop-transcoder.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/docs/resources/support/lib/fop-transcoder.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/hibernatetools/docs/resources/support/lib/fop.jar
===================================================================
(Binary files differ)
Added: trunk/hibernatetools/docs/resources/support/lib/serializer-2.7.0.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/docs/resources/support/lib/serializer-2.7.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/docs/resources/support/lib/servlet-2.2.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/docs/resources/support/lib/servlet-2.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/docs/resources/support/lib/xalan-2.7.0.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/docs/resources/support/lib/xalan-2.7.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/docs/resources/support/lib/xercesImpl-2.7.1.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/docs/resources/support/lib/xercesImpl-2.7.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/docs/resources/support/lib/xml-apis-1.3.02.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/docs/resources/support/lib/xml-apis-1.3.02.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/docs/resources/support/lib/xmlgraphics-commons-1.2.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/docs/resources/support/lib/xmlgraphics-commons-1.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/hibernatetools/docs/resources/support.xml
===================================================================
--- trunk/hibernatetools/docs/resources/support.xml 2008-02-11 11:04:35 UTC (rev 6228)
+++ trunk/hibernatetools/docs/resources/support.xml 2008-02-11 13:27:32 UTC (rev 6229)
@@ -37,6 +37,15 @@
</fileset>
</path>
+ <property name="fop.home" value="${support.dir}/lib"/>
+
+ <taskdef name="fop"
+ classname="org.apache.fop.tools.anttasks.Fop">
+ <classpath refid="lib.classpath">
+
+ </classpath>
+ </taskdef>
+
<!-- ################################################################## -->
<target name="all.doc" depends="clean">
@@ -141,14 +150,24 @@
</xslt>
-->
<!-- Create a PDF from the XSL/FO. -->
- <java classname="org.apache.fop.apps.Fop"
+
+ <fop format="application/pdf"
+ basedir="${build.dir}/${lang}/pdf"
+ outfile="${build.dir}/${lang}/pdf/${pdf.name}"
+ fofile="${build.dir}/${lang}/pdf/docbook_fop.tmp"
+ messagelevel="debug">
+
+ </fop>
+
+<!-- <java classname="org.apache.fop.cli.Main"
maxmemory="${maxmem}"
fork="true" dir="${basedir}" failonerror="true">
<classpath refid="lib.classpath"/>
+ <sysproperty key="fop.home" path="${support.dir}/lib"/>
<arg value="${build.dir}/${lang}/pdf/docbook_fop.tmp"/>
<arg value="${build.dir}/${lang}/pdf/${pdf.name}"/>
</java>
-
+-->
<!-- Delete temporary files. -->
<delete file="${build.dir}/${lang}/pdf/docbook_fop.tmp"/>
<delete dir="${build.dir}/${lang}/pdf/images"/>
16 years, 4 months
JBoss Tools SVN: r6228 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2008-02-11 06:04:35 -0500 (Mon, 11 Feb 2008)
New Revision: 6228
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml
Log:
http://jira.jboss.com/jira/browse/JBIDE-1682, children for calendar is allowed. Its required to process footer and header.
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml 2008-02-11 11:03:20 UTC (rev 6227)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/templates/vpe-templates-richfaces.xml 2008-02-11 11:04:35 UTC (rev 6228)
@@ -573,7 +573,7 @@
</vpe:tag>
<vpe:tag name="rich:calendar" case-sensitive="yes">
- <vpe:template children="no" modify="no"
+ <vpe:template children="yes" modify="no"
class="org.jboss.tools.jsf.vpe.richfaces.template.RichFacesCalendarTemplate">
<vpe:resize>
<vpe:width width-attr="style.width" />
16 years, 4 months
JBoss Tools SVN: r6227 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2008-02-11 06:03:20 -0500 (Mon, 11 Feb 2008)
New Revision: 6227
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesCalendarTemplate.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1682, header and footer updated
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesCalendarTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesCalendarTemplate.java 2008-02-11 10:45:01 UTC (rev 6226)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesCalendarTemplate.java 2008-02-11 11:03:20 UTC (rev 6227)
@@ -354,12 +354,12 @@
nsIDOMElement header = createCalendarHeader(visualDocument);
nsIDOMElement calendarBody = createCalendarBody(visualDocument);
- if (null != headerFacet) {
+ if (null != optionalHeader) {
tbody.appendChild(optionalHeader);
}
tbody.appendChild(header);
tbody.appendChild(calendarBody);
- if (null != headerFacet) {
+ if (null != optionalFooter) {
tbody.appendChild(optionalFooter);
}
@@ -381,12 +381,8 @@
if (isHeader) {
td.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, CSS_R_C_HEADER_OPTIONAL);
- //td.appendChild(visualDocument
- // .createTextNode("header Here->"));
} else {
td.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, CSS_R_C_FOOTER_OPTIONAL);
- td.appendChild(visualDocument
- .createTextNode("footer Here->"));
}
VpeChildrenInfo child = new VpeChildrenInfo(td);
16 years, 4 months
JBoss Tools SVN: r6226 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2008-02-11 05:45:01 -0500 (Mon, 11 Feb 2008)
New Revision: 6226
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesCalendarTemplate.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1682, import statements update
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesCalendarTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesCalendarTemplate.java 2008-02-11 10:10:09 UTC (rev 6225)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesCalendarTemplate.java 2008-02-11 10:45:01 UTC (rev 6226)
@@ -13,16 +13,12 @@
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
-import java.util.Collection;
import java.util.Date;
import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Set;
-import java.util.TimeZone;
-import javax.smartcardio.ATR;
-
import org.jboss.tools.jsf.vpe.richfaces.ComponentUtil;
import org.jboss.tools.jsf.vpe.richfaces.HtmlComponentUtil;
import org.jboss.tools.vpe.editor.context.VpePageContext;
@@ -345,16 +341,27 @@
nsIDOMElement tbody = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TBODY);
Element headerFacet = ComponentUtil.getFacet(sourceElement, HEADER);
- nsIDOMElement optionalHeader = createCalendarOptionalHeaderOrFooter(visualDocument, creationData, headerFacet, true);
+ nsIDOMElement optionalHeader = null;
+ if (null != headerFacet) {
+ optionalHeader = createCalendarOptionalHeaderOrFooter(visualDocument, creationData, headerFacet, true);
+ }
Element footerFacet = ComponentUtil.getFacet(sourceElement, FOOTER);
- nsIDOMElement optionalFooter = createCalendarOptionalHeaderOrFooter(visualDocument, creationData, footerFacet, false);
+ nsIDOMElement optionalFooter = null;
+ if (null != footerFacet) {
+ optionalFooter = createCalendarOptionalHeaderOrFooter(visualDocument, creationData, footerFacet, false);
+ }
+
nsIDOMElement header = createCalendarHeader(visualDocument);
nsIDOMElement calendarBody = createCalendarBody(visualDocument);
- tbody.appendChild(optionalHeader);
+ if (null != headerFacet) {
+ tbody.appendChild(optionalHeader);
+ }
tbody.appendChild(header);
tbody.appendChild(calendarBody);
- tbody.appendChild(optionalFooter);
+ if (null != headerFacet) {
+ tbody.appendChild(optionalFooter);
+ }
table.appendChild(tbody);
div.appendChild(table);
16 years, 4 months
JBoss Tools SVN: r6225 - in trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces: src/org/jboss/tools/jsf/vpe/richfaces and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2008-02-11 05:10:09 -0500 (Mon, 11 Feb 2008)
New Revision: 6225
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/calendar/calendar.css
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/HtmlComponentUtil.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesCalendarTemplate.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1682
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/calendar/calendar.css
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/calendar/calendar.css 2008-02-11 10:08:46 UTC (rev 6224)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/calendar/calendar.css 2008-02-11 10:10:09 UTC (rev 6225)
@@ -1,3 +1,14 @@
+.rich-calendar-input {
+ cursor:pointer;
+ vertical-align:middle;
+}
+
+.rich-calendar-button {
+ cursor:pointer;
+ vertical-align:middle;
+ text-align: left;
+}
+
.rich-calendar-exterior {
border: 1px solid #c0c0c0; /*panelBorderColor*/
}
@@ -2,6 +13,2 @@
-.rich-calendar-btn {
- cursor: pointer;
-}
-
.rich-calendar-header {
@@ -15,22 +22,6 @@
height: 22px;
}
-.rich-cell-size {
- width: 25px;
- height: 22px;
-}
-
-.rich-calendar-cell {
- background-color: #FFFFFF; /*generalBackgroundColor*/
- border-bottom: 1px solid #c0c0c0; /*panelBorderColor*/
- border-right: 1px solid #c0c0c0; /*panelBorderColor*/
- font-size: 11px; /*generalSizeFont*/
- font-family: verdana; /*generalFamilyFont*/
- padding: 0px;
- vertical-align: middle;
- text-align: center;
-}
-
.rich-calendar-tool {
border-bottom: 1px solid #c0c0c0; /*panelBorderColor*/
background-color: #D4CFC7; /*headerBackgroundColor*/
@@ -50,8 +41,7 @@
border-bottom-color: #C4C0B9;
font-size: 11px; /*headerSizeFont*/
font-family: Arial, Verdana, sans-serif;
- color: #000000;
- /*headerTextColor*/
+ color: #000000; /*headerTextColor*/
font-weight: bold;
vertical-align: middle;
text-align: center;
@@ -59,6 +49,13 @@
font-size: 11px
}
+.rich-calendar-tool-close {
+/*background-image:url(/richfaces-demo/a4j_3_1_4.GAorg.richfaces.renderkit.html.iconimages.CalendarSeparator/DATB/eAFjYGAAAAADAAE_.jsf);*/
+background-position:left center;
+background-repeat:no-repeat;
+padding:2px 2px 2px 4px;
+}
+
.rich-calendar-days {
background: #F1EEE9 none repeat scroll 0%;
border-bottom: 1px solid #C4C0B9; /*panelBorderColor*/
@@ -71,50 +68,63 @@
vertical-align: middle;
}
-.rich-calendar-days-holly {
- color: RED;
+.rich-calendar-weekends {
+ color:red;
}
.rich-calendar-week {
- border-bottom: 1px solid #c0c0c0; /*panelBorderColor*/
- border-right: 1px solid #c0c0c0; /*panelBorderColor*/
- font-size: 11px; /*generalSizeFont*/
- font-family: verdana; /*generalFamilyFont*/
- background-color: #f5f5f5; /*unknown parameter - need to add*/
- vertical-align: middle;
- text-align: center;
- width: 25px;
+ background:#F1EEE9 none repeat scroll 0%;
+ font-family:Arial,Verdana,sans-serif;
+ font-size:11px;
+ padding: 0pt;
+ border-bottom:1px solid #C4C0B9;
+ border-right:1px solid #C4C0B9;
+ text-align:center;
+ vertical-align:middle;
+ width:25px;
}
+.rich-calendar-cell {
+ background-color:#FFFFFF;
+ font-family:Arial,Verdana,sans-serif;
+ font-size:11px;
+ border-bottom:1px solid #C4C0B9;
+ border-right:1px solid #C4C0B9;
+ padding:0pt;
+ text-align:center;
+ vertical-align:middle;
+}
+
+.rich-calendar-cell-size {
+height:22px;
+width:25px;
+}
+
.rich-calendar-holly {
background-color: #FFEBDA; /*unknown parameter - need to add*/
color: #FF7800; /*unknown parameter - need to add*/
}
+.rich-calendar-boundary-dates {
+color:#A0A0A0;
+}
+
+.rich-calendar-btn {
+cursor:pointer;
+}
+
.rich-calendar-today {
background-color: #ff7800; /*unknown parameter - need to add*/
color: #ffebda; /*unknown parameter - need to add*/
font-weight: bold;
}
-.rich-calendar-spec {
- background-color: #e4f5e2; /*unknown parameter - need to add*/
-}
-
.rich-calendar-select {
background-color: #224986; /*headerBackgroundColor*/
color: #FFFFFF; /*headerTextColor*/
font-weight: bold;
}
-.rich-right-cell {
- border-right: 0px;
-}
-
-.rich-bottom-cell {
- border-bottom: 0px;
-}
-
.rich-calendar-toolfooter {
border-top: 1px solid #c0c0c0; /*panelBorderColor*/
border-right: 0px solid #c0c0c0; /*panelBorderColor*/
@@ -135,21 +145,17 @@
height: 22px;
}
-.rich-calendar-popupicon {
- cursor: pointer;
- vertical-align: middle;
+.rich-calendar-other-month {
+ color: #C7D7EC
}
-.rich-calendar-popupinput {
- vertical-align: middle;
+.rich-calendar-header-optional {
+ background: #D4CFC7;
+ text-align: center;
}
-.rich-calendar-today {
- background-color: #ff7800; /*unknown parameter - need to add*/
- color: #ffebda; /*unknown parameter - need to add*/
- font-weight: bold;
+.rich-calendar-footer-optional {
+ background: #F1EEE9;
+ text-align: center;
}
-.rich-calendar-other-month {
- color: #C7D7EC
-}
\ No newline at end of file
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/HtmlComponentUtil.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/HtmlComponentUtil.java 2008-02-11 10:08:46 UTC (rev 6224)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/HtmlComponentUtil.java 2008-02-11 10:10:09 UTC (rev 6225)
@@ -170,4 +170,7 @@
/** HTML_ATTR_BACKGROUND */
public static final String HTML_ATTR_BACKGROUND = "background";
+
+ /** HTML_ATTR_BACKGROUND */
+ public static final String HTML_ATTR_DISABLED = "disabled";
}
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesCalendarTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesCalendarTemplate.java 2008-02-11 10:08:46 UTC (rev 6224)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesCalendarTemplate.java 2008-02-11 10:10:09 UTC (rev 6225)
@@ -13,12 +13,21 @@
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
+import java.util.Collection;
+import java.util.Date;
+import java.util.HashSet;
import java.util.List;
+import java.util.Locale;
+import java.util.Set;
+import java.util.TimeZone;
+import javax.smartcardio.ATR;
+
import org.jboss.tools.jsf.vpe.richfaces.ComponentUtil;
import org.jboss.tools.jsf.vpe.richfaces.HtmlComponentUtil;
import org.jboss.tools.vpe.editor.context.VpePageContext;
import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
+import org.jboss.tools.vpe.editor.template.VpeChildrenInfo;
import org.jboss.tools.vpe.editor.template.VpeCreationData;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
@@ -37,8 +46,6 @@
public class RichFacesCalendarTemplate extends VpeAbstractTemplate {
static String[] HEADER_CONTENT = { "<<", "<", "", ">", ">>" };
- private List<String> holidays = new ArrayList<String>();
- private String[] weeks = new String[7];
final static int MONTH_LENGTH[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31,
30, 31 };
final static int LEAP_MONTH_LENGTH[] = { 31, 29, 31, 30, 31, 30, 31, 31,
@@ -50,38 +57,106 @@
final static int NUM_DAYS_IN_WEEK = 7;
final static int NUM_WEEK_ON_PAGE = 6;
final static String TODAY = "Today";
+ final static String VERTICAL_SEPARATOR = "|";
+ final static String APPLY = "Apply";
final static int CALENDAR_WIDTH = 200;
+ final static int CALENDAR_INPUT_WIDTH = CALENDAR_WIDTH - 20;
final static int CALENDAR_IMAGE_WIDTH = 20;
- final static String ATTRIBUTE_POPUP = "popup";
+ final static int CALENDAR_CUSTOM_IMAGE_WIDTH = 40;
+ final static int CALENDAR_BUTTON_WIDTH = 100;
final static String ATTRIBUTE_TEXT = "text";
- final static String WEEK_DAY_HTML_CLASS_ATTR = "rich-calendar-days";
- final static String HOL_WEEK_DAY_HTML_CLASS_ATTR = "rich-calendar-days rich-calendar-days-holly";
- final static String TODAY_HTML_CLASS_ATTR = "rich-cell-size rich-calendar-cell rich-calendar-today ";
- final static String CUR_MONTH_HTML_CLASS_ATTR = "rich-cell-size rich-calendar-cell";
- final static String HOL_CUR_MONTH_HTML_CLASS_ATTR = "rich-cell-size rich-calendar-cell rich-calendar-holly "/* rich-right-cell " */;
- final static String OTHER_MONTH_HTML_CLASS_ATTR = "rich-cell-size rich-calendar-cell rich-calendar-other-month ";
- final static String HOL_OTHER_MONTH_HTML_CLASS_ATTR = "rich-cell-size rich-calendar-cell rich-calendar-holly rich-calendar-other-month" /* rich-right-cell " */;
+ static final String DEFAULT_DATE_PATTERN = "MMMM, yyyy";
+ static final String HEADER = "header";
+ static final String FOOTER = "footer";
+
+ /*Attributes*/
+ static final String BUTTON_LABEL = "buttonLabel";
+ static final String BUTTON_ICON = "buttonIcon";
+ static final String DIRECTION = "direction";
+ static final String ENABLE_MANUAL_INPUT = "enableManualInput";
+ static final String CELL_HEIGHT = "cellHeight";
+ static final String CELL_WIDTH = "cellWidth";
+ static final String DATE_PATTERN = "datePattern";
+ static final String DISABLED = "disabled";
+ static final String HORIZONTAL_OFFSET = "horizontalOffset";
+ static final String VERTICAL_OFFSET = "verticalOffset";
+ static final String LOCALE = "locale";
+ static final String POPUP = "popup";
+ static final String SHOW_APPLY_BUTTON = "showApplyButton";
+ static final String SHOW_INPUT = "showInput";
+ static final String SHOW_SHOW_WEEKS_DAY_BAR = "showWeekDaysBar";
+ static final String SHOW_WEEKS_BAR = "showWeeksBar";
+ static final String TODAY_CONTROL_MODE = "todayControlMode";
+
+ /*Attribute values*/
+ static final String DIRECTIONS_TOP_LEFT = "top-left";
+ static final String DIRECTIONS_TOP_RIGHT = "top-right";
+ static final String DIRECTIONS_BOTTOM_LEFT = "bottom-left";
+ static final String DIRECTIONS_BOTTOM_RIGHT = "top-right";
+ /*CSS classes*/
+ static final String CSS_R_C_INPUT = "rich-calendar-input";
+ static final String CSS_R_C_BUTTON = "rich-calendar-button";
+ static final String CSS_R_C_EXTERIOR = "rich-calendar-exterior";
+ static final String CSS_R_C_HEADER = "rich-calendar-header";
+ static final String CSS_R_C_TOOL = "rich-calendar-tool";
+ static final String CSS_R_C_MONTH = "rich-calendar-month";
+ static final String CSS_R_C_TOOL_CLOSE = "rich-calendar-tool-close";
+ static final String CSS_R_C_DAYS = "rich-calendar-days";
+ static final String CSS_R_C_WEEKENDS = "rich-calendar-weekends";
+ static final String CSS_R_C_WEEK = "rich-calendar-week";
+ static final String CSS_R_C_CELL = "rich-calendar-cell";
+ static final String CSS_R_C_CELL_SIZE = "rich-calendar-cell-size";
+ static final String CSS_R_C_HOLLY = "rich-calendar-holly";
+ static final String CSS_R_C_BOUNDARY_DATES = "rich-calendar-boundary-dates";
+ static final String CSS_R_C_BTN = "rich-calendar-btn";
+ static final String CSS_R_C_TODAY = "rich-calendar-today";
+ static final String CSS_R_C_SELECT = "rich-calendar-select";
+ static final String CSS_R_C_TOOLFOOTER = "rich-calendar-toolfooter";
+ static final String CSS_R_C_FOOTER = "rich-calendar-footer";
+ static final String CSS_R_C_OTHER_MONTH = "rich-calendar-other-month";
+ static final String CSS_R_C_HEADER_OPTIONAL = "rich-calendar-header-optional";
+ static final String CSS_R_C_FOOTER_OPTIONAL = "rich-calendar-footer-optional";
+
+ final static String WEEK_DAY_HTML_CLASS_ATTR = CSS_R_C_DAYS;
+ final static String HOL_WEEK_DAY_HTML_CLASS_ATTR = CSS_R_C_DAYS + " " + CSS_R_C_WEEKENDS;
+ final static String TODAY_HTML_CLASS_ATTR = CSS_R_C_CELL_SIZE + " "+ CSS_R_C_CELL + " "+ CSS_R_C_TODAY;
+ final static String CUR_MONTH_HTML_CLASS_ATTR = CSS_R_C_CELL_SIZE + " "+ CSS_R_C_CELL;
+ final static String HOL_CUR_MONTH_HTML_CLASS_ATTR = CSS_R_C_CELL_SIZE + " "+ CSS_R_C_CELL + " "+ CSS_R_C_HOLLY;
+ final static String OTHER_MONTH_HTML_CLASS_ATTR = CSS_R_C_CELL_SIZE + " "+ CSS_R_C_CELL + " "+ CSS_R_C_BOUNDARY_DATES;
+ final static String HOL_OTHER_MONTH_HTML_CLASS_ATTR = CSS_R_C_CELL_SIZE + " "+ CSS_R_C_CELL + " "+ CSS_R_C_HOLLY + " " + CSS_R_C_BOUNDARY_DATES ;
+
+ private String buttonLabel;
+ private String buttonIcon;
+ private String direction;
+ private String cellHeight;
+ private String cellWidth;
+ private String datePattern;
+ private String disabled;
+ private String enableManualInput;
+ private String horizontalOffset;
+ private String verticalOffset;
+ private String locale;
+ private String popup;
+ private String showApplyButton;
+ private String showInput;
+ private String showWeekDaysBar;
+ private String showWeeksBar;
+ private String todayControlMode;
+
+ private List<String> holidays = new ArrayList<String>();
+ private String[] weeks = new String[7];
+ static Set<String> directions;
+
public RichFacesCalendarTemplate() {
super();
- Calendar cal = Calendar.getInstance();
- int firstDayOfWeek = cal.getFirstDayOfWeek();
- while (firstDayOfWeek != cal.get(Calendar.DAY_OF_WEEK)) {
- cal.add(Calendar.DAY_OF_MONTH, 1);
- }
-
- SimpleDateFormat sdf = new SimpleDateFormat("EE");
- String dayOfWeek = "";
- for (int i = 0; i < NUM_DAYS_IN_WEEK; i++) {
- dayOfWeek = sdf.format(cal.getTime());
- weeks[i] = dayOfWeek;
- if (cal.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY
- || cal.get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY)
- holidays.add(dayOfWeek);
- cal.add(Calendar.DAY_OF_MONTH, 1);
- }
-
+ directions = new HashSet<String>(4);
+ directions.add(DIRECTIONS_TOP_LEFT);
+ directions.add(DIRECTIONS_TOP_RIGHT);
+ directions.add(DIRECTIONS_BOTTOM_LEFT);
+ directions.add(DIRECTIONS_BOTTOM_RIGHT);
+
}
/**
@@ -100,16 +175,29 @@
public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
nsIDOMDocument visualDocument) {
Element source = (Element) sourceNode;
- String popup = source.getAttribute(ATTRIBUTE_POPUP);
+
+ readAttributes(sourceNode);
+ initCalendar();
+
ComponentUtil.setCSSLink(pageContext, STYLE_PATH, "calendar");
- VpeCreationData creationData;
+ nsIDOMElement div = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_DIV);
+ VpeCreationData creationData = new VpeCreationData(div);
if (popup != null && popup.equalsIgnoreCase("false")) {
- nsIDOMElement calendar = createCalendar(visualDocument);
- creationData = new VpeCreationData(calendar);
+ nsIDOMElement calendar;
+ if ("true".equalsIgnoreCase(disabled)) {
+ calendar = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_DIV);
+ } else {
+ calendar = createCalendar(visualDocument, creationData, source);
+ }
+ //creationData = new VpeCreationData(calendar);
+ div.appendChild(calendar);
} else {
nsIDOMElement calendarWithPopup = createCalendarWithPopup(
visualDocument, source);
- creationData = new VpeCreationData(calendarWithPopup);
+ //creationData = new VpeCreationData(calendarWithPopup);
+ div.appendChild(calendarWithPopup);
}
return creationData;
}
@@ -121,33 +209,83 @@
*/
private nsIDOMElement createCalendarWithPopup(
nsIDOMDocument visualDocument, Element source) {
+ nsIDOMElement table = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TABLE);
+ nsIDOMElement tr = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TR);
+ nsIDOMElement td1 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TD);
+ nsIDOMElement td2 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TD);
+
+ table.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
+ HtmlComponentUtil.HTML_ATR_WIDTH + " : 100%");
+
+ tr.appendChild(td1);
+ tr.appendChild(td2);
+ table.appendChild(tr);
+
nsIDOMElement div = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_DIV);
- div.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
- HtmlComponentUtil.HTML_ATR_WIDTH + " : " + CALENDAR_WIDTH
- + "px;");
- nsIDOMElement input = visualDocument
+ int divWidth = CALENDAR_WIDTH + CALENDAR_IMAGE_WIDTH;
+ div.appendChild(table);
+
+ if (!"false".equalsIgnoreCase(showInput)) {
+ nsIDOMElement input = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_INPUT);
- input.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
- HtmlComponentUtil.HTML_ATR_WIDTH + " : "
- + (CALENDAR_WIDTH - CALENDAR_IMAGE_WIDTH) + "px;");
- input.setAttribute(HtmlComponentUtil.HTML_TYPE_ATTR, ATTRIBUTE_TEXT);
- input.setAttribute(HtmlComponentUtil.HTML_READONLY_ATTR, "true");
- input.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, "rich-calendar-popupinput");
- String value = source.getAttribute(HtmlComponentUtil.HTML_VALUE_ATTR);
- if (value != null) {
- input.setAttribute(HtmlComponentUtil.HTML_VALUE_ATTR, value);
+ input.setAttribute(HtmlComponentUtil.HTML_TYPE_ATTR, ATTRIBUTE_TEXT);
+ input.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, CSS_R_C_INPUT);
+ input.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
+ HtmlComponentUtil.HTML_ATR_WIDTH + " : "
+ + CALENDAR_INPUT_WIDTH + "px;");
+
+ if ("true".equals(enableManualInput)) {
+ input.setAttribute(HtmlComponentUtil.HTML_READONLY_ATTR, "true");
+ }
+ if ("true".equals(disabled)) {
+ input.setAttribute(HtmlComponentUtil.HTML_ATTR_DISABLED, "true");
+ }
+
+ if (attrPresents(datePattern)) {
+ input.setAttribute(HtmlComponentUtil.HTML_VALUE_ATTR, datePattern);
+ }
+ td1.appendChild(input);
+ //div.appendChild(input);
}
+
- nsIDOMElement image = visualDocument
- .createElement(HtmlComponentUtil.HTML_TAG_IMG);
- image.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
- "rich-calendar-popupicon");
- ComponentUtil.setImg(image, BUTTON_IMG);
-
- div.appendChild(input);
- div.appendChild(image);
-
+ if (attrPresents(buttonLabel)) {
+ nsIDOMElement button = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_INPUT);
+ button.setAttribute(HtmlComponentUtil.HTML_TYPE_ATTR,
+ HtmlComponentUtil.HTML_TAG_BUTTON);
+ button.setAttribute(HtmlComponentUtil.HTML_VALUE_ATTR, buttonLabel);
+ button.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, CSS_R_C_BUTTON);
+ if ("true".equalsIgnoreCase(disabled)) {
+ button.setAttribute(HtmlComponentUtil.HTML_ATTR_DISABLED, "true");
+ }
+
+ td2.appendChild(button);
+ divWidth = CALENDAR_WIDTH + CALENDAR_BUTTON_WIDTH;
+ //div.appendChild(button);
+ } else {
+ nsIDOMElement image = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_IMG);
+ image.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
+ CSS_R_C_BUTTON);
+ if (attrPresents(buttonIcon)) {
+ image.setAttribute(HtmlComponentUtil.HTML_ATR_SRC, buttonIcon);
+ divWidth = CALENDAR_WIDTH + CALENDAR_CUSTOM_IMAGE_WIDTH;
+ } else {
+ ComponentUtil.setImg(image, BUTTON_IMG);
+ divWidth = CALENDAR_WIDTH + CALENDAR_IMAGE_WIDTH;
+ }
+ td2.appendChild(image);
+ //div.appendChild(image);
+ }
+ div.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
+ HtmlComponentUtil.HTML_ATR_WIDTH + " : "
+ + divWidth + "px; overflow: hidden;");
return div;
}
@@ -175,10 +313,13 @@
public boolean isRecreateAtAttrChange(VpePageContext pageContext,
Element sourceElement, nsIDOMDocument visualDocument,
nsIDOMElement visualNode, Object data, String name, String value) {
- if (name.equalsIgnoreCase(ATTRIBUTE_POPUP)) {
+/*
+ if (name.equalsIgnoreCase(POPUP)) {
return true;
}
return false;
+*/
+ return true;
}
/**
@@ -186,32 +327,67 @@
* @param visualDocument
* @return Node of the visual tree.
*/
- private nsIDOMElement createCalendar(nsIDOMDocument visualDocument) {
+ private nsIDOMElement createCalendar(nsIDOMDocument visualDocument, VpeCreationData creationData, Element sourceElement) {
nsIDOMElement div = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_DIV);
div.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
HtmlComponentUtil.HTML_ATR_WIDTH + " : " + CALENDAR_WIDTH
- + "px;");
+ + "px; overflow: hidden;");
+
nsIDOMElement table = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TABLE);
table.setAttribute(HtmlComponentUtil.HTML_CELLPADDING_ATTR, "0");
table.setAttribute(HtmlComponentUtil.HTML_BORDER_ATTR, "0");
table.setAttribute(HtmlComponentUtil.HTML_CELLSPACING_ATTR, "0");
table.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
- "calendar-exterior");
+ CSS_R_C_EXTERIOR);
nsIDOMElement tbody = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TBODY);
+ Element headerFacet = ComponentUtil.getFacet(sourceElement, HEADER);
+ nsIDOMElement optionalHeader = createCalendarOptionalHeaderOrFooter(visualDocument, creationData, headerFacet, true);
+ Element footerFacet = ComponentUtil.getFacet(sourceElement, FOOTER);
+ nsIDOMElement optionalFooter = createCalendarOptionalHeaderOrFooter(visualDocument, creationData, footerFacet, false);
nsIDOMElement header = createCalendarHeader(visualDocument);
nsIDOMElement calendarBody = createCalendarBody(visualDocument);
+
+ tbody.appendChild(optionalHeader);
tbody.appendChild(header);
tbody.appendChild(calendarBody);
+ tbody.appendChild(optionalFooter);
+
table.appendChild(tbody);
div.appendChild(table);
- return div;
+ //return div;
+ return table;
}
+ private nsIDOMElement createCalendarOptionalHeaderOrFooter(
+ nsIDOMDocument visualDocument, VpeCreationData creationData, Element facetBody, boolean isHeader) {
+ nsIDOMElement tr = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TR);
+ nsIDOMElement td = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TD);
+ td.setAttribute(HtmlComponentUtil.HTML_TABLE_COLSPAN, "" + COLUMN);
+ tr.appendChild(td);
+
+ if (isHeader) {
+ td.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, CSS_R_C_HEADER_OPTIONAL);
+ //td.appendChild(visualDocument
+ // .createTextNode("header Here->"));
+ } else {
+ td.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, CSS_R_C_FOOTER_OPTIONAL);
+ td.appendChild(visualDocument
+ .createTextNode("footer Here->"));
+ }
+
+ VpeChildrenInfo child = new VpeChildrenInfo(td);
+ child.addSourceChild(facetBody);
+ creationData.addChildrenInfo(child);
+ return tr;
+ }
+
/**
*
* @param visualDocument
@@ -219,45 +395,59 @@
*/
private nsIDOMElement createCalendarHeader(nsIDOMDocument visualDocument) {
nsIDOMElement tr = visualDocument
- .createElement(HtmlComponentUtil.HTML_TAG_TR);
- nsIDOMElement td = visualDocument
- .createElement(HtmlComponentUtil.HTML_TAG_TD);
- td.setAttribute(HtmlComponentUtil.HTML_TABLE_COLSPAN, "" + COLUMN);
+ .createElement(HtmlComponentUtil.HTML_TAG_TR);
+ nsIDOMElement td = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TD);
+ td.setAttribute(HtmlComponentUtil.HTML_TABLE_COLSPAN, "" + COLUMN);
- SimpleDateFormat sdf = new SimpleDateFormat("MMMM, yyyy");
- Calendar cal = Calendar.getInstance();
- HEADER_CONTENT[2] = sdf.format(cal.getTime());
+ SimpleDateFormat sdf = new SimpleDateFormat();
+// Date date = Calendar.getInstance().getTime();
+ Date date = getCalendarWithLocale().getTime();
+ String dateStr = "";
+ if (attrPresents(datePattern)) {
+ try {
+ sdf.applyPattern(datePattern);
+ dateStr = sdf.format(date);
+ } catch (Exception e) {
+ sdf.applyPattern(DEFAULT_DATE_PATTERN);
+ dateStr = sdf.format(date);
+ }
+ } else {
+ sdf.applyPattern(DEFAULT_DATE_PATTERN);
+ dateStr = sdf.format(date);
+ }
+ HEADER_CONTENT[2] = dateStr;
- nsIDOMElement table = visualDocument
- .createElement(HtmlComponentUtil.HTML_TAG_TABLE);
- table.setAttribute(HtmlComponentUtil.HTML_CELLPADDING_ATTR, "0");
- table.setAttribute(HtmlComponentUtil.HTML_CELLSPACING_ATTR, "0");
- table.setAttribute(HtmlComponentUtil.HTML_BORDER_ATTR, "0");
- table.setAttribute(HtmlComponentUtil.HTML_ATR_WIDTH, FILL_WIDTH);
+ nsIDOMElement table = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TABLE);
+ table.setAttribute(HtmlComponentUtil.HTML_CELLPADDING_ATTR, "0");
+ table.setAttribute(HtmlComponentUtil.HTML_CELLSPACING_ATTR, "0");
+ table.setAttribute(HtmlComponentUtil.HTML_BORDER_ATTR, "0");
+ table.setAttribute(HtmlComponentUtil.HTML_ATR_WIDTH, FILL_WIDTH);
- nsIDOMElement tbody = visualDocument
- .createElement(HtmlComponentUtil.HTML_TAG_TBODY);
+ nsIDOMElement tbody = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TBODY);
- nsIDOMElement tr1 = visualDocument
- .createElement(HtmlComponentUtil.HTML_TAG_TR);
- for (int i = 0; i < HEADER_CONTENT.length; i++) {
- nsIDOMElement td1 = visualDocument
- .createElement(HtmlComponentUtil.HTML_TAG_TD);
- td1.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
- i == 2 ? "rich-calendar-month" : "rich-calendar-tool");
+ nsIDOMElement tr1 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TR);
+ for (int i = 0; i < HEADER_CONTENT.length; i++) {
+ nsIDOMElement td1 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TD);
+ td1.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
+ i == 2 ? CSS_R_C_MONTH : CSS_R_C_TOOL);
- nsIDOMText text1 = visualDocument.createTextNode(HEADER_CONTENT[i]);
- td1.appendChild(text1);
- tr1.appendChild(td1);
+ nsIDOMText text1 = visualDocument.createTextNode(HEADER_CONTENT[i]);
+ td1.appendChild(text1);
+ tr1.appendChild(td1);
+ }
+
+ tbody.appendChild(tr1);
+ table.appendChild(tbody);
+ td.appendChild(table);
+ tr.appendChild(td);
+ return tr;
}
- tbody.appendChild(tr1);
- table.appendChild(tbody);
- td.appendChild(table);
- tr.appendChild(td);
- return tr;
- }
-
/**
*
* @param visualDocument
@@ -271,44 +461,47 @@
nsIDOMElement bodyTR = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TR);
- Calendar cal1 = Calendar.getInstance();
+ //Calendar cal1 = Calendar.getInstance();
+ Calendar cal1 = getCalendarWithLocale();
SimpleDateFormat wdf = new SimpleDateFormat("EE");
cal1.set(Calendar.WEEK_OF_MONTH, Calendar.SATURDAY);
-
- for (int i = 0; i < COLUMN; i++) {
- nsIDOMElement td = visualDocument
- .createElement(HtmlComponentUtil.HTML_TAG_TD);
-
- if (i == 0) {
- td.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
- WEEK_DAY_HTML_CLASS_ATTR);
- nsIDOMElement br = visualDocument
- .createElement(HtmlComponentUtil.HTML_TAG_BR);
- td.appendChild(br);
- } else {
- if (holidays.contains(weeks[i - 1])) {
+ // Create week days row
+ if (!"false".equalsIgnoreCase(showWeekDaysBar)) {
+ for (int i = 0; i < COLUMN; i++) {
+ nsIDOMElement td = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TD);
+ if ((i == 0) && (!"false".equalsIgnoreCase(showWeeksBar))) {
td.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
- HOL_WEEK_DAY_HTML_CLASS_ATTR);
- } else {
- td.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
WEEK_DAY_HTML_CLASS_ATTR);
+ nsIDOMElement br = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_BR);
+ td.appendChild(br);
+ bodyTR.appendChild(td);
+ } else if ( i > 0) {
+ if (holidays.contains(weeks[i - 1])) {
+ td.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
+ HOL_WEEK_DAY_HTML_CLASS_ATTR);
+ } else {
+ td.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
+ WEEK_DAY_HTML_CLASS_ATTR);
+ }
+ nsIDOMText text = visualDocument.createTextNode(i == 0 ? ""
+ : weeks[i - 1]);
+ td.appendChild(text);
+ bodyTR.appendChild(td);
}
- nsIDOMText text = visualDocument.createTextNode(i == 0 ? ""
- : weeks[i - 1]);
- td.appendChild(text);
+ //bodyTR.appendChild(td);
}
- bodyTR.appendChild(td);
- }
+ tbody.appendChild(bodyTR);
+ } // showWeekDaysBar
- tbody.appendChild(bodyTR);
-
// Calendar body
+ //Calendar cal = Calendar.getInstance();
+ Calendar cal = getCalendarWithLocale();
- Calendar cal = Calendar.getInstance();
-
int month = cal.get(Calendar.MONTH);
int dayN = cal.get(Calendar.DAY_OF_MONTH);
@@ -323,16 +516,20 @@
nsIDOMElement tr = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TR);
- // Week in year
- nsIDOMElement weekTD = visualDocument
- .createElement(HtmlComponentUtil.HTML_TAG_TD);
- weekTD.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
- "rich-calendar-week");
- nsIDOMText weekText = visualDocument.createTextNode(""
- + cal.get(Calendar.WEEK_OF_YEAR));
- weekTD.appendChild(weekText);
- tr.appendChild(weekTD);
+
+ if (!"false".equalsIgnoreCase(showWeeksBar)) {
+ // Week in year
+ nsIDOMElement weekTD = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TD);
+ weekTD.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
+ CSS_R_C_WEEK);
+ nsIDOMText weekText = visualDocument.createTextNode(""
+ + cal.get(Calendar.WEEK_OF_YEAR));
+ weekTD.appendChild(weekText);
+ tr.appendChild(weekTD);
+ }
+
//for number of days in week
for (int j = NUM_DAYS_IN_WEEK; j > 0; j--) {
@@ -372,6 +569,19 @@
}
td.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, currentAttr);
+ if (attrPresents(cellWidth) && attrPresents(cellHeight)) {
+ td.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
+ HtmlComponentUtil.HTML_ATR_WIDTH + ":" + cellWidth
+ + "px;" + HtmlComponentUtil.HTML_ATR_HEIGHT
+ + ":" + cellHeight + "px;");
+ } else if (attrPresents(cellWidth)) {
+ td.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
+ HtmlComponentUtil.HTML_ATR_WIDTH +":" + cellWidth + "px;");
+ } else if (attrPresents(cellHeight)) {
+ td.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
+ HtmlComponentUtil.HTML_ATR_HEIGHT+":" + cellHeight + "px;");
+ }
+
nsIDOMText text = visualDocument.createTextNode(""
+ cal.get(Calendar.DAY_OF_MONTH));
td.appendChild(text);
@@ -405,10 +615,11 @@
nsIDOMElement td1 = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TD);
td1.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
- "rich-calendar-toolfooter");
+ CSS_R_C_TOOLFOOTER);
SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
- cal = Calendar.getInstance();
+// cal = Calendar.getInstance();
+ cal = getCalendarWithLocale();
nsIDOMText text1 = visualDocument.createTextNode(sdf.format(cal
.getTime()));
@@ -419,17 +630,33 @@
.createElement(HtmlComponentUtil.HTML_TAG_TD);
td2.setAttribute(HtmlComponentUtil.HTML_ATR_WIDTH, FILL_WIDTH);
td2.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
- "rich-calendar-toolfooter");
+ CSS_R_C_TOOLFOOTER);
tr1.appendChild(td2);
nsIDOMElement td3 = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TD);
td3.setAttribute(HtmlComponentUtil.HTML_ATR_WIDTH, FILL_WIDTH);
td3.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR,
- "rich-calendar-toolfooter");
+ CSS_R_C_TOOLFOOTER);
td3.setAttribute(HtmlComponentUtil.HTML_ALIGN_ATTR,
HtmlComponentUtil.HTML_ALIGN_RIGHT_VALUE);
- nsIDOMText text3 = visualDocument.createTextNode(TODAY);
+
+ String nodeText;
+ if ("false".equalsIgnoreCase(showApplyButton)) {
+ if ("hidden".equalsIgnoreCase(todayControlMode)) {
+ nodeText = "";
+ } else {
+ nodeText = TODAY;
+ }
+ } else {
+ if ("hidden".equalsIgnoreCase(todayControlMode)) {
+ nodeText = APPLY;
+ } else {
+ nodeText = TODAY + VERTICAL_SEPARATOR + APPLY;
+ }
+ }
+ nsIDOMText text3 = visualDocument.createTextNode(nodeText);
+
td3.appendChild(text3);
tr1.appendChild(td3);
@@ -451,7 +678,7 @@
super.setAttribute(pageContext, sourceElement, visualDocument,
visualNode, data, name, value);
if (name.equalsIgnoreCase(HtmlComponentUtil.HTML_VALUE_ATTR)) {
- String popup = sourceElement.getAttribute(ATTRIBUTE_POPUP);
+ String popup = sourceElement.getAttribute(POPUP);
if (popup != null && popup.equalsIgnoreCase("false"))
return;
nsIDOMElement element = (nsIDOMElement) visualNode
@@ -474,7 +701,7 @@
super.removeAttribute(pageContext, sourceElement, visualDocument,
visualNode, data, name);
if (name.equalsIgnoreCase(HtmlComponentUtil.HTML_VALUE_ATTR)) {
- String popup = sourceElement.getAttribute(ATTRIBUTE_POPUP);
+ String popup = sourceElement.getAttribute(POPUP);
if (popup != null && popup.equalsIgnoreCase("false"))
return;
nsIDOMElement element = (nsIDOMElement) visualNode
@@ -486,4 +713,89 @@
input.removeAttribute(HtmlComponentUtil.HTML_VALUE_ATTR);
}
}
+
+ private void readAttributes(Node sourceNode) {
+ Element source = (Element) sourceNode;
+ buttonLabel = source.getAttribute(BUTTON_LABEL);
+ buttonIcon = source.getAttribute(BUTTON_ICON);
+ direction = source.getAttribute(DIRECTION);
+ cellHeight = source.getAttribute(CELL_HEIGHT);
+ cellWidth = source.getAttribute(CELL_WIDTH);
+ datePattern = source.getAttribute(DATE_PATTERN);
+ disabled = source.getAttribute(DISABLED);
+ enableManualInput = source.getAttribute(ENABLE_MANUAL_INPUT);
+ horizontalOffset = source.getAttribute(HORIZONTAL_OFFSET);
+ verticalOffset = source.getAttribute(VERTICAL_OFFSET);
+ locale = source.getAttribute(LOCALE);
+ popup = source.getAttribute(POPUP);
+ showApplyButton = source.getAttribute(SHOW_APPLY_BUTTON);
+ showInput = source.getAttribute(SHOW_INPUT);
+ showWeekDaysBar = source.getAttribute(SHOW_SHOW_WEEKS_DAY_BAR);
+ showWeeksBar = source.getAttribute(SHOW_WEEKS_BAR);
+ todayControlMode = source.getAttribute(TODAY_CONTROL_MODE);
+ }
+
+ private boolean attrPresents(String attr) {
+ return ((null != attr) && (!"".equals(attr)));
+ }
+
+ private void initCalendar() {
+// Calendar cal = Calendar.getInstance();
+ Calendar cal = getCalendarWithLocale();
+
+ int firstDayOfWeek = cal.getFirstDayOfWeek();
+ while (firstDayOfWeek != cal.get(Calendar.DAY_OF_WEEK)) {
+ cal.add(Calendar.DAY_OF_MONTH, 1);
+ }
+
+ SimpleDateFormat sdf = new SimpleDateFormat("EE");
+ String dayOfWeek = "";
+ for (int i = 0; i < NUM_DAYS_IN_WEEK; i++) {
+ dayOfWeek = sdf.format(cal.getTime());
+ weeks[i] = dayOfWeek;
+ if (cal.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY
+ || cal.get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY)
+ holidays.add(dayOfWeek);
+ cal.add(Calendar.DAY_OF_MONTH, 1);
+ }
+ }
+
+ private Calendar getCalendarWithLocale() {
+ Locale customLocale;
+ if (attrPresents(this.locale)) {
+ customLocale = parseLocale(locale);
+ return Calendar.getInstance(customLocale);
+ }
+ return Calendar.getInstance();
+ }
+
+public Locale parseLocale(String localeStr){
+
+ int length = localeStr.length();
+ if(null==localeStr||length<2){
+ return Locale.getDefault();
+ }
+
+ //Lookup index of first '_' in string locale representation.
+ int index1 = localeStr.indexOf("_");
+ //Get first charters (if exist) from string
+ String language = null;
+ if(index1!=-1){
+ language = localeStr.substring(0, index1);
+ }else{
+ return new Locale(localeStr);
+ }
+ //Lookup index of second '_' in string locale representation.
+ int index2 = localeStr.indexOf("_", index1+1);
+ String country = null;
+ if(index2!=-1){
+ country = localeStr.substring(index1+1, index2);
+ String variant = localeStr.substring(index2+1);
+ return new Locale(language, country, variant);
+ }else{
+ country = localeStr.substring(index1+1);
+ return new Locale(language, country);
+ }
+ }
+
}
16 years, 4 months
JBoss Tools SVN: r6224 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/src/org/jboss/tools/jsf/vpe/facelets/template.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2008-02-11 05:08:46 -0500 (Mon, 11 Feb 2008)
New Revision: 6224
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/src/org/jboss/tools/jsf/vpe/facelets/template/VpeDefineContainerTemplate.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1591
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/src/org/jboss/tools/jsf/vpe/facelets/template/VpeDefineContainerTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/src/org/jboss/tools/jsf/vpe/facelets/template/VpeDefineContainerTemplate.java 2008-02-08 21:53:42 UTC (rev 6223)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/src/org/jboss/tools/jsf/vpe/facelets/template/VpeDefineContainerTemplate.java 2008-02-11 10:08:46 UTC (rev 6224)
@@ -10,8 +10,13 @@
******************************************************************************/
package org.jboss.tools.jsf.vpe.facelets.template;
+import java.util.HashMap;
import java.util.HashSet;
+import java.util.Map;
import java.util.Set;
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
import org.eclipse.core.resources.IFile;
import org.w3c.dom.Attr;
import org.w3c.dom.Document;
@@ -29,12 +34,18 @@
import org.jboss.tools.vpe.editor.template.VpeTemplate;
import org.jboss.tools.vpe.editor.template.VpeTemplateManager;
import org.jboss.tools.vpe.editor.util.HTML;
+import org.mozilla.interfaces.nsIDOMAttr;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNamedNodeMap;
import org.mozilla.interfaces.nsIDOMNode;
+import org.mozilla.interfaces.nsIDOMNodeList;
public abstract class VpeDefineContainerTemplate extends VpeAbstractTemplate {
protected static final String ATTR_TEMPLATE = "template";
+ protected static final String NAME = "name";
+ protected static final String VALUE = "value";
+ int count = 0;
private static Set<Node> defineContainer = new HashSet<Node>();
@Override
@@ -67,8 +78,149 @@
creationData.setData(null);
return creationData;
}
+
+ private String replacePattern(String origStr, String target,
+ String replacement) {
+ StringBuilder sb = new StringBuilder();
+ String word = "((\\w+)([\\.\\[\\]]*))";
+ Matcher m;
+ String variable;
+ String signs;
+ m = Pattern.compile(word).matcher(origStr);
+
+ // everything must be found here
+ int endIndex = 0;
+ int startIndex = 0;
+ while (m.find()) {
+ variable = m.group(2);
+ signs = m.group(3);
+ startIndex = m.start(2);
+
+ if ((startIndex != 0) && (endIndex != 0)
+ && (endIndex != startIndex)) {
+ sb.append(origStr.substring(endIndex, startIndex));
+ }
+
+ if (target.equals(variable)) {
+ sb.append(replacement);
+ } else {
+ sb.append(variable);
+ }
+ sb.append(signs);
+ endIndex = m.end(3);
+ }
+
+ // append the tail
+ if (endIndex != origStr.length()) {
+ sb.append(origStr.substring(endIndex, origStr.length()));
+ }
+
+ if (!"".equals(sb.toString())) {
+ return sb.toString();
+ }
+ return origStr;
+ }
+
+ private void updateNodeValue(nsIDOMNode node, Map<String, String> paramsMap) {
+ Set<String> keys = paramsMap.keySet();
+ if (null != node) {
+ String nodeValue = node.getNodeValue();
+ String curlyBracketResultPattern = "(" + Pattern.quote("#")
+ + "\\{(.+?)\\})+?";
+ int matcherGroupWithVariable = 2;
+
+ if ((null != nodeValue) && (!"".equals(nodeValue))) {
+ for (String key : keys) {
+ Matcher curlyBracketMatcher = Pattern.compile(
+ curlyBracketResultPattern).matcher(nodeValue);
+
+ String replacement = paramsMap.get(key);
+ if (replacement.startsWith("#{")
+ && replacement.endsWith("}")) {
+ // remove first 2 signs '#{'
+ replacement = replacement.substring(2);
+ // remove last '}' sign
+ replacement = replacement.substring(0, replacement
+ .length() - 1);
+ }
+
+ int lastPos = 0;
+ StringBuilder sb = new StringBuilder();
+ lastPos = 0;
+ sb = new StringBuilder();
+ curlyBracketMatcher.reset(nodeValue);
+ boolean firstFind = false;
+ boolean find = curlyBracketMatcher.find();
+ while (find) {
+ if (!firstFind) {
+ firstFind = true;
+ }
+ int start = curlyBracketMatcher
+ .start(matcherGroupWithVariable);
+ int end = curlyBracketMatcher
+ .end(matcherGroupWithVariable);
+ String group = replacePattern(curlyBracketMatcher
+ .group(matcherGroupWithVariable), key,
+ replacement);
+ sb.append(nodeValue.substring(lastPos, start));
+ sb.append(group);
+ lastPos = end;
+ find = curlyBracketMatcher.find();
+ }
+ if (firstFind) {
+ sb.append(nodeValue.substring(lastPos, nodeValue
+ .length()));
+ nodeValue = sb.toString();
+ node.setNodeValue(nodeValue);
+ }
+ }
+ }
+ }
+ }
+
+ private void insertParam(nsIDOMNode node, Map<String, String> paramsMap) {
+
+ // update current node value
+ updateNodeValue(node, paramsMap);
+
+ nsIDOMNamedNodeMap attributes = node.getAttributes();
+ if (null != attributes) {
+ long len = attributes.getLength();
+ for (int i = 0; i < len; i++) {
+ nsIDOMNode item = attributes.item(i);
+ // update attributes node
+ updateNodeValue(item, paramsMap);
+ }
+ }
+
+ nsIDOMNodeList children = node.getChildNodes();
+ if (null != children) {
+ long len = children.getLength();
+ for (int i = 0; i < len; i++) {
+ nsIDOMNode child = children.item(i);
+ // update child node
+ insertParam(child, paramsMap);
+ }
+ }
+ }
+
@Override
public void validate(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument, VpeCreationData creationData) {
+
+ Map<String, String> paramsMap = new HashMap<String, String>();
+ NodeList sourceChildren = sourceNode.getChildNodes();
+ int len = sourceChildren.getLength();
+ for (int i = 0; i < len; i++) {
+ Node sourceChild = sourceChildren.item(i);
+ if (sourceChild.getNodeType() == Node.ELEMENT_NODE && "param".equals(sourceChild.getLocalName())) {
+ String name = ((Element)sourceChild).getAttribute(NAME);
+ String value = ((Element)sourceChild).getAttribute(VALUE);
+ paramsMap.put(name, value);
+ }
+ }
+ nsIDOMNode node = creationData.getNode();
+ insertParam(node, paramsMap);
+
TemplateFileInfo templateFileInfo = (TemplateFileInfo)creationData.getData();
if (templateFileInfo != null) {
VpeIncludeInfo includeInfo = pageContext.getVisualBuilder().popIncludeStack();
16 years, 4 months
JBoss Tools SVN: r6223 - trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/src/org/jboss/tools/vpe/ui/test.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-02-08 16:53:42 -0500 (Fri, 08 Feb 2008)
New Revision: 6223
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java
Log:
some invocations of delay() methods where removed to get rid of JVM error
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java 2008-02-08 21:16:59 UTC (rev 6222)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java 2008-02-08 21:53:42 UTC (rev 6223)
@@ -78,7 +78,7 @@
Platform.addLogListener(this);
String jbossPath = System.getProperty("jbosstools.test.jboss.home.4.2", "C:\\java\\jboss-4.2.2.GA");
- JBossASAdapterInitializer.initJBossAS(jbossPath, new NullProgressMonitor());
+// JBossASAdapterInitializer.initJBossAS(jbossPath, new NullProgressMonitor());
closeEditors();
}
@@ -211,7 +211,8 @@
// wait for jobs
TestUtil.waitForJobs();
// wait full initialization of vpe
- TestUtil.delay(1000);
+ // commented by dgolovin to get rid of jvm error [libexpat.so.0+0xeff4]
+ // TestUtil.delay(1000);
return part;
16 years, 4 months