Author: sdzmitrovich
Date: 2007-12-26 10:18:13 -0500 (Wed, 26 Dec 2007)
New Revision: 5451
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/templates/vpe-templates-jsf.xml
Log:
http://jira.jboss.com/jira/browse/JBIDE-1467
http://jira.jboss.com/jira/browse/JBIDE-1501
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/templates/vpe-templates-jsf.xml
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/templates/vpe-templates-jsf.xml 2007-12-26
15:17:24 UTC (rev 5450)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/templates/vpe-templates-jsf.xml 2007-12-26
15:18:13 UTC (rev 5451)
@@ -671,46 +671,83 @@
</vpe:tag>
<vpe:tag name="h:selectOneListbox" case-sensitive="yes">
- <vpe:template children="yes" modify="yes">
- <select size="{@size}" style="{@style}"
class="{@styleClass}" title="{tagstring()}"/>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- <vpe:drop container="yes">
- <vpe:container-child tag-name="selectItem"/>
- <vpe:container-child tag-name="selectItems"/>
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormating>
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- </vpe:textFormating>
- </vpe:template>
+ <vpe:if test="attrpresent('size')">
+ <vpe:template children="yes" modify="yes">
+ <select size="{@size}" style="{@style}"
+ class="{@styleClass}" title="{tagstring()}" />
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="selectItem" />
+ <vpe:container-child tag-name="selectItems" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:if>
+ <vpe:template children="yes" modify="yes">
+ <select size="3" style="{@style}"
class="{@styleClass}"
+ title="{tagstring()}" />
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="selectItem" />
+ <vpe:container-child tag-name="selectItems" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
</vpe:tag>
<vpe:tag name="h:selectManyListbox" case-sensitive="yes">
<vpe:if test="attrpresent('size')">
<vpe:template children="yes" modify="yes">
<select size="{@size}" style="{@style}"
- class="{@styleClass}" title="{tagstring()}" />
+ class="{@styleClass}" title="{tagstring()}"
multiple="multiple" />
<vpe:dnd>
<vpe:drag start-enable="yes" />
<vpe:drop container="yes">
@@ -745,7 +782,7 @@
</vpe:if>
<vpe:template children="yes" modify="yes">
<select size="3" style="{@style}"
class="{@styleClass}"
- title="{tagstring()}" />
+ title="{tagstring()}" multiple="multiple"/>
<vpe:dnd>
<vpe:drag start-enable="yes" />
<vpe:drop container="yes">
@@ -821,7 +858,7 @@
<vpe:tag name="h:selectManyMenu" case-sensitive="yes">
<vpe:template children="yes" modify="yes">
- <select style="{@style}" class="{@styleClass}"
title="{tagstring()}"/>
+ <select style="{@style}" multiple="multiple"
class="{@styleClass}" title="{tagstring()}" size="1"/>
<vpe:dnd>
<vpe:drag start-enable="yes"/>
<vpe:drop container="yes">
@@ -859,7 +896,7 @@
<vpe:if
test="hasinparents('h:selectManyCheckbox')|hasinparents('x:selectManyCheckbox')|hasinparents('t:selectManyCheckbox')">
<vpe:template children="no" modify="yes">
<span title="{tagstring()}">
- <input type="checkbox"/>
+ <input type="checkbox" />
<vpe:value expr="{jsfvalue(@itemLabel)}"/>
</span>
<vpe:dnd>
@@ -869,12 +906,8 @@
</vpe:template>
</vpe:if>
<vpe:if
test="hasinparents('h:selectOneRadio')|hasinparents('x:selectOneRadio')">
- <vpe:template children="no" modify="yes">
- <span title="{tagstring()}">
- <input type="radio"/>
- <vpe:value expr="{jsfvalue(@itemLabel)}"/>
- </span>
- <vpe:breaker type="selectItem"/>
+ <vpe:template children="no" modify="yes"
class="org.jboss.tools.vpe.editor.template.JsfRadioSelectItemTemplate">
+
</vpe:template>
</vpe:if>
<vpe:if test="hasinparents('h:selectOneListbox')|
@@ -930,7 +963,7 @@
<vpe:tag name="h:selectOneMenu" case-sensitive="yes">
<vpe:template children="yes" modify="no">
- <select>
+ <select >
</select>
<vpe:dnd>
<vpe:drag start-enable="yes"/>