since ‎09-11-2018
‎13-02-2020
sunitac70336244
Level 2
Re: Exception: Cannot get DefaultSlingScript while dragging component in Editable Templates sunitac70336244 - Adobe Experience Manager
Dear All,The issue is fixed now. I was getting null pointer exception in my TopNav JAVA class. So changed like below and it is working fine. if (currentPage != null) { Page homePage = currentPage.getAbsoluteParent(SiteConstants.HOMEPAGE_PARENT_DEPTH); if (homePage != null) { locale = homePage.getLanguage(true); } } }
889
Views
0
Likes
0
Answers
Re: Exception: Cannot get DefaultSlingScript while dragging component in Editable Templates sunitac70336244 - Adobe Experience Manager
Dear All and Ka,By going through some of the AEM forum posts above issue fixed after I changed from @Model(adaptables = SlingHttpServletRequest.class) to @Model(adaptables = Resource.class) .But now I am getting the below error.*ERROR* [0:0:0:0:0:0:0:1 [1573028316905] GET /conf/sunita/settings/wcm/templates/thankyou3/structure/jcr:content/root/topnav.html HTTP/1.1] com.day.cq.wcm.core.impl.WCMDebugFilter Error during include of SlingRequestPathInfo: path='/conf/sunita/settings/wcm/templates/than...
796
Views
0
Likes
0
Answers
Exception: Cannot get DefaultSlingScript while dragging component in Editable Templates sunitac70336244 - Adobe Experience Manager
Dear All,In my current project , we are converting static templates to editable templates in AEM 6.5 SP1 by using modernization_toolsBefore converting we are creating editable templates. So I have created editable template and created the policy. Now I want to use the existing component Top Navigation.While I am using the existing component in my editable template then I am getting below error. *ERROR* [0:0:0:0:0:0:0:1 [1572429882269] GET /conf/sunita/settings/wcm/templates/thank-you/structure/j...
1557
Views
0
Likes
4
Answers and Comments
Re: How to Use POST Response from Alfresco API in AEM6.4 sunitac70336244 - Adobe Experience Manager
Thanks , it is resolved now.
1077
Views
0
Likes
0
Answers
Re: How to Use POST Response from Alfresco API in AEM6.4 sunitac70336244 - Adobe Experience Manager
Dear Gaurav, Thanks a lot for your reply. Please see my comments in below. I'm unable to understand why do you want to pass postman-token in this request. My requirement is that I need all cm:title from Alfresco APIthrough post request in AEM and show in the AEM page through component. In Postman I am posting request and getting response while passing below in body. In Postman I am using authorization as Bearer Token. I am not sure if I need to use that token "or" not in AEM. Also that token is ...
1077
Views
0
Likes
0
Answers
How to Use POST Response from Alfresco API in AEM6.4 sunitac70336244 - Adobe Experience Manager
Dear all, Thanks for your response now it is resolved.
4675
Views
0
Likes
5
Answers and Comments
Re: Sending Request to Dispatcher not Publish sunitac70336244 - Adobe Experience Manager
Hi Gaurav,Thanks for replying. Below are my use cases. .Use Case-1For example I have a page in author (http://localhost:4502/content/trainingproject/en.html) .Now I did not change anything in this page and this page is static.Now I am requesting this page from my dispatcher like belowhttp://localhost/content/trainingproject/en.htmlMy main requirement come here. When I request http://localhost/content/trainingproject/en.html then en.html page should come from dispatcher cache , not from publish. ...
819
Views
0
Likes
0
Answers
Re: Sending Request to Dispatcher not Publish sunitac70336244 - Adobe Experience Manager
Dear All,Anybody can put some lights in above.Also can we do the render in dispatcher.any file in the below order.First it will check in author like below.Then It will check in publish like below.# The load will be balanced among these render instances /renders {/rend01 { /hostname "localhost" # Port of the render /port "4502" # Connect timeout in milliseconds, 0 to wait indefinitely # /timeout "0" }/rend02 #{ /hostname "localhost" # Port of the render /port "4503" # Connect timeout in milliseco...
805
Views
0
Likes
0
Answers
Re: Sending Request to Dispatcher not Publish sunitac70336244 - Adobe Experience Manager
Thanks Vish.I have updated my cache in dispatcher.any file like below and cache is working fine./cache { # The docroot must be equal to the document root of the webserver. The # dispatcher will store files relative to this directory and subsequent # requests may be "declined" by the dispatcher, allowing the webserver # to deliver them just like static files. # ###/docroot "/opt/communique/dispatcher/cache" /docroot "C:/Users/sunchoudhury/AEM-6.4/dispatcher/cache" /allowAuthorized "0"Let me clear...
808
Views
0
Likes
0
Answers
Sending Request to Dispatcher not Publish sunitac70336244 - Adobe Experience Manager
Dear All,I have an below requirement.When I will request one page for example (http://localhost/content/we-retail/us/en/women.html) then the request will go to dispatcher cache not to Publish andIt request will display the page from Dispatcher cache not from publish.Can anybody put some lights how can I achieve this. I am using AEM 6.4Thanks in advance.
2574
Views
0
Likes
6
Answers and Comments
Re: intercepting the page request in AEM-6.4 sunitac70336244 - Adobe Experience Manager
Hi jorg,I have put my contents and code in the my github branch.GitHub - sunita197881/sunitaworkplace at Intercept-AEM-page Getting null pointer exception for the below line String templatePath = page.getContentResource().getValueMap().get("cq:template").toString();But I am not able to figure out why it is coming null pointer.
4936
Views
0
Likes
1
Replies
Re: intercepting the page request in AEM-6.4 sunitac70336244 - Adobe Experience Manager
Hi Joerg,thanks for your help. Sorry for late reply. Now redirect is working fine.But now , When I am running my page with the selectors , it is working fine , as shown below.When I am not giving selectors then my page is not working fine , as shown below.My code is below. Am I missing something "or" this is the expected behavior that in author it will not work and in publisher it will work.import java.io.IOException;import javax.servlet.Filter;import javax.servlet.FilterChain;import javax.servl...
4936
Views
0
Likes
3
Replies
Re: intercepting the page request in AEM-6.4 sunitac70336244 - Adobe Experience Manager
Hi Joerg,Thanks a lot for your help and appreciated.Currently the path is living in AEM and now I have written the below logic for my below requirement using sling filter.Now my requirement is that when somebody will hit the PlanA (/content/trainingproject/Plan/PlanA) then it will redirect to SunitaFirst.html ( http://localhost:4502/content/trainingproject/Plan/PlanA/Location1/SunitaFirst.html ).I have written the below code for this. But when I am trying to redirect then I am getting below erro...
4936
Views
0
Likes
5
Replies
Re: intercepting the page request in AEM-6.4 sunitac70336244 - Adobe Experience Manager
Dear Joerg,Thanks for your help.Actually My requirement is below.Intercept HTTP request from thirdparty (endpoint is abc-services/jax-rs/participant-service/secure/participant/search) to AEM
4936
Views
0
Likes
7
Replies
intercepting the page request in AEM-6.4 sunitac70336244 - Adobe Experience Manager
Dear All,Can you please help me to understand the intercept concept in AEM (Do we have any Adobe help document??)One of the my project requirement is intercepting the all page request under the path http://localhost:4502/editor.html/content/we-retail/104139ToshibaAmericaInc401SavingsPlanFeatures/0303TAMS-MRISANFRANCISC.htmlhttp://localhost:4502/sites.html/content/we-retail/104139ToshibaAmericaInc401SavingsPlanFeatures For example I have below 2 pages under the above path.http://localhost:4502/co...
5281
Views
2
Likes
9
Replies
get all the child node name in the parent nodepath sunitac70336244 - Adobe Experience Manager
Dear All,I have below content structure in AEM-6.4My parent content nodepath is /content/VignetteContent/planNow my requirement is that I want all the child nodes like plan-104105 , location-9999 etc. with the JCR property Value.I have written below code. But I am not getting.import java.io.IOException;import java.util.Iterator;import javax.servlet.ServletException;import org.apache.felix.scr.annotations.sling.SlingServlet;import org.apache.sling.api.SlingHttpServletRequest;import org.apache.sli...
3341
Views
0
Likes
2
Answers and Comments
Re: Match Request VS Content URL in AEM-6.4 sunitac70336244 - Adobe Experience Manager
Hi Arun,Please see my comments below.From where you need to pass those two parameters in the request?currently just in my code SlingHttpServletRequest requestis it after redirecting from the filter?Yes.
711
Views
0
Likes
0
Answers
Re: Match Request VS Content URL in AEM-6.4 sunitac70336244 - Adobe Experience Manager
Dear All,My requirement is like below.my-page is an AEM page while i need to pass 2 URL parameters as planID=197881 and locationID=1234 like below.http://localhost:4502/my-page?planID=197881&locationID=1234 Can anybody please help me for any sample codeThanks
723
Views
0
Likes
0
Answers
Re: Match Request VS Content URL in AEM-6.4 sunitac70336244 - Adobe Experience Manager
Dear All,Can you please anybody help me on below requirementBut , I am not sure how to Provide the planID as URL params in the servlet call and compare. Can you please help me on this?Also I am new to servlet.
725
Views
0
Likes
0
Answers
Re: Match Request VS Content URL in AEM-6.4 sunitac70336244 - Adobe Experience Manager
Hi Arun,I am new to query string. Can you please give me some example?
714
Views
0
Likes
0
Answers
Re: Match Request VS Content URL in AEM-6.4 sunitac70336244 - Adobe Experience Manager
Hi Arun,Thanks For your reply.Now I need to Provide the planID as URL params in the servlet call and compare that planID with the JCR Property of the content (Step-2).So I have written the code like below.But , I am not sure how to Provide the planID as URL params in the servlet call and compare. Can you please help me on this?@SlingServlet(resourceTypes = "sunita/components/structure/page", methods="GET", selectors="model")public class PlanService extends SlingAllMethodsServlet{ Logger log = Lo...
713
Views
0
Likes
0
Answers
Match Request VS Content URL in AEM-6.4 sunitac70336244 - Adobe Experience Manager
Dear All,I have below requirement in my AEM-6.4Step-1Extract plan id from cookie/session/http header (I want to write a dummy request for now For example I should get PlanId value as 197881 from cookie/session/http header)Step-2I want to Extract plan id from my content path URL (My dummy content path is /content/VignetteContent , as shown below.)Step-3 If plan ID match (request vs content URL) then Continue Otherwise Reject.Can anybody let me know how can I do this one in AEM-6.4?ThanksSunita
2006
Views
0
Likes
9
Answers and Comments
DefaultHttpClient is depricated in AEM-6.4 sunitac70336244 - Adobe Experience Manager
Dear All,I am following the below help document for displaying data from a Restful Web Service.Creating an Adobe Experience Manager 6.4 HTL Component that displays data from a Restful Web Service But when I am writing the code for HeroRestComponent.java , then I am getting deprecated message , as shown below.I am using AEM-6.4. Am I missing something ?
1956
Views
0
Likes
3
Replies
Re: Radio button values not persisting in coral multifield component sunitac70336244 - Adobe Experience Manager
Dear All,We are also facing the same issue.Any solution for this ?
1092
Views
0
Likes
0
Answers
Re: Pause for Custom Carousel sunitac70336244 - Adobe Experience Manager
Hi,Yes I know that by using maven archetype 15 we can get the AEM maven project....Let me more clear on my requirement. I have already custom carousel code which is migrated from CQ 5.6 to AEM 6.4...Now My business user wants that only pause Icon should come side to the carousel indicators , as shown in below figure.Can anybody help me , how can I achieve this requirement by using the below core AEM code ( aem-core-wcm-components/carousel.html at master · adobe/aem-core-wcm-components · GitHub )...
776
Views
0
Likes
0
Answers
Re: Pause for Custom Carousel sunitac70336244 - Adobe Experience Manager
Hi Donald,Can you please provide the GIT code repository/package for below example.Working with Adobe Experience Manager Carousel Core Components
764
Views
0
Likes
0
Answers
Re: Pause for Custom Carousel sunitac70336244 - Adobe Experience Manager
Hi Donald, For new functionality we are using the core aem... But this carousel is migrated from 5.6 to 6.4.... Can you please let us know how can we use the core AEM in the existing custom OLD code ? Do you have any example... The example provided by you is the new carousel development/ootb carousel...
785
Views
0
Likes
0
Answers
Pause for Custom Carousel sunitac70336244 - Adobe Experience Manager
Dear All, We need a pause button in our custom carousel , which is migrated from AEM 5.6 to AEM 6.4. The new requirement is , if somebody will click on pause button then the carousel slide will pause and again they will click on same pause button then the the slide will again play with time interval 3 seconds...In the below code , i have written the pause functionality...But It is not working , as expected.Landing Page Carousel Testing HerePause var slides = document.querySelectorAll('#slides .myCarousel');var currentSlide = 0;var slideInterval = setInterval(nextSlide,3000);function nextSlide(){slides[currentSlide].className = 'myCarousel';currentSlide = (currentSlide+1)%slides.length;slides[currentSlide].className = 'item1 active';}var playing = true;var pauseButton = document.getElementById('pause');function pauseSlideshow(){pauseButton.innerHTML = 'Play';playing = false;clearInterval(slideInterval);}function playSlideshow(){pauseButton.innerHTML = 'Pause';playing = true;slideInterval = setInterval(nextSlide,3000);}pauseButton.onclick = function(){if(playing){ pauseSlideshow(); }else{ playSlideshow(); }};My website page is coming like below.But when I cl...
1714
Views
0
Likes
7
Answers and Comments
Re: Carousel Image Responsive in AEM-6.4 sunitac70336244 - Adobe Experience Manager
When I zoom in and zoom out , I can see the image like below.
462
Views
0
Likes
0
Answers
Re: coral-checkbox issue in Carousel sunitac70336244 - Adobe Experience Manager
Hi Gaurav,Now it is working fine after I removed the space for removeClass$(el).parent().parent().siblings('.button-option-enable-showhide-target').first().removeClass("hidden"); // TODO: this selector can be optimized } else { $(el).parent().parent().siblings('.button-option-enable-showhide-target').first().addClass("hidden");Thanks a lot for your help. I am not able to mark as correct the above post.
512
Views
0
Likes
0
Replies