adobe / adobe/aem-core-wcm-components

Container component properties not working in SPA

Open
#2,156 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
795
Forks
775
Avg merge
3d 22h
Merged PRs (30d)
8

Description

## Bug Report

**Current Behavior**
Any of the Container component properties (Layout, ID, Label, role, background image, background colour) are not working in SPA. As you can see in com.adobe.cq.wcm.core.components.internal.models.v1.LayoutContainerImpl, this class does not have @Exporter annotations to export it in the case of SPA. All the properties that are being exported right now for SPA are coming from the foundation ResponsiveGrid through the inheritance chain. So, they don't have any of the enhancements added in the core Container component.

**Expected behavior/code**
All the Container component properties (background colour, background image, layout, id, label, role) should be exported so that they can be used in SPA as well.

**Environment**
- AEM version - 6.5.12
- Core Components version - 2.19.0

Contributor guide

Open the contributing guide

Research direction

Start by reading com.adobe.cq.wcm.core.components.internal.models.v1.LayoutContainerImpl and compare its export behavior with the foundation ResponsiveGrid inheritance mentioned in the report. Verify how the Container properties—background colour, background image, layout, id, label, and role—are currently represented in SPA output; done means all six are exported for SPA use.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.