Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
Nivel 1
Nivel 2
Iniciar sesión en la comunidad
Iniciar sesión para ver todas las insignias
Esta conversación ha sido bloqueada debido a la inactividad. Cree una nueva publicación.
I have a requirement to build Link Objects (Type: com.adobe.cq.wcm.core.components.commons.link.Link) for multiple custom components that we are developing. I see that the LinkHandler (Type: com.adobe.cq.wcm.core.components.internal.link.LinkHandler) does this job. But, this class belongs to the internal package and hence I cannot import it into any of my custom implementations. As this is not associated with any core component, I'm not sure if there is a way to get a reference of LinkHandler using the Sling delegation pattern approach.
Is there any way we could create a reference of this class? Or do we need to do the implementation ground up again?
¡Resuelto! Ir a solución.
Vistas
Respuestas
Total de me gusta
Please post this question on the github repository of the core components project (https://github.com/adobe/aem-core-wcm-components) including some more details about your usecase.
There are definitely reasons why this is internal and not a public extension point.
Vistas
Respuestas
Total de me gusta
Hi,
You can extend this and change/implement custom logic.
e.g. https://github.com/arunpatidar02/aem63app-repo/blob/master/java/CustomTeaser.java
Vistas
Respuestas
Total de me gusta
@arunpatidar : I see that you are suggesting to use the sling delegation pattern. However, this works only when you extend the core component by specifying the resource supertype property in the child component.
My use case is a little different. I'd like to build objects of type "com.adobe.cq.wcm.core.components.commons.link.Link" so that I could use them in custom components that I am developing. Here, Link is not a core component model and hence I wouldn't be able to use the sling delegation pattern. Is there any other way I can get around this?
Vistas
Respuestas
Total de me gusta
Please post this question on the github repository of the core components project (https://github.com/adobe/aem-core-wcm-components) including some more details about your usecase.
There are definitely reasons why this is internal and not a public extension point.
Vistas
Respuestas
Total de me gusta
Sure thing @Jörg_Hoh . Will post it in the git repo. In the mean time, it would be really helpful if you have any alternate or workaround.
Thanks!
Vistas
Respuestas
Total de me gusta
I don't know any way to achieve that, I am sorry.
Vistas
Respuestas
Total de me gusta
Just in case if anyone is after a solution for this requirement, there is already a github issue open:
https://github.com/adobe/aem-core-wcm-components/discussions/1861
Vistas
Respuestas
Total de me gusta
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas
Vistas
me gusta
Respuestas