Author: tam_nguyen
Date: 2009-11-10 04:34:16 -0500 (Tue, 10 Nov 2009)
New Revision: 542
Modified:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/UIFormTextAreaInput.java
Log:
GTNPORTAL-223 UIFormTextAreaInput don't use maxlength value
Modified:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/UIFormTextAreaInput.java
===================================================================
---
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/UIFormTextAreaInput.java 2009-11-10
08:52:48 UTC (rev 541)
+++
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/UIFormTextAreaInput.java 2009-11-10
09:34:16 UTC (rev 542)
@@ -27,7 +27,7 @@
* Represents a textarea element
* The value is stored in UIFormInputBase
*/
-public class UIFormTextAreaInput extends UIFormStringInput
+public class UIFormTextAreaInput extends UIFormInputBase<String>
{
/**
* number of rows
@@ -39,10 +39,18 @@
*/
private int columns = 30;
- public UIFormTextAreaInput(String name, String bindingExpression, String value)
- {
- super(name, bindingExpression, value);
+ public UIFormTextAreaInput(String name, String bindingExpression, String value) {
+ super(name, bindingExpression, String.class);
+ this.value_ = value ;
}
+
+ @SuppressWarnings("unused")
+ public void decode(Object input, WebuiRequestContext context) throws Exception {
+ String val = (String) input ;
+ if((val == null || val.length() == 0)) return ;
+ value_ = val ;
+ if(value_ != null && value_.length() == 0) value_ = null ;
+ }
public void processRender(WebuiRequestContext context) throws Exception
{
Show replies by date