Expand my Community achievements bar.

AEM 6 TOUCH-UI MultiField - not prepopulating with data once saved

Avatar

Level 5

I can get the cq:Dialog to display the checkbox and the numbers field, it seems to save fine.

Once I bring it back up, it does not prepopulate with the data already saved.

Any help is appreciated.

Thanks,

-Dean

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

cq:Dialog

<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
    jcr:primaryType="nt:unstructured"
    jcr:title="Column Control"
    sling:resourceType="cq/gui/components/authoring/dialog"
    helpPath="en/cq/current/wcm/default_components.html#Title"
    validation="ewcm.columncontrol">
    <content
        jcr:primaryType="nt:unstructured"
        sling:resourceType="granite/ui/components/foundation/container"
        validation="ewcm.columncontrol">
        <layout
            jcr:primaryType="nt:unstructured"
            sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/>
        <items jcr:primaryType="nt:unstructured">
            <columns
                jcr:primaryType="nt:unstructured"
                sling:resourceType="granite/ui/components/foundation/container">
                <layout
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/>
                <items jcr:primaryType="nt:unstructured">
                    <tabs
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/foundation/container">
                        <layout
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="granite/ui/components/foundation/layouts/tabs"
                            type="nav"/>
                        <items jcr:primaryType="nt:unstructured">
                            <columns
                                jcr:primaryType="nt:unstructured"
                                jcr:title="Column"
                                sling:resourceType="granite/ui/components/foundation/section">
                                <items jcr:primaryType="nt:unstructured">
                                    <numcolumns
                                        jcr:primaryType="nt:unstructured"
                                        jcr:title="Column Definition"
                                        sling:resourceType="granite/ui/components/foundation/form/fieldset">
                                        <items jcr:primaryType="nt:unstructured">
                                            <pages
                                                jcr:primaryType="nt:unstructured"
                                                sling:resourceType="granite/ui/components/foundation/form/multifield"
                                                fieldDescription="Click the '+' to add columns. Total Column Width must add up to 12"
                                                fieldLabel="Total column widths must equal 12">
                                                <field
                                                    jcr:primaryType="nt:unstructured"
                                                    sling:resourceType="granite/ui/components/foundation/form/fieldset"
                                                    name="./items">
                                                    <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">
                                                                <field
                                                                    jcr:primaryType="nt:unstructured"
                                                                    sling:resourceType="granite/ui/components/foundation/form/numberfield"
                                                                    max="{Long}12"
                                                                    min="{Long}1"
                                                                    name="./columns"
                                                                    required="{Boolean}true"
                                                                    validation="ewcm.numcolumns"/>
                                                                <alignBottom
                                                                    jcr:primaryType="nt:unstructured"
                                                                    sling:resourceType="granite/ui/components/foundation/form/checkbox"
                                                                    name="./alignBottom"
                                                                    text="Bottom Align Columns (defaults to top align)"
                                                                    value="alignBottom"/>
                                                                <deleteAlignBottom
                                                                    jcr:primaryType="nt:unstructured"
                                                                    sling:resourceType="granite/ui/components/foundation/form/hidden"
                                                                    name="./alignBottom@Delete"
                                                                    value="delete"/>
                                                            </items>
                                                        </column>
                                                    </items>
                                                </field>
                                            </pages>
                                        </items>
                                    </numcolumns>
                                </items>
                            </columns>
                        </items>
                    </tabs>
                </items>
            </columns>
        </items>
    </content>
</jcr:root>

0 Replies