aem

OSGi Bundle status is not Active (CQ5 Maven Project) WHY?

五迷三道 提交于 2019-12-11 10:55:07
问题 I know that when the status of a bundle in CQ is installed, there are dependencies and that is why the bundle cannot be "Active". I am using a Jersey Client v 2.17 in a CQ5 Service, so I need the Jersey Core Client Jar. I added the dependency in the /bundle/pom.xml . My bundle successfully compiles and deploys BUT NEVER TURNS ACTIVE I added the Jersey Client Jar in Felix Console manually, by doing this my bundle got activated but the Jersey Client Jar is not active so I keep getting

CQ rich text field editor enable bold, italic and underline styles, plus bullet and numbered lists only

六月ゝ 毕业季﹏ 提交于 2019-12-11 10:49:22
问题 I have a rich text field editor widget, What I need is to activate functions (bold, italic and underline styles, plus bullet and numbered lists only.) Here is the xml of my widget: <richtextfield jcr:primaryType="cq:Widget" fieldLabel="this is rich text field" name="./richtextfield" xtype="richtext"> <rtePlugins jcr:primaryType="nt:unstructured"> <subsuperscript jcr:primaryType="nt:unstructured" features="*"/> </rtePlugins> </richtextfield> as you can see i have all features enabled here,,

How to access the asset in workflow process step

假如想象 提交于 2019-12-11 10:35:36
问题 I am trying to write a workflow process step for the DAM update asset such that the uploaded asset will be sent to an external service that will modify the asset and then the modified asset can be sent to the Metadata extraction step. So I've added my process step to the DAM update asset like this: And my code looks like this so far: public void execute(WorkItem item, WorkflowSession wfsession,MetaDataMap args) throws WorkflowException { try { log.info("Here2 in execute method"); //ensure

AEM/CQ5 html5smartimage filename lost on image upload

最后都变了- 提交于 2019-12-11 10:06:42
问题 I'm using an html5smartimage that allow the user to upload an image. Here is my dialog configuration: <?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="cq:Dialog" height="600" width="900" xtype="dialog"> <items jcr:primaryType="cq:WidgetCollection"> <tabs jcr:primaryType="cq:TabPanel"> <items jcr:primaryType="cq:WidgetCollection"> <tabText jcr:primaryType="cq:Widget" anchor="100%" title="Text"

Adobe CQ5 custom servlet path

泪湿孤枕 提交于 2019-12-11 09:52:53
问题 I am trying to add some functionality to json processing for some nodes. So I wrote custom servlet extended from SlingSafeMethodsServlet which I need to be executed when user makes GET for the following url : /data/events/any_sequence/any_sequence.json or /data/events/any_sequence/any_sequence.infinity.json or for example /data/events/any_sequence/any_sequence.2.json where any_sequence of course means any valid sequence of symbols. The problem is that I cannot find in the sling docs how to

Inserting a class name dynamically on a component's wrapping element

…衆ロ難τιáo~ 提交于 2019-12-11 08:54:42
问题 I am using a cq:htmlTag to generate a custom tag for one of the components. For the "class" property, I know that I could provide a static class name that is part of a CSS file, but my requirement is to have the 'template name' as the class property value. Does CQ provide a way to use dynamic values? 回答1: Out of the box I think not. There are a few workarounds that I could think of: Add another tag as a child where you set that class (probably not what you want) Use javascript to add it on

Set a minimum limit in a custom multifield component

有些话、适合烂在心里 提交于 2019-12-11 08:52:47
问题 I have a custom multifield component with a maximum limit of 5 elements applied to the 'Add Item' button. I need to add a similar listener logic to the 'OK' button of the dialog box to check if the minimum number of items (3) have been added or not. How can that be achieved ? I didn't find any sample code to add a listener code to the button .. 回答1: I've done this same sort of thing with a listener on the beforesubmit event of the Dialog (see beforesubmit for CQ.Dialog at http://dev.day.com

Error while installing package in CQ which contains users and groups

那年仲夏 提交于 2019-12-11 07:25:35
问题 I am trying to install a package on CQ instance which contains users and groups. The path for which package was created is for /home excluding admin user. Please note that some users are already available on targeted CQ instance which might are also available in package. Following exception was encountered, any help/views: com.day.jcr.vault.packaging.PackageException: javax.jcr.nodetype.ConstraintViolationException: /home/users/c/chris/.tokens/2014-10-16T12.45.01.614+02.00: mandatory property

How to add robots.txt file in AEM/CQ?

…衆ロ難τιáo~ 提交于 2019-12-11 07:24:10
问题 How to add the robots.txt file to an AEM server to provide rules for Web Crawlers in AEM? 回答1: Most you will refer to This Link To implement this. Although it may seem to serve the purpose you will notice one thing that could be a little "not right". Adding a robots.txt file directly in crxde causes the creation of a node of type nt:file in root level. So when you hit http://localhost:4502/robots.txt instead of you displaying on the screen/browser the file downloads. This is because of the

How can we create a build.gradle equivalent file for pom.xml to build and deploy AEM code?

。_饼干妹妹 提交于 2019-12-11 06:17:08
问题 I'm trying to create a build.gradle file like the complete pom.xml for AEM Maven Archetype or Lazybones Template to build and deploy the code to AEM. I tried to use TWCCable's CQ Plugin but wasn't sure how to use it. Also tried to run gradle init on the main pom.xml but obviously it was incomplete (below) and i think i'll have to add all dependencies manually. allprojects { apply plugin: 'maven' group = 'com.project2' version = '1.0-SNAPSHOT' } subprojects { apply plugin: 'java'