Questions tagged [sling]

Apache Sling is a web framework that uses Java Content Repository to store and manage content. It also uses OSGi (Apache Felix) for dynamic loading.

Description

Apache Sling is a web framework that uses a Java Content Repository , such as Apache Jackrabbit , to store and manage content.

Sling applications use either scripts or Java servlets, selected based on simple name conventions, to process HTTP requests in a RESTful way.

The embedded Apache Felix OSGi framework and console provide a dynamic runtime environment, where code and content bundles can be loaded, unloaded and reconfigured at runtime.

As the first web framework dedicated to JSR-170 Java Content Repositories, Sling makes it very simple to implement simple applications, while providing an enterprise-level framework for more complex applications.

Links

863 questions
0
votes
3 answers

AEM not deleting data inside of datepicker from JCR when input field is changed to empty

In Adobe AEM, I have a CQ dialog (using Granite UI) that has a datepicker inside of it. It looks like this when viewed in the CQ dialog: The problem occurs whenever I set a date, and save the contents of the dialog: When I do this, I can't set…
idungotnosn
  • 2,001
  • 4
  • 29
  • 36
0
votes
1 answer

UrlBuilder for apache sling

I am looking for Apache Sling Api to build url and links. I have found a URLHandler and LinkUrl but i should install Adobe cq as bundle and this is not what i want. Can any one recammand an API for URL? Thanks
Ayoub Abid
  • 432
  • 5
  • 15
0
votes
1 answer

Hide Workflow from SiteAdmin

We have a requirement in our project like we want to hide some workflows in siteadmin. We are using AEM 6.1. Please let us know if anybody has any solution. any help is highly appreciated. Thanks, Tushar
Tushar
  • 151
  • 2
  • 18
0
votes
1 answer

AEM - How configuration works

I've seen Configurations in aem which has two parts, first one is a static final String with whose name i'll access the configuration property and another one is an instance variable, whose value i'll get from properties Dictionary object. For eg…
Shashi
  • 746
  • 10
  • 39
0
votes
0 answers

how to create sitemap in cq5

I have specific cq pages and external website pages that need to be displayed as links in sitemap page. I came to know that I need to create a sitemap page component having xml.jsp that generates xml like `
Sri
  • 1,205
  • 2
  • 21
  • 52
0
votes
1 answer

Can curl be used to upload package or bundle to Sling

I know that maven-build-plugin internally uses curl and hit a POST request to service.jsp page, like this call curl -u : -X POST http://localhost:7402/crx/packmgr/service/.json/etc/packages/mycontent.zip?cmd=create -d packageName=
Shashi
  • 746
  • 10
  • 39
0
votes
0 answers

JSTL call parameterized void method

I am currently searching for a possibility to use a void method mit parameters in JSTL. The Java class is a Sling Model and worked into the JSTL via adaptTo. Is there any way to use other methods than get or set in JSTL? Rough Code (I don't think it…
Kristina
  • 1
  • 2
0
votes
1 answer

AEM returning compilation error when using jsp:include

Currently using but I now need to include a page with param so the counter is limited to within the included page, I am thinking of using:
user5733033
  • 55
  • 11
0
votes
1 answer

AEM cronjob based on certain time interval

I am trying to create a cronjob in cq using a time interval I see on the link https://sling.apache.org/documentation/bundles/scheduler-service-commons-scheduler.html I could make job1 run and it will work. But I have a questions on the code. In the…
0
votes
2 answers

Sling Adapter for detecting device requesting the page not working (in CQ AEM 6.1)

<%@ page import="com.day.cq.wcm.mobile.api.device.*"%> <% Device device = slingRequest.adaptTo(Device.class); if(device != null) { DeviceGroup deviceGroup = device.getDeviceGroup(); String userAgent = device.getUserAgent(); …
Zahid
  • 88
  • 7
0
votes
1 answer

NullPointerException at ResourceResolverFactory in AEM 6.1

I am following this article to to automate uploading multiple images in AEM 6.1. https://helpx.adobe.com/experience-manager/using/multiple-digital-assets.html At following line of writeToClientLib method of HandleFile.java, it throws…
V. Patel
  • 43
  • 1
  • 10
0
votes
2 answers

What happens to the run mode specific configuration, when I change that OSGi configuration through web console?

I have a configuration, which has different property values for different run modes of my AEM. And, I have multiple sling:OsgiConfig under different folders in my CRX repository, like config.author, config.publish. So if I want to change that…
anubhs
  • 566
  • 1
  • 8
  • 26
0
votes
1 answer

Call different method apart from doGet or doPost in sling servlet

I am new to Sling framework. Is there any way we can call different methods. For ex - on Page I have add,delete, edit button so apart from creating three files i can create three methods(add, delete,update) in same file. Please suggest. I tried by…
Manan Kapoor
  • 675
  • 1
  • 11
  • 28
0
votes
2 answers

Creating RESTful Webservice in CQ5,AEM

I want to host restful webservice from CQ5. Basically the intention is to expose all the users present in CQ5 to external systems based on some parameters like modified date, user state etc. I went through…
samir
  • 339
  • 6
  • 19
0
votes
1 answer

Strange service injection in Sling Servlet

We encountered a strange injection behaviour of service into our servlets. First serlvet looks as follows: @Service(Servlet.class) @Component( label = "Some Label", description = "Some description", metatype = true, …
Oleksandr Tarasenko
  • 1,454
  • 15
  • 21