JBoss Tools SVN: r6040 - in trunk/jst/tests/org.jboss.tools.jst.jsp.test: projects/JsfJbide1704Test and 9 other directories.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2008-01-30 15:45:19 -0500 (Wed, 30 Jan 2008)
New Revision: 6040
Added:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.classpath
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.project
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.eclipse.jdt.core.prefs
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.eclipse.jst.common.project.facet.core.prefs
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.eclipse.wst.common.component
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.jboss.tools.jst.web.xml
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/demo/
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/demo/Person.java
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/resources.properties
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/WEB-INF/
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/WEB-INF/faces-config.xml
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/WEB-INF/web.xml
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/pages/
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/pages/greeting.jsp
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/pages/greeting.xhtml
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/templates/
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/templates/common.xhtml
trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/JsfJspJbide1704Test.java
Modified:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/JstJspAllTests.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-1704 Wrong JSF proposals appear if Ctrl-Space pressed right after the attribute value
JUnit Test Case is added for the issue
Added: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.classpath
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.classpath (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.classpath 2008-01-30 20:45:19 UTC (rev 6040)
@@ -0,0 +1,9 @@
+<?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.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.5.0_07"/>
+ <classpathentry kind="con" path="org.jboss.ide.eclipse.as.classpath.core.runtime.ProjectRuntimeInitializer/JBoss 4.2 Runtime"/>
+ <classpathentry kind="output" path="WebContent/WEB-INF/classes"/>
+</classpath>
Property changes on: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.project
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.project (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.project 2008-01-30 20:45:19 UTC (rev 6040)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>JsfJbide1704Test</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>
+ </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>
+ </natures>
+</projectDescription>
Property changes on: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.eclipse.jdt.core.prefs 2008-01-30 20:45:19 UTC (rev 6040)
@@ -0,0 +1,7 @@
+#Wed Jan 30 17:08:49 MSK 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
Property changes on: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.eclipse.jst.common.project.facet.core.prefs
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.eclipse.jst.common.project.facet.core.prefs (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.eclipse.jst.common.project.facet.core.prefs 2008-01-30 20:45:19 UTC (rev 6040)
@@ -0,0 +1,4 @@
+#Wed Jan 30 17:08:50 MSK 2008
+classpath.helper/org.eclipse.jdt.launching.JRE_CONTAINER\:\:org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType\:\:jdk1.5.0_07/owners=jst.java\:5.0
+classpath.helper/org.jboss.ide.eclipse.as.classpath.core.runtime.ProjectRuntimeInitializer\:\:JBoss\ 4.2\ Runtime/owners=jst.web\:2.4
+eclipse.preferences.version=1
Property changes on: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.eclipse.jst.common.project.facet.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.eclipse.wst.common.component
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.eclipse.wst.common.component (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.eclipse.wst.common.component 2008-01-30 20:45:19 UTC (rev 6040)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+<wb-module deploy-name="JsfJbide1704Test">
+<wb-resource deploy-path="/" source-path="/WebContent"/>
+<wb-resource deploy-path="/WEB-INF/classes" source-path="/JavaSource"/>
+<property name="context-root" value="JsfJbide1704Test"/>
+<property name="java-output-path" value="build/classes"/>
+</wb-module>
+</project-modules>
Added: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.eclipse.wst.common.project.facet.core.xml (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.eclipse.wst.common.project.facet.core.xml 2008-01-30 20:45:19 UTC (rev 6040)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="JBoss 4.2 Runtime"/>
+ <fixed facet="jst.java"/>
+ <fixed facet="jst.web"/>
+ <installed facet="jst.java" version="5.0"/>
+ <installed facet="jst.web" version="2.4"/>
+</faceted-project>
Property changes on: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.eclipse.wst.common.project.facet.core.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.jboss.tools.jst.web.xml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.jboss.tools.jst.web.xml (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.jboss.tools.jst.web.xml 2008-01-30 20:45:19 UTC (rev 6040)
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<file-systems VERSION="2.0.0" application-name="JsfJbide1704Test"
+ model-entity="FileSystems" workspace-home="./WebContent/WEB-INF">
+ <file-system NAME="WEB-INF" location="%workspace.home%" model-entity="FileSystemFolder"/>
+ <file-system NAME="WEB-ROOT" info="Content-Type=Web"
+ location="%workspace.home%/.." model-entity="FileSystemFolder"/>
+ <file-system NAME="src" location="%workspace.home%/../../JavaSource" model-entity="FileSystemFolder"/>
+ <file-system NAME="lib" location="%workspace.home%/lib" model-entity="FileSystemFolder"/>
+ <file-system NAME="classes" location="%workspace.home%/classes" model-entity="FileSystemFolder"/>
+ <file-system NAME="lib-commons-beanutils.jar" info="hidden=yes"
+ location="%workspace.home%/lib/commons-beanutils.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-commons-collections.jar" info="hidden=yes"
+ location="%workspace.home%/lib/commons-collections.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-commons-digester.jar" info="hidden=yes"
+ location="%workspace.home%/lib/commons-digester.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-commons-logging.jar" info="hidden=yes"
+ location="%workspace.home%/lib/commons-logging.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-jstl.jar" info="hidden=yes"
+ location="%workspace.home%/lib/jstl.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-standard.jar" info="hidden=yes"
+ location="%workspace.home%/lib/standard.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-jsf-facelets.jar"
+ location="%workspace.home%/lib/jsf-facelets.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="flet001" location="%eclipse.project%" model-entity="FileSystemFolder"/>
+ <file-system NAME="lib-common-annotations.jar" info="hidden=yes"
+ location="%workspace.home%/lib/common-annotations.jar" model-entity="FileSystemJar"/>
+ <file-system NAME="lib-jsf-tlds.jar" info="hidden=yes"
+ location="%workspace.home%/lib/jsf-tlds.jar" model-entity="FileSystemJar"/>
+ <web SERVLET_VERSION="2.5" model-entity="JstWeb" model-path="/web.xml">
+ <module URI="/WEB-INF/faces-config.xml" model-entity="WebJSFModule"
+ model-path="/faces-config.xml" root="WEB-ROOT" src="src"/>
+ </web>
+</file-systems>
Property changes on: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/.settings/org.jboss.tools.jst.web.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/demo/Person.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/demo/Person.java (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/demo/Person.java 2008-01-30 20:45:19 UTC (rev 6040)
@@ -0,0 +1,30 @@
+/*******************************************************************************
+ * 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 demo;
+
+/**
+ * Created by Red Hat Developer Studio
+*
+ */
+public class Person {
+ private String name;
+
+ public Person() {
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+}
\ No newline at end of file
Property changes on: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/demo/Person.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/resources.properties
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/resources.properties (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/resources.properties 2008-01-30 20:45:19 UTC (rev 6040)
@@ -0,0 +1,2 @@
+prompt=Your Name\:
+greeting=Hello
Property changes on: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/JavaSource/resources.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/WEB-INF/faces-config.xml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/WEB-INF/faces-config.xml (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/WEB-INF/faces-config.xml 2008-01-30 20:45:19 UTC (rev 6040)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xi="http://www.w3.org/2001/XInclude"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
+ <managed-bean>
+ <managed-bean-name>person</managed-bean-name>
+ <managed-bean-class>demo.Person</managed-bean-class>
+ <managed-bean-scope>request</managed-bean-scope>
+ <managed-property>
+ <property-name>name</property-name>
+ <value/>
+ </managed-property>
+ </managed-bean>
+ <navigation-rule>
+ <from-view-id>/pages/greeting.jsp</from-view-id>
+ <navigation-case>
+ <from-outcome>greeting</from-outcome>
+ <to-view-id>/pages/greeting.xhtml</to-view-id>
+ </navigation-case>
+ </navigation-rule>
+ <application>
+ <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
+ </application>
+</faces-config>
Property changes on: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/WEB-INF/faces-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/WEB-INF/web.xml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/WEB-INF/web.xml (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/WEB-INF/web.xml 2008-01-30 20:45:19 UTC (rev 6040)
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+ <description>Facelets StarterKit</description>
+ <display-name>JsfJbide1704Test</display-name>
+ <context-param>
+ <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
+ <param-value>.xhtml</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.REFRESH_PERIOD</param-name>
+ <param-value>2</param-value>
+ </context-param>
+ <context-param>
+ <param-name>facelets.DEVELOPMENT</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+ <param-value>client</param-value>
+ </context-param>
+ <context-param>
+ <param-name>com.sun.faces.validateXml</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <context-param>
+ <param-name>com.sun.faces.verifyObjects</param-name>
+ <param-value>true</param-value>
+ </context-param>
+ <servlet>
+ <servlet-name>Faces Servlet</servlet-name>
+ <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+ <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>
Property changes on: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/WEB-INF/web.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/pages/greeting.jsp
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/pages/greeting.jsp (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/pages/greeting.jsp 2008-01-30 20:45:19 UTC (rev 6040)
@@ -0,0 +1,20 @@
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
+
+<html>
+<head>
+ <title>Facelets Greeting Page</title>
+</head>
+<body>
+ <f:view>
+ <f:loadBundle basename="resources" var="msg" />
+
+ <strong>
+ <h:outputText value="#{msg.greeting}" />
+
+ <h:outputText value="#{person.name}" />
+ <h:outputText value="!" />
+ </strong>
+ </f:view>
+</body>
+</html>
\ No newline at end of file
Property changes on: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/pages/greeting.jsp
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/pages/greeting.xhtml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/pages/greeting.xhtml (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/pages/greeting.xhtml 2008-01-30 20:45:19 UTC (rev 6040)
@@ -0,0 +1,15 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core">
+
+ <f:loadBundle basename="resources" var="msg" />
+ <ui:composition template="/templates/common.xhtml">
+ <ui:define name="pageTitle">Greeting to User</ui:define>
+ <ui:define name="pageHeader">Facelets Greeting Page</ui:define>
+ <ui:define name="body">
+ #{msg.greeting} #{person.name}!
+ </ui:define>
+ </ui:composition>
+</html>
\ No newline at end of file
Property changes on: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/pages/greeting.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/templates/common.xhtml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/templates/common.xhtml (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/templates/common.xhtml 2008-01-30 20:45:19 UTC (rev 6040)
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core">
+
+ <f:loadBundle basename="resources" var="msg" />
+ <head>
+ <title><ui:insert name="pageTitle">Page Title</ui:insert></title>
+ <style type="text/css">
+ body {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 12px;
+ }
+ h1 {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 16px;
+ }
+ </style>
+ </head>
+
+ <body>
+ <h1><ui:insert name="pageHeader">Page Header</ui:insert></h1>
+ <p><ui:insert name="body">Page Body</ui:insert></p>
+ </body>
+</html>
\ No newline at end of file
Property changes on: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJbide1704Test/WebContent/templates/common.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/JstJspAllTests.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/JstJspAllTests.java 2008-01-30 20:42:29 UTC (rev 6039)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/JstJspAllTests.java 2008-01-30 20:45:19 UTC (rev 6040)
@@ -1,5 +1,6 @@
package org.jboss.tools.jst.jsp.test;
+import org.jboss.tools.jst.jsp.test.ca.JsfJspJbide1704Test;
import org.jboss.tools.jst.jsp.test.ca.JstJspJbide1585Test;
import org.jboss.tools.jst.jsp.test.ca.JstJspJbide1641Test;
import org.jboss.tools.jst.jsp.test.ca.StrutsJspJbide1648Test;
@@ -14,6 +15,7 @@
suite.addTestSuite(JstJspJbide1585Test.class);
suite.addTestSuite(StrutsJspJbide1648Test.class);
suite.addTestSuite(JstJspJbide1641Test.class);
+ suite.addTestSuite(JsfJspJbide1704Test.class);
return suite;
}
Added: trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/JsfJspJbide1704Test.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/JsfJspJbide1704Test.java (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/JsfJspJbide1704Test.java 2008-01-30 20:45:19 UTC (rev 6040)
@@ -0,0 +1,192 @@
+package org.jboss.tools.jst.jsp.test.ca;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.jface.text.IDocument;
+import org.eclipse.jface.text.contentassist.ICompletionProposal;
+import org.eclipse.jface.text.contentassist.IContentAssistProcessor;
+import org.eclipse.jface.text.contentassist.IContentAssistant;
+import org.eclipse.jface.text.source.SourceViewerConfiguration;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.part.FileEditorInput;
+import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument;
+import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegion;
+import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegionList;
+import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion;
+import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegionList;
+import org.eclipse.wst.sse.ui.internal.StructuredTextViewer;
+import org.eclipse.wst.xml.core.internal.regions.DOMRegionContext;
+import org.jboss.tools.common.test.util.TestProjectProvider;
+import org.jboss.tools.jst.jsp.contentassist.RedHatCustomCompletionProposal;
+import org.jboss.tools.jst.jsp.contentassist.RedHatJSPContentAssistProcessor;
+import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.jst.jsp.jspeditor.JSPTextEditor;
+import org.jboss.tools.jst.jsp.test.TestUtil;
+import org.jboss.tools.test.util.xpl.EditorTestHelper;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+public class JsfJspJbide1704Test extends TestCase {
+ TestProjectProvider provider = null;
+ IProject project = null;
+ boolean makeCopy = false;
+ private static final String PROJECT_NAME = "JsfJbide1704Test";
+ private static final String PAGE_NAME = "/WebContent/pages/greeting";
+ private static final String[] PAGE_EXTENSIONS = { ".xhtml", ".jsp" };
+
+ private static final String PREFIX_TAG_NAME = "f:loadBundle";
+
+ public static Test suite() {
+ return new TestSuite(JsfJspJbide1704Test.class);
+ }
+
+ public void setUp() throws Exception {
+ provider = new TestProjectProvider("org.jboss.tools.jst.jsp.test", null, PROJECT_NAME, makeCopy);
+ project = provider.getProject();
+ Throwable exception = null;
+ try {
+ project.refreshLocal(IResource.DEPTH_INFINITE, null);
+ } catch (Exception x) {
+ exception = x;
+ x.printStackTrace();
+ }
+ assertNull("An exception caught: " + (exception != null? exception.getMessage() : ""), exception);
+ }
+
+ protected void tearDown() throws Exception {
+ if(provider != null) {
+ provider.dispose();
+ }
+ }
+
+ public void testJsfJspJbide1704 () {
+ try {
+ EditorTestHelper.joinBackgroundActivities();
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+
+ assertTrue("Test project \"" + PROJECT_NAME + "\" is not loaded", (project != null));
+
+ for (int i = 0; i < PAGE_EXTENSIONS.length; i++) {
+ doTestJsfJspJbide1704(PAGE_NAME + PAGE_EXTENSIONS[i]);
+ }
+ }
+
+ private void doTestJsfJspJbide1704(String pageName) {
+ IFile jspFile = project.getFile(pageName);
+
+ assertTrue("The file \"" + PAGE_NAME + "\" is not found", (jspFile != null));
+ assertTrue("The file \"" + PAGE_NAME + "\" is not found", (jspFile.exists()));
+
+ FileEditorInput editorInput = new FileEditorInput(jspFile);
+ Throwable exception = null;
+ IEditorPart editorPart = null;
+ try {
+ editorPart = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor(editorInput, "org.jboss.tools.jst.jsp.jspeditor.JSPTextEditor");
+ } catch (PartInitException ex) {
+ exception = ex;
+ ex.printStackTrace();
+ assertTrue("The JSP Visual Editor couldn't be initialized.", false);
+ }
+
+ JSPMultiPageEditor jspEditor = null;
+
+ if (editorPart instanceof JSPMultiPageEditor)
+ jspEditor = (JSPMultiPageEditor)editorPart;
+
+ // Delay for 3 seconds so that
+ // the Favorites view can be seen.
+ try {
+ EditorTestHelper.joinBackgroundActivities();
+ } catch (Exception e) {
+ e.printStackTrace();
+ assertTrue("Waiting for the jobs to complete has failed.", false);
+ }
+ TestUtil.delay(3000);
+
+ JSPTextEditor jspTextEditor = jspEditor.getJspEditor();
+ StructuredTextViewer viewer = jspTextEditor.getTextViewer();
+ IDocument document = viewer.getDocument();
+ SourceViewerConfiguration config = TestUtil.getSourceViewerConfiguration(jspTextEditor);
+ IContentAssistant contentAssistant = (config == null ? null : config.getContentAssistant(viewer));
+
+ assertTrue("Cannot get the Content Assistant instance for the editor for page \"" + PAGE_NAME + "\"", (contentAssistant != null));
+
+ assertTrue("The IDocument is not instance of IStructuredDocument", (document instanceof IStructuredDocument));
+
+ IStructuredDocument sDocument = (IStructuredDocument)document;
+ IStructuredDocumentRegion[] regions = sDocument.getStructuredDocumentRegions();
+ String documentContent = document.get();
+
+ boolean fLoadBundleTagIsFound = false;
+ for (int i = 0; i < regions.length; i++) {
+ IStructuredDocumentRegion sdRegion = regions[i];
+ ITextRegionList list = sdRegion.getRegions();
+
+ // find <f:loadBundle tag first (after this tag the CA is full of JSF- and other kind of proposals
+ if (!fLoadBundleTagIsFound) {
+ if (DOMRegionContext.XML_TAG_OPEN == list.get(0).getType() &&
+ DOMRegionContext.XML_TAG_NAME == list.get(1).getType() &&
+ PREFIX_TAG_NAME.equals(sdRegion.getFullText(list.get(1)).trim())) {
+ fLoadBundleTagIsFound = true;
+ }
+ continue;
+ }
+
+ //
+ if (DOMRegionContext.XML_TAG_OPEN == list.get(0).getType() &&
+ DOMRegionContext.XML_TAG_NAME == list.get(1).getType()) {
+ // find all the attribute values and their "after closing quotes" offsets
+
+ for (int j = 2; j < list.size(); j++) {
+ ITextRegion region = list.get(j);
+ if (DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE == region.getType()) {
+ int length = sdRegion.getFullText(region).trim().length();
+ int offsetToTest = sdRegion.getStartOffset(region) + length;
+
+ ICompletionProposal[] result= null;
+ String errorMessage = null;
+
+ IContentAssistProcessor p= TestUtil.getProcessor(viewer, offsetToTest, contentAssistant);
+ if (p != null) {
+ try {
+ result= p.computeCompletionProposals(viewer, offsetToTest);
+ } catch (Throwable x) {
+ x.printStackTrace();
+ }
+ errorMessage= p.getErrorMessage();
+ }
+
+// if (errorMessage != null && errorMessage.trim().length() > 0) {
+// System.out.println("#" + offsetToTest + ": ERROR MESSAGE: " + errorMessage);
+// }
+
+ for (int k = 0; result != null && k < result.length; k++) {
+ // There should not be a proposal of type Red.Proposal in the result
+ assertFalse("Content Assistant peturned proposals of type (" + result[k].getClass().getName() + ").", (result[k] instanceof RedHatCustomCompletionProposal));
+ }
+ }
+ }
+
+ }
+
+ }
+
+ try {
+ EditorTestHelper.joinBackgroundActivities();
+ } catch (Exception e) {
+ e.printStackTrace();
+ assertTrue("Waiting for the jobs to complete has failed.", false);
+ }
+
+ PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
+ .closeEditor(editorPart, false);
+ }
+
+}
Property changes on: trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/JsfJspJbide1704Test.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
16 years, 11 months
JBoss Tools SVN: r6039 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2008-01-30 15:42:29 -0500 (Wed, 30 Jan 2008)
New Revision: 6039
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/RedHatHtmlContentAssistProcessor.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/RedHatJSPContentAssistProcessor.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-1704 Wrong JSF proposals appear if Ctrl-Space pressed right after the attribute value
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/RedHatHtmlContentAssistProcessor.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/RedHatHtmlContentAssistProcessor.java 2008-01-30 18:39:35 UTC (rev 6038)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/RedHatHtmlContentAssistProcessor.java 2008-01-30 20:42:29 UTC (rev 6039)
@@ -32,6 +32,7 @@
import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegion;
import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion;
import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegionList;
+import org.eclipse.wst.sse.core.utils.StringUtils;
import org.eclipse.wst.sse.ui.internal.contentassist.ContentAssistUtils;
import org.eclipse.wst.xml.core.internal.contentmodel.CMAttributeDeclaration;
import org.eclipse.wst.xml.core.internal.contentmodel.CMElementDeclaration;
@@ -324,6 +325,22 @@
}
protected void addAttributeValueProposals(ContentAssistRequest contentAssistRequest) {
+ // JBIDE-1704:
+ // Check the position in the value:
+ // The following position:
+ // <nodeName attrName="attrValue"| .../>
+ // is marked as attribute value, but the value itself is complete.
+ // There are no proposals to be correct at this position.
+
+ String text = contentAssistRequest.getText();
+ String matchString = contentAssistRequest.getMatchString();
+
+ if (matchString.length() > StringUtils.strip(text).length() &&
+ ( (matchString.startsWith("\"") && matchString.endsWith("\""))
+ || (matchString.startsWith("'") && matchString.endsWith("\"")))) {
+ return;
+ }
+
if (jspActiveCAP != null) {
jspActiveCAP.setFacelets(isFacelets);
jspActiveCAP.addAttributeValueProposals(contentAssistRequest);
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/RedHatJSPContentAssistProcessor.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/RedHatJSPContentAssistProcessor.java 2008-01-30 18:39:35 UTC (rev 6038)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/contentassist/RedHatJSPContentAssistProcessor.java 2008-01-30 20:42:29 UTC (rev 6039)
@@ -33,6 +33,7 @@
import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion;
import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegion;
import org.eclipse.wst.sse.core.internal.provisional.text.ITextRegion;
+import org.eclipse.wst.sse.core.utils.StringUtils;
import org.eclipse.wst.sse.ui.internal.StructuredTextViewer;
import org.eclipse.wst.sse.ui.internal.contentassist.ContentAssistUtils;
import org.eclipse.wst.sse.ui.internal.contentassist.CustomCompletionProposal;
@@ -624,6 +625,26 @@
return (node != null && node instanceof IDOMElement && ((IDOMElement) node).isCommentTag());
}
+ protected void addAttributeValueProposals(ContentAssistRequest contentAssistRequest) {
+ // JBIDE-1704:
+ // Check the position in the value:
+ // The following position:
+ // <nodeName attrName="attrValue"| .../>
+ // is marked as attribute value, but the value itself is complete.
+ // There are no proposals to be correct at this position.
+
+ String text = contentAssistRequest.getText();
+ String matchString = contentAssistRequest.getMatchString();
+
+ if (matchString.length() > StringUtils.strip(text).length() &&
+ ( (matchString.startsWith("\"") && matchString.endsWith("\""))
+ || (matchString.startsWith("'") && matchString.endsWith("\"")))) {
+ return;
+ }
+
+ super.addAttributeValueProposals(contentAssistRequest);
+ }
+
/**
* StructuredTextViewer must be set before using this.
*/
16 years, 11 months
JBoss Tools SVN: r6038 - trunk/jsf/docs/userguide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-01-30 13:39:35 -0500 (Wed, 30 Jan 2008)
New Revision: 6038
Modified:
trunk/jsf/docs/userguide/en/modules/palette.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-232 some corrections
Modified: trunk/jsf/docs/userguide/en/modules/palette.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/palette.xml 2008-01-30 18:11:50 UTC (rev 6037)
+++ trunk/jsf/docs/userguide/en/modules/palette.xml 2008-01-30 18:39:35 UTC (rev 6038)
@@ -16,7 +16,7 @@
<para>Insert tags into a JSP or JSF page with one click</para>
</listitem>
<listitem>
- <para>Add custom and 3rd party tags.</para>
+ <para>Add custom and 3rd party tags</para>
</listitem>
</itemizedlist>
@@ -50,12 +50,7 @@
<section id="RedHatPalette">
<?dbhtml filename="JBossToolsPalette.html"?>
<title>JBoss Tools Palette</title>
-
- <para> In the Palette Editor window we can see that every
- group contains its own subgroups. For example, JSF includes Core, Facelets, HTML.
- So, in the Palette every group has the next view: <Group name>
- <Subgroup name>. </para>
-
+ <para> Palette Editor window is divided into multiple groups, and every group consists of several subgroups. For example, JSF consists of Core, Facelets, HTML: </para>
<figure>
<title>Subgroups of JSF group</title>
<mediaobject>
@@ -105,7 +100,7 @@
</mediaobject>
</figure>
- <para>In the example below, the commandButton tag has been inserted.</para>
+ <para>In the example below, the <emphasis><property>commandButton</property></emphasis> tag has been inserted.</para>
<figure>
<title>Inserting Tag</title>
@@ -115,10 +110,14 @@
</imageobject>
</mediaobject>
</figure>
- <note> if you place the cursor over
+
+ <note><title>Note:</title>
+ <para>if you place the cursor over
any tag, a balloon tip is shown with all the <emphasis role="italic">
<property>"tag"</property>
- </emphasis> attributes.</note>
+ </emphasis> attributes.</para>
+ </note>
+
<para>The cursor position after adding a tag into a file is specified by
"|" symbol in the tag template on the right in the Palette Editor window. </para>
<figure>
@@ -129,7 +128,7 @@
</imageobject>
</mediaobject>
</figure>
- <para> Above you can see where the cursor position for HTML/Form/input is set. So, after
+ <para> Above you can see where the cursor position for HTML/Form/input is set. Thus, after
adding this tag into your file the cursor will be in the attribute
"type". Then, you can straight use the combination of buttons <property>Ctrl
+ Space</property> to inquire about a prompting. </para>
@@ -218,7 +217,7 @@
<?dbhtml filename="ImportButton.html"?>
<title>Import Button</title>
<para>The same you can do with <emphasis><property>Import</property></emphasis> button.
- You can see this button at the top right side of the JBoss Tools Palette</para>
+ You can see this button at the top right side of the JBoss Tools Palette.</para>
<figure>
<title>Import Button</title>
@@ -229,7 +228,7 @@
</mediaobject>
</figure>
- <para>By clicking on the Import button you will see the Import Tag window a similar like in the Drag-and-Drop method.
+ <para>By clicking on the <emphasis><property>Import button</property></emphasis> you will see the Import Tag window a similar like in the Drag-and-Drop method.
On this Import Tag form you can select <emphasis><property>Browse...</property></emphasis> to locate the tag library that you want to add.
Also you need to set the Group name to which you'd like to add your tag library. And like in the previous method you can add it to an existing Group or create a new one.</para>
@@ -290,7 +289,7 @@
<para>To edit the Pallete view use <property>Edit</property> button. The Palette
Editor provides following possibilities: <itemizedlist>
<listitem>
- <para>to work with set of icons.</para>
+ <para>to work with set of icons</para>
<figure>
<title>Creating a set of icons</title>
<mediaobject>
@@ -420,8 +419,7 @@
<itemizedlist>
<listitem>
<para>Click <emphasis>
- <property>OK</property>
- </emphasis>. The new groups will now be displayed on the palette:</para>
+ <property>OK</property>.</emphasis> The new groups will now be displayed on the palette:</para>
</listitem>
</itemizedlist>
<figure>
@@ -438,8 +436,7 @@
<title>Import</title>
<para>The Import button lets you add a custom or 3rd party tag library to
- JBoss Tools Palette. Find out more information on how to add the tags see the <link linkend="ImportButton521"
- >Adding Custom JSF Tags</link>section.
+ JBoss Tools Palette. Find out more information on how to add the tags see the <link linkend="ImportButton521">Adding Custom JSF Tags</link> section.
<!--<link linkend="CreatingAndWorkingCustomCapability">Learn how to import</link>. --></para>
</section>
@@ -452,7 +449,10 @@
<para>JBoss Developer Studio comes with a tight integration with <emphasis><property>Rich Faces</property></emphasis> component framework.
Rich Faces and Ajax4jsf in JBoss Tools Palette always exist, this palette is not dynamic and is not changed from file to file.
JBoss Tools Palette supports only the last version of the Rich Faces components.
- <note>If you'd like to know the last version of Rich Faces component framework see <ulink url="http://labs.jboss.com/jbossrichfaces/">JBoss RichFaces</ulink> site.</note>
+
+ <note><title>Note:</title>
+ <para>If you'd like to know the last version of Rich Faces component framework see <ulink url="http://labs.jboss.com/jbossrichfaces/">JBoss RichFaces</ulink> site.</para>
+ </note>
After installing JBDS Rich Faces components as well as
<emphasis><property>Ajax4jsf</property></emphasis> ones are already on the <property>JBoss Tools Palette</property>:</para>
16 years, 11 months
JBoss Tools SVN: r6037 - trunk/documentation/guides/userguide/GettingStartedGuide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-01-30 13:11:50 -0500 (Wed, 30 Jan 2008)
New Revision: 6037
Modified:
trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/further_reading.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-235 adding remarks to each guide in the "further reading" chapter
Modified: trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/further_reading.xml
===================================================================
--- trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/further_reading.xml 2008-01-30 18:02:35 UTC (rev 6036)
+++ trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/further_reading.xml 2008-01-30 18:11:50 UTC (rev 6037)
@@ -17,7 +17,10 @@
<emphasis role="bold">Seam Dev Tools Reference Guide</emphasis>
<ulink url="../../../seam/en/html/index.html">(html)</ulink> <ulink url="../../../seam/en/html_single/index.html">(html single)</ulink> <ulink url="../../../seam/en/pdf/Seam_Dev_Tools_Reference_Guide.pdf">(PDF)</ulink>
</para>
-
+ <para>This guide helps you to understand what Seam is and how to install Seam plug-in into Eclipse.
+ It tells you the necessary steps to start working with Seam Framework and assists in a simple Seam Project creation.
+ Also you will learn how to create and run the CRUD Database Application with Seam as well as find out what Seam Editors Features and Seam Components are.</para>
+
<para>
<emphasis role="bold">Visual Web Tools Reference Guide</emphasis>
<ulink url="../../../jsf/en/html/index.html">(html)</ulink> <ulink url="../../../jsf/en/html_single/index.html">(html single)</ulink> <ulink url="../../../jsf/en/pdf/Visual_Web_Tools_Reference_Guide.pdf">(PDF)</ulink>
@@ -27,6 +30,8 @@
<emphasis role="bold">JBoss Server Manager Reference Guide</emphasis>
<ulink url="../../../as/en/html/index.html">(html)</ulink> <ulink url="../../../as/en/html_single/index.html">(html single)</ulink> <ulink url="../../../as/en/pdf/server_manager_guide.pdf">(PDF)</ulink>
</para>
+ <para>This guide covers the basics of working with the JBoss server manager. You will read how to install runtimes and servers and quickly learn how to configure, start, stop the server and
+ know how deployment and archiving process. You will find out how to manage installed JBoss Servers via JBoss AS Perspective. You will also read how to deploy modules onto the server.</para>
<para>
<emphasis role="bold">jBPM Tools Reference Guide</emphasis>
@@ -42,11 +47,13 @@
<emphasis role="bold">Legacy-jsf-struts guide</emphasis>
<ulink url="../../../legacy-jsf-struts/en/html/index.html">(html)</ulink> <ulink url="../../../legacy-jsf-struts/en/html_single/index.html">(html single)</ulink> <ulink url="../../../legacy-jsf-struts/en/pdf/legacy-jsf-struts.pdf">(PDF)</ulink>
</para>
-
+ <para>This guide will describe how to deal with classic/old style of JSF and Struts development. This guide provides you with the necessary steps to create a simple JSF application,
+ add navigation and a managed bean to the application and run it. You will also learn how to create and run a simple struts application using the JBoss Developer Studio.</para>
+
<para>
<emphasis role="bold">Exadel Studio Migration Guide</emphasis>
<ulink url="../../../Exadel-migration/en/html/index.html">(html)</ulink> <ulink url="../../../Exadel-migration/en/html_single/index.html">(html single)</ulink> <ulink url="../../../Exadel-migration/en/pdf/exadel-migration.pdf">(PDF)</ulink>
</para>
-
+ <para>This document is intended to help you to migrate an existing Exadel JSF or Struts projects from Exadel Studio into JBoss Developer Studio.</para>
</chapter>
16 years, 11 months
JBoss Tools SVN: r6036 - in trunk/jsf/docs/userguide/en: modules and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-01-30 13:02:35 -0500 (Wed, 30 Jan 2008)
New Revision: 6036
Modified:
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_1.png
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_10.png
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_11.png
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_2.png
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_3.png
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_4.png
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_5.png
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_6.png
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_7.png
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_8.png
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_9.png
trunk/jsf/docs/userguide/en/modules/editors.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-226 Screens are retaken with 96 resolution + the scale parameter in xml file is defined
Modified: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_1.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_10.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_11.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_2.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_3.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_4.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_5.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_6.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_7.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_8.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_9.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/modules/editors.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/editors.xml 2008-01-30 16:29:56 UTC (rev 6035)
+++ trunk/jsf/docs/userguide/en/modules/editors.xml 2008-01-30 18:02:35 UTC (rev 6036)
@@ -39,10 +39,10 @@
<para>OpenOn is available for the following files:</para>
<itemizedlist>
<listitem>
- <para><link linkend="XMLFiles232">XML files</link></para>
+ <para>XML files</para>
</listitem>
<listitem>
- <para><link linkend="JSPPages223">JSP/XHTML Pages</link></para>
+ <para>JSP/XHTML Pages</para>
</listitem>
<listitem>
<para>Java files</para>
@@ -64,7 +64,7 @@
</imageobject>
</mediaobject>
</figure>
- <para>This is the result of using OpenOn.</para>
+ <para>This is the result of using OpenOn</para>
<figure>
<title>NameBean Java Class</title>
<mediaobject>
@@ -253,8 +253,8 @@
files. You simply put the cursor inside the <emphasis role="italic">
<property>"value"</property>
</emphasis> attribute and press <emphasis>
- <property>Ctrl-Space</property>.
- </emphasis> JBoss Developer Studio will scan your project and show a
+ <property>Ctrl-Space</property>
+ </emphasis>. JBoss Developer Studio will scan your project and show a
list of possible values to insert.</para>
<figure>
<title>Inserting Message</title>
@@ -265,9 +265,13 @@
</imageobject>
</mediaobject>
</figure>
- <para>In the following screenshot we are inserting a <emphasis role="italic"><property>"Managed bean"</property></emphasis>
- attribute value. Again, by simply clicking <emphasis><property>Ctrl-Space</property>,</emphasis>
- JBoss Developer Studio will show a list of all possible values that you can insert.</para>
+ <para>In the following screen shot we are inserting a <emphasis
+ role="italic">
+ <property>"Managed bean"</property>
+ </emphasis> attribute value. Again, by simply clicking <emphasis>
+ <property>Ctrl-Space</property>
+ </emphasis>, JBoss Developer Studio will show a list of all possible
+ values that you can insert:</para>
<para>Once you select a Managed bean, it will show you a list of all
available attributes for the selected Managed bean (userBean).</para>
@@ -298,8 +302,8 @@
<para>JBoss Developer Studio also provides Content Assist when working
within the Tree JSF configuration editor. Just click <emphasis>
- <property>Ctrl-Space</property>.
- </emphasis></para>
+ <property>Ctrl-Space</property>
+ </emphasis>.</para>
<figure>
<title>Content Assist in Tree JSF Configuration Editor</title>
<mediaobject>
@@ -309,9 +313,6 @@
</imageobject>
</mediaobject>
</figure>
-
- <!--
-
<para>If a field contains right class name and you click a link near the
field you will come to the file with this class otherwise a new Java
Class dialog will be shown:</para>
@@ -391,23 +392,15 @@
</imageobject>
</mediaobject>
</figure>
-
- -->
</section>
</section>
<section id="StrutsProjectFile46s3">
- <para>Content Assist features are available when you work with Struts projects.</para>
-
<title>Struts Project Files</title>
<section id="ContentAssistForStrutsConfigurationFile75">
-
<title>Content Assist for Struts Configuration File</title>
-
- <para>Content Assist helps you in Struts Configuration file.</para>
-
<figure>
<title>Struts Content Assist</title>
<mediaobject>
@@ -421,9 +414,6 @@
<section id="ContentAssistForStrutsJSPFile07">
<title>Content Assist for Struts JSP File</title>
-
- <para>Using Code Assist in Struts JSP file is shown below.</para>
-
<figure>
<title>Struts JSP Content Assist</title>
<mediaobject>
@@ -438,8 +428,6 @@
<section id="JSPPages434">
<title>JSP Pages</title>
-
-
<section id="ContentAssistForJSFTags96">
<title>Content Assist for JSF Tags</title>
@@ -519,7 +507,19 @@
</figure>
</section>
-
+ <section id="ContentAssistWithinConfigurationEditor743">
+
+ <title>Content Assist within JSF Configuration Editor</title>
+ <figure>
+ <title>Content Assist in JSF Configuration Editor</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/editors_features/editors_features_28.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
</section>
<section id="ContentAssistForRF">
@@ -676,7 +676,7 @@
</section>
<section id="FullControlOverSourceFiles-SynchronizedSourcAndVisualEditing74">
- <title>Synchronized Source and Visual Editing</title>
+ <title>Full Control over Source Files - Synchronized Source and Visual Editing</title>
<para>JBoss Developer Studio offers the flexibility to edit any files in either source
or extra visual modes at the same time.</para>
@@ -819,7 +819,7 @@
<title>Properties And Outline Views</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/visual_page/visual_page_4.png"/>
+ <imagedata fileref="images/visual_page/visual_page_4.png" scale="65"/>
</imageobject>
</mediaobject>
</figure>
@@ -847,7 +847,7 @@
<title>Inserting Tags From Palette</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/visual_page/visual_page_7.png"/>
+ <imagedata fileref="images/visual_page/visual_page_7.png" scale="80"/>
</imageobject>
</mediaobject>
</figure>
16 years, 11 months
JBoss Tools SVN: r6035 - trunk/jsf/docs/userguide/en/images/editors_features.
by jbosstools-commits@lists.jboss.org
Author: afedosik
Date: 2008-01-30 11:29:56 -0500 (Wed, 30 Jan 2008)
New Revision: 6035
Removed:
trunk/jsf/docs/userguide/en/images/editors_features/editors_features_28.png
Modified:
trunk/jsf/docs/userguide/en/images/editors_features/editors_features_1.png
trunk/jsf/docs/userguide/en/images/editors_features/editors_features_4.png
Log:
http://jira.jboss.com/jira/browse/JBDS-162 Structure corrections in Editors and Web Projects View chapter
Modified: trunk/jsf/docs/userguide/en/images/editors_features/editors_features_1.png
===================================================================
(Binary files differ)
Deleted: trunk/jsf/docs/userguide/en/images/editors_features/editors_features_28.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/editors_features/editors_features_4.png
===================================================================
(Binary files differ)
16 years, 11 months
JBoss Tools SVN: r6034 - trunk/jsf/docs/userguide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: afedosik
Date: 2008-01-30 11:28:09 -0500 (Wed, 30 Jan 2008)
New Revision: 6034
Modified:
trunk/jsf/docs/userguide/en/modules/editors.xml
trunk/jsf/docs/userguide/en/modules/web_projects.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-162 Structure corrections in Editors and Web Projects View chapter
Modified: trunk/jsf/docs/userguide/en/modules/editors.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/editors.xml 2008-01-30 16:05:30 UTC (rev 6033)
+++ trunk/jsf/docs/userguide/en/modules/editors.xml 2008-01-30 16:28:09 UTC (rev 6034)
@@ -39,10 +39,10 @@
<para>OpenOn is available for the following files:</para>
<itemizedlist>
<listitem>
- <para>XML files</para>
+ <para><link linkend="XMLFiles232">XML files</link></para>
</listitem>
<listitem>
- <para>JSP/XHTML Pages</para>
+ <para><link linkend="JSPPages223">JSP/XHTML Pages</link></para>
</listitem>
<listitem>
<para>Java files</para>
@@ -64,7 +64,7 @@
</imageobject>
</mediaobject>
</figure>
- <para>This is the result of using OpenOn</para>
+ <para>This is the result of using OpenOn.</para>
<figure>
<title>NameBean Java Class</title>
<mediaobject>
@@ -253,8 +253,8 @@
files. You simply put the cursor inside the <emphasis role="italic">
<property>"value"</property>
</emphasis> attribute and press <emphasis>
- <property>Ctrl-Space</property>
- </emphasis>. JBoss Developer Studio will scan your project and show a
+ <property>Ctrl-Space</property>.
+ </emphasis> JBoss Developer Studio will scan your project and show a
list of possible values to insert.</para>
<figure>
<title>Inserting Message</title>
@@ -265,13 +265,9 @@
</imageobject>
</mediaobject>
</figure>
- <para>In the following screen shot we are inserting a <emphasis
- role="italic">
- <property>"Managed bean"</property>
- </emphasis> attribute value. Again, by simply clicking <emphasis>
- <property>Ctrl-Space</property>
- </emphasis>, JBoss Developer Studio will show a list of all possible
- values that you can insert:</para>
+ <para>In the following screenshot we are inserting a <emphasis role="italic"><property>"Managed bean"</property></emphasis>
+ attribute value. Again, by simply clicking <emphasis><property>Ctrl-Space</property>,</emphasis>
+ JBoss Developer Studio will show a list of all possible values that you can insert.</para>
<para>Once you select a Managed bean, it will show you a list of all
available attributes for the selected Managed bean (userBean).</para>
@@ -302,8 +298,8 @@
<para>JBoss Developer Studio also provides Content Assist when working
within the Tree JSF configuration editor. Just click <emphasis>
- <property>Ctrl-Space</property>
- </emphasis>.</para>
+ <property>Ctrl-Space</property>.
+ </emphasis></para>
<figure>
<title>Content Assist in Tree JSF Configuration Editor</title>
<mediaobject>
@@ -313,6 +309,9 @@
</imageobject>
</mediaobject>
</figure>
+
+ <!--
+
<para>If a field contains right class name and you click a link near the
field you will come to the file with this class otherwise a new Java
Class dialog will be shown:</para>
@@ -392,15 +391,23 @@
</imageobject>
</mediaobject>
</figure>
+
+ -->
</section>
</section>
<section id="StrutsProjectFile46s3">
+ <para>Content Assist features are available when you work with Struts projects.</para>
+
<title>Struts Project Files</title>
<section id="ContentAssistForStrutsConfigurationFile75">
+
<title>Content Assist for Struts Configuration File</title>
+
+ <para>Content Assist helps you in Struts Configuration file.</para>
+
<figure>
<title>Struts Content Assist</title>
<mediaobject>
@@ -414,6 +421,9 @@
<section id="ContentAssistForStrutsJSPFile07">
<title>Content Assist for Struts JSP File</title>
+
+ <para>Using Code Assist in Struts JSP file is shown below.</para>
+
<figure>
<title>Struts JSP Content Assist</title>
<mediaobject>
@@ -428,6 +438,8 @@
<section id="JSPPages434">
<title>JSP Pages</title>
+
+
<section id="ContentAssistForJSFTags96">
<title>Content Assist for JSF Tags</title>
@@ -507,19 +519,7 @@
</figure>
</section>
- <section id="ContentAssistWithinConfigurationEditor743">
-
- <title>Content Assist within JSF Configuration Editor</title>
- <figure>
- <title>Content Assist in JSF Configuration Editor</title>
- <mediaobject>
- <imageobject>
- <imagedata
- fileref="images/editors_features/editors_features_28.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
+
</section>
<section id="ContentAssistForRF">
@@ -676,7 +676,7 @@
</section>
<section id="FullControlOverSourceFiles-SynchronizedSourcAndVisualEditing74">
- <title>Full Control over Source Files - Synchronized Source and Visual Editing</title>
+ <title>Synchronized Source and Visual Editing</title>
<para>JBoss Developer Studio offers the flexibility to edit any files in either source
or extra visual modes at the same time.</para>
Modified: trunk/jsf/docs/userguide/en/modules/web_projects.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/web_projects.xml 2008-01-30 16:05:30 UTC (rev 6033)
+++ trunk/jsf/docs/userguide/en/modules/web_projects.xml 2008-01-30 16:28:09 UTC (rev 6034)
@@ -3,11 +3,7 @@
<?dbhtml filename="web_projects.html"?>
<title>Web Projects View</title>
<para><property>Web Projects</property> is a special view that comes with JBoss Developer Studio.</para>
-<para>If the Web Projects view's tab is not visible next to the Package Explorer tab, select <emphasis><property>Window > Show View > Web Projects</property></emphasis> from the menu bar.</para>
-<section id="WebProjectsView1">
- <?dbhtml filename="WebProjectsView.html"?>
-<title>Web Projects View</title>
-
+<para>If the Web Projects view's tab is not visible next to the Package Explorer tab, select <emphasis><property>Window > Show View > Other > JBoss Tools Web > Web Projects</property></emphasis> from the menu bar.</para>
<para>With the Web Projects view, you can:</para>
<itemizedlist>
@@ -27,9 +23,9 @@
<listitem><link linkend="AddingCustomJSFTagsToTheRedHatPalette7433">Select custom and third-party tag libraries to drag and drop onto
the JBoss Tools Palette</link></listitem>
</itemizedlist>
-</section>
+
<section id="ProjectOrganization">
-<?dbhtml filename="ProjectOrganization.html"?>
+
<title>Project Organization</title>
<para>The Web Projects view organizes your project in a different way. The physical structure of course stays the same. The new organization combines common project artifacts together which makes it simpler to
locate what you are looking for and develop.</para>
@@ -45,10 +41,10 @@
</figure>
</section>
<section id="DragAndDrop">
-<?dbhtml filename="DragAndDrop.html"?>
+
<title>Drag and Drop</title>
<section id="ForAProperty">
-<?dbhtml filename="DragAndDrop.html"?>
+
<title>For a Property</title>
<para>Expand the Resources Bundles folder that holds all the Property files in your project. Select the file from which you want to add the property and then select the property.</para>
<para>We will be dragging and dropping a property file value inside the outputText tag for the <emphasis role="italic"><property>"value"</property></emphasis> attribute.</para>
@@ -82,12 +78,12 @@
JBoss Developer Studio will place the complete tag <emphasis role="bold"><property><h:outputText value="#{Message.header}"/></property></emphasis> in the page.</para>
</section>
<section id="ForManagedBeanAttributes">
-<?dbhtml filename="ForManagedBeanAttributes.html"?>
+
<title>For Managed Bean Attributes</title>
<para>Select a <emphasis role="italic"><property>"managed bean"</property></emphasis> attribute and then drag and drop it onto the JSP page. We are going to place it inside the <emphasis role="italic"><property>"value"</property></emphasis> attribute of the inputText tag.</para>
<figure>
-<title>Selecting Managed Bean Attrubute</title>
+<title>Selecting Managed Bean Attribute</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/web_projects/web_projects_5.png"/>
@@ -105,7 +101,7 @@
</figure>
</section>
<section id="NavigationRules">
-<?dbhtml filename="Navigation Rules.html"?>
+
<title>Navigation Rules</title>
<para>Select the navigation rule under <emphasis><property>Configuration > faces-config.xml > Navigation Rules</property></emphasis>:</para>
@@ -146,7 +142,7 @@
</figure>
</section>
<section id="ForATagLibraryFileDeclaration">
-<?dbhtml filename="ForATagLibraryFileDeclaration.html"?>
+
<title>For a Tag Library File Declaration</title>
<para>Select a TLD file:</para>
@@ -169,7 +165,7 @@
</figure>
</section>
<section id="ForJSPPages">
-<?dbhtml filename="For JSP Pages.html"?>
+
<title>For JSP Pages</title>
<para>You can also drag and drop a JSP page path to a JSP page to create a forward as shown:</para>
@@ -184,7 +180,7 @@
</section>
</section>
<section id="DevelopingTheApplication">
-<?dbhtml filename="DevelopingTheApplication.html"?>
+
<title>Developing the Application</title>
<para>It is also possible to develop your application right from the Web Projects view.
@@ -199,7 +195,7 @@
</figure>
</section>
<section id="ExpandingTagLibraryFiles">
-<?dbhtml filename="ExpandingTagLibraryFiles.html"?>
+
<title>Expanding Tag Library Files</title>
<para>You can easily expand any TLD file in the project. Browse to the Tag Libraries folder. Right-click a TLD file and select <emphasis><property>Expand</property></emphasis>. The TLD file will now be expanded.</para>
@@ -215,7 +211,7 @@
</figure>
</section>
<section id="DragAndDropTagLibrariesOnToRedHatPalette">
-<?dbhtml filename="DragAndDropTagLibrariesOnToRedHatPalette.html"?>
+
<title>Drag and Drop Tag Libraries on to JBoss Tools Palette</title>
<para>Read <link linkend="AddingCustomJSFTagsToTheRedHatPalette7433">Adding Tag Libraries</link> to learn about this.</para>
16 years, 11 months
JBoss Tools SVN: r6033 - trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/META-INF.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-01-30 11:05:30 -0500 (Wed, 30 Jan 2008)
New Revision: 6033
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/META-INF/MANIFEST.MF
Log:
fix tests compilation error
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/META-INF/MANIFEST.MF 2008-01-30 14:36:41 UTC (rev 6032)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/META-INF/MANIFEST.MF 2008-01-30 16:05:30 UTC (rev 6033)
@@ -15,7 +15,9 @@
org.jboss.tools.common.text.ext,
org.jboss.tools.common.model,
org.jboss.tools.vpe.xulrunner,
- org.mozilla.xpcom
+ org.mozilla.xpcom,
+ org.jboss.tools.jst.firstrun,
+ org.eclipse.wst.server.core
Eclipse-LazyStart: true
Bundle-ClassPath: .
Export-Package: org.jboss.tools.vpe.ui.test,
16 years, 11 months
JBoss Tools SVN: r6032 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/resources.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2008-01-30 09:36:41 -0500 (Wed, 30 Jan 2008)
New Revision: 6032
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/resources/mediaOutput.jpg
Log:
http://jira.jboss.com/jira/browse/JBIDE-1630
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/resources/mediaOutput.jpg
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/resources/mediaOutput.jpg
___________________________________________________________________
Name: svn:mime-type
+ image/jpeg
16 years, 11 months
JBoss Tools SVN: r6031 - in trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf: META-INF and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2008-01-30 09:34:50 -0500 (Wed, 30 Jan 2008)
New Revision: 6031
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/resources/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/tools/jsf/vpe/ajax4jsf/template/
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/tools/jsf/vpe/ajax4jsf/template/Ajax4JSFMediaOutput.java
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/META-INF/MANIFEST.MF
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/tools/jsf/vpe/ajax4jsf/Activator.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/templates/vpe-templates-ajax4jsf.xml
Log:
http://jira.jboss.com/jira/browse/JBIDE-1630
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/META-INF/MANIFEST.MF 2008-01-30 14:10:22 UTC (rev 6030)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/META-INF/MANIFEST.MF 2008-01-30 14:34:50 UTC (rev 6031)
@@ -7,6 +7,8 @@
Bundle-Localization: plugin
Require-Bundle: org.jboss.tools.vpe,
org.eclipse.ui,
- org.eclipse.core.runtime
+ org.eclipse.core.runtime,
+ org.jboss.tools.jst.jsp,
+ org.mozilla.xpcom
Eclipse-LazyStart: true
Bundle-Vendor: Red Hat, Inc.
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/tools/jsf/vpe/ajax4jsf/Activator.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/tools/jsf/vpe/ajax4jsf/Activator.java 2008-01-30 14:10:22 UTC (rev 6030)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/tools/jsf/vpe/ajax4jsf/Activator.java 2008-01-30 14:34:50 UTC (rev 6031)
@@ -10,7 +10,12 @@
******************************************************************************/
package org.jboss.tools.jsf.vpe.ajax4jsf;
+import java.net.URL;
+
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.runtime.Platform;
import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
/**
@@ -54,5 +59,16 @@
public static Activator 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"));
+ } catch (Exception e) {
+ url = bundle.getEntry("/resources");
+ }
+ return (url == null) ? null : url.getPath();
+ }
}
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/tools/jsf/vpe/ajax4jsf/template/Ajax4JSFMediaOutput.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/tools/jsf/vpe/ajax4jsf/template/Ajax4JSFMediaOutput.java (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/tools/jsf/vpe/ajax4jsf/template/Ajax4JSFMediaOutput.java 2008-01-30 14:34:50 UTC (rev 6031)
@@ -0,0 +1,66 @@
+package org.jboss.tools.jsf.vpe.ajax4jsf.template;
+
+import java.io.File;
+
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.Path;
+import org.jboss.tools.jsf.vpe.ajax4jsf.Activator;
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public class Ajax4JSFMediaOutput extends VpeAbstractTemplate {
+
+ public static final String ALT_MEDIA_OTPUT = " mediaOutput";
+
+ public static final String HTML_TAG_DIV = "DIV";
+ public static final String HTML_TAG_IMG = "IMG";
+
+ public static final String ATTR_WIDTH = "WIDTH";
+ public static final String ATTR_HEIGHT = "HEIGHT";
+ public static final String ATTR_SRC = "src";
+ public static final String ATTR_ALT = "alt";
+
+ public static final String IMG_PATH = "mediaOutput/mediaOutput.jpg";
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
+ nsIDOMDocument visualDocument) {
+
+ nsIDOMElement mainDiv = visualDocument
+ .createElement(HTML_TAG_DIV);
+ nsIDOMElement img = visualDocument
+ .createElement(HTML_TAG_IMG);
+
+ img.setAttribute(ATTR_SRC, "file:///" + getAbsoluteResourcePath(IMG_PATH));
+ img.setAttribute(ATTR_ALT, ALT_MEDIA_OTPUT);
+ img.setAttribute(ATTR_WIDTH, "100");
+ img.setAttribute(ATTR_HEIGHT, "50");
+
+ mainDiv.appendChild(img);
+
+ return new VpeCreationData(mainDiv);
+ }
+
+ public boolean isRecreateAtAttrChange(VpePageContext pageContext,
+ Element sourceElement, nsIDOMDocument visualDocument,
+ nsIDOMElement visualNode, Object data, String name, String value) {
+ return true;
+ }
+
+ public static String getAbsoluteResourcePath(String resourcePathInPlugin) {
+ String pluginPath = Activator.getPluginResourcePath();
+ IPath pluginFile = new Path(pluginPath);
+ File file = pluginFile.append(resourcePathInPlugin).toFile();
+ if (file.exists()) {
+ return file.getAbsolutePath();
+ } else {
+ throw new RuntimeException("Can't get path for "
+ + resourcePathInPlugin);
+ }
+ }
+
+}
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/src/org/jboss/tools/jsf/vpe/ajax4jsf/template/Ajax4JSFMediaOutput.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/templates/vpe-templates-ajax4jsf.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/templates/vpe-templates-ajax4jsf.xml 2008-01-30 14:10:22 UTC (rev 6030)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/templates/vpe-templates-ajax4jsf.xml 2008-01-30 14:34:50 UTC (rev 6031)
@@ -249,10 +249,9 @@
</vpe:tag>
<vpe:tag name="a4j:mediaOutput" case-sensitive="yes">
- <vpe:template children="no" modify="no">
- <div class="{@styleClass}" style="{@style}" size="{@size}">
- mediaOutput
- </div>
+ <vpe:template children="no" modify="no"
+ class="org.jboss.tools.jsf.vpe.ajax4jsf.template.Ajax4JSFMediaOutput">
+
</vpe:template>
</vpe:tag>
16 years, 11 months