Added fixedTextarea().
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1588 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -329,6 +329,15 @@ public class FormTool
|
|||||||
* parameters, and default text.
|
* parameters, and default text.
|
||||||
*/
|
*/
|
||||||
public String textarea (String name, String extra, Object defaultValue)
|
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();
|
StringBuffer buf = new StringBuffer();
|
||||||
buf.append("<textarea name=\"").append(name).append("\"");
|
buf.append("<textarea name=\"").append(name).append("\"");
|
||||||
@@ -336,7 +345,7 @@ public class FormTool
|
|||||||
buf.append(" ").append(extra);
|
buf.append(" ").append(extra);
|
||||||
}
|
}
|
||||||
buf.append(">");
|
buf.append(">");
|
||||||
buf.append(getValue(name, defaultValue));
|
buf.append(value);
|
||||||
buf.append("</textarea>");
|
buf.append("</textarea>");
|
||||||
return buf.toString();
|
return buf.toString();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user