since ‎01-05-2014
‎05-10-2020
vdhim23
Level 3
Load Site Specific Dictionary vdhim23 - Adobe Experience Manager
Hi, We have dictionary under /content/dam for languages say (en-us, es-us) . When we load the page its injected and we have the translated content render on the page. As part of the requirement I have some doubts to clarify. 1) When I load the page, I see multiple calls of /libs/cq/i18n/dict.xxx.json, how can we restrict default dictionary calls?/libs/cq/i18n/dict.en.json/libs/cq/i18n/dict.en-US.json (We need only this one)/libs/cq/i18n/dict.en.json2) My custom dictionary /libs/cq/i18n/dict.en-U...
80
Views
0
Likes
1
Answers and Comments
Dynamically Load Field Set - Dispatcher vdhim23 - Adobe Experience Manager
Hi,I have an article page (Dynamic)| which getting data from service and display article's content on the page. It has certain attributes such as Article Name, Last Updated Date, etc.This page is cached and shows the content. Only the Last Updated Date is frequently getting change. Couple of solutions that we had :Use SDI, But this will make the whole component non-cacheable but we want caching of content.Use Ajax call, Right now the implementation is purely written in the backend to get and ren...
406
Views
0
Likes
0
Replies
Dynamically Update Path On data-sly-use vdhim23 - Adobe Experience Manager
Hi, I am calling one template using data-sly-use. below is the directory structure i have/apps/myprj1/core/components/content/componentA/componentA.html/apps/myprj1/core/components/content/templates/templatesA.htmlNow I want to use the template in componentA.html as below. But not able to call template.Idea is during using template, avoid the project name in the path i.e. myprj1How this can be fix.
679
Views
0
Likes
1
Answers and Comments
Include XF in Sightly vdhim23 - Adobe Experience Manager
Hi,I need to add XF in sightly as static include. e.g.Here xfpath is the path of experience fragment. But this fragment not display on my page. what is the way to do it? xfpath = /content/experience-fragments/myapp/en/products/1234Regards,
410
Views
0
Likes
1
Answers and Comments
Trigger Error Code From Sightly vdhim23 - Adobe Experience Manager
Hi,Is there any convienent and easy to use way out to trigger error codes to check error handling. AEM version 6.5.Error Codes : 500 , 400, 403 Thanks,
397
Views
0
Likes
1
Answers and Comments
Re: Unable to navigate landing page after login vdhim23 - Adobe Experience Manager
Tried forward as well, unfortunately, same behaviour.org.apache.sling.api.wrappers.SlingHttpServletRequestWrapper req = new org.apache.sling.api.wrappers.SlingHttpServletRequestWrapper(request) { public String getMethod() { return "GET"; } };javax.servlet.RequestDispatcher dispatcher = request.getRequestDispatcher(path);dispatcher.forward(req, response);
1177
Views
0
Likes
1
Replies
Re: Unable to navigate landing page after login vdhim23 - Adobe Experience Manager
No, Changing root mapping didn't work.
1177
Views
0
Likes
3
Replies
Unable to navigate landing page after login vdhim23 - Adobe Experience Manager
Hi,I am using AEM 6.5 author instance. After login authentication, i have tries several ways to redirect new page. I can see in response, landing page is coming but does not reload in the browser. In the end, login page remains in browser.Below is the POST of my login servlet :protected void doPost(SlingHttpServletRequest request, SlingHttpServletResponse response) { String path = "/content/amc/en/homepage/landing-page.html"; try { String uname = request.getParameter("uname"); String password = ...
1255
Views
0
Likes
5
Replies
Unable to fetch OSGi Configuration Values vdhim23 - Adobe Experience Manager
Hi,I have created an event handler and used OSGi configuration as below.@Component(immediate = true, service=EventHandler.class, property= { EventConstants.EVENT_TOPIC + "=" + ReplicationAction.EVENT_TOPIC }) @Designate(ocd = PagePublishEventHandler.Configuration.class) public class PagePublishEventHandler implements EventHandler { private static String rootPage = ""; @Override public void handleEvent(final Event event) { } @Activate @Modified public void activate(Configuration config) { String ...
384
Views
0
Likes
0
Replies
Responsive Grid is not working - teaser component vdhim23 - Adobe Experience Manager
Hi,I am trying to use responsive behaviour of core components via proxy components. I am using OOTB teaser component.In editable template, I have added teaser component which have resourceSuperType core/wcm/components/teaser/v1/teaserI am in the layout mode and see the resposive layout.I tried to set the viewport of teaser component via dragging. It shrinks but when I release the key of mouse, it again take the default position. PFAI am refering the wknd codebase.AEM Env : 6.5.0Regards
1103
Views
0
Likes
3
Answers and Comments
Re: Access Inner Class Variables In Sightly vdhim23 - Adobe Experience Manager
Issue solved, changed the access specifier of inner class.
1284
Views
0
Likes
0
Replies
Re: Access Inner Class Variables In Sightly vdhim23 - Adobe Experience Manager
Hi,I can achieve my use-case in other way also but curious to know whether we can access inner class variables via object of outer class in sightly.
1284
Views
0
Likes
1
Replies
Access Inner Class Variables In Sightly vdhim23 - Adobe Experience Manager
Hi,I am trying to access inner class properties using data-sly-list as below but it shows me there are 3 objects but not sure how to print the values of objects. I tried with . operator but nothing is visible. # ${nav.filterName} Snippet of sling model :@Model(adaptables = Resource.class)public class TabSubItem {// Populating CTA private class CTA { private String filterName; private String filterImage; public String getFilterName() { return filterName; } public void setFilterName(String filt...
1639
Views
0
Likes
4
Replies
DataSource Servlet For Dynamic Drop Down vdhim23 - Adobe Experience Manager
Hi,I am using granite select resourceType to populate list of options. My servlet is written in a way which render different list based upon different parameter.Below is the sample servlet@SlingServlet(paths = "/api/bin/dropdown/vivek.json", selectors = {"abc","def"}, extensions = ".html", methods = "GET")public class AvailableThemeServlets extends SlingSafeMethodsServlet { private static final long serialVersionUID = 1668099305241096740L; @Override protected void doGet(SlingHttpServletRequest r...
562
Views
0
Likes
1
Answers and Comments
Re: Null Pointer Exception in PredicateGroup vdhim23 - Adobe Experience Manager
This is solved, session object was null which caused this exception.
535
Views
0
Likes
0
Answers
Null Pointer Exception in PredicateGroup vdhim23 - Adobe Experience Manager
Hi,I am trying to evaluate a query in AEM. This query return the result while executing in querybuilder tool : LinkDuring execution in code, I am getting NPE. Here is the map printed in logs :Map is {path=/content/dam, p.limit=-1, group.3_group.property.operation=exists, group.2_daterange.upperBound=2018-07-03, group.1_daterange.property=@jcr:content/jcr:lastModified, group.1_daterange.upperBound=2018-07-03, group.2_daterange.property=@jcr:content/cq:lastReplicated, group.3_group.property=@jcr:c...
639
Views
0
Likes
1
Answers and Comments
Missing Maven Content Plugin vdhim23 - Adobe Experience Manager
Hi,In the codebase when I am trying to execute command as : mvn clean install . All my module successfully build.I am getting below error while executing -PautoInstallPackage . Below is the error [INFO] Scanning for projects...[WARNING] The POM for com.day.jcr.vault:content-package-maven-plugin:jar:0.0.24 is missing, no dependency information available[ERROR] [ERROR] Some problems were encountered while processing the POMs:[ERROR] Unresolveable build extension: Plugin com.day.jcr.vault:content-p...
488
Views
0
Likes
1
Answers and Comments
Unable To Get Implicit Objects In WCMPojo vdhim23 - Adobe Experience Manager
I am using a component where there is need of dynamic dropdown. The options are configured in the page properties. But I am unable to get currentPage Object in datasource.html file. Below is the structure of my component.And datasource calling the wcmpojo class. Below in the flow.datasource.html HtlDatasourceExample is getting call and returning correct response if values are hardcoded.Issue is unable to get sling objects in HtlDatasourceExample such as currentPage.Thanks
421
Views
0
Likes
1
Answers and Comments
Dynamic Drop down Issue vdhim23 - Adobe Experience Manager
Hi,I am having datasource.jsp file same as in this article. https://helpx.adobe.com/experience-manager/using/creating-granite-datasource.htmlAs per my requirement I need to do customization on top of that. To do so, I need variable such as currentNode or currentPage. I am getting below behavior while using below jsp.out.println(resource.getPath()); gives result/mnt/override/apps/vwpoc/components/content/tabcontent/cq:dialog/content/items/tab1/items/column/items/tabbedcontent/field/items/column/i...
446
Views
0
Likes
1
Answers and Comments
Unable to find resources in Asset Finder vdhim23 - Adobe Experience Manager
Hi,I was looking to customize the asset finder in aem 6.4. I was using the below path to look over existing fields used in asset find but unable to find these. Path which is am using in my search is /libs/cq/gui/components/authoring/assetfinderCan someone tell me from where below highlighted section are rendering. Moreover how to add some custom action in that.Thanks
394
Views
0
Likes
1
Answers and Comments
Layout container drag and drop issue vdhim23 - Adobe Experience Manager
Hi,I am trying to use layout container and facing some issues during implementation. Below are the steps I used.I am using layout container - root in my editable template.Click on the policy icon as shown below.Selected only layout container from General Group and given the name of policy "policyA" and submit Added the layout container in Layout Container [Root]In next step, I can see two container with two parsys.Unlock the child layout container.Set the policy for inner layout container And se...
1767
Views
0
Likes
3
Replies
Re: How to prevent call /libs/cq/i18n/dict.en-us.json to download I18N vdhim23 - Adobe Experience Manager
I believe call such as /libs/cq/i18n/dict.en-us.json not consider to be secure one. Please correct me If i am wrong?Thanks
936
Views
0
Likes
0
Answers
Re: How to prevent call /libs/cq/i18n/dict.en-us.json to download I18N vdhim23 - Adobe Experience Manager
MY translations are getting pick from right location say /apps. Only change i want to bind the servlet /etc or /apps. As this is no mean because its just binding with some name. But if I want to alter this, how can i do?
935
Views
0
Likes
0
Answers
Re: How to prevent call /libs/cq/i18n/dict.en-us.json to download I18N vdhim23 - Adobe Experience Manager
I have overlayed this structure already. But if we check over the OOTB servlet which returns the I18N keys in json. it is something like as below.package com.adobe.granite.i18n.impl;@Component@Service({Servlet.class})@Properties({@Property( name = "service.description", value = {"ResourceBundle Renderer Servlet"}), @Property( name = "sling.servlet.paths", value = {"/libs/cq/i18n/dict"})})public class ResourceBundleExportServlet extends SlingSafeMethodsServlet {So shall i need to update OOTB func...
941
Views
0
Likes
0
Answers
How to prevent call /libs/cq/i18n/dict.en-us.json to download I18N vdhim23 - Adobe Experience Manager
Hi,In our project, to download i18n key/messages there is call of /libs/cq/i18n/dict.en-us.json. Now I want to use /apps/cq/i18n/dict.en-us.json . How can I achieve this.Thanks,
2446
Views
0
Likes
10
Answers and Comments
Image Compression in AEM vdhim23 - Adobe Experience Manager
Hi,I am using ImageQuick Tool to compress the DAM images. I am using below snippet for conversion.try { System.out.println(" Image is Processing :: " + assetDetails.getName() + "Original Size :: " + assetDetails.getSize()); ProcessBuilder pb = new ProcessBuilder("C:\\Program Files\\ImageMagick-6.9.9-Q16\\convert.exe", "-quality", "85%", assetDetails.getAssetNode().getPath(), assetDetails.getAssetNode().getPath()); pb.redirectErrorStream(true); Process p = pb.start(); BufferedReader br = new Buff...
1685
Views
0
Likes
1
Replies
Compare Sizes Of Assets vdhim23 - Adobe Experience Manager Assets
Hi,I want to compare the size of asset as below :AssetDetails asset = new AssetDetails(assetResource);if(asset.getSize() < 200KB) { // Do Something}As size returns string, so can't use this syntax. Any idea to compare the size of assets in AEM?Thanks,
1554
Views
0
Likes
1
Answers and Comments
Integration with ImageMagick vdhim23 - Adobe Experience Manager
Hi,I am doing the ImageMagick integration with AEM in order to compress images. AEM version i am using 6.0 with SP3.I have updated the DAM Asset Workflow.Changed EPS thumbnails (powered by ImageMagick) Step as follows :Web enabled rendition process step is as follows :Problem :Image size does not getting compress even increasing from 206KB to 208KB.AEM Logs says ImageQuick processing the image, but size not reducing:13.04.2018 15:05:43.111 *INFO* [JobHandler: /etc/workflow/instances/server0/2018...
516
Views
0
Likes
0
Replies
java.lang.VerifyError: AEM Mock vdhim23 - Adobe Experience Manager
Hi,I am having below line in my test case. Page page = context.pageManager().create("/content/sample/en", "test1","/apps/sample/templates/homepage", "title1");But I am getting below error when execute:java.lang.VerifyError: (class: com/day/cq/wcm/api/WCMException, method: signature: (Ljava/lang/Throwable;)V) Constructor must call super() or this()Below is the document I am refering :Usage | AEM MocksHow can i solve that issue.Thanks,
747
Views
0
Likes
1
Replies
Constructor must call super() or this() Junit vdhim23 - Adobe Experience Manager
Hi, I am trying to execute simple test case, but getting an error. Below is my test case :@Rulepublic AemContext context = new AemContext();@Testpublic void test() throws Exception { Resource currentResource = context.create().resource("/content/app/en-us/page", "jcr:title", "Title Page", "width", "5","height","9"); inheritanceValueMap = Mockito.spy(new HierarchyNodeInheritanceValueMap(currentResource)); Assert.assertThat(inheritanceValueMap.getInherited("width", StringUtils.EMPTY), Is.is("5"));...
2136
Views
1
Like
2
Replies
Likes given to
Likes from