Author: vyemialyanchyk
Date: 2007-11-05 12:45:17 -0500 (Mon, 05 Nov 2007)
New Revision: 4715
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/templates/vpe-templates-seam.xml
Log:
http://jira.jboss.org/jira/browse/JBIDE-1213
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 2007-11-05
17:38:39 UTC (rev 4714)
+++
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/templates/vpe-templates-seam.xml 2007-11-05
17:45:17 UTC (rev 4715)
@@ -79,24 +79,23 @@
</vpe:template>
</vpe:tag>
- <vpe:tag name="s:button" case-sensitive="yes">
- <vpe:if test="attrpresent('value')">
- <vpe:template children="false" modify="yes">
- <button type="{@type}" value="{jsfvalue(@value)}"
- class="{@styleClass}" style="{@style}"
title="{tagstring()}">
- <vpe:value expr="{@value}" />
- </button>
+ <vpe:tag name="s:button" case-sensitive="yes">
+ <vpe:if test="@type=''">
+ <vpe:template children="no" modify="no">
+ <input type="submit" value="{@value}"
class="{@styleClass}" style="{@style}"
title="{tagstring()}"/>
</vpe:template>
</vpe:if>
- <vpe:if test="not(attrpresent('value'))">
- <vpe:template children="false" modify="yes">
- <button type="{@type}" value="{jsfvalue(@value)}"
- class="{@styleClass}" style="{@style}"
title="{tagstring()}">
- Submit Query
- </button>
+ <vpe:if
test="(@type='button')|(@type='reset')|(@type='submit')">
+ <vpe:template children="no" modify="no">
+ <input type="{@type}" value="{@value}"
class="{@styleClass}" style="{@style}"
title="{tagstring()}"/>
</vpe:template>
</vpe:if>
- </vpe:tag>
+ <vpe:if test="@type='image'">
+ <vpe:template children="no" modify="no">
+ <input type="{@type}" src="{src(@image)}"
value="{@value}" class="{@styleClass}" style="{@style}"
title="{tagstring()}"/>
+ </vpe:template>
+ </vpe:if>
+ </vpe:tag>
<vpe:tag name="s:link" case-sensitive="yes">
<vpe:template children="yes" modify="yes">