Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

classic UI dialog and Touch UI saving different value in CRX

Avatar

Level 4

Hi,

For the same component checkbox value are saving different in CRX.

1- from classic ui dialog it save-   

true

2- from touch ui dialog it save- 

"true"

 

Classic UI Dialog

<application-type-list jcr:primaryType="cq:Widget" fieldDescription="Click the '+' to add a new Product Type" fieldLabel="Product Type" name="./productType" width="600" xtype="multifield"> <fieldConfig jcr:primaryType="cq:Widget" xtype="multifieldpanel"> <items jcr:primaryType="cq:WidgetCollection"> <description jcr:primaryType="nt:unstructured" fieldDescription="Enter Description" fieldLabel="Description" key="description" name="./description" width="350" xtype="textfield"/> <showdescription jcr:primaryType="cq:Widget" fieldLabel="Show Description" key="showdescription" name="./showdescription" width="350" xtype="checkbox"/> </items> </fieldConfig> </application-type-list>

 

Touch UI dialog

<application-type-list jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/multifield" fieldDescription="Click the '+' to add a new Product Type" fieldLabel="Product Type"> <field jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/fieldset" acs-commons-nested="" name="./productType"> <layout jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns" method="absolute"/> <items jcr:primaryType="nt:unstructured"> <column jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/container"> <items jcr:primaryType="nt:unstructured"> <description jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/textfield" fieldDescription="Enter Description" fieldLabel="Description" key="description" name="./description" width="350"/> <showdescription jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/checkbox" text="Show Affiliated Society" key="showAffiliatedSociety" value="true" name="./showAffiliatedSociety"/> <showdescriptionType jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/foundation/form/hidden" name="./showdescription@TypeHint" key="showdescription" value="Boolean"/> </items> </column> </items> </field> </application-type-list>
2 Replies

Avatar

Level 10

They are different data types.  

The Touch UI checkbox is based on: 

https://docs.adobe.com/docs/en/aem/6-2/develop/ref/granite-ui/api/jcr_root/libs/granite/ui/component...

The Classic UI one is based on this data type: 

https://docs.adobe.com/content/docs/en/cq/5-6-1/widgets-api/index.html?class=CQ.form.Checkbox

So each one will work for the given checkbox on a dialog in their respective views. 

Avatar

Level 4

@smacdonald2008

is there any workaround so i can save same value from both Touch UI and Classic UI.