Hide Forgot
Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A0000006Iqry&sbstr=00418872&sfdc.override=1 project_key: JBEPP If you call org.exoplatform.webui.form.UIFormCheckBoxInput.setValue() with a String "true", it will be evaluated as "false" because it parses only Boolean, not String. {noformat} public UIFormInput setValue(T value) { if (value == null) return super.setValue(value); if (value instanceof Boolean) { checked = ((Boolean)value).booleanValue(); } else if (boolean.class.isInstance(value)) { checked = boolean.class.cast(value); } typeValue_ = (Class<T>)value.getClass(); return super.setValue(value); } {noformat} The caller may be changed to pass a Boolean but fixing UIFormCheckBoxInput to parse a String would be an essential resolution. Actually org.exoplatform.ecm.webui.component.explorer.popup.admin.UIPropertyForm in WCM(Site Publisher) is hitting this issue. How to reproduce(EPP 5.1.0 + SP 2.1.2): 1. Rename attached exo-ecms-core-webui-explorer-2.1.2.jar.ECMS-1782 to exo-ecms-core-webui-explorer-2.1.2.jar and copy it to $JBOSS_HOME/server/$PROFILE/deploy/gatein-wcm-extension-2.1.2.ear/lib (This patch helps to reproduce the issue. It doesn't affect the issue itself) 2. Start EPP with SP(ecmdemo) 3. Go to Content Explorer and click "Add Folder" to create a folder 'test' under '/acme' 4. Select 'test' and click "System" > "View Node Properties". Go to "Add New Property" tab. Set Name="testprop", Type="Boolean", Multiple="false" and check "Value" checkbox. Save. 5. You can confirm "testprop" is 'true' in "Properties" tab 6. Click 'Edit' icon in 'Action' column of "testprop" - You will see "Value" checkbox is unchecked
Attachment: Added: exo-ecms-core-webui-explorer-2.1.2.jar.ECMS-1782
Attachment: Added: JBEPP-958.patch
Attached JBEPP-958.patch
Link: Added: This issue incorporates GTNPORTAL-1910
Link: Added: This issue is a dependency of JBEPP-959
Release Notes Text: Added: If you call org.exoplatform.webui.form.UIFormCheckBoxInput.setValue() with a String "true", it will be evaluated as "false" because it parses only Boolean, not String. Fixed by recognizing string and converting to boolean value.
Release Notes Docs Status: Added: Documented as Resolved Issue Release Notes Text: Removed: If you call org.exoplatform.webui.form.UIFormCheckBoxInput.setValue() with a String "true", it will be evaluated as "false" because it parses only Boolean, not String. Fixed by recognizing string and converting to boolean value. Added: In previous JBoss Enterprise Portal Platform versions, calling org.exoplatform.webui.form.UIFormCheckBoxInput.setValue() with a String value of 'true', would result in the value being interpreted as 'false' as only Boolean values (not String values) were parsed. This behaviour has been corrected by recognizing string values when entered and converting them to boolean values.
Release Notes Text: Removed: In previous JBoss Enterprise Portal Platform versions, calling org.exoplatform.webui.form.UIFormCheckBoxInput.setValue() with a String value of 'true', would result in the value being interpreted as 'false' as only Boolean values (not String values) were parsed. This behaviour has been corrected by recognizing string values when entered and converting them to boolean values. Added: In previous JBoss Enterprise Portal Platform versions, calling org.exoplatform.webui.form.UIFormCheckBoxInput.setValue() with a String value of 'true', would result in the value being interpreted as 'false' as only Boolean values (not String values) were parsed. This behavior has been corrected by recognizing string values when entered and converting them to boolean values.