Highlighted

AEM 6.2 Service Pack 1 Upgrade Issues

Avatar

Avatar

matriccinod

Avatar

matriccinod

matriccinod

09-11-2017

Hello,

We have a custom component called column-control that basically wraps HTML around an inclusion of 'foundation/components/parsys'. In our custom component, we have an attribute named cssClassNames, which is used by 'foundation/components/parsys' and prior to installing service pack 1, the cssClassNames value was rendered as expected. After installing Service Pack 1, the attribute cssClassNames is no longer rendered.

Our component HTML looks like this:

<div data-sly-test="${wcmmode.edit}" data-emptytext="Column Control"

class="cq-placeholder"></div>

<div

class="${properties.fullWidth ? 'container-fluid' : 'container'} ${properties.removePadding ? 'paddingZero marginZero' : ''}"

data-sly-use.columnControl="com.informa.components.commons.ColumnControl"

data-sly-unwrap="${columnControl.childColumnControl}">

<div class="row ${properties.removePadding ? '' : 'row-custom-divider'}  ${properties.spacingstylestop} ${properties.spacingstylesbottom}"

data-sly-list.columnsCssClass="${columnControl.columnsCssClass}">

<div class="${columnsCssClass @ context='attribute'}"

data-sly-test.columnParsys="${'par-col-{0}' @ format=[columnsCssClassList.count]}">

<div

data-sly-resource="${columnParsys @ resourceType='foundation/components/parsys'}"

data-sly-unwrap></div>

</div>

</div>

</div>

The component's .context.xml file has "foundation/components/parbase" as a resourceSuperType. Also, in our _cq_dialog/.content.xml file, we have the following for our cssClassNames:

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

                    <columns

                        jcr:primaryType="nt:unstructured"

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

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

                            <cssClassNames

                                jcr:primaryType="nt:unstructured"

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

                                fieldLabel="Class names"

                                name="./cssClassNames"/>

                        </items>

                    </columns>

                </items>

I'm hoping to get some help as to why foundation/components/parsys isn't using the cssClassNames value that's defined in our column-control component. Any help will be greatly appreciated!