JBoss Tools SVN: r6633 - in trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test: resources/jsfTest/WebContent/pages/JBIDE/1718 and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-02-28 06:58:05 -0500 (Thu, 28 Feb 2008)
New Revision: 6633
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1718/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1718/JBIDE-1718-dir.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1718/JBIDE-1718-disabled.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1718/JBIDE-1718-escape.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1718/JBIDE-1718-format.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide1718Test.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1718
created tests
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1718/JBIDE-1718-dir.jsp
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1718/JBIDE-1718-dir.jsp (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1718/JBIDE-1718-dir.jsp 2008-02-28 11:58:05 UTC (rev 6633)
@@ -0,0 +1,13 @@
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<html>
+<head>
+</head>
+<body>
+<f:view>
+ <b><h:outputFormat escape="true" value="outputFormat"
+ dir="rtl"/><h:outputLink dir="rtl" /><h:outputText escape="false" value="outputText"
+ dir="rtl" /><h:outputLabel value="outputLabel" dir="rtl" /></b>
+</f:view>
+</body>
+</html>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1718/JBIDE-1718-disabled.jsp
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1718/JBIDE-1718-disabled.jsp (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1718/JBIDE-1718-disabled.jsp 2008-02-28 11:58:05 UTC (rev 6633)
@@ -0,0 +1,16 @@
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<html>
+<head>
+</head>
+<body>
+<f:view>
+ <h:outputLink>
+ enabled link
+ </h:outputLink>
+ <h:outputLink disabled="true">
+ disabled link
+ </h:outputLink>
+</f:view>
+</body>
+</html>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1718/JBIDE-1718-escape.jsp
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1718/JBIDE-1718-escape.jsp (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1718/JBIDE-1718-escape.jsp 2008-02-28 11:58:05 UTC (rev 6633)
@@ -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>
+</head>
+<body>
+
+<f:view>
+ <h:outputFormat escape="false"
+ value='<input type="button" value="outputFormat">' />
+ <h:outputText escape="false"
+ value="<input type='button'
+ value='outputText' />" />
+ <h:outputLabel escape="false"
+ value="<input type='button'
+ value='outputLabel' />" />
+</f:view>
+</body>
+</html>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1718/JBIDE-1718-format.jsp
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1718/JBIDE-1718-format.jsp (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/1718/JBIDE-1718-format.jsp 2008-02-28 11:58:05 UTC (rev 6633)
@@ -0,0 +1,13 @@
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<html>
+<head>
+</head>
+<body>
+<f:view>
+ <b><h:outputFormat value="{0}"
+ ><f:param value="paramValue"
+ /></h:outputFormat></b>
+</f:view>
+</body>
+</html>
\ No newline at end of file
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide1718Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide1718Test.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide1718Test.java 2008-02-28 11:58:05 UTC (rev 6633)
@@ -0,0 +1,311 @@
+/*******************************************************************************
+ * 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 org.jboss.tools.jsf.vpe.jsf.test.jbide;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.part.FileEditorInput;
+import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.jboss.tools.vpe.ui.test.TestUtil;
+import org.jboss.tools.vpe.ui.test.VpeTest;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNamedNodeMap;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.mozilla.interfaces.nsIDOMNodeList;
+
+/**
+ *
+ * @author sdzmitrovich
+ *
+ * test for http://jira.jboss.com/jira/browse/JBIDE-1718
+ *
+ *
+ */
+public class JsfJbide1718Test extends VpeTest {
+
+ public static final String IMPORT_PROJECT_NAME = "jsfTest";
+
+ private static final String DIR_TEST_PAGE_NAME = "JBIDE/1718/JBIDE-1718-dir.jsp";
+
+ private static final String ESCAPE_TEST_PAGE_NAME = "JBIDE/1718/JBIDE-1718-escape.jsp";
+
+ private static final String DISABLED_TEST_PAGE_NAME = "JBIDE/1718/JBIDE-1718-disabled.jsp";
+
+ private static final String FORMAT_TEST_PAGE_NAME = "JBIDE/1718/JBIDE-1718-format.jsp";
+
+ public JsfJbide1718Test(String name) {
+ super(name);
+ }
+
+ /**
+ *
+ * @throws Throwable
+ */
+ public void testDirAttribute() throws Throwable {
+
+ // wait
+ TestUtil.waitForJobs();
+ // set exception
+ setException(null);
+
+ // get test page path
+ IFile file = (IFile) TestUtil.getComponentPath(DIR_TEST_PAGE_NAME,
+ IMPORT_PROJECT_NAME);
+
+ IEditorInput input = new FileEditorInput(file);
+
+ // open and get editor
+ JSPMultiPageEditor part = openEditor(input);
+
+ // get dom document
+ nsIDOMDocument document = getVpeVisualDocument(part);
+ assertNotNull(document);
+
+ // get dom element
+ nsIDOMElement element = document.getDocumentElement();
+ assertNotNull(element);
+
+ // get root node
+ nsIDOMNode node = (nsIDOMNode) element
+ .queryInterface(nsIDOMNode.NS_IDOMNODE_IID);
+
+ // find "b" elements
+ List<nsIDOMNode> bElements = new ArrayList<nsIDOMNode>();
+ TestUtil.findElementsByName(node, bElements, HTML.TAG_B);
+
+ // number of "b" elements must be 1
+ assertEquals(1, bElements.size());
+ nsIDOMNode b = bElements.get(0);
+
+ List<nsIDOMNode> spanElements = new ArrayList<nsIDOMNode>();
+ List<nsIDOMNode> labelElements = new ArrayList<nsIDOMNode>();
+ List<nsIDOMNode> aElements = new ArrayList<nsIDOMNode>();
+
+ // find "span" elements in "b" tag
+ TestUtil.findElementsByName(b, spanElements, HTML.TAG_SPAN);
+ // find "label" elements in "b"
+ TestUtil.findElementsByName(b, labelElements, HTML.TAG_LABEL);
+ // find "a" elements in "b"
+ TestUtil.findElementsByName(b, aElements, HTML.TAG_A);
+
+ // number of "span" elements must be 2
+ assertEquals(2, spanElements.size());
+
+ // number of "label" elements must be 1
+ assertEquals(1, labelElements.size());
+
+ // number of "a" elements must be 1
+ assertEquals(1, aElements.size());
+
+ // join all elements
+ List<nsIDOMNode> elements = new ArrayList<nsIDOMNode>();
+
+ elements.addAll(spanElements);
+ elements.addAll(labelElements);
+ elements.addAll(aElements);
+
+ for (nsIDOMNode child : elements) {
+
+ // get attributes
+ nsIDOMNamedNodeMap attributes = child.getAttributes();
+
+ // all elements must have attributes
+ assertNotNull(attributes);
+
+ // all elements must have "dir" attribute
+ assertNotNull(attributes.getNamedItem(HTML.ATTR_DIR));
+
+ }
+
+ // check exception
+ if (getException() != null) {
+ throw getException();
+ }
+
+ }
+
+ /**
+ *
+ * @throws Throwable
+ */
+ public void testEscapeAttribute() throws Throwable {
+
+ // wait
+ TestUtil.waitForJobs();
+ // set exception
+ setException(null);
+
+ // get test page path
+ IFile file = (IFile) TestUtil.getComponentPath(ESCAPE_TEST_PAGE_NAME,
+ IMPORT_PROJECT_NAME);
+
+ IEditorInput input = new FileEditorInput(file);
+
+ // open and get editor
+ JSPMultiPageEditor part = openEditor(input);
+
+ // get dom document
+ nsIDOMDocument document = getVpeVisualDocument(part);
+ assertNotNull(document);
+
+ // get dom element
+ nsIDOMElement element = document.getDocumentElement();
+ assertNotNull(element);
+
+ // get root node
+ nsIDOMNode node = (nsIDOMNode) element
+ .queryInterface(nsIDOMNode.NS_IDOMNODE_IID);
+
+ List<nsIDOMNode> spanElements = new ArrayList<nsIDOMNode>();
+
+ // find "input" elements
+ TestUtil.findElementsByName(node, spanElements, HTML.TAG_INPUT);
+
+ // number of "input" elements must be 3
+ assertEquals(3, spanElements.size());
+
+ // check exception
+ if (getException() != null) {
+ throw getException();
+ }
+
+ }
+
+ /**
+ *
+ * @throws Throwable
+ */
+ public void testDisabledAttribute() throws Throwable {
+
+ // wait
+ TestUtil.waitForJobs();
+ // set exception
+ setException(null);
+
+ // get test page path
+ IFile file = (IFile) TestUtil.getComponentPath(DISABLED_TEST_PAGE_NAME,
+ IMPORT_PROJECT_NAME);
+
+ IEditorInput input = new FileEditorInput(file);
+
+ // open and get editor
+ JSPMultiPageEditor part = openEditor(input);
+
+ // get dom document
+ nsIDOMDocument document = getVpeVisualDocument(part);
+ assertNotNull(document);
+
+ // get dom element
+ nsIDOMElement element = document.getDocumentElement();
+ assertNotNull(element);
+
+ // get root node
+ nsIDOMNode node = (nsIDOMNode) element
+ .queryInterface(nsIDOMNode.NS_IDOMNODE_IID);
+
+ List<nsIDOMNode> aElements = new ArrayList<nsIDOMNode>();
+
+ // find "input" elements
+ TestUtil.findElementsByName(node, aElements, HTML.TAG_A);
+
+ // page has 2 <h:outputLink ...> tags but one from them have attribute
+ // disabled="true", so number of "a" tags must be one
+ assertEquals(1, aElements.size());
+
+ // check exception
+ if (getException() != null) {
+ throw getException();
+ }
+
+ }
+
+ /**
+ *
+ * @throws Throwable
+ */
+ public void testFormatMessageElements() throws Throwable {
+
+ // wait
+ TestUtil.waitForJobs();
+ // set exception
+ setException(null);
+
+ // get test page path
+ IFile file = (IFile) TestUtil.getComponentPath(FORMAT_TEST_PAGE_NAME,
+ IMPORT_PROJECT_NAME);
+
+ IEditorInput input = new FileEditorInput(file);
+
+ // open and get editor
+ JSPMultiPageEditor part = openEditor(input);
+
+ // get dom document
+ nsIDOMDocument document = getVpeVisualDocument(part);
+ assertNotNull(document);
+
+ // get dom element
+ nsIDOMElement element = document.getDocumentElement();
+ assertNotNull(element);
+
+ // get root node
+ nsIDOMNode node = (nsIDOMNode) element
+ .queryInterface(nsIDOMNode.NS_IDOMNODE_IID);
+
+ // find "b" elements
+ List<nsIDOMNode> bElements = new ArrayList<nsIDOMNode>();
+ TestUtil.findElementsByName(node, bElements, HTML.TAG_B);
+
+ // number of "b" elements must be 1
+ assertEquals(1, bElements.size());
+ nsIDOMNode b = bElements.get(0);
+
+ List<nsIDOMNode> spanElements = new ArrayList<nsIDOMNode>();
+
+ // find "input" elements in b elements
+ TestUtil.findElementsByName(b, spanElements, HTML.TAG_SPAN);
+
+ // page has 2 <h:outputLink ...> tags but one from them have attribute
+ // disabled="true", so number of "a" tags must be one
+ assertEquals(1, spanElements.size());
+
+ nsIDOMNode span = spanElements.get(0);
+
+ nsIDOMNodeList children = span.getChildNodes();
+ assertNotNull(children);
+
+ boolean isFind = false;
+ for (int i = 0; i < children.getLength(); i++) {
+
+ nsIDOMNode text = children.item(i);
+
+ if ("paramValue".equals(text.getNodeValue())) {
+ isFind = true;
+ break;
+ }
+
+ assertEquals(true, isFind);
+
+ }
+
+ // check exception
+ if (getException() != null) {
+ throw getException();
+ }
+
+ }
+
+}
16 years, 10 months
JBoss Tools SVN: r6632 - in trunk/jst/tests/org.jboss.tools.jst.jsp.test: projects/JsfJspJbide1807Test/WebContent/pages and 5 other directories.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2008-02-28 06:11:19 -0500 (Thu, 28 Feb 2008)
New Revision: 6632
Added:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1813Test/
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1813Test/.classpath
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1813Test/.project
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1813Test/WebContent/
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1813Test/WebContent/pages/
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1813Test/WebContent/pages/greeting.xhtml
trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/JsfJspJbide1813Test.java
Removed:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1807Test/WebContent/pages/greeting.html
trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1807Test/WebContent/pages/greeting.jsp
Modified:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/JstJspAllTests.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1813
Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1807Test/WebContent/pages/greeting.html
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1807Test/WebContent/pages/greeting.html 2008-02-28 10:21:42 UTC (rev 6631)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1807Test/WebContent/pages/greeting.html 2008-02-28 11:11:19 UTC (rev 6632)
@@ -1,8 +0,0 @@
-<html>
-<head>
- <title>Facelets Greeting Page</title>
-</head>
-<body>
- <input type="image" src=""/>
-</body>
-</html>
\ No newline at end of file
Deleted: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1807Test/WebContent/pages/greeting.jsp
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1807Test/WebContent/pages/greeting.jsp 2008-02-28 10:21:42 UTC (rev 6631)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1807Test/WebContent/pages/greeting.jsp 2008-02-28 11:11:19 UTC (rev 6632)
@@ -1,11 +0,0 @@
-<%@ 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>
- <input type="image" src=""/>
-</body>
-</html>
\ No newline at end of file
Added: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1813Test/.classpath
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1813Test/.classpath (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1813Test/.classpath 2008-02-28 11:11:19 UTC (rev 6632)
@@ -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.jst.j2ee.internal.module.container"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="output" path="WebContent/WEB-INF/classes"/>
+</classpath>
Added: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1813Test/.project
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1813Test/.project (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1813Test/.project 2008-02-28 11:11:19 UTC (rev 6632)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>JsfJspJbide1813Test</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>
+ </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.eclipse.wst.common.project.facet.core.nature</nature>
+ </natures>
+</projectDescription>
Added: trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1813Test/WebContent/pages/greeting.xhtml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1813Test/WebContent/pages/greeting.xhtml (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/projects/JsfJspJbide1813Test/WebContent/pages/greeting.xhtml 2008-02-28 11:11:19 UTC (rev 6632)
@@ -0,0 +1,9 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html dir=""
+ 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">
+
+ <input type="image" src=""/>
+</html>
\ No newline at end of file
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-02-28 10:21:42 UTC (rev 6631)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/JstJspAllTests.java 2008-02-28 11:11:19 UTC (rev 6632)
@@ -3,6 +3,7 @@
import org.jboss.tools.jst.jsp.test.ca.JsfJspJbide1704Test;
import org.jboss.tools.jst.jsp.test.ca.JsfJspJbide1717Test;
import org.jboss.tools.jst.jsp.test.ca.JsfJspJbide1807Test;
+import org.jboss.tools.jst.jsp.test.ca.JsfJspJbide1813Test;
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.JstJspJbide1759Test;
@@ -16,6 +17,7 @@
public static Test suite() {
TestSuite suite = new TestSuite("Test for org.jboss.tools.jst.jsp.test");
+ suite.addTestSuite(JsfJspJbide1813Test.class);
suite.addTestSuite(JsfJspJbide1807Test.class);
suite.addTestSuite(JstJspJbide1585Test.class);
suite.addTestSuite(StrutsJspJbide1648Test.class);
Added: trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/JsfJspJbide1813Test.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/JsfJspJbide1813Test.java (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/JsfJspJbide1813Test.java 2008-02-28 11:11:19 UTC (rev 6632)
@@ -0,0 +1,50 @@
+package org.jboss.tools.jst.jsp.test.ca;
+
+import org.eclipse.core.resources.IResource;
+import org.jboss.tools.common.test.util.TestProjectProvider;
+
+public class JsfJspJbide1813Test extends ContentAssistantTestCase{
+ TestProjectProvider provider = null;
+ boolean makeCopy = false;
+ private static final String PROJECT_NAME = "JsfJspJbide1813Test";
+ private static final String PAGE_NAME = "/WebContent/pages/greeting.xhtml";
+
+ 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 testJsfJspJbide1813Test(){
+ String[] proposals={
+ "ltr",
+ "rtl",
+ "#{applicationScope}",
+ "#{cookie}",
+ "#{facesContext}",
+ "#{header}",
+ "#{headerValues}",
+ "#{initParam}",
+ "#{param}",
+ "#{paramValues}",
+ "#{requestScope}",
+ "#{sessionScope}",
+ "#{view}"
+ };
+
+ checkProposals(PAGE_NAME, "dir=\"\"", 5, proposals, true);
+ }
+}
\ No newline at end of file
16 years, 10 months
JBoss Tools SVN: r6631 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/util/model.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-02-28 05:21:42 -0500 (Thu, 28 Feb 2008)
New Revision: 6631
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/util/model/NodeProxy.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1718
corrected IDOM proxy
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/util/model/NodeProxy.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/util/model/NodeProxy.java 2008-02-28 09:43:18 UTC (rev 6630)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/util/model/NodeProxy.java 2008-02-28 10:21:42 UTC (rev 6631)
@@ -66,7 +66,7 @@
for (int i = 0; i < basicAttributes.getLength(); i++) {
- IDOMAttr attr = (IDOMAttr) basicAttributes.item(0);
+ IDOMAttr attr = (IDOMAttr) basicAttributes.item(i);
newAttributes.setNamedItem(new AttributeProxy(attr, basicOffset));
16 years, 10 months
JBoss Tools SVN: r6630 - trunk/as/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-02-28 04:43:18 -0500 (Thu, 28 Feb 2008)
New Revision: 6630
Modified:
trunk/as/docs/reference/en/modules/modules.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-199 - adding the screenshot & some info about single file deployment
Modified: trunk/as/docs/reference/en/modules/modules.xml
===================================================================
--- trunk/as/docs/reference/en/modules/modules.xml 2008-02-28 09:41:58 UTC (rev 6629)
+++ trunk/as/docs/reference/en/modules/modules.xml 2008-02-28 09:43:18 UTC (rev 6630)
@@ -35,7 +35,7 @@
<title>Add or Remove Projects</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/modules/modules_2.png"/>
+ <imagedata fileref="images/modules/modules_2a.png"/>
</imageobject>
</mediaobject>
</figure>
@@ -62,31 +62,45 @@
<section id="single_file_deployment">
<?dbhtml filename="DeployToServer.html"?>
<title>Deploying single files</title>
- <para>In the context menu of files there is a <property>Deploy To Server</property>
- option that allows a single file deployment. To deploy these non-WTP files/projects
- right click on the file (-ds.xml, .ear, .jar etc.) and select <emphasis>
- <property>Deploy To server</property>
+
+ <para>Sometimes it becomes necessary to deploy only one or two files to a server. For
+ that in order not to do a full republish in the context menu of files a <emphasis><property>Deploy To Server</property></emphasis>
+ option is provided that allows a single file deployment. To deploy these non-WTP files/projects
+ right click on the file (<emphasis>
+ <property>-ds.xml</property></emphasis>, <emphasis>
+ <property>.ear</property></emphasis>, <emphasis>
+ <property>.jar</property></emphasis> etc.) and select <emphasis>
+ <property>Deploy To Server</property>
</emphasis> and it will be automatically deployed.</para>
<figure>
<title>Deploy to Sever</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/perspective/perspective_16.png"/>
+ <imagedata fileref="images/modules/modules_2b.png"/>
</imageobject>
</mediaobject>
</figure>
<para>The deployed files are listed side-by-side with other modules that are deployed to
- the server.</para>
+ the server.</para>
+
+ <figure>
+ <title>Deployed files on the Server</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/modules/modules_2c.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
</section>
</section>
<section>
<title>Deploying with JBoss Server View</title>
- <para>As it has been already mentioned
- <property>JBoss Server View</property> contains two parts: the top part that displays all defined servers and the
- bottom part which provides categories with additional information. Thus, in this section
- we suggest two more ways to deploy resources onto the server.</para>
+ <para>As it has been already mentioned <property>JBoss Server View</property> contains two
+ parts: the top part that displays all defined servers and the bottom part which provides
+ categories with additional information. Thus, in this section we suggest two more ways
+ to deploy resources onto the server.</para>
<section>
<title>Top part of JBoss Server View</title>
<para>In the top part of the <property>JBoss Servers View</property> like in the Servers
@@ -156,22 +170,20 @@
<para> The only way to ensure an <emphasis>
<property>Incremental Build</property>
</emphasis>, such as changes to one <emphasis>
- <property>.jsp</property>,
- </emphasis> <emphasis>
- <property>.html</property>,
- </emphasis> or <emphasis>
+ <property>.jsp</property>, </emphasis>
+ <emphasis>
+ <property>.html</property>, </emphasis> or <emphasis>
<property>.class</property>
</emphasis> file, is to enable the builder for that project. This is done by either
changing the global preferences for the <property>Archives View</property>, or by
enabling project-specific preferences and ensuring the builder is on.</para>
</section>
- <para>The last chapter covers a variety of methods on how you can deploy needed modules onto a server.</para>
+ <para>The last chapter covers a variety of methods on how you can deploy needed modules onto a
+ server.</para>
<literallayout> </literallayout>
<para>In summary, this reference supplies you with all necessary information on the
- functionality that
- <property>JBoss Server Manager</property>
- provides for work with <ulink url="http://www.jboss.org/products/jbossas">JBoss
- AS</ulink>.</para>
+ functionality that <property>JBoss Server Manager</property> provides for work with <ulink
+ url="http://www.jboss.org/products/jbossas">JBoss AS</ulink>.</para>
</chapter>
16 years, 10 months
JBoss Tools SVN: r6629 - trunk/as/docs/reference/en/images/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-02-28 04:41:58 -0500 (Thu, 28 Feb 2008)
New Revision: 6629
Added:
trunk/as/docs/reference/en/images/modules/modules_2c.png
Log:
http://jira.jboss.com/jira/browse/JBDS-199 - adding the screenshot
Added: trunk/as/docs/reference/en/images/modules/modules_2c.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/modules/modules_2c.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 10 months
JBoss Tools SVN: r6628 - trunk/as/docs/reference/en/images/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-02-28 04:41:39 -0500 (Thu, 28 Feb 2008)
New Revision: 6628
Added:
trunk/as/docs/reference/en/images/modules/modules_2a.png
trunk/as/docs/reference/en/images/modules/modules_2b.png
Log:
http://jira.jboss.com/jira/browse/JBDS-199 - updating screenshots
Added: trunk/as/docs/reference/en/images/modules/modules_2a.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/modules/modules_2a.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/modules/modules_2b.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/modules/modules_2b.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 10 months
JBoss Tools SVN: r6627 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-02-28 04:35:39 -0500 (Thu, 28 Feb 2008)
New Revision: 6627
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml
Log:
http://jira.jboss.com/jira/browse/JBIDE-1718
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml 2008-02-28 09:30:58 UTC (rev 6626)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml 2008-02-28 09:35:39 UTC (rev 6627)
@@ -438,7 +438,7 @@
</vpe:if>
<vpe:template children="yes" modify="yes">
<a href="javascript:return false;" class="{@styleClass}"
- style="{@style}" />
+ style="{@style}" dir="{@dir}" />
<vpe:textFormating>
<vpe:format type="UnderlineFormat" setDefault="true">
<vpe:formatAttribute type="style" />
16 years, 10 months