Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared Component Properties do not work in AEM 6.5 #1858

Closed
3 tasks
reggie7 opened this issue Apr 25, 2019 · 10 comments · Fixed by #1867
Closed
3 tasks

Shared Component Properties do not work in AEM 6.5 #1858

reggie7 opened this issue Apr 25, 2019 · 10 comments · Fixed by #1867

Comments

@reggie7
Copy link
Contributor

reggie7 commented Apr 25, 2019

  • AEM Version: 6.5
  • ACS AEM Commons Version: 4.0.0
  • Reproducible on Latest? yes

Expected Behavior

Shared Component Properties works properly in AEM 6.5.

Actual Behavior

Shared Component Properties does not work properly in AEM 6.5:

  • Shared Properties dialog does not open at all.
  • Global Properties dialog does not open at all.
  • Configure dialog does not open after clicking an icon for one of the above mentioned dialogs.

Steps to Reproduce

  1. Follow How to use steps,
  2. Remember that com.adobe.acs.commons.wcm.impl.PageRootProviderImpl is actually wrong - use com.adobe.acs.commons.wcm.impl.PageRootProviderConfig instead,
  3. Create an example page for yourself where you'd get something like this:

shared-global-example

  1. Click the first icon - it should work,
  2. Click the second icon - it does not work,
  3. Click the third icon - it does not work,
  4. Click the first icon again - it does not work anymore.
@davidjgonzalez
Copy link
Contributor

@HitmanInWis have you had a chance to try SCP's out in AEM 6.5 yet?

+1 on the documentation update though..

@HitmanInWis
Copy link
Contributor

I've not yet tested SCP on AEM 6.5. I'll see if I can take a look this week to at least gauge the effort to fix. And yes, I should also get that documentation of PageRootProviderConfig updated...

@reggie7
Copy link
Contributor Author

reggie7 commented Apr 29, 2019

@HitmanInWis - please note this PR though, it should be enough for the docs maybe?

@HitmanInWis
Copy link
Contributor

Thank you @reggie7 for banging out that documentation update! That is merged now.

@HitmanInWis
Copy link
Contributor

I just tested Shared Component Properties (SCP) out on AEM 6.5 and it's working just fine for me. It's possible that the problem is only with the example package, since that was created quite possibly on AEM 6.1...

@HitmanInWis
Copy link
Contributor

Found the issue, and turns out the effect is largely just the example package. However, if someone implemented SCP by copying code from the example package then I guess it would affect them as well.

Back in AEM 6.1 a workaround was needed where SCP dialogs needed to use a special "acs-commons/gui/components/authoring/dialogshared" type to prevent a NPE for the dialog when the node storing the content did not yet exist, but this has not been necessary since AEM 6.2. I think because SCP officially went live in ACS Commons when 6.2 was the main AEM version we never even included this in documentation. Dialogs using the OOTB sling:resourceType of cq/gui/components/authoring/dialog work just fine.

Apparently on AEM 6.5 the custom resource type in ACS Commons is no longer working. Ideally we'd just delete this old resource type from ACS Commons as it is absolutely not necessary and truly should be avoided to prevent future compatibility issues. However, given the chance that someone might be using that old ACS Commons resourceType (even with it not being officially documented) I'm wondering if we instead need to update that resourceType to work on 6.5 (probably just remove all of the custom code and have it descend from the default type).

HitmanInWis added a commit to Bounteous-Inc/acs-aem-commons that referenced this issue Apr 29, 2019
@HitmanInWis
Copy link
Contributor

Fixed the issue for sake of backward compatibility (see above PR).

badvision pushed a commit that referenced this issue Apr 30, 2019
* Updated "acs-commons/gui/components/authoring/dialogshared" type to no longer customize the OOTB dialog type, as this has not been needed since AEM 6.2 and was broken on 6.5.

* Added #1858 to changelog
@reggie7
Copy link
Contributor Author

reggie7 commented May 6, 2019

Just checked it and it indeed works with the new example package. Thank you, @HitmanInWis

@nafeespeer
Copy link

nafeespeer commented Sep 18, 2019

Hi @reggie7 and @HitmanInWis - Could you please provide me the latest documentation to make this feature work in AEM 6.5?

I am not able to find those nodes mentioned in the documentation in AEM 6.5 for "Adding the Page Info Provider to your Page Component". Any help here would be appreciated?

@HitmanInWis
Copy link
Contributor

you need to find your base page component - it might not already have a cq:infoProviders node and if it doesnt then you'll have to add one. If you find the base page component under /libs in AEM you can see the default version of the cq:infoProviders node.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants