Dialog converter - Checkbox conversion | Community
Skip to main content
zeyn_m
Level 2
Jun 21, 2017 9:03 AM UTC
Solved

Dialog converter - Checkbox conversion

Hi

I am using the dialog converter tool 1.0 on AEM 6.0 SP3 for converting classic dialog checkbox into touch dialog checkbox. However the converted checkbox structure is different from classic.

Classic Structure:

<addbutton

     jcr:primaryType="cq:Widget"

     fieldLabel="Add Button"

     inputValue="true"

     name="./addbutton"

     type="checkbox"

     xtype="selection">

</addbutton>

Converted Touch UI Structure:

<addbutton

     jcr:primaryType="nt:unstructured"

     sling:resourceType="granite/ui/components/foundation/form/checkbox"

     name="./addbutton"

     text="Add Button"

     value="true"/>

<addbutton-delete

     jcr:primaryType="nt:unstructured"

     sling:resourceType="granite/ui/components/foundation/form/hidden"

     name="./addbutton@Delete"

     value="{Boolean}true"/>

I have searched for a rule at /libs/cq/dialogconversion/rules but cannot find any rule for checkbox.

Can anyone please help me understand how is the conversion being done ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
abhishek_dwevediAccepted solution
Employee
Jun 21, 2017 1:57 PM UTC

You can refer following doc for understanding the logic of dialog conversion :

https://docs.adobe.com/docs/en/aem/6-3/develop/dev-tools/dialog-conversion.html#Dialog Rewrite Rules

3 replies

abhishek_dwevediAccepted solution
Employee
Jun 21, 2017 1:57 PM UTC

You can refer following doc for understanding the logic of dialog conversion :

https://docs.adobe.com/docs/en/aem/6-3/develop/dev-tools/dialog-conversion.html#Dialog Rewrite Rules

Translate
zeyn_m
zeyn_mAuthor
Level 2
Jun 21, 2017 1:54 PM UTC

Hi Abhishek,

Yes the checkbox is been generated in Touch UI. I wanted to know how it is generated as other components like textfield etc have rules but i couldnt find any rules for checkbox in the rules folder.

Translate
Employee
Jun 21, 2017 1:44 PM UTC

Hi Zeyn,

Are you getting Checkbox in Touch UI ? The structure and node type is going to be bit different in Touch ui cq:dialog than classic dialog  box.

Translate