aem Questions
2
Solved
In the Sightly templating language, for Adobe AEM6 (CQ), how do I add an attribute to an element only if a condition is true, without duplicating lots of code/logic?
e.g.
<ul data-sly-list="${...
April asked 3/7, 2014 at 9:54
1
Solved
I have a component using the Rich Text Edit widget (xtype="richtext") in my project that's used across the entire site as the default text component.
The users would like to be able to in...
2
Solved
I need to create a node in AEM using java services. I created a workflow, in which a process triggers a java service inside content/dam/Test.
Do I need to create a node using java services or simp...
1
Solved
Is it possible to map a single dialog field to multiple JCR properties without using custom widgets?
I have a piece of configuration in my AEM project that I'd like to simplify.
The configuration can be changed by two groups of users. One requires granular control over a set of parameters and the...
1
Solved
I am using OSGI config files to define configuration for different environments, as specified in OSGI Configuration. I have configurations for multiple run modes saved in the same repository. The d...
2
Solved
I had used <c:forEach> in jstl. Now i want to use sightly.
My usecase is to print numbers from 1 to 10 then how can i iterate in sightly as for loop in java
4
Solved
Hi I'm using this code to create a Post method for my CQ5 example application.
package com.adobe.cq.sling;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
i...
1
Solved
If given an option to use Sling Models or WCM use class which one should be preferred when and why?
Is either of them better performance wise?
Thanks in Advance
Hild asked 28/4, 2016 at 9:11
3
Solved
I followed a few other solutions on this site to this dilemma, and I do not have Joda Time installed, but I'm still at a loss as to why this is failing.
I also tried removing the colons, as one so...
Carmencita asked 19/3, 2013 at 16:53
0
AEM's Cloud Services API isn't terribly well documented, and provides a number of somewhat awkward to use methods that can be used to find a given Configuration from a resource. Below are a few exa...
1
Solved
what is the main difference between vanity url and sling:alias?
as per docs : here
sling:alias – The property may be set on any resource to indicate an alias name for the resource. For example th...
Bambi asked 22/3, 2016 at 6:11
1
Solved
There is an service interface HelloService, this is implemented by 2 Service implementations
HelloService Interface
public interface HelloService {
public String getRepositoryName();
}
HelloSe...
3
Solved
I am trying to have a default checked checkbox on a component dialog when editing. Here are the properties on the field:
jcr:primaryType: widget
checked: true (boolean) *Documentation says this de...
Rozek asked 7/5, 2012 at 14:7
2
Solved
I have a component with properties as follows.
@Component(immediate = true, metatype = true, label = "Conf Details")
@Service(value = { LocationConfigurationUtil.class })
@Properties({
@Property(...
3
Solved
I'm using Sightly and while investigating a bug in my application I noticed a behaviour I didn't expect.
Some of the links would render with ampersands in the query string escaped twice. Example:
&...
3
I have a CQ5 component with a delete button in the author mode's edit view. Now there are two possible ways to include this component in a page:
Statically via a cq:include tag
Dynamically via a ...
Aerography asked 30/4, 2014 at 12:34
4
Solved
I've added a paragraph system component in my template, trying to emulate the Geometrixx's contentPage. Everything is fine but I can't drag any components into the system because there are none to ...
Beamon asked 9/11, 2011 at 21:53
1
I'm aware of how AEM creates cookie called "login-token" after successful authentication .
My question is how AEM validates this cookie in each request? Is there any filter available to intercept ...
Asp asked 12/2, 2016 at 9:6
1
Solved
I have the following service:
@Component(
immediate = true,
metatype = true)
@Service
@Property(name = EventConstants.EVENT_TOPIC, value = {ReplicationAction.EVENT_TOPIC})
public class MyService...
Ism asked 9/2, 2016 at 16:56
1
I am trying to access following sling servlet using http://localhost:4502/sling/test-services/planet.html
But, it is giving 404 error, not sure what I am doing wrong here.
@Component
@Service(val...
4
I am unable to install AEM6.0 in my system through I have placed correct properties file. Please find below the errors.
*INFO* [qtp2067191557-43] org.apache.sling.auth.core.impl.SlingAuthenticator...
Electrotherapeutics asked 9/2, 2015 at 6:30
2
Solved
I have component hierarchy parsys -> parentcomp -> childcomp
parentcomp node has some properties.
I am trying to access parent parentcomp properties at childcomp level.
I am not sure how to...
2
I have the following code base to share with you guys to list the pages that fetch using the query builder via AJAX call. We have to pass the URL and the parameters to fetch the child pages from th...
Mcclimans asked 17/9, 2014 at 2:7
3
Solved
I am creating a multifield component having 2 textfields. Following is my dialog xml.
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="...
Leonhard asked 10/10, 2014 at 2:13
5
Solved
I develop the site with Day CQ5 and was faced witha problem.
I'm creating a component, and the dialogue for it. I use in the dialog for the component element "multifield", which contains several el...
© 2022 - 2024 — McMap. All rights reserved.