since ‎03-10-2014
‎10-12-2019
daniel_henriqu1
Level 3
Re: AEM's preview mode for Campaign users and targeted contents daniel_henriqu1 - Adobe Experience Manager
Hi, konathalasuren.You can try a few things:1. Using the JavaScript console, add a breakpoint to "if (window.ContextHub && ContextHub.SegmentEngine) {" and reload the pageIf the if body doesn't get called, the include of the contexthub JS library is probably at the wrong place.Move it to the of the page.2. Using the JavaScript console, open contexthub.kernel.js, add a breakpoint to the second occurrence of "return resolvedSegments" and reload the pageAt the first time, the resolvedSegments will...
4399
Views
0
Likes
1
Replies
Re: How to deal with missing properties on nodes from earlier versions daniel_henriqu1 - Adobe Experience Manager
Hi.How about this tool: https://github.com/HS2-SOLUTIONS/hs2-aem-commons/tree/master/on-deploy-scripts-framework?(I'm not sure if it is suitable for production environments)Regards,Daniel.
500
Views
1
Like
0
Answers
Re: Project version (pom.xml), package version and bundle version daniel_henriqu1 - Adobe Experience Manager
Great idea, Feike!Applying the same principle to JCR packages (using Query Builder Tool and Query Builder Debugger), I've been able to check the whole variety of version numbers used in my current AEM installation.Some examples:0.0.100.0.12-CQ620-B00020.0.220.0.78-CQ620-B00010.0.8(...)Thank you!
498
Views
0
Likes
0
Answers
Re: Component level script is not working on phoneGap APP daniel_henriqu1 - Adobe Experience Manager
Hi, Randeep.Which version of AEM are you using? Is AEM6.0?Are you be able to connect to your app using Chrome Dev Tools?Which error message do you see at the JavaScript Console?Does the generated .zip file (the one used to build your .apk/.ipa) contain that JavaScript file?Regarding your questions: I'm not aware of any Update Handler capable of adding external JS files to the generated .zip file...Regards,Daniel.
269
Views
0
Likes
0
Answers
Project version (pom.xml), package version and bundle version daniel_henriqu1 - Adobe Experience Manager
Hi, everybody.In a project structure created using Adobe Maven Archetype or Marketing Cloud Maven Archetype, can I use "anything" as the project version of my POMs?Or some values may lead to inconsistencies in the Package Manager and/or in the OSGI installer?I mean, are all the following valid values?1.01.0.01.0.0.01.0.0.0.01.0.0alpha1.0.0-alpha1.0-SNAPSHOT1.0.0-SNAPSHOT1.0.0.0-SNAPSHOT1.0-beta-SNAPSHOT1.0_beta-SNAPSHOT1.0.0.0-alpha1-rc3-SNAPSHOT1.0.0.0_alpha1_rc3-SNAPSHOTWill they all work as p...
738
Views
0
Likes
2
Answers and Comments
Re: Logging Configuration Not working daniel_henriqu1 - Adobe Experience Manager
Hi, Rohit.Under /apps/<>/config or /apps/<>/config.<>, try to create a node org.apache.sling.commons.log.LogManager.factory.writer-<>, with the following properties:org.apache.sling.commons.log.file="../logs/yoursite.log"org.apache.sling.commons.log.file.number="{Long}5"org.apache.sling.commons.log.file.size="400MB"Or the corresponding vault file (org.apache.sling.commons.log.LogManager.factory.writer-<>/.content.xml), with the following content: I think the log.file here must match the log.file...
3313
Views
0
Likes
1
Replies
Re: Logging Configuration Not working daniel_henriqu1 - Adobe Experience Manager
Hi, Rohit.I usually add only a factory configuration containing the file name, the log level and the packages/classes being logged, as you can see here:https://github.com/daniel-lima/samples-aem-less-debug/blob/master/content/src/main/content/jcr_root/apps/samples-less-debug/config/org.apache.sling.commons.log.LogManager.factory.config-samplesLessDebug.xmlMost of the time, this is enough.On rare occasions, I had to restart my AEM instance so the changes could take place, but that is not the regu...
3313
Views
0
Likes
4
Replies
Re: issue with html data returned as json daniel_henriqu1 - Adobe Experience Manager
Hi, Vivek.Sorry, but I couldn't follow you. What is this HTML data? Is it a property of a JCR node? Is it a cq page?How has it been filled in? How is it being rendering? Are you using a JSP or a HTL as render script?Can you please provide more details?Regards,Daniel.
347
Views
0
Likes
0
Answers
Re: [AEM Webinar] [25 April 2017] Join Ask the Community Expert session on Building responsive layouts using Bootstrap and Angular JS daniel_henriqu1 - Adobe Experience Manager
Hi.Is there a recording of this session? Will it be added to https://helpx.adobe.com/experience-manager/topics/ate-sessions.html?Regards,Daniel.
5075
Views
0
Likes
1
Replies
Re: Usage of serialVersionUID in custom servlets which extends SlingSafeMethodsServlet daniel_henriqu1 - Adobe Experience Manager
Hi,serialVersionUID is a Java "thing" for Serializable classes: Stream Unique Identifiers.It's used by the regular Java serialization mechanism: Serializable Objects.Regarding the "random" long value it has probably been generated/assigned by an IDE (Eclipse, IntelliJ), based on the characteristics of the corresponding class.Some additional references about Servlets and serialization:Why does HttpServlet implement Serializable?Why do GenericServlet and HttpServlet implement the Serializable inte...
356
Views
0
Likes
0
Answers
Re: Usage of serialVersionUID in custom servlets which extends SlingSafeMethodsServlet daniel_henriqu1 - Adobe Experience Manager
Hi.serialVersionUID is a Java "thing" for Serializable classes: Stream Unique Identifiers.It's used by the regular Java serialization mechanism: Serializable Objects.Regarding the "random" long value, it has probably been generated/assigned by an IDE (Eclipse, IntelliJ), based on the characteristics of the corresponding class.Some additional references about Servlets and serialization:Why does HttpServlet implement Serializable?Why do GenericServlet and HttpServlet implement the Serializable int...
389
Views
1
Like
0
Answers
Re: Externalizing URL in JavaScript Use Api daniel_henriqu1 - Adobe Experience Manager
Vamsi, AFAIK CQ.HTTP is exposed by a client lib and therefore is not available to be used in a JavaScript Use (a server side element interpreted by Rhino).Regards,Daniel.
536
Views
0
Likes
0
Answers
Re: Externalizing URL in JavaScript Use Api daniel_henriqu1 - Adobe Experience Manager
Hi, Raghava.You can use the sling global object (it is an instance of the SlingScriptHelper class) to obtain a reference to the Externalizer service.Untested code:var externalizer = sling.getService(Packages.com.day.cq.commons.Externalizer); var externalURL = externalizer.externalLink(resolver, resource.getPath());Regards,Daniel.
540
Views
0
Likes
0
Answers
AEM 6.2 - Target component (cq/personalization/components/target) daniel_henriqu1 - Adobe Experience Manager
Hi, everyone.I'm aware:I can use either the Targeting mode (Touch UI) or the Target menu (cq:disableTargeting="false" - Classic UI) to configure a component with specific values to a particular segment;This is supposed to work for campaigns created with either Adobe Target or ContextHub as engine.But I have a few questions about the "Target component" (cq/personalization/components/target):Would it work for campaigns whose the selected engine is ContextHub?How can I configure which components ar...
1959
Views
1
Like
5
Answers and Comments
Re: ResourceResolver try-with-resources in AEM 6.2 daniel_henriqu1 - Adobe Experience Manager
Hi, Feike.Isn't try-with-resources a Java 7 thing?So, I believe we just need to import the right Sling API in order to use it, right?Regards,Daniel.
721
Views
0
Likes
0
Answers
Re: Things I check when I do a code review daniel_henriqu1 - Adobe Experience Manager
To be honest, when I first wrote my answer I had a different solution in mind (I had forgotten about try-withResources).What are your thoughts abouta "functional" interface representing the code in the limited scopepublic interface Action { public T perform(final ResourceResolver resourceResolver) throws PersistenceException; }a OSGi utility service with a withResourceResolver method:public T withResourceResolver(final Action action) throws PersistenceException, IllegalStateException { Resource...
7292
Views
0
Likes
1
Replies
Re: Switching between Classic UI and Touch UI (author friendly) daniel_henriqu1 - Adobe Experience Manager
Hi, Praveen. Thank you for your answers!I will check the first option.I believe the second one isn't really an option because if I set the default either to Classic or to Touch UI, how would I quickly move back to the Touch UI?I would need to change the browser URL to move back 😞Thanks!Regards,Daniel.
910
Views
0
Likes
0
Answers
Switching between Classic UI and Touch UI (author friendly) daniel_henriqu1 - Adobe Experience Manager
Hi, there!When editing a page, is there an OOTB, fast and author friendly way of switching between the Classic UI and the Touch UI?I'm aware of the option to switch from the Touch UI to the Classic UI:But is there an option to switch back? I mean: is there a button or a menu item to switch from the Classic UI to the Touch UI?Thanks!Regards,Daniel.
3194
Views
1
Like
6
Answers and Comments
Re: Things I check when I do a code review daniel_henriqu1 - Adobe Experience Manager
Nice article, Jörg!Regarding the item 3, how about using Lamba expressions to ensure that a ResourceResolver/Session will remain opened only within a limited scope?Something similar to Groovy withReader/withWriter.Regards,Daniel.
7292
Views
0
Likes
3
Replies
Re: Rich Text Editor - In Place Editing in Internet Explorer daniel_henriqu1 - Adobe Experience Manager
Hi, Saryu.Which version of IE are you using? Are you using the Classic UI or the Touch UI?As you can see in Supported Browsers only IE 11 or Edge would be safe choices.Regards,Daniel.
989
Views
0
Likes
1
Replies
Re: generating clientlib from java daniel_henriqu1 - Adobe Experience Manager
Hi.Out of curiosity: would this work after dispatcher/apache started to cache the generated .html?I mean: is this "dynamic library selection" based on something like a sling selector?Otherwise, I think even if you fix the current issue, you'll face a cache issue later.Regards,Daniel.
490
Views
0
Likes
0
Replies
Re: Issue in sightly component after upgrade from 6.0 to 6.2 daniel_henriqu1 - Adobe Experience Manager
Hi, Dipti.To which classes/packages are you referring to? Are they part of the AEM core or are they custom/3rd-party?What is the status of the bundle that export those packages/classes? Is it active?Regards,Daniel.
747
Views
0
Likes
0
Answers
Re: Externalizing URLs for a sitemap daniel_henriqu1 - Adobe Experience Manager
Or you can simply use Sling Mappings (reverse mapping) and ResourceResolver.map to achieve the same result.Regards,Daniel.
768
Views
0
Likes
0
Answers
Re: Externalizing URLs for a sitemap daniel_henriqu1 - Adobe Experience Manager
Hi, Ben.Yes, there is a specific setting for Externalizer: http://:/system/console/configMgr/com.day.cq.commons.impl.ExternalizerImplYou can configure a "domain" and use its name as the second parameter of externalLink call.For further info, please check: https://docs.adobe.com/docs/en/aem/6-2/develop/platform/externalizer.htmlBe aware that some Sling Mappings may also influence the links generated by the Externalizer.Regards,Daniel.
646
Views
0
Likes
0
Answers
Re: Relevant sling:resourceType for xtype:htmleditor daniel_henriqu1 - Adobe Experience Manager
Scott, I've read somewhere that htmleditor is a RTE that allows inserting HTML tags (and maybe JS/CSS code?), but I'm not sure about that...Regards,Daniel.
1114
Views
0
Likes
0
Replies
Re: How to manage deployment of additional packages in a controlled way? daniel_henriqu1 - Adobe Experience Manager
I'm very interested in the answer for this one I've tried to use /crx-quickstart/install to achieve that, but there is no way of enforcing the installation order of JCR packages (you can only control the start level of bundles) and apparently JCR packages may be installed in parallel by the OSGi installer As a side note, I've been working on a tool to read/load JCR packages from multiple sources and install them in a preconfigured order.This way we would be able to configure the package list jus...
573
Views
0
Likes
0
Answers
Re: HTML Enabled component daniel_henriqu1 - Adobe Experience Manager
If your problem is related to the RTE, please check the post Is it possible add javascript in rte?Regards,Daniel.
1567
Views
0
Likes
0
Replies
Re: HTML Enabled component daniel_henriqu1 - Adobe Experience Manager
Hi.You're using HTL/Sightly, the automatic context-aware escaping is probably in place. Try to force a specific context, such as:${myScript @ context='unsafe'}Regards,Daniel.
1567
Views
0
Likes
1
Replies
Re: Skipping component inclusion programmatically daniel_henriqu1 - Adobe Experience Manager
Feike Visser wrote... Not if you include your css/js in the header and footer of your page. Yeah. I've thought something similar later.I believe that the problem that I've described would only happen if you're using the same category for all your components...If you have a different category for each one of them and an include instruction for each category (as part of the component code), you won't face that kind of problem.Regards,Daniel.
901
Views
0
Likes
0
Answers
Re: Is it possible to add javascript in rte? If yes, then how? daniel_henriqu1 - Adobe Experience Manager
Hi, Himanshu.I haven't tried that before...Is the RTE removing the content or are you having a hard time trying to render it?Are you able to see the <script> tag in the corresponding node under your page (CRX DE)?Regards,Daniel.
726
Views
0
Likes
0
Answers