Author: ndkhoiits
Date: 2010-04-01 06:40:38 -0400 (Thu, 01 Apr 2010)
New Revision: 2445
Modified:
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/UIFormMultiValueInputSet.java
Log:
GTNPORTAL-756 This patch don't relate to this issue but it'll improve in the
future
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-04-01
10:19:30 UTC (rev 2444)
+++
portal/trunk/webui/core/src/main/java/org/exoplatform/webui/form/UIFormMultiValueInputSet.java 2010-04-01
10:40:38 UTC (rev 2445)
@@ -53,7 +53,7 @@
/**
* The type of items in the selector
*/
- private Class<? extends UIFormInput> clazz_;
+ private Class<? extends UIFormInputBase> clazz_;
private Constructor constructor_ = null;
@@ -83,7 +83,7 @@
return List.class;
}
- public void setType(Class<? extends UIFormInput> clazz)
+ public void setType(Class<? extends UIFormInputBase> clazz)
{
this.clazz_ = clazz;
Constructor[] constructors = clazz_.getConstructors();
@@ -91,7 +91,7 @@
constructor_ = constructors[0];
}
- public Class<? extends UIFormInput> getUIFormInputBase()
+ public Class<? extends UIFormInputBase> getUIFormInputBase()
{
return clazz_;
}
@@ -199,6 +199,8 @@
public UIFormInputBase createUIFormInput(int idx) throws Exception
{
+
+ if(constructor_ == null) return null;
Class[] classes = constructor_.getParameterTypes();
Object[] params = new Object[classes.length];
for (int i = 0; i < classes.length; i++)
Show replies by date