JBoss Tools SVN: r9095 - in trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test: resources/jsfTest/WebContent/pages/JBIDE/2170/templates and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-07-08 12:14:04 -0400 (Tue, 08 Jul 2008)
New Revision: 9095
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2170/complex_doctype_test.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2170/templates/1.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2170/templates/2.xhtml
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide2170Test.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-2170
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2170/complex_doctype_test.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2170/complex_doctype_test.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2170/complex_doctype_test.xhtml 2008-07-08 16:14:04 UTC (rev 9095)
@@ -0,0 +1,27 @@
+<!DOCTYPE html1 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"
+ xmlns:c="http://java.sun.com/jstl/core">
+
+ <f:loadBundle basename="resources" var="msg" />
+
+ <ui:composition template="templates/1.xhtml">
+
+ <ui:define name="pageTitle">Input User Name</ui:define>
+
+ <ui:define name="pageHeader">Facelets Hello Application</ui:define>
+
+ <ui:define name="body">
+ <h:message showSummary="true" showDetail="false" style="color: red; font-weight: bold;" for="name" />
+ <form jsfc="h:form" id="helloForm">
+ ${msg.prompt}
+ <input label="Name" jsfc="h:inputText" required="true" id="name" value="#{person.name}" />
+ <input type="submit" jsfc="h:commandButton" id="submit"
+ action="greeting" value="Say Hello" />
+ </form>
+
+ </ui:define>
+ </ui:composition>
+</html>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2170/templates/1.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2170/templates/1.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2170/templates/1.xhtml 2008-07-08 16:14:04 UTC (rev 9095)
@@ -0,0 +1,4 @@
+<!DOCTYPE html2 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets" template="2.xhtml"></ui:composition>
+
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2170/templates/2.xhtml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2170/templates/2.xhtml (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2170/templates/2.xhtml 2008-07-08 16:14:04 UTC (rev 9095)
@@ -0,0 +1,65 @@
+<!DOCTYPE html3 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: 14px;
+ }
+ .header {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 18px;
+ }
+ .bottom {
+ font-family: Verdana, Arial, Helvetica, sans-serif;
+ font-size: 9px;
+ text-align: center;
+ vertical-align: middle;
+ color: #8E969D;
+ }
+ </style>
+ </head>
+
+<body bgcolor="#ffffff">
+<table style="border:1px solid #CAD6E0" align="center" cellpadding="0" cellspacing="0" border="0" width="400">
+<tbody>
+
+ <tr>
+ <td class="header" height="42" align="center" valign="middle" width="100%" bgcolor="#E4EBEB">
+ <ui:insert name="pageHeader">Page Header</ui:insert>
+ </td>
+ </tr>
+ <tr>
+ <td height="1" width="100%" bgcolor="#CAD6E0"></td>
+ </tr>
+
+ <tr>
+ <td width="100%" colspan="2">
+ <table width="100%" style="height:150px" align="left" cellpadding="0" cellspacing="0" border="0">
+ <tbody>
+ <tr>
+ <td align="center" width="100%" valign="middle">
+
+ <ui:insert name="body">Page Body</ui:insert>
+
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </td>
+ </tr>
+
+ <tr>
+ <td colspan="2" valign="bottom" height="1" width="100%" bgcolor="#CAD6E0"></td>
+ </tr>
+</tbody>
+</table>
+</body>
+
+</html>
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide2170Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide2170Test.java 2008-07-08 15:32:51 UTC (rev 9094)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide2170Test.java 2008-07-08 16:14:04 UTC (rev 9095)
@@ -30,14 +30,18 @@
*/
public class JsfJbide2170Test extends VpeTest {
- public static final String IMPORT_PROJECT_NAME = "jsfTest";
+ public static final String IMPORT_PROJECT_NAME = "jsfTest"; //$NON-NLS-1$
- private static final String WITHOUT_DOCTYPE_TEST_PAGE_NAME = "JBIDE/2170/there_is_not_doctype.xhtml";
+ private static final String WITHOUT_DOCTYPE_TEST_PAGE_NAME = "JBIDE/2170/there_is_not_doctype.xhtml"; //$NON-NLS-1$
- private static final String WITH_DOCTYPE_TEST_PAGE_NAME = "JBIDE/2170/there_is_doctype.xhtml";
+ private static final String WITH_DOCTYPE_TEST_PAGE_NAME = "JBIDE/2170/there_is_doctype.xhtml"; //$NON-NLS-1$
- private static final String TEMPLATE_DOCTYPE_TEST_PAGE_NAME = "JBIDE/2170/template_doctype_test.xhtml";
+ private static final String TEMPLATE_DOCTYPE_TEST_PAGE_NAME = "JBIDE/2170/template_doctype_test.xhtml"; //$NON-NLS-1$
+ private static final String COMPLEX_DOCTYPE_TEST_PAGE_NAME = "JBIDE/2170/complex_doctype_test.xhtml"; //$NON-NLS-1$
+
+ private static final String CORRECT_NAME = "html3"; //$NON-NLS-1$
+
public JsfJbide2170Test(String name) {
super(name);
}
@@ -177,4 +181,51 @@
}
}
+
+ /**
+ *
+ * @throws Throwable
+ */
+ public void testComplexDoctypePage() throws Throwable {
+
+ // wait
+ TestUtil.waitForJobs();
+ // set exception
+ setException(null);
+
+ // get test page path
+ IFile file = (IFile) TestUtil.getComponentPath(
+ COMPLEX_DOCTYPE_TEST_PAGE_NAME, IMPORT_PROJECT_NAME);
+
+ IEditorInput input = new FileEditorInput(file);
+
+ // open and get editor
+ JSPMultiPageEditor part = openEditor(input);
+
+ // get doctype from opened page
+ String basicDoctypeString = DocTypeUtil.getDoctype(input);
+
+ // doctype must be not null
+ assertNotNull(basicDoctypeString);
+ // length of doctype must be more than 0
+ assertEquals(true, basicDoctypeString.length() > 0);
+
+ // get dom document
+ nsIDOMDocument document = getVpeVisualDocument(part);
+ assertNotNull(document);
+
+ // get doctype
+ nsIDOMDocumentType vpeDocumentType = document.getDoctype();
+
+ // doctype must be not null
+ assertNotNull(vpeDocumentType);
+
+ assertEquals(CORRECT_NAME, vpeDocumentType.getName());
+ // check exception
+ if (getException() != null) {
+ throw getException();
+ }
+
+ }
+
}
16 years, 5 months
JBoss Tools SVN: r9094 - 08.07.2008 and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: aklimkovich
Date: 2008-07-08 11:32:51 -0400 (Tue, 08 Jul 2008)
New Revision: 9094
Added:
trunk/documentation/qa/reports/Tests 08.07.2008/Smoke Test_08.07.2008.htm
Log:
Added a file remotely
Added: trunk/documentation/qa/reports/Tests 08.07.2008/Smoke Test_08.07.2008.htm
===================================================================
--- trunk/documentation/qa/reports/Tests 08.07.2008/Smoke Test_08.07.2008.htm (rev 0)
+++ trunk/documentation/qa/reports/Tests 08.07.2008/Smoke Test_08.07.2008.htm 2008-07-08 15:32:51 UTC (rev 9094)
@@ -0,0 +1,344 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HTML><HEAD><TITLE>Execution Report</TITLE>
+<STYLE>H1 {
+ COLOR: #4a5d75; FONT-FAMILY: 'Lucida Grande', Geneva, Verdana, Arial, sans-serif; BACKGROUND-COLOR: transparent
+}
+H2 {
+ COLOR: #4a5d75; FONT-FAMILY: 'Lucida Grande', Geneva, Verdana, Arial, sans-serif; BACKGROUND-COLOR: transparent
+}
+TR {
+ BACKGROUND-COLOR: #f5f5f5
+}
+TD {
+ BORDER-RIGHT: dimgray 1px solid; PADDING-RIGHT: 0.5em; BORDER-TOP: dimgray 1px solid; PADDING-LEFT: 0.5em; PADDING-BOTTOM: 0.15em; BORDER-LEFT: dimgray 1px solid; PADDING-TOP: 0.15em; BORDER-BOTTOM: dimgray 1px solid; FONT-FAMILY: 'Lucida Grande', Geneva, Verdana, Arial, sans-serif; BACKGROUND-COLOR: transparent
+}
+HR {
+ COLOR: #999; BORDER-COLLAPSE: collapse
+}
+BODY {
+ PADDING-RIGHT: 2em; PADDING-LEFT: 2em; FONT-SIZE: 12px; PADDING-BOTTOM: 0em; COLOR: #333; LINE-HEIGHT: 100%; PADDING-TOP: 0em; FONT-FAMILY: 'Lucida Grande', Geneva, Verdana, Arial, sans-serif; max-width: 55em
+}
+TABLE {
+ BORDER-RIGHT: dimgray 0px solid; BORDER-TOP: dimgray 0px solid; BORDER-LEFT: dimgray 0px solid; COLOR: #4a5d75; BORDER-BOTTOM: dimgray 0px solid; FONT-FAMILY: 'Lucida Grande', Geneva, Verdana, Arial, sans-serif
+}
+</STYLE>
+
+<META http-equiv=Content-Type content="text/html; charset=ISO-8859-5">
+<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
+<BODY bgColor=#f5f5f5>
+<CENTER>
+<H1>Smoke Test</H1>
+<TABLE
+style="BORDER-TOP-WIDTH: 1pt; BORDER-LEFT-WIDTH: 1pt; BORDER-BOTTOM-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"
+cellSpacing=0 cellPadding=4 width="100%" align=center>
+ <TBODY>
+ <TR bgColor=gray>
+ <TD><B>Exec Date</B></TD>
+ <TD><B>Test Name</B></TD>
+ <TD><B>Status</B></TD>
+ <TD><B>Bug Number</B></TD></TR>
+ <TR bgColor=papayawhip>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Creating new
+ JSF Project</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=seashell>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Removeadd
+ JSF Capabilities</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=papayawhip>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Importing
+ existing JSF Project</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=seashell>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Creating new
+ Struts Project</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=papayawhip>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Removeadd
+ Struts Capabilities</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=seashell>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Importing
+ existing Struts Project</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: red; BORDER-RIGHT-WIDTH: 1pt">Failed</TD>
+ <TD
+style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">JBIDE-2428</TD></TR>
+ <TR bgColor=papayawhip>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Running JSF
+ project</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=seashell>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Running
+ Struts project</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=papayawhip>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Outline view
+ and Properties Editor</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=seashell>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Creating JSF
+ JSP page</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: red; BORDER-RIGHT-WIDTH: 1pt">Failed</TD>
+ <TD
+style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">JBIDE-2219</TD></TR>
+ <TR bgColor=papayawhip>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Rename
+ faces-config file</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=seashell>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Rename JSP
+ file</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=papayawhip>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Rename
+ struts-config.xml</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=seashell>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Rename TLD
+ file</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=papayawhip>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Running Test
+ NG suite runtime 1.2</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=seashell>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Checking
+ generated TestNG report runtime 1.2</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=papayawhip>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Running Test
+ NG suite runtime 2.0</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: red; BORDER-RIGHT-WIDTH: 1pt">Failed</TD>
+ <TD
+style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">JBIDE-2454</TD></TR>
+ <TR bgColor=seashell>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Checking
+ generated TestNG report runtime 2.0</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: red; BORDER-RIGHT-WIDTH: 1pt">Failed</TD>
+ <TD
+style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">JBIDE-2488</TD></TR>
+ <TR bgColor=papayawhip>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Creating
+ test Seam 1.2 ear project</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=seashell>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Adding new
+ action in test Seam 1.2 ear project</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=papayawhip>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Creating
+ test Seam 2.0 ear project</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=seashell>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Adding new
+ action in test Seam 2.0 ear project</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=papayawhip>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Server
+ jboss-seam.jar test</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=seashell>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Creating
+ XHTML page</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: red; BORDER-RIGHT-WIDTH: 1pt">Failed</TD>
+ <TD
+style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">JBIDE-2219</TD></TR>
+ <TR bgColor=papayawhip>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Rename XHTML
+ file</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=seashell>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Creating
+ test Seam 1.2 war project</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=papayawhip>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Creating
+ test Seam 2.0 war project</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=seashell>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Running test
+ Seam 2.0 ear project on server</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=papayawhip>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Running test
+ Seam 2.0 war project on server</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=seashell>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Running test
+ Seam 1.2 war project on server</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=papayawhip>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Running test
+ Seam 1.2 ear project on server</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=seashell>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Deleting
+ test Seam 1.2 projects</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=papayawhip>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Deleting
+ test Seam 2.0 projects</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=seashell>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Adding new
+ entity in test Seam 2.0 ear project</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=papayawhip>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Adding new
+ entity in test Seam 1.2 ear project</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=seashell>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Adding new
+ action in test Seam 1.2 war project</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=papayawhip>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> Adding new
+ action in test Seam 2.0 war project</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white size=1> </FONT></TD></TR>
+ <TR bgColor=seashell>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt">08.07.2008</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"> JSF
+ capabilities after closing,opening a JSF project.</TD>
+ <TD
+ style="BORDER-TOP-WIDTH: 1pt; COLOR: green; BORDER-RIGHT-WIDTH: 1pt">Passed</TD>
+ <TD style="BORDER-TOP-WIDTH: 1pt; BORDER-RIGHT-WIDTH: 1pt"><FONT
+ color=white
+size=1> </FONT></TD></TR></TBODY></TABLE></CENTER></BODY></HTML>
16 years, 5 months
JBoss Tools SVN: r9092 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template.
by jbosstools-commits@lists.jboss.org
Author: estherbin
Date: 2008-07-08 11:17:35 -0400 (Tue, 08 Jul 2008)
New Revision: 9092
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesAbstractInplaceTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesInplaceInputTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesInplaceSelectTemplate.java
Log:
Fix bug(comments tramanovich) http://jira.jboss.com/jira/browse/JBIDE-2196
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesAbstractInplaceTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesAbstractInplaceTemplate.java 2008-07-08 14:59:36 UTC (rev 9091)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesAbstractInplaceTemplate.java 2008-07-08 15:17:35 UTC (rev 9092)
@@ -408,6 +408,11 @@
protected abstract String getCssStylesControlSuffix();
+
+ protected abstract String getControlPositionsSubStyles();
+
+ protected abstract String getMainControlsDivCssClass();
+
/**
* Creates the controls div.
@@ -421,9 +426,8 @@
protected nsIDOMElement createControlsDiv(VpePageContext pageContext, Node sourceNode, nsIDOMDocument visualDocument) {
final nsIDOMElement element = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_DIV);
- element.setAttribute(HTML.ATTR_CLASS, "rich-inplace"+getCssStylesControlSuffix()+"-controls-set");
- element.setAttribute(HTML.ATTR_STYLE, "position: absolute; top: " + controlsVerticalPositions.get(this.controlsVerticalPosition)
- + ";left:" + " " + controlsHorizontalPositions.get(this.controlsHorizontalPosition) + ";");
+ element.setAttribute(HTML.ATTR_CLASS, getMainControlsDivCssClass());
+ element.setAttribute(HTML.ATTR_STYLE, "position: absolute; "+getControlPositionsSubStyles());
final nsIDOMElement divShadov = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_DIV);
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesInplaceInputTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesInplaceInputTemplate.java 2008-07-08 14:59:36 UTC (rev 9091)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesInplaceInputTemplate.java 2008-07-08 15:17:35 UTC (rev 9092)
@@ -181,4 +181,15 @@
return "-input";
}
+ @Override
+ protected String getControlPositionsSubStyles() {
+ return "top: " + controlsVerticalPositions.get(this.controlsVerticalPosition)
+ + ";left:" + " " + controlsHorizontalPositions.get(this.controlsHorizontalPosition) + ";";
+ }
+
+ @Override
+ protected String getMainControlsDivCssClass() {
+ return "rich-inplace"+getCssStylesControlSuffix()+"-controls-set";
+ }
+
}
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesInplaceSelectTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesInplaceSelectTemplate.java 2008-07-08 14:59:36 UTC (rev 9091)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesInplaceSelectTemplate.java 2008-07-08 15:17:35 UTC (rev 9092)
@@ -20,6 +20,7 @@
import org.jboss.tools.vpe.editor.context.VpePageContext;
import org.jboss.tools.vpe.editor.template.VpeCreationData;
import org.jboss.tools.vpe.editor.util.HTML;
+import org.jboss.tools.vpe.xulrunner.browser.util.DOMTreeDumper;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.w3c.dom.Element;
@@ -45,9 +46,12 @@
/**
* Create.
*
- * @param visualDocument the visual document
- * @param sourceNode the source node
- * @param pageContext the page context
+ * @param visualDocument
+ * the visual document
+ * @param sourceNode
+ * the source node
+ * @param pageContext
+ * the page context
*
* @return the vpe creation data
*/
@@ -71,7 +75,7 @@
innerInput1.setAttribute(HTML.ATTR_VALUE, ((this.defaultLabel == null) ? "" : this.defaultLabel));
// TODO
innerInput1.setAttribute(HTML.ATTR_STYLE, "top: 1px ; width:100px");
- innerInput1.setAttribute(HTML.ATTR_VALUE,getValue());
+ innerInput1.setAttribute(HTML.ATTR_VALUE, getValue());
innerInput2.setAttribute(HTML.ATTR_CLASS, "rich-inplace-select-arrow");
// TODO
innerInput2.setAttribute(HTML.ATTR_STYLE, "top: 2px; left: 89px;");
@@ -82,24 +86,26 @@
final nsIDOMElement selectList = createSelectedList(source, visualDocument);
rootSpan.appendChild(selectList);
}
- if(this.showControls){
+ if (this.showControls) {
rootSpan.appendChild(createControlsDiv(pageContext, sourceNode, visualDocument));
}
} else {
rootSpan.appendChild(visualDocument.createTextNode(getValue()));
}
- data = new VpeCreationData(rootSpan);
- // DOMTreeDumper d = new DOMTreeDumper();
- // d.dumpToStream(System.err, rootSpan);
+ data = new VpeCreationData(rootSpan);
+ DOMTreeDumper d = new DOMTreeDumper();
+ d.dumpToStream(System.err, rootSpan);
return data;
}
/**
* Creates the selected list.
*
- * @param visualDocument the visual document
- * @param source the source
+ * @param visualDocument
+ * the visual document
+ * @param source
+ * the source
*
* @return the ns IDOM element
*/
@@ -148,19 +154,26 @@
listDecarationDiv.setAttribute(HTML.ATTR_CLASS, "rich-inplace-select-list-decoration");
final nsIDOMElement listScrollDiv = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_DIV);
+ final List<Element> elements = ComponentUtil.getSelectItems(source.getChildNodes());
+ // added by estherbin
+ // fix http://jira.jboss.com/jira/browse/JBIDE-2196
+ // tramanovich comment.
+ int height = 72;
+
+ if ((elements != null) && (elements.size() > 3)) {
+ height += ((elements.size() - 4) * 24);
+ }
listScrollDiv.setAttribute(HTML.ATTR_CLASS, "rich-inplace-select-list-scroll");
- listScrollDiv.setAttribute(HTML.ATTR_STYLE, "height: 72px; width: 151px;");
+ listScrollDiv.setAttribute(HTML.ATTR_STYLE, "height:"+height+"px; width: 151px;");
- //
-
- final List<Element> elements = ComponentUtil.getSelectItems(source.getChildNodes());
if (elements.size() > 0) {
for (Element e : elements) {
final nsIDOMElement span = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_SPAN);
span.setAttribute(HTML.ATTR_CLASS, "rich-inplace-select-item rich-inplace-select-font");
span.appendChild(visualDocument.createTextNode(ComponentUtil.getSelectItemValue(e)));
+ span.setAttribute(HTML.ATTR_STYLE, "text-align: left;");
listScrollDiv.appendChild(span);
}
@@ -194,15 +207,13 @@
return div;
}
-
-
/**
* Gets the css extension.
*
* @return the css extension
*
* @see org.jboss.tools.jsf.vpe.richfaces.template.
- * RichFacesAbstractInplaceTemplate#getCssExtension()
+ * RichFacesAbstractInplaceTemplate#getCssExtension()
*/
@Override
protected String getCssExtension() {
@@ -215,14 +226,13 @@
* @return the css style
*
* @see org.jboss.tools.jsf.vpe.richfaces.template.
- * RichFacesAbstractInplaceTemplate#getCssStyle()
+ * RichFacesAbstractInplaceTemplate#getCssStyle()
*/
@Override
protected String getCssStyle() {
return INPLACE_SELECT_CSS;
}
-
/**
* Gets the css styles suffix.
*
@@ -239,7 +249,7 @@
* @return the root span classes
*
* @see org.jboss.tools.jsf.vpe.richfaces.template.
- * RichFacesAbstractInplaceTemplate#getRootSpanClasses()
+ * RichFacesAbstractInplaceTemplate#getRootSpanClasses()
*/
@Override
protected Object[] getRootSpanClasses() {
@@ -264,8 +274,10 @@
/**
* Preapare input base.
*
- * @param innerInput the inner input
- * @param innerInput1 */
+ * @param innerInput
+ * the inner input
+ * @param innerInput1
+ */
private void preapareInputBase(nsIDOMElement innerInput) {
innerInput.setAttribute(HTML.ATTR_TYPE, "text");
innerInput.setAttribute(HtmlComponentUtil.HTML_READONLY_ATTR, "text");
@@ -275,7 +287,8 @@
/**
* Prepare data.
*
- * @param source the source
+ * @param source
+ * the source
*/
@Override
protected void prepareData(Element source) {
@@ -296,4 +309,17 @@
return this.getCssStylesSuffix();
}
+ @Override
+ protected String getControlPositionsSubStyles() {
+
+ return "top:0px ; left: " + controlsVerticalPositions.get(this.controlsVerticalPosition)
+ + ";left:" + " " + controlsHorizontalPositions.get(this.controlsHorizontalPosition) + ";";
+ }
+
+ @Override
+ protected String getMainControlsDivCssClass() {
+ // TODO Auto-generated method stub
+ return "rich-inplace"+getCssStylesControlSuffix()+"-control-set";
+ }
+
}
16 years, 5 months
JBoss Tools SVN: r9091 - in trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template: util and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-07-08 10:59:36 -0400 (Tue, 08 Jul 2008)
New Revision: 9091
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/AbstractOutputJsfTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOptionSelectItemTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/util/NodeProxyUtil.java
Log:
code adjustment
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/AbstractOutputJsfTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/AbstractOutputJsfTemplate.java 2008-07-08 14:57:00 UTC (rev 9090)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/AbstractOutputJsfTemplate.java 2008-07-08 14:59:36 UTC (rev 9091)
@@ -15,7 +15,6 @@
import org.jboss.tools.vpe.editor.template.VpeChildrenInfo;
import org.jboss.tools.vpe.editor.template.VpeCreationData;
import org.jboss.tools.vpe.editor.util.HTML;
-import org.jboss.tools.vpe.editor.util.NodesManagingUtil;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.mozilla.interfaces.nsIDOMNode;
@@ -125,7 +124,7 @@
}
elementData.addNodeData(new AttributeData(outputAttr,
- targetVisualElement, false));
+ targetVisualElement, true));
creationData.addChildrenInfo(targetVisualInfo);
@@ -193,12 +192,10 @@
VpeElementProxyData elementProxyData = (VpeElementProxyData) elementMapping
.getElementData();
- Node sourceNode = NodeProxyUtil.findNodeByPosition(elementProxyData
- .getNodelist(), focusPosition, anchorPosition);
+ VpeNodeMapping nodeMapping = NodeProxyUtil.findNodeByPosition(
+ domMapping, elementProxyData.getNodelist(), focusPosition,
+ anchorPosition);
- VpeNodeMapping nodeMapping = NodesManagingUtil.getNodeMapping(
- domMapping, sourceNode);
-
if (nodeMapping != null) {
if (nodeMapping.getType() == VpeNodeMapping.ELEMENT_MAPPING) {
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOptionSelectItemTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOptionSelectItemTemplate.java 2008-07-08 14:57:00 UTC (rev 9090)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOptionSelectItemTemplate.java 2008-07-08 14:59:36 UTC (rev 9091)
@@ -11,6 +11,7 @@
package org.jboss.tools.jsf.vpe.jsf.template;
import org.jboss.tools.jsf.vpe.jsf.template.util.ComponentUtil;
+import org.jboss.tools.jsf.vpe.jsf.template.util.JSF;
import org.jboss.tools.jsf.vpe.jsf.template.util.NodeProxyUtil;
import org.jboss.tools.jsf.vpe.jsf.template.util.model.VpeElementProxyData;
import org.jboss.tools.vpe.editor.context.VpePageContext;
@@ -81,51 +82,53 @@
} else if (attrPresents(enabledClass)) {
option.setAttribute(CLASS, enabledClass);
}
-
- Attr attr = null;
- if (element.hasAttribute(ITEM_LABEL)) {
- attr = element.getAttributeNode(ITEM_LABEL);
- }
- VpeElementProxyData elementData = new VpeElementProxyData();
-
- if (null != attr) {
- if (null == escape || "true".equalsIgnoreCase(escape)) {
- // show text as is
- String itemLabel = attr.getNodeValue();
- String bundleValue = ComponentUtil.getBundleValue(pageContext,
- attr);
- nsIDOMText text;
- // if bundleValue differ from value then will be represent
- // bundleValue, but text will be not edit
- if (!itemLabel.equals(bundleValue)) {
- text = visualDocument.createTextNode(bundleValue);
+ processOutputAttribute(pageContext, visualDocument, element, option, creationData);
- } else {
- text = visualDocument.createTextNode(itemLabel);
-
- elementData.addNodeData(new AttributeData(attr,
- option, true));
- creationData.setElementData(elementData);
- }
-
-
- option.appendChild(text);
- } else {
- // show formatted text
- VpeChildrenInfo spanInfo = new VpeChildrenInfo(option);
- // re-parse attribute's value
- NodeList list = NodeProxyUtil.reparseAttributeValue(elementData,attr);
- // add children to info
- for (int i = 0; i < list.getLength(); i++) {
- Node child = list.item(i);
- // add info to creation data
- spanInfo.addSourceChild(child);
- }
- creationData.addChildrenInfo(spanInfo);
- }
- }
-
+// Attr attr = null;
+// if (element.hasAttribute(ITEM_LABEL)) {
+// attr = element.getAttributeNode(ITEM_LABEL);
+// }
+//
+// VpeElementProxyData elementData = new VpeElementProxyData();
+//
+// if (null != attr) {
+// if (null == escape || "true".equalsIgnoreCase(escape)) {
+// // show text as is
+// String itemLabel = attr.getNodeValue();
+// String bundleValue = ComponentUtil.getBundleValue(pageContext,
+// attr);
+// nsIDOMText text;
+// // if bundleValue differ from value then will be represent
+// // bundleValue, but text will be not edit
+// if (!itemLabel.equals(bundleValue)) {
+// text = visualDocument.createTextNode(bundleValue);
+//
+// } else {
+// text = visualDocument.createTextNode(itemLabel);
+//
+// elementData.addNodeData(new AttributeData(attr,
+// option, true));
+// creationData.setElementData(elementData);
+// }
+//
+//
+// option.appendChild(text);
+// } else {
+// // show formatted text
+// VpeChildrenInfo spanInfo = new VpeChildrenInfo(option);
+// // re-parse attribute's value
+// NodeList list = NodeProxyUtil.reparseAttributeValue(elementData,attr);
+// // add children to info
+// for (int i = 0; i < list.getLength(); i++) {
+// Node child = list.item(i);
+// // add info to creation data
+// spanInfo.addSourceChild(child);
+// }
+// creationData.addChildrenInfo(spanInfo);
+// }
+// }
+//
return creationData;
}
@@ -177,5 +180,13 @@
* VpeSourceDomBuilder sourceBuilder = pageContext.getSourceBuilder();
* sourceBuilder.setSelection(sourceElement, 0, 0); }
*/
+
+ @Override
+ protected Attr getOutputAttributeNode(Element element) {
+ if (element.hasAttribute(JSF.ATTR_ITEM_LABEL))
+ return element.getAttributeNode(JSF.ATTR_ITEM_LABEL);
+ return null;
+ }
+
}
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/util/NodeProxyUtil.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/util/NodeProxyUtil.java 2008-07-08 14:57:00 UTC (rev 9090)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/util/NodeProxyUtil.java 2008-07-08 14:59:36 UTC (rev 9091)
@@ -24,6 +24,8 @@
import org.jboss.tools.jsf.vpe.jsf.template.util.model.NodeProxy;
import org.jboss.tools.jsf.vpe.jsf.template.util.model.TextProxy;
import org.jboss.tools.jsf.vpe.jsf.template.util.model.VpeElementProxyData;
+import org.jboss.tools.vpe.editor.mapping.VpeDomMapping;
+import org.jboss.tools.vpe.editor.mapping.VpeNodeMapping;
import org.jboss.tools.vpe.editor.util.NodesManagingUtil;
import org.w3c.dom.Attr;
import org.w3c.dom.Node;
@@ -101,8 +103,8 @@
* @param anchorPosition
* @return
*/
- static public Node findNodeByPosition(NodeList nodeList, int focusPosition,
- int anchorPosition) {
+ static public VpeNodeMapping findNodeByPosition(VpeDomMapping domMapping,
+ NodeList nodeList, int focusPosition, int anchorPosition) {
if (anchorPosition < focusPosition) {
focusPosition = anchorPosition;
@@ -113,10 +115,10 @@
Node child = nodeList.item(i);
- Node result = null;
+ VpeNodeMapping result = null;
if (child.hasChildNodes()) {
- result = findNodeByPosition(child.getChildNodes(),
+ result = findNodeByPosition(domMapping, child.getChildNodes(),
focusPosition, anchorPosition);
}
@@ -125,9 +127,10 @@
if ((focusPosition >= (NodesManagingUtil.getStartOffsetNode(child)))
&& (anchorPosition <= (NodesManagingUtil
- .getEndOffsetNode(child))))
+ .getEndOffsetNode(child)))) {
- return child;
+ return NodesManagingUtil.getNodeMapping(domMapping, child);
+ }
}
return null;
16 years, 5 months
JBoss Tools SVN: r9090 - in trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test: src/org/jboss/tools/jsf/vpe/jsf/test/jbide and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-07-08 10:57:00 -0400 (Tue, 08 Jul 2008)
New Revision: 9090
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2362/editing.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide2362Test.java
Log:
junit for http://jira.jboss.com/jira/browse/JBIDE-2362
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2362/editing.jsp
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2362/editing.jsp 2008-07-08 13:24:18 UTC (rev 9089)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2362/editing.jsp 2008-07-08 14:57:00 UTC (rev 9090)
@@ -7,6 +7,13 @@
<f:view>
<h:outputText></h:outputText>
+ <h:outputFormat></h:outputFormat>
+ <h:outputLabel></h:outputLabel>
+ <h:outputLink></h:outputLink>
+ <h:inputText></h:inputText>
+ <h:inputTextarea></h:inputTextarea>
+ <h:inputSecret></h:inputSecret>
+ <h:inputHidden></h:inputHidden>
</f:view>
</body>
</html>
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide2362Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide2362Test.java 2008-07-08 13:24:18 UTC (rev 9089)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JsfJbide2362Test.java 2008-07-08 14:57:00 UTC (rev 9090)
@@ -11,7 +11,9 @@
package org.jboss.tools.jsf.vpe.jsf.test.jbide;
+import java.util.ArrayList;
import java.util.Collection;
+import java.util.List;
import java.util.Map;
import org.eclipse.core.resources.IFile;
@@ -20,16 +22,19 @@
import org.eclipse.ui.part.FileEditorInput;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMElement;
+import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
+import org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode;
import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.mapping.VpeDomMapping;
import org.jboss.tools.vpe.editor.mapping.VpeNodeMapping;
+import org.jboss.tools.vpe.editor.util.NodesManagingUtil;
import org.jboss.tools.vpe.editor.util.SelectionUtil;
import org.jboss.tools.vpe.ui.test.TestUtil;
import org.jboss.tools.vpe.ui.test.VpeTest;
import org.jboss.tools.vpe.xulrunner.editor.XulRunnerEditor;
-import org.mozilla.interfaces.nsIDOMNode;
import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
/**
*
@@ -44,9 +49,21 @@
private static final String SELECTION_PAGE_NAME = "JBIDE/2362/selection.jsp";
private static final String EDITING_PAGE_NAME = "JBIDE/2362/editing.jsp";
- private static final String OUTPUT_TEXT = "outputText";
- private static final String INSERT_TEXT = "value=\"x\"";
+ private static final List<String> ELEMENTS;
+
+ static {
+ ELEMENTS = new ArrayList<String>();
+ ELEMENTS.add("h:outputText");
+ ELEMENTS.add("h:outputFormat");
+ ELEMENTS.add("h:outputLabel");
+ ELEMENTS.add("h:outputLink");
+ ELEMENTS.add("h:inputText");
+ ELEMENTS.add("h:inputTextarea");
+ ELEMENTS.add("h:inputSecret");
+ ELEMENTS.add("h:inputHidden");
+ }
+
public JsfJbide2362Test(String name) {
super(name);
}
@@ -100,8 +117,6 @@
XulRunnerEditor xulRunnerEditor = controller.getXulRunnerEditor();
assertNotNull(xulRunnerEditor);
- domMapping.printMapping();
-
for (VpeNodeMapping nodeMapping : mappings) {
/**
@@ -114,7 +129,7 @@
SelectionUtil.setSourceSelection(controller.getPageContext(),
nodeMapping.getSourceNode(), 0, 0);
- // TestUtil.delay(50);
+ TestUtil.delay(50);
assertNotNull(xulRunnerEditor.getLastSelectedNode());
assertEquals(nodeMapping.getVisualNode(), xulRunnerEditor
@@ -129,87 +144,9 @@
}
- // /**
- // * It is simple selection test.
- // *
- // * @throws Throwable
- // */
- // public void testSimpleVisualSelection() throws Throwable {
- //
- // // wait
- // TestUtil.waitForJobs();
- // // set exception
- // setException(null);
- //
- // // get test page path
- // IFile file = (IFile) TestUtil.getComponentPath(SELECTION_PAGE_NAME,
- // IMPORT_PROJECT_NAME);
- //
- // IEditorInput input = new FileEditorInput(file);
- //
- // // open and get editor
- // JSPMultiPageEditor part = openEditor(input);
- //
- // // get controller
- // VpeController controller = getVpeController(part);
- // assertNotNull(controller);
- //
- // // get dommapping
- // VpeDomMapping domMapping = controller.getDomMapping();
- //
- // assertNotNull(domMapping);
- //
- // // get source map
- // Map<nsIDOMNode, VpeNodeMapping> visualMap = domMapping.getVisualMap();
- // assertNotNull(visualMap);
- //
- // // get collection of VpeNodeMapping
- // Collection<VpeNodeMapping> mappings = visualMap.values();
- // assertNotNull(mappings);
- //
- // // get editor control
- // StyledText styledText = part.getSourceEditor().getTextViewer()
- // .getTextWidget();
- // assertNotNull(styledText);
- //
- // // get xulrunner editor
- // XulRunnerEditor xulRunnerEditor = controller.getXulRunnerEditor();
- // assertNotNull(xulRunnerEditor);
- //
- // VpeSelectionController selectionController = controller
- // .getVisualSelectionController();
- //
- // StructuredTextEditor sourceEditor = controller.getSourceEditor();
- // assertNotNull(sourceEditor);
- //
- // IStructuredModel model = NodesManagingUtil
- // .getStructuredModel(sourceEditor);
- // assertNotNull(model);
- //
- // for (VpeNodeMapping nodeMapping : mappings) {
- //
- // selectionController.getSelection(0).collapse(
- // nodeMapping.getVisualNode(), 0);
- //
- // TestUtil.delay(5000);
- //
- // Point range = SelectionUtil.getSourceSelection(sourceEditor);
- //
- // assertEquals(nodeMapping.getSourceNode(), SelectionUtil
- // .getSourceNodeByPosition(model, range.x));
- // }
- //
- // // check exception
- // if (getException() != null) {
- // throw getException();
- // }
- //
- // }
-
/**
- * It is simple selection test. We set cursor for each source node ( from
- * VpeDomMapping). Then we compare visual nodes which was selected and which
- * was associated with current source node.
+ * This test checks selection after editing of source. If selection is not
+ * lost then test pass.
*
* @throws Throwable
*/
@@ -255,41 +192,44 @@
XulRunnerEditor xulRunnerEditor = controller.getXulRunnerEditor();
assertNotNull(xulRunnerEditor);
- domMapping.printMapping();
+ IDOMDocument document = ((IDOMModel) NodesManagingUtil
+ .getStructuredModel(controller.getSourceEditor()))
+ .getDocument();
- for (VpeNodeMapping nodeMapping : mappings) {
+ for (String tag : ELEMENTS) {
- /**
- * exclude out DomDocument ( it is added to mapping specially ) and
- * nodes without visual representation
- */
- if (OUTPUT_TEXT.equals(nodeMapping.getSourceNode().getLocalName())) {
+ NodeList tagList = document.getElementsByTagName(tag);
- IDOMElement element = (IDOMElement) nodeMapping.getSourceNode();
+ if (tagList.getLength() > 0) {
+ Node node = tagList.item(0);
+
SelectionUtil.setSourceSelection(controller.getPageContext(),
- element, 0, 0);
+ node, 0, 0);
- nsIDOMNode firstSelectedNode = xulRunnerEditor
- .getLastSelectedNode();
+ assertEquals(domMapping.getNearNodeMapping(node)
+ .getVisualNode(), xulRunnerEditor.getLastSelectedNode());
- assertEquals(nodeMapping.getVisualNode(), firstSelectedNode);
+ String insertedString = null;
+ int offset;
+ if (node.getNodeType() == node.ELEMENT_NODE) {
+ offset = ((IDOMElement) node).getStartEndOffset() - 1;
+ insertedString = " value=\"x\" ";
+ } else {
+ offset = ((IDOMNode) node).getStartOffset();
+ insertedString = "someText";
+ }
- int endStart = element.getStartEndOffset() - 1;
-
- styledText.setCaretOffset(endStart);
- styledText.insert(" ");
- TestUtil.delay(50);
- for (int i = 0; i < INSERT_TEXT.length(); i++) {
- endStart++;
- styledText.setCaretOffset(endStart);
- styledText.insert(String.valueOf(INSERT_TEXT.charAt(i)));
+ for (int j = 0; j < insertedString.length(); j++) {
+ styledText.setCaretOffset(offset + j);
+ styledText.insert(String.valueOf(insertedString.charAt(j)));
TestUtil.delay(50);
}
+ // wait
+ TestUtil.delay(500);
+ // wait
assertNotNull(xulRunnerEditor.getLastSelectedNode());
- assertEquals(firstSelectedNode, xulRunnerEditor
- .getLastSelectedNode());
}
}
16 years, 5 months
JBoss Tools SVN: r9089 - in trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test: resources/jsfTest/WebContent/pages/JBIDE/2119 and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: dsakovich
Date: 2008-07-08 09:24:18 -0400 (Tue, 08 Jul 2008)
New Revision: 9089
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2119/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2119/JBIDE-2119.jsp
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2119Test.java
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java
Log:
JUnit test for http://jira.jboss.org/jira/browse/JBIDE-2119
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2119/JBIDE-2119.jsp
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2119/JBIDE-2119.jsp (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/2119/JBIDE-2119.jsp 2008-07-08 13:24:18 UTC (rev 9089)
@@ -0,0 +1,54 @@
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+
+
+
+<f:loadBundle var="Message" basename="demo.Messages" />
+
+<html>
+<head>
+<title>Input User Name Page</title>
+<style type="text/css">
+h3 {
+ background: green;
+ color: red;
+}
+
+.post-info {
+ padding-top: 3px;
+ margin-left: 4px;
+ color: #00ff00;
+}
+
+.post-info a {
+ color: #bd4200;
+}
+
+</style>
+</head>
+<body>
+ <h3>Hello people</h3>
+<f:view>
+ <h:form id="greetingForm"
+ style="FONT-STYLE: italic; FONT-WEIGHT: bold;">
+ <h1><h:outputText value="#{Message.header}" /></h1>
+
+ <p class="post-info">Posted by
+ <a href="index.html">erwin</a> |
+ <h:outputLink value="/index.jsp">Home page</h:outputLink> |
+ <h:commandLink value="123456789">abcdef</h:commandLink>
+ </p>
+
+ <h:messages style="color: red" />
+ <h:outputText value="#{Message.prompt_message}" />
+ <h:inputText value="#{user.name}" required="true">
+ <f:validateLength maximum="30" minimum="3" />
+ </h:inputText>
+
+ <br/>
+
+ <h:commandButton action="hello" value="Say Hello!" />
+ </h:form>
+</f:view>
+</body>
+</html>
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java 2008-07-08 12:25:59 UTC (rev 9088)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java 2008-07-08 13:24:18 UTC (rev 9089)
@@ -25,6 +25,7 @@
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE1720Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE1730Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE1744Test;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2119Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2297Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE2434Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE675Test;
@@ -72,6 +73,7 @@
suite.addTestSuite(JsfJbide2170Test.class);
suite.addTestSuite(JBIDE2434Test.class);
suite.addTestSuite(JsfJbide2362Test.class);
+ suite.addTestSuite(JBIDE2119Test.class);
// $JUnit-END$
// added by Max Areshkau
// add here projects which should be imported for junit tests
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2119Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2119Test.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE2119Test.java 2008-07-08 13:24:18 UTC (rev 9089)
@@ -0,0 +1,88 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2008 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
+ *
+ * Contributor:
+ * 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.nsIDOMNode;
+
+/**
+ * @author Dzmitry Sakovich (dsakovich(a)exadel.com)
+ *
+ */
+public class JBIDE2119Test extends VpeTest {
+
+ private static final String IMPORT_PROJECT_NAME = "jsfTest";
+
+ private static final String TEST_PAGE_NAME = "JBIDE/2119/JBIDE-2119.jsp";
+
+ /**
+ * @param name
+ */
+ public JBIDE2119Test(String name) {
+ super(name);
+ }
+
+ // test method for JBIDE 2119
+ public void testJBIDE_2119() throws Throwable {
+ // wait
+ TestUtil.waitForJobs();
+ // set exception
+ setException(null);
+
+ // get test page path
+ IFile file = (IFile) TestUtil.getComponentPath(TEST_PAGE_NAME,
+ IMPORT_PROJECT_NAME);
+
+ assertNotNull("Could not open specified file " + file.getFullPath(),
+ file);
+
+ IEditorInput input = new FileEditorInput(file);
+
+ assertNotNull("Editor input is null", input);
+ // open and get editor
+ JSPMultiPageEditor part = openEditor(input);
+
+ // get dom document
+ nsIDOMDocument document = getVpeVisualDocument(part);
+ nsIDOMElement element = document.getDocumentElement();
+
+ // check that element is not null
+ assertNotNull(element);
+
+ // get root node
+ nsIDOMNode node = (nsIDOMNode) element
+ .queryInterface(nsIDOMNode.NS_IDOMNODE_IID);
+
+ List<nsIDOMNode> elements = new ArrayList<nsIDOMNode>();
+
+ // find "a" elements
+ TestUtil.findElementsByName(node, elements, HTML.TAG_A);
+ // method does not look for nested tables
+ // thus only one element is found
+ assertEquals(3, elements.size());
+
+ if (getException() != null) {
+ throw getException();
+ }
+ }
+
+}
16 years, 5 months
JBoss Tools SVN: r9088 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/progressBar.
by jbosstools-commits@lists.jboss.org
Author: estherbin
Date: 2008-07-08 08:25:59 -0400 (Tue, 08 Jul 2008)
New Revision: 9088
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/progressBar/progressBar.css
Log:
Fix bug:http://jira.jboss.com/jira/browse/JBIDE-2405
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/progressBar/progressBar.css
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/progressBar/progressBar.css 2008-07-08 12:25:11 UTC (rev 9087)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/progressBar/progressBar.css 2008-07-08 12:25:59 UTC (rev 9088)
@@ -20,3 +20,13 @@
background-color: #E79A00;
background-image: url(upload_status.gif);
}
+
+.rich-progress-bar-remained {
+ font-weight: bold;
+ position: relative;
+ text-align: center;
+}
+
+.rich-progress-bar-padding {
+ padding: 0pt;
+}
\ No newline at end of file
16 years, 5 months
JBoss Tools SVN: r9087 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template.
by jbosstools-commits@lists.jboss.org
Author: estherbin
Date: 2008-07-08 08:25:11 -0400 (Tue, 08 Jul 2008)
New Revision: 9087
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesProgressBarTemplate.java
Log:
Fix bug:http://jira.jboss.com/jira/browse/JBIDE-2405
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesProgressBarTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesProgressBarTemplate.java 2008-07-08 11:02:51 UTC (rev 9086)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesProgressBarTemplate.java 2008-07-08 12:25:11 UTC (rev 9087)
@@ -23,6 +23,7 @@
import org.jboss.tools.vpe.editor.template.VpeCreationData;
import org.jboss.tools.vpe.editor.util.HTML;
import org.jboss.tools.vpe.editor.util.VpeStyleUtil;
+import org.jboss.tools.vpe.xulrunner.browser.util.DOMTreeDumper;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
import org.w3c.dom.Element;
@@ -68,6 +69,8 @@
/** The style class. */
private String styleClass;
+
+ private String sourceLabel;
/**
* Create.
@@ -91,12 +94,21 @@
final nsIDOMElement progressDiv = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_DIV);
final nsIDOMElement uploadDiv = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_DIV);
+
String clazz = PROGRESS_DIV_STYLE_CLASSES;
if (ComponentUtil.isNotBlank(this.styleClass)) {
clazz = clazz + " " + this.styleClass;
}
progressDiv.setAttribute(HTML.ATTR_CLASS, clazz);
progressDiv.setAttribute(HTML.ATTR_STYLE, this.style + TEXT_ALIGN_LEFT);
+ if(ComponentUtil.isNotBlank(this.sourceLabel)){
+ final nsIDOMElement labelDiv = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_DIV);
+ // labelDiv.setAttribute(HTML.ATTR_CLASS, "rich-progress-bar-width rich-progress-bar-remained rich-progress-bar-padding");
+ labelDiv.setAttribute(HTML.ATTR_STYLE,this.style+"; font-weight: bold; position: relative; text-align: center; ");
+ uploadDiv.appendChild(labelDiv);
+
+ labelDiv.appendChild(visualDocument.createTextNode(this.sourceLabel));
+ }
uploadDiv.setAttribute(HTML.ATTR_CLASS, UPLOADED_DIV);
uploadDiv.setAttribute(HTML.ATTR_STYLE, this.style + VpeStyleUtil.SEMICOLON_STRING + VpeStyleUtil.PARAMETER_WIDTH
@@ -117,7 +129,6 @@
//
// DOMTreeDumper dump = new DOMTreeDumper();
// dump.dumpToStream(System.err, progressDiv);
-
return data;
}
@@ -166,6 +177,7 @@
private void prepareData(Element source) {
this.styleClass = ComponentUtil.getAttribute(source, RichFaces.ATTR_STYLE_CLASS);
this.style = ComponentUtil.getAttribute(source, HTML.ATTR_STYLE);
+ this.sourceLabel = ComponentUtil.getAttribute(source, "label");
if (ComponentUtil.isBlank(this.style)) {
this.style = DEFAULT_HEIGHT;
}
16 years, 5 months
JBoss Tools SVN: r9086 - in trunk: jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: dsakovich
Date: 2008-07-08 07:02:51 -0400 (Tue, 08 Jul 2008)
New Revision: 9086
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfCommandLinkTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOutputLinkTemplate.java
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/AbstractOutputJsfTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/HTML.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-2119
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/AbstractOutputJsfTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/AbstractOutputJsfTemplate.java 2008-07-08 11:00:20 UTC (rev 9085)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/AbstractOutputJsfTemplate.java 2008-07-08 11:02:51 UTC (rev 9086)
@@ -54,7 +54,6 @@
Element sourceElement) {
copyGeneralJsfAttributes(visualElement, sourceElement);
copyAttribute(visualElement, sourceElement, JSF.ATTR_DIR, HTML.ATTR_DIR);
-
}
/**
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfCommandLinkTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfCommandLinkTemplate.java (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfCommandLinkTemplate.java 2008-07-08 11:02:51 UTC (rev 9086)
@@ -0,0 +1,63 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2008 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.vpe.jsf.template;
+
+import org.jboss.tools.jsf.vpe.jsf.template.util.ComponentUtil;
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+/**
+ * Template for jsf tag commandLink
+ *
+ * @author Dzmitry Sakovich (dsakovich(a)exadel.com)
+ *
+ */
+public class JsfCommandLinkTemplate extends AbstractOutputJsfTemplate {
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
+ nsIDOMDocument visualDocument) {
+
+ Element element = (Element) sourceNode;
+
+ boolean disabled = ComponentUtil.string2boolean(ComponentUtil
+ .getAttribute(element, HTML.ATTR_DISABLED));
+
+ nsIDOMElement parentElement;
+ if (disabled)
+ parentElement = visualDocument.createElement(HTML.TAG_SPAN);
+ else
+ parentElement = visualDocument.createElement(HTML.TAG_A);
+
+ VpeCreationData creationData = new VpeCreationData(parentElement);
+
+ // copy attributes
+ copyOutputJsfAttributes(parentElement, element);
+
+ processOutputAttribute(pageContext, visualDocument, element,
+ parentElement, creationData);
+
+ return creationData;
+
+ }
+
+ @Override
+ public boolean isRecreateAtAttrChange(VpePageContext pageContext,
+ Element sourceElement, nsIDOMDocument visualDocument,
+ nsIDOMElement visualNode, Object data, String name, String value) {
+ return true;
+ }
+
+}
Added: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOutputLinkTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOutputLinkTemplate.java (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOutputLinkTemplate.java 2008-07-08 11:02:51 UTC (rev 9086)
@@ -0,0 +1,84 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2008 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.vpe.jsf.template;
+
+import org.jboss.tools.jsf.vpe.jsf.template.util.ComponentUtil;
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
+import org.jboss.tools.vpe.editor.template.VpeChildrenInfo;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+/**
+ * Template for jsf tag outputLink (ver 1.*)
+ *
+ * @author Dzmitry Sakovich (dsakovich(a)exadel.com)
+ *
+ */
+public class JsfOutputLinkTemplate extends VpeAbstractTemplate {
+
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
+ nsIDOMDocument visualDocument) {
+ Element sourceElement = (Element) sourceNode;
+
+ boolean disabled = ComponentUtil.string2boolean(ComponentUtil
+ .getAttribute(sourceElement, HTML.ATTR_DISABLED));
+ String dir = ComponentUtil.getAttribute(sourceElement, HTML.ATTR_DIR);
+ String style = ComponentUtil.getAttribute(sourceElement,
+ HTML.ATTR_STYLE);
+ String styleClass = ComponentUtil.getAttribute(sourceElement,
+ HTML.ATTR_CLASS);
+
+ nsIDOMElement span = visualDocument.createElement(HTML.TAG_SPAN);
+ VpeCreationData creationData = new VpeCreationData(span);
+ if (disabled) {
+
+ if (styleClass != null && styleClass.length() > 0)
+ span.setAttribute(HTML.ATTR_CLASS, styleClass);
+ if (dir != null && dir.length() > 0)
+ span.setAttribute(HTML.ATTR_DIR, dir);
+ if (style != null && style.length() > 0)
+ span.setAttribute(HTML.ATTR_STYLE, style);
+
+ return creationData;
+ }
+
+ nsIDOMElement a = visualDocument.createElement(HTML.TAG_A);
+ span.appendChild(a);
+ NodeList children = sourceNode.getChildNodes();
+ for (int i = 0; i < children.getLength(); i++) {
+ Node child = children.item(i);
+ if (!(child instanceof Element)) {
+ continue;
+ }
+
+ VpeChildrenInfo info;
+ if (child.getPrefix() == null) {
+ info = new VpeChildrenInfo(span);
+
+ } else {
+ info = new VpeChildrenInfo(a);
+ }
+ info.addSourceChild(child);
+ creationData.addChildrenInfo(info);
+ }
+ return creationData;
+ }
+
+}
+
+
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-07-08 11:00:20 UTC (rev 9085)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml 2008-07-08 11:02:51 UTC (rev 9086)
@@ -226,12 +226,7 @@
<!-- Проблема с вложенным параметром (31 of 4) -->
<vpe:tag name="h:commandLink" case-sensitive="yes">
- <vpe:template children="yes" modify="yes">
- <span class="def-link {@styleClass}"
- style="{@style}"
- title="{tagstring()}">
- <vpe:value expr="{jsfvalue(@value)}" />
- </span>
+ <vpe:template children="yes" modify="yes" class="org.jboss.tools.jsf.vpe.jsf.template.JsfCommandLinkTemplate">
<vpe:dnd>
<vpe:drag start-enable="yes" />
<vpe:drop container="yes">
@@ -276,6 +271,15 @@
</vpe:textFormatting>
</vpe:template>
</vpe:if>
+ <vpe:if test="tld_version('max=1.2')" >
+ <vpe:template children="yes" modify="yes" class="org.jboss.tools.jsf.vpe.jsf.template.JsfOutputLinkTemplate">
+ <vpe:textFormatting use-default-formats="yes">
+ <vpe:format type="UnderlineFormat" setDefault="true">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
<vpe:template children="yes" modify="yes">
<vpe:a class="{@styleClass}"
style="{@style}"
@@ -777,7 +781,7 @@
</vpe:textFormatting>
</vpe:template>
</vpe:tag>
-
+
<!--
Проблема с селектированием элемента: в мозилле селектируется заголовок а не рамка
-->
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/HTML.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/HTML.java 2008-07-08 11:00:20 UTC (rev 9085)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/util/HTML.java 2008-07-08 11:02:51 UTC (rev 9086)
@@ -66,7 +66,7 @@
public static final String ATTR_CLASS = "class"; //$NON-NLS-1$
public static final String ATTR_TITLE = "TITLE"; //$NON-NLS-1$
public static final String ATTR_NAME = "NAME"; //$NON-NLS-1$
- public static final String ATTR_VALUE = "VALUE"; //$NON-NLS-1$
+ public static final String ATTR_VALUE = "value"; //$NON-NLS-1$
public static final String ATTR_STYLE = "style"; //$NON-NLS-1$
public static final String ATTR_SIZE = "size"; //$NON-NLS-1$
public static final String ATTR_MULTIPLE = "MULTIPLE"; //$NON-NLS-1$
16 years, 5 months