Author: tan_pham_dinh
Date: 2010-01-27 05:49:38 -0500 (Wed, 27 Jan 2010)
New Revision: 1454
Modified:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/UIFormMultiValueInputSet.java
Log:
GTNPORTAL-560: Create MultiValued filed
Modified:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/UIFormMultiValueInputSet.java
===================================================================
---
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/UIFormMultiValueInputSet.java 2010-01-27
08:55:47 UTC (rev 1453)
+++
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/UIFormMultiValueInputSet.java 2010-01-27
10:49:38 UTC (rev 1454)
@@ -201,6 +201,16 @@
{
Class[] classes = constructor_.getParameterTypes();
Object[] params = new Object[classes.length];
+ for (int i = 0; i < classes.length; i++)
+ {
+ if (classes[i].isPrimitive())
+ {
+ if (classes[i] == boolean.class)
+ params[i] = false;
+ else
+ params[i] = 0;
+ }
+ }
params[0] = getId() + String.valueOf(idx);
UIFormInputBase inputBase = (UIFormInputBase)constructor_.newInstance(params);
List<Validator> validators = this.getValidators();
Show replies by date