Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

daniel_henriqu1
Community profile daniel_henriqu1 Level 4
Job title here
Location here
19 BADGES
Level 4

Level 4

Learn more
Joined the community 03-10-2014 8:33:10 AM
Offline
Top badges earned by daniel_henriqu1
Customize the badges you want to showcase on your profile
Re: AEM's preview mode for Campaign users and targeted contents
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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...

Views

5.1K

Likes

0

Replies

1
Re: How to deal with missing properties on nodes from earlier versions
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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.

Views

593

Like

1

Replies

0
Re: Project version (pom.xml), package version and bundle version
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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!

Views

612

Likes

0

Replies

0
Re: Component level script is not working on phoneGap APP
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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.

Views

347

Likes

0

Replies

0
Project version (pom.xml), package version and bundle version
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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...

Views

853

Likes

0

Replies

2
Re: Logging Configuration Not working
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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...

Views

3.9K

Likes

0

Replies

1
Re: Logging Configuration Not working
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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...

Views

3.9K

Likes

0

Replies

4
Re: issue with html data returned as json
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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.

Views

438

Likes

0

Replies

0
Re: [AEM Webinar] [25 April 2017] Join Ask the Community Expert session on Building responsive layouts using Bootstrap and Angular JS
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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.

Views

5.7K

Likes

0

Replies

1
Re: Usage of serialVersionUID in custom servlets which extends SlingSafeMethodsServlet
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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...

Views

750

Likes

0

Replies

0
Re: Usage of serialVersionUID in custom servlets which extends SlingSafeMethodsServlet
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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...

Views

773

Like

1

Replies

0
Re: Externalizing URL in JavaScript Use Api
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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.

Views

750

Likes

0

Replies

0
Re: Externalizing URL in JavaScript Use Api
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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.

Views

753

Likes

0

Replies

0
AEM 6.2 - Target component (cq/personalization/components/target)
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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...

Views

2.1K

Like

1

Replies

5
Re: ResourceResolver try-with-resources in AEM 6.2
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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.

Views

1.1K

Likes

0

Replies

0
Re: Things I check when I do a code review
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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...

Views

7.9K

Likes

0

Replies

1
Re: Switching between Classic UI and Touch UI (author friendly)
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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.

Views

1.5K

Likes

0

Replies

0
Switching between Classic UI and Touch UI (author friendly)
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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.

Views

3.9K

Like

1

Replies

6
Re: Things I check when I do a code review
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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.

Views

7.9K

Likes

0

Replies

3
Re: Rich Text Editor - In Place Editing in Internet Explorer
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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.

Views

1.4K

Likes

0

Replies

1
Re: generating clientlib from java
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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.

Views

609

Likes

0

Replies

0
Re: Issue in sightly component after upgrade from 6.0 to 6.2
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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.

Views

863

Likes

0

Replies

0
Re: Externalizing URLs for a sitemap
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
daniel_henriqu1
- Adobe Experience Manager
Or you can simply use Sling Mappings (reverse mapping) and ResourceResolver.map to achieve the same result.Regards,Daniel.

Views

1.0K

Likes

0

Replies

0
Re: Externalizing URLs for a sitemap
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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.

Views

902

Likes

0

Replies

0
Re: Relevant sling:resourceType for xtype:htmleditor
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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.

Views

1.4K

Likes

0

Replies

0
Re: How to manage deployment of additional packages in a controlled way?
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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...

Views

692

Likes

0

Replies

0
Re: HTML Enabled component
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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.

Views

1.9K

Likes

0

Replies

0
Re: HTML Enabled component
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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.

Views

1.9K

Likes

0

Replies

1
Re: Skipping component inclusion programmatically
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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.

Views

972

Likes

0

Replies

0
Re: Is it possible to add javascript in rte? If yes, then how?
Avatar
Ignite 5
Level 4
daniel_henriqu1
Level 4

Likes

15 likes

Total Posts

56 posts

Correct reply

10 solutions
Top badges earned
Ignite 5
Give Back 50
Ignite 3
Give Back 25
Ignite 1
View profile
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.

Views

1.3K

Likes

0

Replies

0