Author: phuong_vu
Date: 2011-06-08 06:42:38 -0400 (Wed, 08 Jun 2011)
New Revision: 6613
Modified:
portal/branches/branch-GTNPORTAL-1921/webui/core/src/main/java/org/exoplatform/webui/form/UIFormCheckBoxInput.java
Log:
GTNPORTAL-1910 UIFormCheckBoxInput.setValue() doesn't parse String
Modified:
portal/branches/branch-GTNPORTAL-1921/webui/core/src/main/java/org/exoplatform/webui/form/UIFormCheckBoxInput.java
===================================================================
---
portal/branches/branch-GTNPORTAL-1921/webui/core/src/main/java/org/exoplatform/webui/form/UIFormCheckBoxInput.java 2011-06-08
09:48:07 UTC (rev 6612)
+++
portal/branches/branch-GTNPORTAL-1921/webui/core/src/main/java/org/exoplatform/webui/form/UIFormCheckBoxInput.java 2011-06-08
10:42:38 UTC (rev 6613)
@@ -73,6 +73,10 @@
{
checked = boolean.class.cast(value);
}
+ else if (value instanceof String)
+ {
+ checked = Boolean.parseBoolean((String)value);
+ }
typeValue_ = (Class<T>)value.getClass();
return super.setValue(value);
}
Show replies by date