Author: yzhishko
Date: 2009-11-13 12:57:01 -0500 (Fri, 13 Nov 2009)
New Revision: 18683
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/src/org/jboss/tools/jsf/vpe/seam/template/SeamMailBodyTemplate.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/attachment.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/bcc.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/body.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/body.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/cc.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/from.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/header.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/message.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/message.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/replyTo.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/subject.xhtml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/to.xhtml
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/templates/vpe-templates-seam.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentContentTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-1451 fix
Added:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/src/org/jboss/tools/jsf/vpe/seam/template/SeamMailBodyTemplate.java
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/src/org/jboss/tools/jsf/vpe/seam/template/SeamMailBodyTemplate.java
(rev 0)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/src/org/jboss/tools/jsf/vpe/seam/template/SeamMailBodyTemplate.java 2009-11-13
17:57:01 UTC (rev 18683)
@@ -0,0 +1,60 @@
+package org.jboss.tools.jsf.vpe.seam.template;
+
+import org.jboss.tools.vpe.editor.context.VpePageContext;
+import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
+import org.jboss.tools.vpe.editor.template.VpeCreationData;
+import org.jboss.tools.vpe.editor.util.HTML;
+import org.mozilla.interfaces.nsIDOMDocument;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.mozilla.interfaces.nsIDOMNodeList;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+
+public class SeamMailBodyTemplate extends VpeAbstractTemplate {
+
+ private static final String ATTR_TYPE = "type";
+ private static final String ATTR_VALUE_PLAIN = "plain";
+
+ public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
+ nsIDOMDocument visualDocument) {
+ Element sourceElement = (Element) sourceNode;
+ nsIDOMNode visualNode = null;
+ if (sourceElement.hasChildNodes()) {
+ visualNode = visualDocument.createElement(HTML.TAG_DIV);
+ }
+ return new VpeCreationData(visualNode);
+ }
+
+ private nsIDOMNode clearAllStyleAttrs(nsIDOMNode visualNode) {
+ if (visualNode.getNodeType() == nsIDOMNode.ELEMENT_NODE) {
+ nsIDOMElement visualElement = (nsIDOMElement)
visualNode.queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
+ visualElement.removeAttribute(HTML.ATTR_CLASS);
+ visualElement.removeAttribute(HTML.ATTR_STYLE);
+ }
+ if (visualNode != null) {
+ nsIDOMNodeList children = visualNode.getChildNodes();
+ for (int i = 0; i < children.getLength(); i++) {
+ clearAllStyleAttrs(children.item(i));
+ }
+ }
+ return visualNode;
+ }
+
+ @Override
+ public void validate(VpePageContext pageContext, Node sourceNode,
+ nsIDOMDocument visualDocument, VpeCreationData data) {
+ super.validate(pageContext, sourceNode, visualDocument, data);
+ String attrValue =((Element)sourceNode).getAttribute(ATTR_TYPE);
+ if (attrValue!=null && ATTR_VALUE_PLAIN.equals(attrValue.trim())) {
+ nsIDOMNode parentNode = data.getNode();
+ if (parentNode!=null) {
+ nsIDOMNodeList nodeList = parentNode.getChildNodes();
+ for (int i = 0; i < nodeList.getLength(); i++) {
+ clearAllStyleAttrs(nodeList.item(i));
+ }
+ }
+ }
+ }
+
+}
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/templates/vpe-templates-seam.xml
===================================================================
---
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/templates/vpe-templates-seam.xml 2009-11-13
15:22:37 UTC (rev 18682)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/templates/vpe-templates-seam.xml 2009-11-13
17:57:01 UTC (rev 18683)
@@ -1,66 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<vpe:templates
xmlns:vpe="http://org.jboss.org/tools/vpe/template"
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <vpe:template-taglib
uri="http://jboss.com/products/seam/taglib"
- prefix="s" />
-
- <vpe:tag name="s:button" case-sensitive="yes">
- <!-- This is a very big if-statement.
- Its goal is to add support of 'disabled property'
- DO NOT FORGET TO EDIT 'ELSE' PART IN FUTURE MODIFICATIONS -->
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <vpe:template-taglib
uri="http://jboss.com/products/seam/taglib"
+ prefix="s" />
+ <vpe:template-taglib
uri="http://jboss.com/products/seam/mail"
+ prefix="m" />
+
+ <vpe:tag name="s:button" case-sensitive="yes">
+ <!--
+ This is a very big if-statement. Its goal is to add support of
+ 'disabled property' DO NOT FORGET TO EDIT 'ELSE' PART IN FUTURE
+ MODIFICATIONS
+ -->
<vpe:if test="(@disabled='true')">
<vpe:if test="not(attrpresent('image'))">
- <vpe:template children="no" modify="no">
- <input type="button" value="{iif(@value='','
',jsfvalue(@value))}"
- class="{@styleClass}" style="{@style}"
- title="{tagstring()}" dir="{@dir}"
- disabled='disabled'/>
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- </vpe:dnd>
- <vpe:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:if>
- <vpe:if test="attrpresent('image')">
<vpe:template children="no" modify="no">
- <input type="image" src="{src(@image)}"
- class="{@styleClass}" style="{@style}"
title="{tagstring()}"
- disabled='disabled'/>
+ <input type="button" value="{iif(@value='','
',jsfvalue(@value))}"
+ class="{@styleClass}" style="{@style}"
title="{tagstring()}" dir="{@dir}"
+ disabled='disabled' />
<vpe:resize>
<vpe:width width-attr="style.width" />
<vpe:height height-attr="style.height" />
</vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
<vpe:textFormatting use-default-formats="yes">
</vpe:textFormatting>
</vpe:template>
</vpe:if>
- </vpe:if>
- <!--else-->
- <vpe:if test="not(attrpresent('image'))">
- <vpe:template children="no" modify="no">
- <input type="button" value="{iif(@value='','
',jsfvalue(@value))}"
- class="{@styleClass}" style="{@style}"
- title="{tagstring()}" dir="{@dir}"/>
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- </vpe:dnd>
- <vpe:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:if>
<vpe:if test="attrpresent('image')">
<vpe:template children="no" modify="no">
- <input type="image" src="{src(@image)}"
- class="{@styleClass}" style="{@style}"
title="{tagstring()}" />
+ <input type="image" src="{src(@image)}"
class="{@styleClass}"
+ style="{@style}" title="{tagstring()}"
disabled='disabled' />
<vpe:resize>
<vpe:width width-attr="style.width" />
<vpe:height height-attr="style.height" />
@@ -69,156 +41,188 @@
</vpe:textFormatting>
</vpe:template>
</vpe:if>
+ </vpe:if>
+ <!--else-->
+ <vpe:if test="not(attrpresent('image'))">
+ <vpe:template children="no" modify="no">
+ <input type="button" value="{iif(@value='','
',jsfvalue(@value))}"
+ class="{@styleClass}" style="{@style}"
title="{tagstring()}" dir="{@dir}" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
+ <vpe:if test="attrpresent('image')">
+ <vpe:template children="no" modify="no">
+ <input type="image" src="{src(@image)}"
class="{@styleClass}"
+ style="{@style}" title="{tagstring()}" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:if>
<!--end-of-else-->
</vpe:tag>
- <vpe:tag name="s:cache" case-sensitive="yes">
- <vpe:template children="yes" modify="yes">
- <span class="vpe-text"/>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="s:conversationId" case-sensitive="yes">
- <vpe:template children="yes" modify="yes" >
- <span class="vpe-text"/>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="s:conversationPropagation"
case-sensitive="yes">
- <vpe:template children="no" modify="no" />
- </vpe:tag>
-
- <vpe:tag name="s:convertDateTime" case-sensitive="yes">
- <vpe:template children="no" modify="no" />
- </vpe:tag>
-
- <vpe:tag name="s:convertEntity" case-sensitive="yes">
- <vpe:template children="no" modify="no" />
- </vpe:tag>
-
- <vpe:tag name="s:convertEnum" case-sensitive="yes">
- <vpe:template children="no" modify="no" />
- </vpe:tag>
-
- <vpe:tag name="s:decorate" case-sensitive="yes">
- <vpe:template children="yes" modify="yes"
-
class="org.jboss.tools.jsf.vpe.seam.template.SeamDecorateTemplate">
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="s:div" case-sensitive="yes">
- <vpe:template children="yes" modify="yes">
- <div style="{@style}" class="{@styleClass}" />
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="s:defaultAction" case-sensitive="yes">
- <vpe:template children="no" modify="no"/>
- </vpe:tag>
-
- <vpe:tag name="s:enumItem" case-sensitive="yes">
- <vpe:if test="hasinparents('h:selectManyCheckbox')">
- <vpe:template children="yes" modify="yes"
-
class="org.jboss.tools.jsf.vpe.seam.template.SeamCheckboxEnumItemTemplate">
- </vpe:template>
- </vpe:if>
- <vpe:if
-
test="hasinparents('h:selectManyListbox')|hasinparents('h:selectManyMenu')|hasinparents('h:selectOneListbox')|hasinparents('h:selectOneMenu')|hasinparents('rich:pickList')">
- <vpe:template children="yes" modify="yes"
-
class="org.jboss.tools.jsf.vpe.seam.template.SeamOptionEnumItemTemplate">
- </vpe:template>
- </vpe:if>
- <vpe:if
-
test="hasinparents('h:selectOneRadio')|hasinparents('x:selectOneRadio')">
- <vpe:template children="yes" modify="yes"
-
class="org.jboss.tools.jsf.vpe.seam.template.SeamRadioEnumItemTemplate">
- </vpe:template>
- </vpe:if>
- <vpe:if
-
test="hasinparents('x:selectManyCheckbox')|hasinparents('t:selectManyCheckbox')">
- <vpe:template children="no" modify="yes">
- <span title="{tagstring()}">
- <input type="checkbox" />
- <vpe:value expr="{jsfvalue(@itemLabel)}" />
- </span>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- </vpe:dnd>
- <vpe:breaker type="selectItem" />
- </vpe:template>
- </vpe:if>
- <vpe:if
- test="hasinparents('t:selectManyMenu')|
+ <vpe:tag name="s:cache" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <span class="vpe-text" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="s:conversationId" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <span class="vpe-text" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="s:conversationPropagation"
case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="s:convertDateTime" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="s:convertEntity" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="s:convertEnum" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="s:decorate" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes"
+ class="org.jboss.tools.jsf.vpe.seam.template.SeamDecorateTemplate">
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="s:div" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <div style="{@style}" class="{@styleClass}" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="s:defaultAction" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="s:enumItem" case-sensitive="yes">
+ <vpe:if test="hasinparents('h:selectManyCheckbox')">
+ <vpe:template children="yes" modify="yes"
+ class="org.jboss.tools.jsf.vpe.seam.template.SeamCheckboxEnumItemTemplate">
+ </vpe:template>
+ </vpe:if>
+ <vpe:if
+ test="hasinparents('h:selectManyListbox')|hasinparents('h:selectManyMenu')|hasinparents('h:selectOneListbox')|hasinparents('h:selectOneMenu')|hasinparents('rich:pickList')">
+ <vpe:template children="yes" modify="yes"
+ class="org.jboss.tools.jsf.vpe.seam.template.SeamOptionEnumItemTemplate">
+ </vpe:template>
+ </vpe:if>
+ <vpe:if
+ test="hasinparents('h:selectOneRadio')|hasinparents('x:selectOneRadio')">
+ <vpe:template children="yes" modify="yes"
+ class="org.jboss.tools.jsf.vpe.seam.template.SeamRadioEnumItemTemplate">
+ </vpe:template>
+ </vpe:if>
+ <vpe:if
+ test="hasinparents('x:selectManyCheckbox')|hasinparents('t:selectManyCheckbox')">
+ <vpe:template children="no" modify="yes">
+ <span title="{tagstring()}">
+ <input type="checkbox" />
+ <vpe:value expr="{jsfvalue(@itemLabel)}" />
+ </span>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:breaker type="selectItem" />
+ </vpe:template>
+ </vpe:if>
+ <vpe:if
+ test="hasinparents('t:selectManyMenu')|
hasinparents('x:selectOneRadio')|
hasinparents('x:selectOneMenu')">
- <vpe:template children="no" modify="yes">
- <option value="{@itemValue}"
title="{tagstring()}">
- <vpe:value expr="{jsfvalue(@itemLabel)}" />
- </option>
- </vpe:template>
- </vpe:if>
-
- </vpe:tag>
-
- <vpe:tag name="s:fileUpload" case-sensitive="yes">
- <vpe:template children="no" modify="no">
- <input type="file" style="{@style}"
class="{@styleClass}"
- title="{tagstring()}" size="{@size}" />
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="no" />
- </vpe:dnd>
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:textFormatting use-default-formats="yes">
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="s:formattedText" case-sensitive="yes">
- <vpe:template children="yes" modify="yes"
-
class="org.jboss.tools.jsf.vpe.seam.template.SeamFormattedTextTemplate">
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="s:fragment" case-sensitive="yes">
- <vpe:template children="yes" modify="yes" >
- <span class="vpe-text"/>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="s:graphicImage" case-sensitive="yes">
- <vpe:template children="no" modify="yes"
class="org.jboss.tools.jsf.vpe.seam.template.SeamGraphicImageTemplate" />
- </vpe:tag>
-
- <vpe:tag name="s:label" case-sensitive="yes">
- <vpe:template children="yes" modify="yes">
- <label style="{@style}" class="{@styleClass}"
title="{tagstring()}" for="{@for}">
- <vpe:value expr="{jsfvalue(@value)}"/>
- </label>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- <vpe:drop container="yes">
- <vpe:container-child tag-name="outputText"/>
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormatting use-default-formats="yes">
- <vpe:format type="BlockFormat" addChildren="deny"
handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler"
/>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="s:link" case-sensitive="yes">
- <vpe:template children="yes" modify="yes"
- class="org.jboss.tools.jsf.vpe.seam.template.SeamLinkTemplate">
- <vpe:dnd>
+ <vpe:template children="no" modify="yes">
+ <option value="{@itemValue}" title="{tagstring()}">
+ <vpe:value expr="{jsfvalue(@itemLabel)}" />
+ </option>
+ </vpe:template>
+ </vpe:if>
+
+ </vpe:tag>
+
+ <vpe:tag name="s:fileUpload" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ <input type="file" style="{@style}"
class="{@styleClass}"
+ title="{tagstring()}" size="{@size}" />
+ <vpe:dnd>
<vpe:drag start-enable="yes" />
+ <vpe:drop container="no" />
+ </vpe:dnd>
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:textFormatting use-default-formats="yes">
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="s:formattedText" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes"
+ class="org.jboss.tools.jsf.vpe.seam.template.SeamFormattedTextTemplate">
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="s:fragment" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <span class="vpe-text" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="s:graphicImage" case-sensitive="yes">
+ <vpe:template children="no" modify="yes"
+ class="org.jboss.tools.jsf.vpe.seam.template.SeamGraphicImageTemplate"
/>
+ </vpe:tag>
+
+ <vpe:tag name="s:label" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <label style="{@style}" class="{@styleClass}"
title="{tagstring()}"
+ for="{@for}">
+ <vpe:value expr="{jsfvalue(@value)}" />
+ </label>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
<vpe:drop container="yes">
<vpe:container-child tag-name="outputText" />
</vpe:drop>
</vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ <vpe:format type="BlockFormat" addChildren="deny"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler"
/>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="s:link" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes"
+ class="org.jboss.tools.jsf.vpe.seam.template.SeamLinkTemplate">
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="outputText" />
+ </vpe:drop>
+ </vpe:dnd>
<vpe:textFormatting>
<vpe:format type="BoldFormat">
<vpe:formatAttribute type="style" />
@@ -240,114 +244,160 @@
</vpe:format>
</vpe:textFormatting>
<vpe:pseudoContent />
- </vpe:template>
- </vpe:tag>
+ </vpe:template>
+ </vpe:tag>
- <vpe:tag name="s:message" case-sensitive="yes">
- <vpe:template children="no" modify="no">
- <span class="{@styleClass}" style="{@style}">
- Error Messages
+ <vpe:tag name="s:message" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ <span class="{@styleClass}" style="{@style}">
+ Error Messages
</span>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="no"/>
- </vpe:dnd>
- <vpe:textFormatting use-default-formats="yes">
- <vpe:format type="BlockFormat"
handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler"/>
- </vpe:textFormatting>
- </vpe:template>
- </vpe:tag>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="no" />
+ </vpe:dnd>
+ <vpe:textFormatting use-default-formats="yes">
+ <vpe:format type="BlockFormat"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler"
/>
+ </vpe:textFormatting>
+ </vpe:template>
+ </vpe:tag>
- <vpe:tag name="s:remote" case-sensitive="yes">
- <vpe:template children="yes" modify="yes">
- <span class="vpe-text"/>
- </vpe:template>
- </vpe:tag>
+ <vpe:tag name="s:remote" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <span class="vpe-text" />
+ </vpe:template>
+ </vpe:tag>
- <vpe:tag name="s:selectDate" case-sensitive="yes">
- <vpe:template children="yes" modify="yes"
- namespaceIdentifier="org.jboss.tools.jsf.vpe.richfaces"
-
class="org.jboss.tools.jsf.vpe.richfaces.template.RichFacesCalendarTemplate">
- </vpe:template>
- </vpe:tag>
+ <vpe:tag name="s:selectDate" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes"
+ namespaceIdentifier="org.jboss.tools.jsf.vpe.richfaces"
+ class="org.jboss.tools.jsf.vpe.richfaces.template.RichFacesCalendarTemplate">
+ </vpe:template>
+ </vpe:tag>
- <vpe:tag name="s:selectItems" case-sensitive="yes">
- <vpe:if test="hasinparents('h:selectManyCheckbox')">
- <vpe:template children="yes" modify="yes"
namespaceIdentifier="org.jboss.tools.jsf.vpe.jsf"
-
class="org.jboss.tools.jsf.vpe.jsf.template.selectitem.JsfCheckboxSelectItemsTemplate">
- </vpe:template>
- </vpe:if>
- <vpe:if
-
test="hasinparents('h:selectManyListbox')|hasinparents('h:selectManyMenu')|hasinparents('h:selectOneListbox')|hasinparents('h:selectOneMenu')|hasinparents('rich:pickList')">
- <vpe:template children="yes" modify="yes"
namespaceIdentifier="org.jboss.tools.jsf.vpe.jsf"
-
class="org.jboss.tools.jsf.vpe.jsf.template.selectitem.JsfOptionSelectItemsTemplate">
- </vpe:template>
- </vpe:if>
- <vpe:if
-
test="hasinparents('h:selectOneRadio')|hasinparents('x:selectOneRadio')">
- <vpe:template children="yes" modify="yes"
namespaceIdentifier="org.jboss.tools.jsf.vpe.jsf"
-
class="org.jboss.tools.jsf.vpe.jsf.template.selectitem.JsfRadioSelectItemsTemplate">
- </vpe:template>
- </vpe:if>
- <vpe:if
-
test="hasinparents('x:selectManyCheckbox')|hasinparents('t:selectManyCheckbox')">
- <vpe:template children="no" modify="yes">
- <span title="{tagstring()}">
- <input type="checkbox" />
- <vpe:value expr="{jsfvalue(@itemLabel)}" />
- </span>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- </vpe:dnd>
- <vpe:breaker type="selectItem" />
- </vpe:template>
- </vpe:if>
- <vpe:if
- test="hasinparents('t:selectManyMenu')|
+ <vpe:tag name="s:selectItems" case-sensitive="yes">
+ <vpe:if test="hasinparents('h:selectManyCheckbox')">
+ <vpe:template children="yes" modify="yes"
+ namespaceIdentifier="org.jboss.tools.jsf.vpe.jsf"
+ class="org.jboss.tools.jsf.vpe.jsf.template.selectitem.JsfCheckboxSelectItemsTemplate">
+ </vpe:template>
+ </vpe:if>
+ <vpe:if
+ test="hasinparents('h:selectManyListbox')|hasinparents('h:selectManyMenu')|hasinparents('h:selectOneListbox')|hasinparents('h:selectOneMenu')|hasinparents('rich:pickList')">
+ <vpe:template children="yes" modify="yes"
+ namespaceIdentifier="org.jboss.tools.jsf.vpe.jsf"
+ class="org.jboss.tools.jsf.vpe.jsf.template.selectitem.JsfOptionSelectItemsTemplate">
+ </vpe:template>
+ </vpe:if>
+ <vpe:if
+ test="hasinparents('h:selectOneRadio')|hasinparents('x:selectOneRadio')">
+ <vpe:template children="yes" modify="yes"
+ namespaceIdentifier="org.jboss.tools.jsf.vpe.jsf"
+ class="org.jboss.tools.jsf.vpe.jsf.template.selectitem.JsfRadioSelectItemsTemplate">
+ </vpe:template>
+ </vpe:if>
+ <vpe:if
+ test="hasinparents('x:selectManyCheckbox')|hasinparents('t:selectManyCheckbox')">
+ <vpe:template children="no" modify="yes">
+ <span title="{tagstring()}">
+ <input type="checkbox" />
+ <vpe:value expr="{jsfvalue(@itemLabel)}" />
+ </span>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:breaker type="selectItem" />
+ </vpe:template>
+ </vpe:if>
+ <vpe:if
+ test="hasinparents('t:selectManyMenu')|
hasinparents('x:selectOneRadio')|
hasinparents('x:selectOneMenu')">
- <vpe:template children="no" modify="yes">
- <option value="{@itemValue}"
title="{tagstring()}">
- <vpe:value expr="{jsfvalue(@itemLabel)}" />
- </option>
- </vpe:template>
- </vpe:if>
- </vpe:tag>
+ <vpe:template children="no" modify="yes">
+ <option value="{@itemValue}" title="{tagstring()}">
+ <vpe:value expr="{jsfvalue(@itemLabel)}" />
+ </option>
+ </vpe:template>
+ </vpe:if>
+ </vpe:tag>
- <vpe:tag name="s:span" case-sensitive="yes">
- <vpe:template children="yes" modify="yes">
- <span style="{@style}" class="{@styleClass}" />
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="s:transformImageSize" case-sensitive="yes">
- <vpe:template children="no" modify="no" />
- </vpe:tag>
-
- <vpe:tag name="s:transformImageBlur" case-sensitive="yes">
- <vpe:template children="no" modify="no" />
- </vpe:tag>
-
- <vpe:tag name="s:transformImageType" case-sensitive="yes">
- <vpe:template children="no" modify="no" />
- </vpe:tag>
-
- <vpe:tag name="s:validate" case-sensitive="yes">
- <vpe:template children="no" modify="no" />
- </vpe:tag>
-
- <vpe:tag name="s:validateAll" case-sensitive="yes">
- <vpe:template children="yes" modify="yes">
- <span class="vpe-text"/>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="s:validateFormattedText"
case-sensitive="yes">
- <vpe:template children="no" modify="no"/>
- </vpe:tag>
-
- <vpe:tag name="s:taskId" case-sensitive="yes">
- <vpe:template children="no" modify="no"/>
- </vpe:tag>
-
+ <vpe:tag name="s:span" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <span style="{@style}" class="{@styleClass}" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="s:transformImageSize" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="s:transformImageBlur" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="s:transformImageType" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="s:validate" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="s:validateAll" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <span class="vpe-text" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="s:validateFormattedText" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="s:taskId" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="m:message" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <div/>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="m:body" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes"
class="org.jboss.tools.jsf.vpe.seam.template.SeamMailBodyTemplate"/>
+ </vpe:tag>
+
+ <vpe:tag name="m:from" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="m:to" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="m:subject" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="m:attachment" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="m:bcc" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="m:cc" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="m:header" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="m:replyTo" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
</vpe:templates>
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/attachment.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/attachment.xhtml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/attachment.xhtml 2009-11-13
17:57:01 UTC (rev 18683)
@@ -0,0 +1,7 @@
+<m:message
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:m="http://jboss.com/products/seam/mail"
+
xmlns:h="http://java.sun.com/jsf/html">
+
+ <m:attachment id="id1" value="img.img"/>
+
+</m:message>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/bcc.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/bcc.xhtml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/bcc.xhtml 2009-11-13
17:57:01 UTC (rev 18683)
@@ -0,0 +1,7 @@
+<m:message
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:m="http://jboss.com/products/seam/mail"
+
xmlns:h="http://java.sun.com/jsf/html">
+
+ <m:bcc id="id1" name="Yura"
adress="yzhishko@exadel.com"></m:bcc>
+
+</m:message>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/body.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/body.xhtml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/body.xhtml 2009-11-13
17:57:01 UTC (rev 18683)
@@ -0,0 +1,22 @@
+<m:message
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:m="http://jboss.com/products/seam/mail"
+
xmlns:h="http://java.sun.com/jsf/html">
+
+
+ <m:body id="id1" type="plain">
+ <p style="color:red"><h:outputText value="Dear Yura"
/>,</p>
+ <p style="color:green">You can try out Seam by visiting
+ <a
href="http://labs.jboss.com/jbossseam">http://labs.jboss.com...
+ <p>Regards,</p>
+ <p>Pete</p>
+ </m:body>
+
+ <m:body id="id2">
+ <p style="color:red"><h:outputText value="Dear Yura"
/>,</p>
+ <p style="color:green">You can try out Seam by visiting
+ <a
href="http://labs.jboss.com/jbossseam">http://labs.jboss.com...
+ <p>Regards,</p>
+ <p>Pete</p>
+ </m:body>
+
+</m:message>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/body.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/body.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/body.xhtml.xml 2009-11-13
17:57:01 UTC (rev 18683)
@@ -0,0 +1,62 @@
+<tests>
+ <test id="id2">
+ <DIV>
+<P>
+<SPAN>
+Dear Yura
+</SPAN>
+<SPAN>
+,
+</SPAN>
+</P>
+<P>
+<SPAN>
+You can try out Seam by visiting
+</SPAN><A><SPAN>http://labs.jboss.com/jbossseam</SPAN></A>
+<SPAN>
+.
+</SPAN>
+</P>
+<P>
+<SPAN>
+Regards,
+</SPAN>
+</P>
+<P>
+<SPAN>
+Pete
+</SPAN>
+</P>
+</DIV>
+ </test>
+ <test id="id2">
+ <DIV>
+<P STYLE="color: red; -moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Dear Yura
+</SPAN>
+<SPAN CLASS="vpe-text">
+,
+</SPAN>
+</P>
+<P STYLE="color: green; -moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+You can try out Seam by visiting
+</SPAN><A STYLE="-moz-user-modify: read-write;"><SPAN
CLASS="vpe-text">http://labs.jboss.com/jbossseam</SPAN>...
+<SPAN CLASS="vpe-text">
+.
+</SPAN>
+</P>
+<P STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Regards,
+</SPAN>
+</P>
+<P STYLE="-moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Pete
+</SPAN>
+</P>
+</DIV>
+ </test>
+</tests>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/cc.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/cc.xhtml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/cc.xhtml 2009-11-13
17:57:01 UTC (rev 18683)
@@ -0,0 +1,7 @@
+<m:message
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:m="http://jboss.com/products/seam/mail"
+
xmlns:h="http://java.sun.com/jsf/html">
+
+ <m:cc id="id1" name="Yura"
adress="yzhishko@exadel.com"></m:cc>
+
+</m:message>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/from.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/from.xhtml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/from.xhtml 2009-11-13
17:57:01 UTC (rev 18683)
@@ -0,0 +1,7 @@
+<m:message
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:m="http://jboss.com/products/seam/mail"
+
xmlns:h="http://java.sun.com/jsf/html">
+
+ <m:from id="id1" name="Peter"
address="devill-87(a)mail.com" />
+
+</m:message>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/header.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/header.xhtml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/header.xhtml 2009-11-13
17:57:01 UTC (rev 18683)
@@ -0,0 +1,7 @@
+<m:message
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:m="http://jboss.com/products/seam/mail"
+
xmlns:h="http://java.sun.com/jsf/html">
+
+ <m:header id="id1" name="X-Sent-From" value="JBoss
Seam"></m:header>
+
+</m:message>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/message.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/message.xhtml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/message.xhtml 2009-11-13
17:57:01 UTC (rev 18683)
@@ -0,0 +1,9 @@
+<m:message id="id1"
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:m="http://jboss.com/products/seam/mail"
+
xmlns:h="http://java.sun.com/jsf/html">
+
+ <m:body>
+ <p style="color:red"><h:outputText value="Dear Yura"
/>,</p>
+ </m:body>
+
+</m:message>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/message.xhtml.xml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/message.xhtml.xml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/message.xhtml.xml 2009-11-13
17:57:01 UTC (rev 18683)
@@ -0,0 +1,16 @@
+<tests>
+ <test id="id1">
+ <DIV STYLE="-moz-user-modify: read-write;">
+<DIV>
+<P STYLE="color: red; -moz-user-modify: read-write;">
+<SPAN CLASS="vpe-text">
+Dear Yura
+</SPAN>
+<SPAN CLASS="vpe-text">
+,
+</SPAN>
+</P>
+</DIV>
+</DIV>
+ </test>
+</tests>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/replyTo.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/replyTo.xhtml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/replyTo.xhtml 2009-11-13
17:57:01 UTC (rev 18683)
@@ -0,0 +1,7 @@
+<m:message
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:m="http://jboss.com/products/seam/mail"
+
xmlns:h="http://java.sun.com/jsf/html">
+
+ <m:replyTo id="id1"
adress="yzhishko@exadel.com"></m:replyTo>
+
+</m:message>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/subject.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/subject.xhtml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/subject.xhtml 2009-11-13
17:57:01 UTC (rev 18683)
@@ -0,0 +1,7 @@
+<m:message
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:m="http://jboss.com/products/seam/mail"
+
xmlns:h="http://java.sun.com/jsf/html">
+
+ <m:subject id="id1">Try out Seam!</m:subject>
+
+</m:message>
\ No newline at end of file
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/to.xhtml
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/to.xhtml
(rev 0)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/SeamTest/WebContent/pages/components/mail/to.xhtml 2009-11-13
17:57:01 UTC (rev 18683)
@@ -0,0 +1,7 @@
+<m:message
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:m="http://jboss.com/products/seam/mail"
+
xmlns:h="http://java.sun.com/jsf/html">
+
+ <m:to id="id1" name="Yura
Zhishko">yzhishko@mail.ru</m:to>
+
+</m:message>
\ No newline at end of file
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentContentTest.java
===================================================================
---
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentContentTest.java 2009-11-13
15:22:37 UTC (rev 18682)
+++
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentContentTest.java 2009-11-13
17:57:01 UTC (rev 18683)
@@ -4,125 +4,168 @@
public class SeamComponentContentTest extends ComponentContentTest {
- public SeamComponentContentTest(String name) {
- super(name);
- setCheckWarning(false);
- }
+ public SeamComponentContentTest(String name) {
+ super(name);
+ setCheckWarning(false);
+ }
- @Override
- protected String getTestProjectName() {
- return SeamAllTests.IMPORT_PROJECT_NAME;
- }
-
- public void testButton() throws Throwable {
- performContentTest("components/button.xhtml"); //$NON-NLS-1$
- }
-
- public void testCache() throws Throwable {
- performContentTest("components/cache.xhtml"); //$NON-NLS-1$
- }
-
- public void testConversationId() throws Throwable {
- performContentTest("components/conversationId.xhtml"); //$NON-NLS-1$
//$NON-NLS-2$
- }
+ @Override
+ protected String getTestProjectName() {
+ return SeamAllTests.IMPORT_PROJECT_NAME;
+ }
- public void testConvertDateTime() throws Throwable {
- performInvisibleTagTest("components/convertDateTime.xhtml", "id1");
//$NON-NLS-1$ //$NON-NLS-2$
- }
-
- public void testConvertEntity() throws Throwable {
- performInvisibleTagTest("components/convertEntity.xhtml", "id1");
//$NON-NLS-1$ //$NON-NLS-2$
- }
-
- public void testConvertEnum() throws Throwable {
- performInvisibleTagTest("components/convertEnum.xhtml", "id1");
//$NON-NLS-1$ //$NON-NLS-2$
- }
-
- public void testDecorate() throws Throwable {
- performContentTest("components/decorate.xhtml"); //$NON-NLS-1$
- }
-
- public void testDefaultAction() throws Throwable {
- performInvisibleTagTest("components/defaultAction.xhtml", "id1");
//$NON-NLS-1$ //$NON-NLS-2$
- }
-
- public void testDiv() throws Throwable {
- performContentTest("components/div.xhtml"); //$NON-NLS-1$
- }
-
- public void testEnumItem() throws Throwable {
- performContentTest("components/enumItem.xhtml"); //$NON-NLS-1$
- }
-
- public void testFileUpload() throws Throwable {
- performContentTest("components/fileUpload.xhtml"); //$NON-NLS-1$
- }
-
- public void testFormattedText() throws Throwable {
- performContentTest("components/formattedText.xhtml"); //$NON-NLS-1$
- }
-
- public void testFragment() throws Throwable {
- performContentTest("components/fragment.xhtml"); //$NON-NLS-1$
- }
-
- public void testGraphicImage() throws Throwable {
- performContentTest("components/graphicImage.xhtml"); //$NON-NLS-1$
- }
-
- public void testLabel() throws Throwable {
- performContentTest("components/label.xhtml"); //$NON-NLS-1$
- }
-
- public void testLink() throws Throwable {
- performContentTest("components/link.xhtml"); //$NON-NLS-1$
- }
-
- public void testMessage() throws Throwable {
- performContentTest("components/message.xhtml"); //$NON-NLS-1$
- }
-
- public void testRemote() throws Throwable {
- performContentTest("components/remote.xhtml"); //$NON-NLS-1$
- }
-
- public void testSelectDate() throws Throwable {
- performContentTest("components/selectDate.xhtml"); //$NON-NLS-1$
- }
-
- public void testSelectItems() throws Throwable {
- performContentTest("components/selectItems.xhtml"); //$NON-NLS-1$
- }
-
- public void testSpan() throws Throwable {
- performContentTest("components/span.xhtml"); //$NON-NLS-1$
- }
-
- public void testTransformImageSize() throws Throwable {
- performContentTest("components/transformImageSize.xhtml"); //$NON-NLS-1$
- }
-
- public void testTransformImageBlur() throws Throwable {
- performInvisibleTagTest("components/transformImageBlur.xhtml",
"id1"); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- public void testTransformImageType() throws Throwable {
- performInvisibleTagTest("components/transformImageType.xhtml",
"id1"); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- public void testValidate() throws Throwable {
- performInvisibleTagTest("components/validate.xhtml", "id1");
//$NON-NLS-1$ //$NON-NLS-2$
- }
-
- public void testValidateAll() throws Throwable {
- performContentTest("components/validateAll.xhtml"); //$NON-NLS-1$
//$NON-NLS-2$
- }
+ public void testButton() throws Throwable {
+ performContentTest("components/button.xhtml"); //$NON-NLS-1$
+ }
- public void testValidateFormattedText() throws Throwable{
- performInvisibleTagTest("components/validateFormattedText.xhtml",
"id1"); //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- public void testTaskId() throws Throwable{
- performInvisibleTagTest("components/taskId.xhtml", "id1");
//$NON-NLS-1$ //$NON-NLS-2$
- }
+ public void testCache() throws Throwable {
+ performContentTest("components/cache.xhtml"); //$NON-NLS-1$
+ }
+
+ public void testConversationId() throws Throwable {
+ performContentTest("components/conversationId.xhtml"); //$NON-NLS-1$
//$NON-NLS-2$
+ }
+
+ public void testConvertDateTime() throws Throwable {
+ performInvisibleTagTest("components/convertDateTime.xhtml", "id1");
//$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public void testConvertEntity() throws Throwable {
+ performInvisibleTagTest("components/convertEntity.xhtml", "id1");
//$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public void testConvertEnum() throws Throwable {
+ performInvisibleTagTest("components/convertEnum.xhtml", "id1");
//$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public void testDecorate() throws Throwable {
+ performContentTest("components/decorate.xhtml"); //$NON-NLS-1$
+ }
+
+ public void testDefaultAction() throws Throwable {
+ performInvisibleTagTest("components/defaultAction.xhtml", "id1");
//$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public void testDiv() throws Throwable {
+ performContentTest("components/div.xhtml"); //$NON-NLS-1$
+ }
+
+ public void testEnumItem() throws Throwable {
+ performContentTest("components/enumItem.xhtml"); //$NON-NLS-1$
+ }
+
+ public void testFileUpload() throws Throwable {
+ performContentTest("components/fileUpload.xhtml"); //$NON-NLS-1$
+ }
+
+ public void testFormattedText() throws Throwable {
+ performContentTest("components/formattedText.xhtml"); //$NON-NLS-1$
+ }
+
+ public void testFragment() throws Throwable {
+ performContentTest("components/fragment.xhtml"); //$NON-NLS-1$
+ }
+
+ public void testGraphicImage() throws Throwable {
+ performContentTest("components/graphicImage.xhtml"); //$NON-NLS-1$
+ }
+
+ public void testLabel() throws Throwable {
+ performContentTest("components/label.xhtml"); //$NON-NLS-1$
+ }
+
+ public void testLink() throws Throwable {
+ performContentTest("components/link.xhtml"); //$NON-NLS-1$
+ }
+
+ public void testMessage() throws Throwable {
+ performContentTest("components/message.xhtml"); //$NON-NLS-1$
+ }
+
+ public void testRemote() throws Throwable {
+ performContentTest("components/remote.xhtml"); //$NON-NLS-1$
+ }
+
+ public void testSelectDate() throws Throwable {
+ performContentTest("components/selectDate.xhtml"); //$NON-NLS-1$
+ }
+
+ public void testSelectItems() throws Throwable {
+ performContentTest("components/selectItems.xhtml"); //$NON-NLS-1$
+ }
+
+ public void testSpan() throws Throwable {
+ performContentTest("components/span.xhtml"); //$NON-NLS-1$
+ }
+
+ public void testTransformImageSize() throws Throwable {
+ performContentTest("components/transformImageSize.xhtml"); //$NON-NLS-1$
+ }
+
+ public void testTransformImageBlur() throws Throwable {
+ performInvisibleTagTest("components/transformImageBlur.xhtml",
"id1"); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public void testTransformImageType() throws Throwable {
+ performInvisibleTagTest("components/transformImageType.xhtml",
"id1"); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public void testValidate() throws Throwable {
+ performInvisibleTagTest("components/validate.xhtml", "id1");
//$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public void testValidateAll() throws Throwable {
+ performContentTest("components/validateAll.xhtml"); //$NON-NLS-1$
//$NON-NLS-2$
+ }
+
+ public void testValidateFormattedText() throws Throwable {
+ performInvisibleTagTest("components/validateFormattedText.xhtml",
"id1"); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ public void testTaskId() throws Throwable {
+ performInvisibleTagTest("components/taskId.xhtml", "id1");
//$NON-NLS-1$ //$NON-NLS-2$
+ }
+
+ //mail components
+
+ public void testMailMessage() throws Throwable{
+ performContentTest("components/mail/message.xhtml");
+ }
+
+ public void testMailBody() throws Throwable{
+ performContentTest("components/mail/body.xhtml");
+ }
+
+ public void testMailFrom() throws Throwable{
+ performInvisibleTagTest("components/mail/from.xhtml", "id1");
+ }
+
+ public void testMailTo() throws Throwable{
+ performInvisibleTagTest("components/mail/to.xhtml", "id1");
+ }
+
+ public void testMailSubject() throws Throwable{
+ performInvisibleTagTest("components/mail/subject.xhtml", "id1");
+ }
+
+ public void testMailAttachment() throws Throwable{
+ performInvisibleTagTest("components/mail/attachment.xhtml",
"id1");
+ }
+
+ public void testMailBcc() throws Throwable{
+ performInvisibleTagTest("components/mail/bcc.xhtml", "id1");
+ }
+
+ public void testMailCc() throws Throwable{
+ performInvisibleTagTest("components/mail/cc.xhtml", "id1");
+ }
+
+ public void testMailHeader() throws Throwable{
+ performInvisibleTagTest("components/mail/header.xhtml", "id1");
+ }
+
+ public void testMailReplyTo() throws Throwable{
+ performInvisibleTagTest("components/mail/replyTo.xhtml", "id1");
+ }
+
}