[jboss-cvs] jboss-seam/seam-gen/view ...
Gavin King
gavin.king at jboss.com
Sun Dec 3 04:20:00 EST 2006
User: gavin
Date: 06/12/03 04:20:00
Modified: seam-gen/view edit.xhtml.ftl
Log:
use textArea for long fields, and adjust field size
Revision Changes Path
1.11 +10 -1 jboss-seam/seam-gen/view/edit.xhtml.ftl
(In the diff below, changes in quantity of whitespace are not shown.)
Index: edit.xhtml.ftl
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/seam-gen/view/edit.xhtml.ftl,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -b -r1.10 -r1.11
--- edit.xhtml.ftl 3 Dec 2006 09:02:26 -0000 1.10
+++ edit.xhtml.ftl 3 Dec 2006 09:20:00 -0000 1.11
@@ -60,6 +60,15 @@
<#elseif property.value.typeName == "boolean">
<h:selectBooleanCheckbox id="${property.name}"
value="${'#'}{${homeName}.instance.${property.name}}"/>
+<#elseif property.value.typeName == "string">
+<#if property.columnIterator.next().length gt 200>
+ <h:inputTextarea id="${property.name}"
+ value="${'#'}{${homeName}.instance.${property.name}}"/>
+<#else>
+ <h:inputText id="${property.name}"
+ size="${property.columnIterator.next().length}"
+ value="${'#'}{${homeName}.instance.${property.name}}"/>
+</#if>
<#else>
<h:inputText id="${property.name}"
value="${'#'}{${homeName}.instance.${property.name}}"/>
More information about the jboss-cvs-commits
mailing list