Author: hfnukal
Date: 2011-06-07 10:54:25 -0400 (Tue, 07 Jun 2011)
New Revision: 6606
Modified:
epp/portal/branches/EPP_5_1_Branch/webui/core/src/main/java/org/exoplatform/webui/form/UIFormCheckBoxInput.java
Log:
JBEPP-958 UIFormCheckBoxInput.setValue() doesn't parse String
Modified:
epp/portal/branches/EPP_5_1_Branch/webui/core/src/main/java/org/exoplatform/webui/form/UIFormCheckBoxInput.java
===================================================================
---
epp/portal/branches/EPP_5_1_Branch/webui/core/src/main/java/org/exoplatform/webui/form/UIFormCheckBoxInput.java 2011-06-07
14:51:31 UTC (rev 6605)
+++
epp/portal/branches/EPP_5_1_Branch/webui/core/src/main/java/org/exoplatform/webui/form/UIFormCheckBoxInput.java 2011-06-07
14:54:25 UTC (rev 6606)
@@ -71,6 +71,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);
}