aem

ResourceResolverFactory and SlingRepository null in Service class

耗尽温柔 提交于 2020-01-25 01:54:02
问题 I have a Service class as below which I deployed using Maven and is Active on Sling Web Console. When I am accessing the method getSearchAssetNames() from this bundle it is getting called as per the AEM 6.0 logs on Authoring instance. But, implicit objects such as repository, resource resolver factory, query builder are all getting null pointer exceptions through how I have derived them using @Reference annotation. Here is the code for the class. I have tried removing activate, deactivate

CQ5.5 Components with CSS script

▼魔方 西西 提交于 2020-01-24 20:30:46
问题 as i am new to CQ5.5 I was wondering if it is possible to add a css script within a CQ5.5 componenet. Script as follow alike < style type="text/css"> .testScript { margin: 0; padding: 0; -webkit-border-radius: 5px 5px 0 0; -moz-border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0; } < /style> As when i tried to do this and run my html site through the wc3 validator, i have to following error document type does not allow element "style" here < style type="text/css" > The element named above

How to open first item of multifield on load of dialog?

穿精又带淫゛_ 提交于 2020-01-23 03:14:25
问题 I need to open first item of multifield on dialog load. I looked at the API documentation of multifield but not able to find. <promo jcr:primaryType="cq:Widget" fieldLabel="abcd" hideLabel="false" itemId="abcd" name="./abcd" xtype="[multifield]"> <fieldConfig jcr:primaryType="cq:Widget" hideLabel="false" layout="form" name="./abcd" title="abcd Item Info" xtype="customPanel"> <items jcr:primaryType="cq:WidgetCollection"> </items> </fieldConfig> </promo> Please suggest. 回答1: You can listen to

Do I need any more changes for AEM Schedulers?

痴心易碎 提交于 2020-01-22 03:41:04
问题 I am trying to implement simple scheduler for my project requirement, my project is using Adobe AEM . As of now I gone through Adobe site and tried to implement the given examples provided but none of them updating my error.log file. package sling.docu.examples; import com.majesco.logger.service.impl.Logger; import org.apache.felix.scr.annotations.Component; import org.apache.felix.scr.annotations.Service; import org.apache.felix.scr.annotations.Property; import com.majesco.dcf.common.util

How to specify nested “not” operation in specific group id in AEM?

江枫思渺然 提交于 2020-01-16 09:05:56
问题 I have a little complex predicator in which I need to have some nested not operation path=/content/course/ type=cq:Page group.1_daterange.lowerBound=2019-06-12T13:39:19.358Z group.1_daterange.property=jcr:content/xyz group.2_daterange.upperBound=2019-06-12T13:39:19.358Z group.2_daterange.property=jcr:content/abc group.3_relativedaterange.property=jcr:content/courseStartDate group.3_relativedaterange.lowerBound=0 group.p.not=true I don’t want to include the result of group 1 and group 2 hence

How to integrate AEM (6.3) with Magento (2.1.10)?

為{幸葍}努か 提交于 2020-01-16 07:41:11
问题 I wanted to integrate AEM (6.3) with Magento (2.1.10) to show products on AEM page, I have searched a lot but not getting any proper documentation. Although I followed below link : https://helpx.adobe.com/experience-manager/6-3/sites/deploying/using/magento.html Through this link I got connector, and I installed that connector for AEM, But I am not able to install the connector on Magento as I am new to Magento. I'd like to add connector in Magento or integrate AEM with Magento. 回答1: To

AEM CQ5 project giving NoClassDefFoundError for org/codehaus/mojo/animal_sniffer/logging/Logger when run mvn install disconnected from internet

家住魔仙堡 提交于 2020-01-16 07:17:29
问题 I'm new to AEM CQ5, trying to setup maven on one linux machine which can not be connected to internet (company infosec reasons). So, i've tried uploading all the dependencies manually on our internal nexus, so that project builds fine when we run " mvn clean install ". Our main idea is to make CQ projects build properly on our machine(s) which can not be connected to internet (and fetch all dependencies from local nexus). All i could find is " content-package-maven-plugin " and " content

How to use cq:noDecorator property in cq5 , can the default 'div' tag be changed to other block tags

孤街醉人 提交于 2020-01-14 03:50:09
问题 I need to remove decorator 'div' tags added around components by CQ5 for few select components. They can be part of the mark up in author mode, but it should not be present in the final mark up on publish. 回答1: To change the default div tags to something else , use cq:htmlTag nodes in your components. This lets you modify the tag , classes and id associated with the decorator tag. Create cq:htmlTag node [primaryType:nt:unstructured] under your component. Add cq:tagName property [type:String]

Attach file from my local machine to send mail in cq/AEM

女生的网名这么多〃 提交于 2020-01-11 10:25:41
问题 I am learning AEM and I am working on a requirement where in I am able to send email message however I am unable to add attachments that are browsed from my machine. Requirement - There is a form made in HTML from where info is collected and there is a browse button from where a file can be uploaded. As soon as the file is uploaded an email should be sent to an email address with form content and with the attachment. Also at the same time, through a POST request the form content and the

Attach file from my local machine to send mail in cq/AEM

纵然是瞬间 提交于 2020-01-11 10:25:11
问题 I am learning AEM and I am working on a requirement where in I am able to send email message however I am unable to add attachments that are browsed from my machine. Requirement - There is a form made in HTML from where info is collected and there is a browse button from where a file can be uploaded. As soon as the file is uploaded an email should be sent to an email address with form content and with the attachment. Also at the same time, through a POST request the form content and the