Author: dazarov
Date: 2007-09-03 12:33:58 -0400 (Mon, 03 Sep 2007)
New Revision: 3428
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.classpath
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.project
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.settings/
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.settings/org.eclipse.jdt.core.prefs
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.settings/org.eclipse.jst.common.project.facet.core.prefs
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.settings/org.eclipse.wst.common.component
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.settings/org.jboss.tools.jst.web.xml
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/JavaSource/
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/JavaSource/demo/
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/JavaSource/demo/Messages.properties
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/JavaSource/demo/User.java
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/META-INF/
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/META-INF/MANIFEST.MF
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/classes/
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/classes/demo/
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/classes/demo/Messages.properties
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/classes/demo/User.class
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/components.xml
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/faces-config.xml
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/common-annotations.jar
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/commons-beanutils.jar
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/commons-collections.jar
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/commons-digester.jar
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/commons-logging.jar
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/ejb3-persistence.jar
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/jboss-ejb3x.jar
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/jboss-seam.jar
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/jsf-api.jar
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/jsf-impl.jar
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/jstl.jar
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/standard.jar
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/tmp
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/web.xml
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/index.jsp
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/pages/
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/pages/hello.jsp
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/pages/inputUserName.jsp
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/seam.properties
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/ant/
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/ant/build.properties
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/ant/build.xml
Modified:
trunk/seam/tests/org.jboss.tools.seam.ui.test/META-INF/MANIFEST.MF
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java
Log:
http://jira.jboss.com/jira/browse/EXIN-337
Modified: trunk/seam/tests/org.jboss.tools.seam.ui.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.ui.test/META-INF/MANIFEST.MF 2007-09-03 14:56:43
UTC (rev 3427)
+++ trunk/seam/tests/org.jboss.tools.seam.ui.test/META-INF/MANIFEST.MF 2007-09-03 16:33:58
UTC (rev 3428)
@@ -14,7 +14,8 @@
org.eclipse.core.resources,
org.jboss.tools.common.model,
org.eclipse.ui.navigator,
- org.jboss.tools.seam.core.test
+ org.jboss.tools.seam.core.test,
+ org.jboss.tools.seam.core
Export-Package: org.jboss.tools.seam.ui.test,
org.jboss.tools.seam.ui.test.view,
org.jboss.tools.seam.ui.test.wizard
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.classpath
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.classpath
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.classpath 2007-09-03
16:33:58 UTC (rev 3428)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="JavaSource"/>
+ <classpathentry kind="con"
path="org.eclipse.jst.j2ee.internal.web.container"/>
+ <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 v5.5"/>
+ <classpathentry kind="output"
path="WebContent/WEB-INF/classes"/>
+</classpath>
Added: trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.project
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.project
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.project 2007-09-03
16:33:58 UTC (rev 3428)
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>TestComponentView</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.jboss.tools.common.verification.verifybuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.jboss.tools.seam.core.seambuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.jboss.tools.jsf.jsfnature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.jboss.tools.seam.core.seamnature</nature>
+ </natures>
+</projectDescription>
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.settings/org.eclipse.jdt.core.prefs 2007-09-03
16:33:58 UTC (rev 3428)
@@ -0,0 +1,7 @@
+#Tue Jun 19 15:59:09 MSD 2007
+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/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.settings/org.eclipse.jst.common.project.facet.core.prefs
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.settings/org.eclipse.jst.common.project.facet.core.prefs
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.settings/org.eclipse.jst.common.project.facet.core.prefs 2007-09-03
16:33:58 UTC (rev 3428)
@@ -0,0 +1,4 @@
+#Tue Jun 19 15:59:10 MSD 2007
+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\ v5.5/owners=jst.web\:2.4
+eclipse.preferences.version=1
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.settings/org.eclipse.wst.common.component
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.settings/org.eclipse.wst.common.component
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.settings/org.eclipse.wst.common.component 2007-09-03
16:33:58 UTC (rev 3428)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+<wb-module deploy-name="TestComponentView">
+<wb-resource deploy-path="/" source-path="/WebContent"/>
+<wb-resource deploy-path="/WEB-INF/classes"
source-path="/JavaSource"/>
+<property name="context-root" value="TestComponentView"/>
+<property name="java-output-path" value="build/classes"/>
+</wb-module>
+</project-modules>
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.settings/org.eclipse.wst.common.project.facet.core.xml
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.settings/org.eclipse.wst.common.project.facet.core.xml 2007-09-03
16:33:58 UTC (rev 3428)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="Apache Tomcat v5.5"/>
+ <fixed facet="jst.java"/>
+ <fixed facet="jst.web"/>
+ <installed facet="jst.java" version="5.0"/>
+ <installed facet="jst.web" version="2.4"/>
+</faceted-project>
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.settings/org.jboss.tools.jst.web.xml
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.settings/org.jboss.tools.jst.web.xml
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/.settings/org.jboss.tools.jst.web.xml 2007-09-03
16:33:58 UTC (rev 3428)
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<FILESYSTEMS APPLICATION_NAME="TestComponentView"
ENTITY="FileSystems"
+ VERSION="2.0.0" WORKSPACE_HOME="./WebContent/WEB-INF">
+ <FILESYSTEM ENTITY="FileSystemFolder"
LOCATION="%redhat.workspace%" NAME="WEB-INF"/>
+ <FILESYSTEM ENTITY="FileSystemFolder" INFO="Content-Type=Web"
+ LOCATION="%redhat.workspace%/.." NAME="WEB-ROOT"/>
+ <FILESYSTEM ENTITY="FileSystemFolder"
+ LOCATION="%redhat.workspace%/../../JavaSource" NAME="src"/>
+ <FILESYSTEM ENTITY="FileSystemFolder"
LOCATION="%redhat.workspace%/lib" NAME="lib"/>
+ <FILESYSTEM ENTITY="FileSystemFolder"
+ LOCATION="%redhat.workspace%/classes" NAME="classes"/>
+ <FILESYSTEM ENTITY="FileSystemFolder"
+ LOCATION="%redhat.workspace%/../../ant" NAME="build"/>
+ <FILESYSTEM ENTITY="FileSystemJar" INFO="hidden=yes"
+ LOCATION="%redhat.workspace%/lib/common-annotations.jar"
NAME="lib-common-annotations.jar"/>
+ <FILESYSTEM ENTITY="FileSystemJar" INFO="hidden=yes"
+ LOCATION="%redhat.workspace%/lib/commons-beanutils.jar"
NAME="lib-commons-beanutils.jar"/>
+ <FILESYSTEM ENTITY="FileSystemJar" INFO="hidden=yes"
+ LOCATION="%redhat.workspace%/lib/commons-collections.jar"
NAME="lib-commons-collections.jar"/>
+ <FILESYSTEM ENTITY="FileSystemJar" INFO="hidden=yes"
+ LOCATION="%redhat.workspace%/lib/commons-digester.jar"
NAME="lib-commons-digester.jar"/>
+ <FILESYSTEM ENTITY="FileSystemJar" INFO="hidden=yes"
+ LOCATION="%redhat.workspace%/lib/commons-logging.jar"
NAME="lib-commons-logging.jar"/>
+ <FILESYSTEM ENTITY="FileSystemJar" INFO="hidden=yes"
+ LOCATION="%redhat.workspace%/lib/jsf-api.jar"
NAME="lib-jsf-api.jar"/>
+ <FILESYSTEM ENTITY="FileSystemJar" INFO="hidden=yes"
+ LOCATION="%redhat.workspace%/lib/jsf-impl.jar"
NAME="lib-jsf-impl.jar"/>
+ <FILESYSTEM ENTITY="FileSystemJar" INFO="hidden=yes"
+ LOCATION="%redhat.workspace%/lib/jstl.jar"
NAME="lib-jstl.jar"/>
+ <FILESYSTEM ENTITY="FileSystemJar" INFO="hidden=yes"
+ LOCATION="%redhat.workspace%/lib/standard.jar"
NAME="lib-standard.jar"/>
+ <FILESYSTEM ENTITY="FileSystemFolder"
LOCATION="%eclipse.project%" NAME="TestScanner"/>
+ <FILESYSTEM ENTITY="FileSystemJar"
+ LOCATION="%redhat.workspace%/lib/jboss-seam.jar"
NAME="lib-jboss-seam.jar"/>
+ <WEB ENTITY="JstWeb" MODEL_PATH="/web.xml"
SERVLET_VERSION="2.4">
+ <MODULE ENTITY="WebJSFModule" MODEL_PATH="/faces-config.xml"
+ ROOT="WEB-ROOT" SRC="src"
URI="/WEB-INF/faces-config.xml"/>
+ </WEB>
+</FILESYSTEMS>
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/JavaSource/demo/Messages.properties
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/JavaSource/demo/Messages.properties
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/JavaSource/demo/Messages.properties 2007-09-03
16:33:58 UTC (rev 3428)
@@ -0,0 +1,3 @@
+header=Hello Demo Application
+prompt_message=Name:
+hello_message=Hello
\ No newline at end of file
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/JavaSource/demo/User.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/JavaSource/demo/User.java
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/JavaSource/demo/User.java 2007-09-03
16:33:58 UTC (rev 3428)
@@ -0,0 +1,72 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package demo;
+
+import javax.persistence.Entity;
+
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.*;
+
+/**
+ * Created by Red Hat Developer Studio
+ */
+
+@Name("myUser")
+(a)Scope(ScopeType.APPLICATION)
+@Entity
+(a)Install(precedence=Install.FRAMEWORK)
+
+public class User {
+
+ private String name;
+
+ @Out
+ private String address = "";
+
+ @In
+ private String payment = "";
+
+ /**
+ * @return User Name
+ */
+ public String getName() {
+ return name;
+ }
+
+ /**
+ * @param User Name
+ */
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getAddress() {
+ return address;
+ }
+
+ public String getPayment() {
+ return payment;
+ }
+
+ @Unwrap
+ public void unwrapMethod() {
+ }
+
+ @Create @Destroy
+ public void createAndDestroyMethod() {
+ }
+
+ @Factory(value="myFactory", scope=ScopeType.SESSION)
+ public void testFactory() {
+
+ }
+
+}
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/META-INF/MANIFEST.MF
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/META-INF/MANIFEST.MF
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/META-INF/MANIFEST.MF 2007-09-03
16:33:58 UTC (rev 3428)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Class-Path:
+
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/classes/demo/Messages.properties
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/classes/demo/Messages.properties
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/classes/demo/Messages.properties 2007-09-03
16:33:58 UTC (rev 3428)
@@ -0,0 +1,3 @@
+header=Hello Demo Application
+prompt_message=Name:
+hello_message=Hello
\ No newline at end of file
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/classes/demo/User.class
===================================================================
(Binary files differ)
Property changes on:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/classes/demo/User.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/components.xml
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/components.xml
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/components.xml 2007-09-03
16:33:58 UTC (rev 3428)
@@ -0,0 +1,34 @@
+<?xml version="1.0"?>
+<components
xmlns="http://jboss.com/products/seam/components"
+
xmlns:core="http://jboss.com/products/seam/core"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.com/products/seam/components
http://jboss.com/products/seam/components-1.2.xsd http://jboss.com/products/seam/core
http://jboss.com/products/seam/core-1.2.xsd">
+ <component class="java.lang.Boolean" name="myComponent"
scope="page">
+ <property name="property1">value1</property>
+ <property name="myList">
+ <value>value1</value>
+ </property>
+ <property name="myMap">
+ <key>key1</key>
+ <value>map value 1</value>
+ </property>
+ </component>
+ <core:managed-persistence-context name="myPersistenceContext1"/>
+
+ <core:resource-bundle>
+ <core:bundle-names>
+ <value>bundleA</value>
+ <value>bundleB</value>
+ </core:bundle-names>
+ </core:resource-bundle>
+
+ <core:manager
+ conversation-is-long-running-parameter="a"
+ parent-conversation-id-parameter="b"
+ conversation-id-parameter="c"
+ concurrent-request-timeout="2"
+ conversation-timeout="3"
+ />
+
+ <factory name="factory1" scope="conversation"/>
+
+</components>
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/faces-config.xml
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/faces-config.xml
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/faces-config.xml 2007-09-03
16:33:58 UTC (rev 3428)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces
Config 1.1//EN"
+
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+<faces-config>
+ <managed-bean>
+ <description>User Name Bean</description>
+ <managed-bean-name>user</managed-bean-name>
+ <managed-bean-class>demo.User</managed-bean-class>
+ <managed-bean-scope>session</managed-bean-scope>
+ <managed-property>
+ <property-name>name</property-name>
+ <property-class>java.lang.String</property-class>
+ <value/>
+ </managed-property>
+ </managed-bean>
+ <navigation-rule>
+ <from-view-id>/pages/inputUserName.jsp</from-view-id>
+ <navigation-case>
+ <from-outcome>hello</from-outcome>
+ <to-view-id>/pages/hello.jsp</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+</faces-config>
\ No newline at end of file
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/common-annotations.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/common-annotations.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/commons-beanutils.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/commons-beanutils.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/commons-collections.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/commons-collections.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/commons-digester.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/commons-digester.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/commons-logging.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/commons-logging.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/ejb3-persistence.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/ejb3-persistence.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/jboss-ejb3x.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/jboss-ejb3x.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/jboss-seam.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/jboss-seam.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/jsf-api.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/jsf-api.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/jsf-impl.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/jsf-impl.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/jstl.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/jstl.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/standard.jar
===================================================================
(Binary files differ)
Property changes on:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/standard.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/tmp
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/tmp
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/lib/tmp 2007-09-03
16:33:58 UTC (rev 3428)
@@ -0,0 +1 @@
+
\ No newline at end of file
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/web.xml
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/web.xml
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/WEB-INF/web.xml 2007-09-03
16:33:58 UTC (rev 3428)
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<web-app version="2.4"
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-app_2_4.xsd">
+ <display-name>TestComponentView</display-name>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>server</param-value>
+ </context-param>
+ <listener>
+ <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
+ </listener>
+ <!-- Faces Servlet -->
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <!-- Faces Servlet Mapping -->
+ <servlet-mapping>
+ <servlet-name>Faces Servlet</servlet-name>
+ <url-pattern>*.jsf</url-pattern>
+ </servlet-mapping>
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ </login-config>
+</web-app>
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/index.jsp
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/index.jsp
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/index.jsp 2007-09-03
16:33:58 UTC (rev 3428)
@@ -0,0 +1,7 @@
+<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
+
+<html>
+ <body>
+ <jsp:forward page="/pages/inputUserName.jsf" />
+ </body>
+</html>
\ No newline at end of file
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/pages/hello.jsp
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/pages/hello.jsp
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/pages/hello.jsp 2007-09-03
16:33:58 UTC (rev 3428)
@@ -0,0 +1,20 @@
+<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h"%>
+
+<f:loadBundle var="Message" basename="demo.Messages" />
+
+<html>
+ <head>
+ <title>Hello!</title>
+ </head>
+
+ <body>
+ <f:view>
+ <h3>
+ <h:outputText value="#{Message.hello_message}" />,
+ <h:outputText value="#{user.name}" />!
+ </h3>
+ </f:view>
+ </body>
+
+</html>
\ No newline at end of file
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/pages/inputUserName.jsp
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/pages/inputUserName.jsp
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/pages/inputUserName.jsp 2007-09-03
16:33:58 UTC (rev 3428)
@@ -0,0 +1,28 @@
+<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h" %>
+
+<f:loadBundle var="Message" basename="demo.Messages"/>
+
+<html>
+ <head>
+ <title>Input User Name Page</title>
+ </head>
+ <body>
+
+ <f:view>
+ <h1><h:outputText value="#{Message.header}"/></h1>
+
+ <h:messages style="color: red"/>
+
+ <h:form id="greetingForm">
+ <h:outputText value="#{Message.prompt_message}"/>
+ <h:inputText value="#{user.name}" required="true">
+ <f:validateLength maximum="30" minimum="3"/>
+ </h:inputText>
+
+ <h:commandButton action="hello" value="Say Hello!" />
+
+ </h:form>
+ </f:view>
+ </body>
+</html>
\ No newline at end of file
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/seam.properties
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/seam.properties
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/WebContent/seam.properties 2007-09-03
16:33:58 UTC (rev 3428)
@@ -0,0 +1 @@
+org.jboss.seam.core.microcontainer.persistenceUnitName=MyPersistenceUnit
\ No newline at end of file
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/ant/build.properties
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/ant/build.properties
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/ant/build.properties 2007-09-03
16:33:58 UTC (rev 3428)
@@ -0,0 +1,3 @@
+#
+#Tue Jun 19 15:59:08 MSD 2007
+classpath.external=C\:\\Documents and
Settings\\glory\\runtime-RedHat_Seam\\.metadata\\.plugins\\org.jboss.tools.common.projecttemplates\\lib\\servlet\\2.4\\jsp-api.jar;C\:\\Documents
and
Settings\\glory\\runtime-RedHat_Seam\\.metadata\\.plugins\\org.jboss.tools.common.projecttemplates\\lib\\servlet\\2.4\\servlet-api.jar;
Added:
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/ant/build.xml
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/ant/build.xml
(rev 0)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestComponentView/ant/build.xml 2007-09-03
16:33:58 UTC (rev 3428)
@@ -0,0 +1,74 @@
+<project name="KickStart" default="deploy"
basedir="../">
+
+ <!-- Project settings -->
+ <property file="${basedir}/ant/build.properties" />
+
+ <property name="project.name" value="KickStart" />
+ <property name="web.content.dir" value="${basedir}/WebContent"
/>
+ <property name="web-inf.dir" value="${web.content.dir}/WEB-INF"
/>
+ <property name="build.dir" value="build" />
+ <property name="war.name"
value="${build.dir}/${project.name}.war" />
+
+ <!-- Define a folder for deployment -->
+ <property name="deploy.dir" value="deploy" />
+
+ <!-- Compile classpath -->
+ <path id="compile.classpath">
+ <fileset dir="${webinf.dir}/lib">
+ <include name="**/*.jar" />
+ </fileset>
+ <pathelement path="${classpath}" />
+ <pathelement path="${classpath.external}" />
+ <pathelement path="${webinf.dir}/classes" />
+ </path>
+
+ <!-- Copy any resource or configuration files -->
+ <target name="copyResources">
+ <copy todir="${web-inf.dir}/classes" includeEmptyDirs="no">
+ <fileset dir="JavaSource">
+ <patternset>
+ <include name="**/*.*" />
+ <exclude name="**/*.java" />
+ </patternset>
+ </fileset>
+ </copy>
+ </target>
+
+ <!-- Check timestamp on files -->
+ <target name="prepare">
+ <tstamp />
+ </target>
+
+ <!-- Remove classes directory for clean build -->
+ <target name="clean" description="Prepare for clean build">
+ <delete dir="${web-inf.dir}/classes" failonerror="false"/>
+ <mkdir dir="${web-inf.dir}/classes" />
+ </target>
+
+ <!-- Normal build of application -->
+ <target name="compile" depends="prepare, copyResources">
+ <javac srcdir="JavaSource" destdir="${web-inf.dir}/classes">
+ <classpath refid="compile.classpath" />
+ </javac>
+ </target>
+
+ <!-- Build Project -->
+ <target name="build" depends="prepare, compile" />
+
+ <!-- Rebuild Project -->
+ <target name="rebuild" depends="clean, prepare, compile" />
+
+ <!-- Build WAR -->
+ <target name="war" depends="build">
+ <mkdir dir="${build.dir}" />
+ <war warfile="${war.name}" basedir="${web.content.dir}"
webxml="${web-inf.dir}/web.xml">
+ <exclude name="WEB-INF/web.xml" />
+ </war>
+ </target>
+
+ <target name="deploy" depends="war">
+ <delete dir="${deploy.dir}/${project.name}"
failonerror="false"/>
+ <copy file="${war.name}" todir="${deploy.dir}" />
+ </target>
+
+</project>
\ No newline at end of file
Modified:
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java
===================================================================
---
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java 2007-09-03
14:56:43 UTC (rev 3427)
+++
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java 2007-09-03
16:33:58 UTC (rev 3428)
@@ -11,20 +11,30 @@
******************************************************************************/
package org.jboss.tools.seam.ui.test.view;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.List;
+
import junit.framework.TestCase;
+import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.jface.viewers.IStructuredContentProvider;
+import org.eclipse.swt.widgets.Tree;
+import org.eclipse.swt.widgets.TreeItem;
import org.eclipse.ui.IViewPart;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.navigator.CommonNavigator;
import org.jboss.tools.common.model.XJob;
import org.jboss.tools.common.test.util.TestProjectProvider;
import org.jboss.tools.jst.web.ui.RedHat4WebPerspectiveFactory;
+import org.jboss.tools.seam.core.ISeamComponent;
+import org.jboss.tools.seam.core.ISeamPackage;
+import org.jboss.tools.seam.core.ISeamScope;
import org.jboss.tools.seam.ui.ISeamUiConstants;
import org.jboss.tools.test.util.JUnitUtils;
import org.jboss.tools.test.util.WorkbenchUtils;
@@ -44,7 +54,41 @@
RedHat4WebPerspectiveFactory.PERSPECTIVE_ID,
WorkbenchUtils.getWorkbench().getActiveWorkbenchWindow());
}
-
+
+ public void testComponentViewTree(){
+ System.out.println("testAComponentViewTree!");
+ TestProjectProvider provider=null;
+ try {
+ provider = new TestProjectProvider("org.jboss.tools.seam.ui.test", null,
"TestComponentView", true);
+ } catch (Exception e1) {
+ JUnitUtils.fail("Cannot create Project Provider", e1);
+ }
+ IProject project = provider.getProject();
+ try {
+ project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
+ } catch (Exception e) {
+ JUnitUtils.fail("Cannot refresh created test Project", e);
+ }
+ try {
+ XJob.waitForJob();
+ } catch (InterruptedException e) {
+ JUnitUtils.fail(e.getMessage(),e);
+ }
+ System.out.println("Refresh is DONE!");
+
+ IFile f = project.getFile("WebContent/WEB-INF/components.xml");
+ assertTrue("Cannot find components.xml in test project", f != null &&
f.exists());
+
+ CommonNavigator navigator = getSeamComponentsView();
+ navigator.getCommonViewer().expandAll();
+ Tree tree = navigator.getCommonViewer().getTree();
+
+ System.out.println("tree.getItemCount() - "+tree.getItemCount());
+ for(int i=0;i<tree.getItemCount();i++){
+ showTreeItem(tree.getItem(i),0);
+ }
+ }
+
/**
*
*/
@@ -57,7 +101,7 @@
public void testCreatedProjectIsShownOnTree() {
TestProjectProvider provider=null;
try {
- provider = new TestProjectProvider("org.jboss.tools.seam.core.test", null,
"TestScanner", true);
+ provider = new TestProjectProvider("org.jboss.tools.seam.ui.test", null,
"TestComponentView", true);
} catch (Exception e1) {
JUnitUtils.fail("Cannot create Project Provider", e1);
}
@@ -80,7 +124,7 @@
public void testThatDeletedProjectIsDisappearedFromTree() {
try {
- ResourcesPlugin.getWorkspace().getRoot().findMember("TestScanner").delete(true,
new NullProgressMonitor());
+ ResourcesPlugin.getWorkspace().getRoot().findMember("TestComponentView").delete(true,
new NullProgressMonitor());
} catch (CoreException e) {
JUnitUtils.fail(e.getMessage(),e);
}
@@ -94,4 +138,47 @@
CommonNavigator part =
(CommonNavigator)page.findView(ISeamUiConstants.SEAM_COMPONENTS_VIEW_ID);
return part;
}
+
+
+
+ private void showTreeItem(TreeItem item, int level){
+ for(int i=0;i<level;i++)
+ System.out.print("-");
+
+ System.out.print(item.getText());
+ System.out.println(" "+item.getData());
+ if(item.getData() instanceof ISeamScope){
+ ISeamScope scope = (ISeamScope)item.getData();
+ Collection packages = scope.getPackages();
+ System.out.println(" packages - "+packages.size());
+ Iterator iter = packages.iterator();
+ while(iter.hasNext())
+ showSeamPackage((ISeamPackage)iter.next(), level++);
+
+
+ List components = scope.getComponents();
+ for(int i=0;i<components.size();i++)
+ showSeamComponent((ISeamComponent)components.get(i), level++);
+ }
+
+ for(int i=0;i<item.getItemCount();i++){
+ showTreeItem(item.getItem(i),level++);
+ }
+ }
+
+ private void showSeamComponent(ISeamComponent component, int level){
+ for(int i=0;i<level;i++)
+ System.out.print("-");
+
+ System.out.println("Component - "+component.getName());
+
+ }
+
+ private void showSeamPackage(ISeamPackage seamPackage, int level){
+ for(int i=0;i<level;i++)
+ System.out.print("-");
+
+ System.out.println("Package - "+seamPackage.getName());
+
+ }
}