aem

What is the configuration option “htmllibmanager.excluded.path.list.name” of the Adobe Granite HTML Library Manager used for?

我怕爱的太早我们不能终老 提交于 2021-02-08 05:18:41
问题 In AEM Adobe Granite HTMl Library manager there are a lot of configuration options. I would like to know what htmllibmanager.excluded.path.list.name is being used for. 回答1: The htmllibrarymanager has a node listener that checks for client libs under certain path. This trigger is responsible for merging and compaction of clientlibs (if enabled) for the pages. The exclude path (like the name says) skips the listener's handling of these concatenation and compaction tasks. It is normally

Get .model.json as String

六眼飞鱼酱① 提交于 2021-02-08 04:59:24
问题 I wonder if there is an easy way to get a String with the result of a sling content exporter in AEM. In my current usecase I need the content of a component's .model.json output in the component's htl file and sending an additional request is obviously not a good idea. Any hints on how I can get the data? 回答1: After some reading and experimenting, I found a way to do it: Add a dependency to the following package in your pom: <dependency> <groupId>com.fasterxml.jackson.core</groupId>

How to filter the pages visible in an AEM Granite UI Path Browser?

跟風遠走 提交于 2021-02-07 09:32:33
问题 In the AEM Classic UI has a pathfield xtype that allows the programmer to specify a predicate attribute in order to filter the selectable pages. The value of the predicate attribute determines which pages are shown in the pathfield. There is a number of OOTB predicates such as 'hierarchy' , 'folder' , 'hierarchyNotFile' , etc. One can provide a custom predicate by writing an OSGi service implementing the org.apache.commons.collections.Predicate class. Specifically, the implementation is

Maven dependency for LDAP library could not be resolved in OSGi

天大地大妈咪最大 提交于 2021-02-05 09:31:09
问题 I am trying to import import org.apache.commons.pool2.impl.GenericObjectPool; import org.apache.commons.pool2.impl.GenericObjectPoolConfig; import org.apache.directory.ldap.client.api.DefaultLdapConnectionFactory; import org.apache.directory.ldap.client.api.LdapConnection; import org.apache.directory.ldap.client.api.LdapConnectionConfig; import org.apache.directory.ldap.client.api.LdapConnectionPool; import org.apache.directory.ldap.client.api.ValidatingPoolableLdapConnectionFactory; import

Session has been closed after closing resource resolver object in AEM

别说谁变了你拦得住时间么 提交于 2021-01-29 06:09:13
问题 I am trying to close the resource resolver that I opened but I got this error “javax.jcr.RepositoryException: This session has been closed when I close resource resolver. Actually I don’t see any problem if you leave the resource resolver as open but I don’t want to leave the resource resolver open in the code. serviceParam.put(ResourceResolverFactory.SUBSERVICE, "serviceNew"); ResourceResolver resourceResolver = null; try { resourceResolver = resourceResolverFactory