aem

CQ5 - Dynamically populating options in selection xtype

风流意气都作罢 提交于 2019-12-21 05:35:16
问题 I've been banging my head for hours on this now. I'm trying to dynamically populate options in a selection xtype and can't get it to work. Here is my dialog.xml <resourceType jcr:primaryType="cq:Panel" title="Header Type"> <items jcr:primaryType="cq:WidgetCollection"> <headerType jcr:primaryType="cq:Widget" fieldLabel="Header Type" name="./headerType" type="select" xtype="selection"> <options jcr:primaryType="cq:WidgetCollection"> <categories jcr:primaryType="cq:Widget" path="/content/admin

Jackrabbit searches across joined nodes

Deadly 提交于 2019-12-21 04:52:19
问题 I have tagged objects in a Jackrabbit repository (actually Adobe/Day CQ's CRX, but I think this is the Jackrabbit code): asset: tags = A, B child asset data 1: tags = A, C, E child asset data 2: tags = D, E I want to query against the union of the parent asset's set of tags and one child, i.e. "B C" would match the asset because we have those in the parent and in child 1, but "C D" would not match because there's no combination of parent and one child that matches that because C and D are

Why use @Component annotation with each service in CQ

六月ゝ 毕业季﹏ 提交于 2019-12-20 19:48:24
问题 I am bit confused about following things. I understand @Service and @Component annotations are main annotations when we define a component or a service in OSGi. I am referring to http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html and What is the difference between OSGi Components and Services Questions: A service can not be created without @Component annotation, why is that? I understand once we define a service its life-cycle is managed by

Download a copy of Adobe CQ5

不羁岁月 提交于 2019-12-20 10:43:19
问题 I would like to take a look at Adobe CQ5 CMS system. Does anybody know if I can download it to my developer computer? I can not find link on web site. I know Adobe offers CRX as opensource - but my interest is in CQ5 cms. 回答1: According to my rep you need to engage with Adobe to get a copy. We don't have it in house yet as the do want a training session so that users aren't frustrated with the complexity. I've played around on a test site and also played with it at conventions and it seems

Expression Option Sightly

白昼怎懂夜的黑 提交于 2019-12-20 10:27:18
问题 I was looking over the expression options used in sightly. I tried the below line of code, but it seems just render the text over the page, can someone provide use of options with some good examples. ${'Assets' @ i18n, locale='fr-CH', hint='Translation Hint'} ${'Page {0} of {1}' @ format = [count,total] } I have tried and understand the below code to include the parsys <div data-sly-resource ="${@path='question_list', resourceType='wcm/foundation/components/parsys'}"></div> Also from where i

CQ5 QueryBuilder Reference in Sling Servlet

强颜欢笑 提交于 2019-12-20 07:29:08
问题 I am declaring a sling servlet like so @Component(metatype = false) @Service(Servlet.class) @Properties({ @Property(name = "sling.servlet.paths", value = "/bin/foo/bar"), @Property(name = "sling.servlet.methods", value = "POST") }) public class FooBarServlet extends SlingAllMethodsServlet { ... } I override doPost like so @Override protected void doPost(SlingHttpServletRequest request, SlingHttpServletResponse response) throws IOException { ... } And I am able to post from a client. Great! I

How to validate a field using cq.HTTP.post method In adobe cq5?

微笑、不失礼 提交于 2019-12-20 05:39:19
问题 I am trying to validate a field by sending field value to a servlet and in response i'm getting true or false i.e whether this field is valid or not . here is my dialog file <bodytext jcr:primaryType="cq:Widget" fieldDescription="Type Text Here" fieldLabel="Body Text" name="./bodytext" validator= "function(value) { var dialog = this.findParentByType('dialog'); var postParams = {}; postParams['value'] = value; CQ.HTTP.post('/bin/feeds/validation.json', function(options, success, response)

What am I missing for this CQ5/AEM URL rewriting scenario?

北城余情 提交于 2019-12-20 04:41:09
问题 I basically want short URLs to get resolved and HTML pages to be generated with short URLs for a CQ5 website. So far short URLs are getting mapped to long URLs as expected, but links in the generated HTML pages are not getting shortened. For example, I am expecting the src attribute of the following <script> tag: <script type="text/javascript" src="/content/foo/c0/06/9d/3d93a858-efb4-4619-8f9e-5edc65d0f5ae/style/clientlibs.1395978029951.js"></script> To be shortened to: <script type="text

AEM 6.1 Maven Dependency Resolution

假如想象 提交于 2019-12-20 03:07:40
问题 I'm using AEM6.1 with Maven as build manager. I want to extend the com.day.cq.dam.core.process.ThumbnailProcess class. Using the AEM buit-in dependency resolver system/console/depfinder it seems that the class should be contained in <dependency> <groupId>com.day.cq.dam</groupId> <artifactId>cq-dam-core</artifactId> <version>5.8.172</version> <scope>provided</scope> </dependency> Anyway the Adobe nexus repo does not contain this version and all the older do not provide the above class. I wish

OSGi bundles won't start - Unable to resolve sun.reflect.generics.reflectiveObjects

ぃ、小莉子 提交于 2019-12-20 02:32:38
问题 After seemingly irrelevant changes in the code of my AEM project, my bundle fails to resolve. Upon inspecting the logs, I can see the following errors appearing. 22.04.2015 11:00:18.650 *ERROR* [qtp1266495948-35] org.apache.felix.http.jetty %bundles.pluginTitle: Cannot start (org.osgi.framework.BundleException: Unresolved constraint in bundle my-bundle ... [caused by: Unable to resolve 401.121: missing requirement [401.121] osgi.wiring.package; (osgi.wiring.package=sun.reflect.generics