Highlighted

AEM 6.2 | Touch UI Multifield Component

manisha594391

19-02-2018

Hi All,

For touch ui dialog with multifield, values are not getting saved in dialog, although the same get saved in crx.

Thanks,

Manisha

Replies

Highlighted
Highlighted

manisha594391

19-02-2018

Which version of acs commons is required?

can I directly install the package, or have to deploy via maven dependency?

Highlighted

Ratna_Kumar

MVP

19-02-2018

Hi Manisha,

You can download the latest ACS Commons package which is located in this URL: Adobe AEM Commons - In this page - click on "Download the AEM package".

You can directly install the package in package manager and not to deploy via maven dependency.

Thanks,

Ratna Kumar.

Highlighted
Highlighted

Vijayalakshmi_S

MVP

19-02-2018

Hi Manisha,

Make a check on the below points to see if your multifield is able to hold values in the dialog:

-  ACS Commons bundle is active in your instance.

- fieldset(granite/ui/components/foundation/form/fieldset) node under multifield(granite/ui/components/foundation/form/multifield) node has property "acs-commons-nested" set to blank as follows.

acs-commons-muti.png

Reference: Creating an AEM HTML Template Language 6.3 component that uses a Multifield

http://www.aemcq5tutorials.com/tutorials/touchui-multifield-component-using-htl/

Highlighted

manisha594391

19-02-2018

Hi,

The bundle acs commons is in active state.

1423030_pastedImage_0.png

I too have added the property suggested.But still the value is not persisted in dialog

<usersubmenu

                jcr:primaryType="nt:unstructured"

                jcr:title="User Submenu"

                sling:resourceType="granite/ui/components/foundation/section">

                <layout

                    jcr:primaryType="nt:unstructured"

                    sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/>

                <items jcr:primaryType="nt:unstructured">

                    <tab

                        jcr:primaryType="nt:unstructured"

                        sling:resourceType="granite/ui/components/foundation/container">

                        <items jcr:primaryType="nt:unstructured">

                            <usersubmenudetails

                                jcr:primaryType="nt:unstructured"

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

                                class="full-width"

                                fieldDescription="Click 'Add field' to add a new User Submenu title and links"

                                fieldLabel="User Submenu Items">

                                <field

                                    jcr:primaryType="nt:unstructured"

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

                                    acs-commons-nested="&quot;&quot;"

                                    name="./myUserSubmenu">

                                    <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">

                                                <title

                                                    jcr:primaryType="nt:unstructured"

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

                                                    fieldDescription="Enter User Submenu title"

                                                    fieldLabel="User Submenu Title"

                                                    name="./title"/>

                                                <subtitle

                                                    jcr:primaryType="nt:unstructured"

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

                                                    fieldDescription="Enter User Submenu subtitle"

                                                    fieldLabel="User Submenu SubTitle"

                                                    name="./subtitle"/>

                                            </items>

                                        </column>

                                    </items>

                                </field>

                            </usersubmenudetails>

Highlighted

Ratna_Kumar

MVP

19-02-2018

Hi Manisha,

There might be the issue with the local instance.

I would suggest deploy both the packages i.e., content package and ACS commons paclage which is mentioned in the article on fresh local instance and try it.

Thanks,

Ratna Kumar.