From 48be8ab71ae726e769c340422f6f9fc37f8232db Mon Sep 17 00:00:00 2001 From: ray Date: Fri, 11 Feb 2005 18:58:06 +0000 Subject: [PATCH] Added fixedTextarea(). git-svn-id: https://samskivert.googlecode.com/svn/trunk@1588 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- .../src/java/com/samskivert/velocity/FormTool.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/projects/samskivert/src/java/com/samskivert/velocity/FormTool.java b/projects/samskivert/src/java/com/samskivert/velocity/FormTool.java index 627185cb..b931ce44 100644 --- a/projects/samskivert/src/java/com/samskivert/velocity/FormTool.java +++ b/projects/samskivert/src/java/com/samskivert/velocity/FormTool.java @@ -329,6 +329,15 @@ public class FormTool * parameters, and default text. */ public String textarea (String name, String extra, Object defaultValue) + { + return fixedTextarea(name, extra, getValue(name, defaultValue)); + } + + /** + * Construct a text area with the specified name, optional extra parameters + * and the specified text. + */ + public String fixedTextarea (String name, String extra, Object value) { StringBuffer buf = new StringBuffer(); buf.append(""); return buf.toString(); }