aem

Adobe CQ EXTJS component data post to servlet

浪子不回头ぞ 提交于 2020-01-05 09:31:50
问题 I got a EXTJS CQ component with two text fields and and button. When the "save" button clicked, the dialog data has to be submitted to custom sling servlet. Custom sling servlet will call a osgi service and finally saves data to crx using jcr api. Question : How to post the dialog data to servlet ? I am new to CQ, Thanks for any help! -Sri 回答1: I'm assuming when you say "save" you are referring to some custom button and not the "OK" button that saves the dialog data to the node. Add a handler

AEM 6.3 - Creating Event handler using OSGi R6 annotations

别等时光非礼了梦想. 提交于 2020-01-05 05:40:29
问题 I have created an Event handler by following https://github.com/nateyolles/aem-osgi-annotation-demo/blob/master/core/src/main/java/com/nateyolles/aem/osgiannotationdemo/core/listeners/SampleOsgiResourceListener.java and it works fine. However, I get the warning "The field SlingConstants.TOPIC_RESOURCE_ADDED is deprecated". I did some searching and found this thread :https://forums.adobe.com/thread/2325819 Here are the challenges that I am facing: 1) I want to create a separate configuration

Filter request URL before any processing in CQ5.6

℡╲_俬逩灬. 提交于 2020-01-04 09:56:27
问题 In my CQ5.6 application,. as soon as the user hits a URL, I need to edit it using a certain parameters. All this must happen before Sling starts processing the URL. I basically need to convert the URL like: www.mysite.fr --> converts to --> /content/mysite/fr/ and so on.... I understand I'll need to create an OSGi bundle for this, but which API should I use to ensure that the URL is filtered by my class first and then catered by Sling. ? 回答1: if you want a code-based solution for multiple

Sling Resolution script calling order

北慕城南 提交于 2020-01-04 04:14:07
问题 I was looking over how sling will call the script on the basis of url. In the case of selector it seems work fine but if i use no selector, its confusing for me to understand: I have a page /content/AEMProject/English/test.html which has resourceType AEMProject/components/page/basepage resouce basepage has 4 script files : basepage.html.jsp , basepage.jsp , html.jsp, GET.jsp . I red the Sling Best Match concept. So i have two strange cases. 1) My basepage.html.jsp is executing, as i consider

Conditionally enable/disable fields in AEM 6.1 (granite.ui) TouchUI dialogs

孤人 提交于 2020-01-03 15:34:17
问题 Does anyone have any experience with conditionally disabling fields based on value of a previous field in an AEM6.1 TouchUI dialog? To give some context I have a checkbox in my TouchUI dialog used to enable/disable (hide/show) a Call To Action button within a component. I'd like to disable the CTA buttonText and href fields in the dialog itself where the author has disabled the CTA via the checkbox. Adversely I'd like to enable these fields where the CTA checkbox is checked enabling CTA. I

Issue with installing AEM 6

瘦欲@ 提交于 2020-01-03 09:38:05
问题 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 getAnonymousResolver: Anonymous access not allowed by configuration - requesting credentials 09.02.2015 11:54:54.749 *ERROR* [0:0:0:0:0:0:0:1 [1423463094744] GET /libs/granite/core/content/login.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Uncaught SlingException

how sling rewriter works clarification

我与影子孤独终老i 提交于 2020-01-02 09:30:12
问题 I am trying to understand how sling url rewrite works. I'm following this url - http://www.cognifide.com/blogs/cq/multidomain-cq-mappings-and-apache-configuration/ Steps I've done in publish environment - /etc/map.publish/http: jcr: primaryType: "sling:OrderedFolder", home: { sling:internalRedirect: ["/content/geometrixx/en.html"], jcr:primaryType: "sling:Mapping", sling:match: "localhost:4503/$" }, localhost.4503: { sling:internalRedirect: ["/content/geometrixx/en"], jcr:primaryType: "sling

Adobe CQ : Regarding Session in Event Listener

a 夏天 提交于 2020-01-02 09:19:10
问题 I have a question regarding event listener. We have a event listener which listen to delete node event and perform some activity say "send email". While code review i found this, although this code is working fine i am not convinced with the session being handled here : @Activate protected void activate(ComponentContext context) { try{ final String path="/content/dam/"; Session session = repository.loginAdministrative(repository.getDefaultWorkspace()); observationManager = session

How to create wizards in grante UI and design it in coral UI html in AEM

你说的曾经没有我的故事 提交于 2020-01-01 22:15:24
问题 As i am new to AEM development, I want to know how to create wizards in AEM and how to design those using coral UI. As i have created wizard and it contains two step view: source ---> select I have designed this two step wizard and i have to show different items on each step.This steps are nothing but nodes under my createfragment page. 1) Source: I am having two radio buttons lets suppose selecting gender like male and female. I have created node for source and under source items, created

Get JSP output within Servlet in AEM

纵然是瞬间 提交于 2020-01-01 17:03:01
问题 In CQ, we need to process jsp within servlet then combine the result with other results we get from server before writing back to browser. The following code is almost what we need, except that it writes the result back to browser after processing jsp. RequestDispatcher dispatcher = request.getRequestDispatcher(resource); dispatcher.forward(request, response); We tried using mock response as follows: RequestData requestData = new RequestData(slingRequestProcessor, request, mockResponse);