Closed claudiab closed 4 years ago
Hi @claudiab, thank you for the detailed bug report! We'll have to investigate this issue as it seems likely that it is located in the SPA Editor rather than in the Core Component. For this reason, and if this issue is blocking your project, I'd recommend to also open a DayCare issue for it; you can just link to this one issue if you don't want to repeat the same details there.
@claudiab here are quick hints.
2a
, you'll probably have to provide the logic and presentation of the frontend Accordion component.View from CRX
, I am not expecting the listeners to be of any help with the SPA Editor. Once the dialog is submitted the Editor is supposed to fetch the new model of the Accordion component and pass it to the SPA Model Manager that will trigger the component to be redrawn. Furthermore, I would say that using the listeners may actually be counter-productive as the SPA framework should have total control over the lifecycle of its components.Looking at the ticket, I am expecting that what you actually are missing is the implementation of the Accordion Front-End component, how it consumes the model and how it displays the content.
It seems that this is working as designed and that there are parts missing on your client-side implementation, @claudiab. I'm therefore closing this issue for now, but please reopen it if if you encounter further issues.
Issue with proxy version of the Accordion component in Angular SPA Editor. The child does not load and I'm unable to new add components. Is this related to Edit configs (eg. listeners) not being supported in the SPA Editor? Is there a possible workaround?
Current Behavior
Proxy Component: core/wcm/components/accordion/v1/accordion
mvn -B archetype:generate \ -D archetypeGroupId=com.adobe.granite.archetypes \ -D archetypeArtifactId=aem-project-archetype \ -D archetypeVersion=23 \ -D aemVersion=6.5.2 \ -D appTitle="My Site" \ -D appId="mysite" \ -D groupId="com.mysite" \ -D frontendModule=angular \ -D includeExamples=y
1a. Navigate to ui.frontend
2a. Map AEM Accordion Component to Sample Angular Accordion component
2b. Add AccordionComponent to entryComponents
Enable All "My Site - Content" components at http://localhost:4502/editor.html/conf/mysite/settings/wcm/templates/spa-page-template/structure.html
Drop Accordion into SPA Editor
View from CRX
Expected behavior/code
I'm able to run AEM Core Components (2.8.0) locally to test expected functionality. http://localhost:4502/editor.html/content/core-components-examples/library/accordion.html
Environment
AEM (6.5.2.0) Core Components version 2.8.0 Java(TM) SE Runtime Environment (build 1.8.0_211-b12)