Hello,
Could some one help me as how will a sling call will be resolved for a component based on sling resource for a AEM form component
I see the below nodes for a component ,what does each node specify and can we remove any of this nodes will it still work??
Component node
- clientlibs
-cq:dialog
-cq:styleConfig
-cq:template
-formatters
-validators
-init.jsp
-widget.jsp
Which above files could be replaced to HTL based slightly .html files and component will still work
Regards,
Srinivas
Views
Replies
Total Likes
Sling resource resolution is a multi-step process and you can refer to these help docs[0][1] to understand - how a URL is mapped to corresponding jcr node in AEM and how Sling resource resolution is done.
Depending on the component, there could be different child nodes/properties but its not advisable to remove any property from the OOTB components. You can read more about these child nodes/properties here[2].
One can develop any component using HTL instead of JSP, with an exception of Granite UI Foundation Form Fields that still require the use of JSP. For an expert advise on this, you can check here- https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/ct-p/adobe-experience-mana...
[0] - https://sling.apache.org/documentation/the-sling-engine/servlets.html#servlet-resolving
[1] - https://sling.apache.org/documentation/the-sling-engine/url-decomposition.html
Hello @Pulkit_Jain_
Could you please provide input as how will the below nodes gets called
through sling resolution
-formatters
-validators
I notice that formatters and validators have few patterns mentioned that is getting applied when we select a pattern from formatter
Regards,
Srinivas