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
2 answers

Replace node along with subnodes in a single request

I have a widget that creates a POST request that creates a node and a dynamic number of subnodes, like: ./sling:resourceType:app/component _charset_:utf-8 :status:browser ./data:data ./a/a:one ./a/b:two ./b/a:one ./b/b:two This works nice the…
santiagozky
  • 2,519
  • 22
  • 31
0
votes
1 answer

Is there a way to let a JSP file be served with the HTML extension in AEM?

I have a page that contains dynamic content: /content/foo/bar/baz.jsp But I want it to be accessible with the .html extension. What's proper way to do this?
TheFooProgrammer
  • 2,439
  • 5
  • 28
  • 43
0
votes
1 answer

How do I configure built in form Component in CQ 5?

I have dragged the predefined Form component in my page. I want to configure this form component i.e. by default it's points to itself, and data goes in BulkEditor. I want my data to be submitted to my own servlet. So how do I make the…
Oliver
  • 6,152
  • 2
  • 42
  • 75
0
votes
2 answers

How do I add the command XX:-UseSplitVerifier to an OSGi bundle built in CRXDE Lite (CQ5.5)?

I am trying to create a custom WCMCommand in CQ5.5. I have JDK1.7 and am getting the dreaded VerifyError. ERROR [OsgiInstallerImpl] pack.age.name [pack.age.name] Error during instantiation of the implementation object (java.lang.VerifyError:…
Reafexus
  • 333
  • 1
  • 4
  • 17
0
votes
1 answer

What is the intended usage of AEM Component views and partials?

At the following link there is a cheatsheet for Adobe Experience Manager (AEM formerly CQ). http://activecq.com/system/assets/46/original/quick-reference.html There is a section on the page called "Component Organization" At the bottom of the list…
jedatu
  • 4,053
  • 6
  • 48
  • 60
0
votes
2 answers

how to update sling.properties

As per my requirement, I need to read some values from properties file when CQ starts. I'm thinking for a solution where I can update crx-quickstart\conf\sling.properties depending on my environment and then when CQ will start then it should read…
Pakira
  • 1,951
  • 3
  • 25
  • 54
0
votes
2 answers

cq5 can't create servlet resource

I create a servlet in my CQ5 application: import java.io.IOException; import javax.servlet.ServletException; import org.apache.felix.scr.annotations.sling.SlingServlet; import org.apache.sling.api.SlingHttpServletRequest; import…
Tien Nguyen
  • 4,298
  • 9
  • 30
  • 44
0
votes
0 answers

Sling quartz heartbeat gives exceptions in Hearthandler

When I have a running sling instance I get a funny Exception during job execution of org.apache.sling.discovery.impl.common.heartbeat.HeartbeatHandler@6dd08975 : Exception while talking to repository…
0
votes
1 answer

Meet issue with org.apache.jackrabbit.core.security.simple.SimpleLoginModule create when cq5 login module

I want to write login module for my CQ5 application so i apply this API I put this api to my servlet code but it doesn't work. Any one show me the right way ? Here is my implementation: @SlingServlet(paths = { "/bin/app/signin" }, methods = { "POST"…
Tien Nguyen
  • 4,298
  • 9
  • 30
  • 44
0
votes
2 answers

Optimizing sling queries

I have a cq5 component that needs to query a given path for a couple of other component types like this: String query = "select * from nt:unstructured where jcr:path like '/content/some/path/%' and ( contains(sling:resourceType, 'resourceType1')…
Ben Newman
  • 33
  • 1
  • 3
0
votes
2 answers

CQ5 Java QueryBuilder API

I have seen in adobe API documentation QueryBuilder Service which can be called by URLs for many query options, this returns JSON based responses. Very well. I wan to use this in java API. I have found some examples and tried in eclipse but some…
zaxeer
  • 189
  • 2
  • 11
0
votes
2 answers

Config eclipse to view .esp as a jsp file

I'm working on Apache Sling framework and my Eclipse IDE recognize esp file as a text file, so are there any way to make it work as jsp file so i could have auto complete, highlight effect...
Tien Nguyen
  • 4,298
  • 9
  • 30
  • 44
0
votes
3 answers

Nested Multifield or Multifield with in Multifield in CQ5

Wanted to a build a nested multifield dialogue in cq5. My requirement is to build a single multified component with Title LinkText Linkpath ImageUpload with in this multifield ,I wanted to have linktext as another multifield. Note: .I was able to…
Vinod M
  • 3
  • 1
  • 2
0
votes
1 answer

Difference between replaceSelector and include file

I am writing JSP code and I have included sling taglibs as What is the best way to include an external file ? There are two options: Include file: <%@ include file="global.jsp" %> Use replaceSelectors as
Sachin Jain
  • 21,353
  • 33
  • 103
  • 168
0
votes
1 answer

not able to instantiate osgi bundle class from component jsp

I have written a simple sling component which has one interface and another one is implemented class. I am building this bundle jar using maven,i am installing it from CQ felix console.Bundle is uploaded successfully and it's in active state. When i…
kishore
  • 11
  • 1