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

Manjunath_K
Community profile Manjunath_K MVP
Job title here
Location here
16 BADGES
MVP

MVP

Learn more
Joined the community 13-04-2019 8:11:36 PM
Online
Top badges earned by Manjunath_K
Customize the badges you want to showcase on your profile
Thank you and Congratulations to all MVPs
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
Thank you @Singh_Jagpreet and @kautuk_sahni Congratulations to all MVPs

Views

346

Likes

3

Replies

0
Re: Prevent image from auto download
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager Assets
@Shaheena_Sheikh Keep "Enable For All Resource Paths" checked which is by default checked for security feature against XSS attacks. If any specific one or two files for which you want to prevent/exclude adding header "Content-Disposition : attachment" then include that resource path(complete path of original rendition as mentioned below) in "Excluded Resource Paths", for these excluded resource paths "Content-Disposition : attachment" won't be set & which can be viewed in browser without downloa...

Views

143

Likes

2

Replies

1
Re: How to re-try calls to Rest API from OSGi service
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
Hi @Hemalatha,Have you tried adding custom java code instead of looking for new framework to achieve this? if not, try adding similar logic as mentioned below with any additional condition as per your requirement & it will work. int retryCount = 3;int statusCode = 0;HttpClient httpclient = new HttpClient(httpConnectionManager);do{ try{ --retryCount; GetMethod getMethod = new GetMethod("API End Point"); getMethod.setQueryString("Query Parameters"); statusCode = httpclient.executeMethod(getMethod)...

Views

171

Likes

2

Replies

0
Re: How to get the current pagepath in service
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
Hi @vijithar4145255To get current page path in OSGI service method, we need current request. so, passing method argument to service class methods is the only way with below 2 option. 1. Recommended approach - duplicating code in each model class to fetch current page path before passing it to service methods will be reduced if you keep that logic in service methods by passing request as method argument.public class TestModal1 {@Overridepublic LinkItem getLinkItem() { return testLinkService.getLi...

Views

205

Likes

0

Replies

0
Re: How to get the current pagepath in service
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
Hi @vijithar4145255To get current page path in OSGI service method, we need current request. so, passing method argument to service class methods is the only way with below 2 option. 1. Recommended approach - duplicating code in each model class to fetch current page path before passing it to service methods will be reduced if you keep that logic in service methods by passing request as method argument.public class TestModal1 {@Overridepublic LinkItem getLinkItem() { return testLinkService.getLi...

Views

249

Likes

0

Replies

0
Re: How to get the current pagepath in service
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
Hi @vijithar4145255 ,1. If you want to get current page path in OSGI Service class then pass request as an method argument to service class methods from model/servlet class & get page path using request present in the method parameter. 2. If you want to get current page path in servlet then you can get it using code shared by @Anudeep_Garnepudi. Hope this helps!

Views

233

Like

1

Replies

2
Re: Phone Number Format does not transfer to text fields
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager Forms
@Duquette,Have you tried adding custom logic in javascript to format this phone number? if not please try adding below logic to format phone number with 10 digits. var phoneNumber = '1234567890';if(phoneNumber.length == 10){ phoneNumber = '('+phoneNumber.substr(0,3)+') '+phoneNumber.substr(3,3)+'-'+phoneNumber.substr(6); //returns formatted phone number (123) 456-7890} Hope this helps!

Views

185

Like

1

Replies

1
Re: Disabling dispatcher cache for some pages with HTTP h...
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
Hi @MaynorSong,If you want to disable caching your pages in dispatcher, you can add rule in dispatcher config file as mentioned here.https://experienceleague.adobe.com/docs/experience-manager-dispatcher/using/configuring/dispatcher-configuration.html#specifying-the-documents-to-cache If you want handle this through AEM backend then below are the 2 options.1. To disable dispatcher caching the pages in which specific component is added, set response header in that specific component model class.@M...

Views

275

Likes

2

Replies

0
Re: Can't connec to https://repo.adobe.com/nexus/content/...
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
@NSzolnoki921It seems like in repo the parent pom "com.adobe.granite" with version(52) is missing & that is why above error says "Could not find artifact com.adobe.granite:parent:pom:52" "com.adobe.granite" version 52 missing here : https://repo.adobe.com/nexus/content/groups/public/com/adobe/granite/parent/ I can see both 1.1.12 & 1.1.18 version of "com.adobe.granite.translation.api" pom file is referring to "com.adobe.granite" version 52"com.adobe.granite.translation.api" 1.1.18 pom file : htt...

Views

290

Likes

0

Replies

0
Re: Can't connec to https://repo.adobe.com/nexus/content/...
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
Hi @NSzolnoki921 ,I don't see the latest version(1.1.34) which you are trying access in your project on adobe/maven repo, try updating dependency version to access lower version (i.e. 1.1.18 instead 1.1.34) & it should resolve the issue. https://repo.adobe.com/nexus/content/groups/public/com/adobe/granite/com.adobe.granite.translation.api/ https://mvnrepository.com/artifact/com.adobe.granite/com.adobe.granite.translation.apiHope this helps!

Views

311

Likes

3

Replies

4
Re: How to access html fragment file in another component...
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
Hi @dj_datum ,You need to include html in handlerbar script tag itself, if you are trying include inside script tag then it will not be evaluated & included as html file. please check below code. Include html file in Modal Popup html: × Hope this helps!

Views

172

Like

1

Replies

0
Re: Dynamic locale in HTL date object
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
Hi @Richard_Bystrom Send language code from backend without single quote, it will resolve the issue. return "sv";

Views

193

Like

1

Replies

1
Re: Iterate Multivaluedmap in sightly
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
you're welcome 👍

Views

217

Likes

0

Replies

0
Re: Iterate Multivaluedmap in sightly
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
Hi @Nithyasri_K ,Try with below code snippet, refer map.entries & map.entrySet to iterate over MultiValuedMap & Map obejcts as mentioned below in data-sly-list. ${yearsMap.key} ------ First level String gets printed ${typesMap.key} --------Second level String gets printed --------Second level Value Object List gets printed ${modelObjList.attributeName} Hope this helps!

Views

235

Like

1

Replies

0
Re: Query builder
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
Hi @maheswariv26797,Try executing below query in QueryBuilder debugger console http://localhost:4502/libs/cq/search/content/querydebug.html type=nt:unstructuredpath=/content/project/page11_property=documentType1_property.value=PDFp.limit=-1 Java:Session session = resourceResolver.adaptTo(Session.class);Map queryPredicateMap = new HashMap<>();queryPredicateMap.put("type", JcrConstants.NT_UNSTRUCTURED);queryPredicateMap.put("path", "/content/project/page1");queryPredicateMap.put("p.limit", "-1");q...

Views

244

Likes

3

Replies

1
Re: Get Absolute content path from short URL
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
Hi @vinodprathipati Please try following steps Access Resource Resolver console http://localhost:4502/system/console/jcrresolver To get absolute path using relative/shorten url: add shorten url & click on resolve.https://www.test.com/en/testPage -> /content/mywebsite/en/testPage //make sure you are passing complete path with domain name as per your etc mapping. same value you can get in backend using resourceResolver.resolve("https://www.test.com/en/testPage") //returns /content/mywebsite/en/tes...

Views

372

Like

1

Replies

1
Re: Announcing Experience League Community Member(s) of the year 2020
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
Congrats @Arun_Patidar and  @vanegi 🤝

Views

1.1K

Likes

3

Replies

0
Re: How to pass multiple parameters to sling model from s...
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
Hi @LaMind3 ,Try passing multiple parameters as mentioned below, for sample i have hardcoded parameter as string values here & replace these hardcoded value by dynamic values. please make sure datatype of dynamic value getting passed in sightly is same as datatype defined for @Inject variable in Sling Model class. Sightly: Sling Model Class:@Model(adaptables = SlingHttpServletRequest.class, defaultInjectionStrategy = DefaultInjectionStrategy.OPTIONAL)public class HelloWorldModel { @Inject priva...

Views

554

Like

1

Replies

1
Re: How to get absolute page path of the live copies from...
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
you're welcome 🙂

Views

200

Likes

0

Replies

0
Re: How to get absolute page path of the live copies from...
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
Hi @vijays80591732 ,Use liveCopy.getTargetPath() instead of liveCopy.getLiveCopy() as highlighted below, it will return the absolute path of the live sync resource. https://helpx.adobe.com/experience-manager/6-5/sites/developing/using/reference-materials/javadoc/com/day/cq/wcm/msm/api/LiveRelationship.html String itemPath = "/content/we-retail/ca/en/experience/climbing-in-the-massif-du-mont-blanc";Resource res = resourceResolver.getResource(itemPath);RangeIterator rangeIterator = liveRelManager....

Views

216

Like

1

Replies

2
Re: Pathfield inside Multifield AEM 6.5 [Touch Ui Dialog]
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
tushaar_srivastava

Views

363

Likes

0

Replies

0
Re: Using parsys in sightly for custom column control com...
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
@pillaivinit Self closing tags should be used only with the elements which has no content. please refer below links. https://dev.w3.org/html5/html-author/#self-closing-taghttps://stackoverflow.com/questions/7971716/is-it-ok-to-use-a-self-closing-div-taghttp://xahlee.info/js/html5_non-closing_tag.html

Views

269

Likes

0

Replies

0
Re: Using parsys in sightly for custom column control com...
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
Hi @pillaivinit ,Replace self closing tag for parsys div element with container tags as mentioned below, hope this will resolve the issue which you are facing.

Views

294

Likes

3

Replies

3
Re: Pathfield inside Multifield AEM 6.5 [Touch Ui Dialog]
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
Hi @tushaar_srivastava Please add changes in provided dialog xml as mentioned below, then the value will be stored & retained in dialog as expected. change "granite/ui/components/foundation/form/multifield" to "granite/ui/components/coral/foundation/form/multifield" and add composite="{Boolean}true" Hope this helps!

Views

437

Likes

2

Replies

2
Re: Question to HTL or Sightly experts - What is wrong wi...
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
@Sravan_Kumar_Si please try adding conditions as mentioned below. ${title @format = currentPage.parent.title} ${title}

Views

254

Likes

0

Replies

0
Re: Question to HTL or Sightly experts - What is wrong wi...
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
Hi @Sravan_Kumar_Si Please use the below mentioned format option syntax. ${title @format = currentPage.parent.title} ${title} Hope this helps!

Views

270

Like

1

Replies

1
Re: FileUpload needs img to upload again and again
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
@pillaivinit Please change mimeTypes value as mentioned below. mimeTypes="[image]"

Views

212

Likes

2

Replies

0
Re: FileUpload needs img to upload again and again
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
@pillaivinit Please change mimeTypes property value as highlighted below, then it will work as expected.

Views

216

Likes

2

Replies

0
Re: Passing data between components (embed)
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
@lwang If you have not configured embedded modal component then as expected it will show markup with blank title etc. fields which are given configurable in modal component. for example in below screenshot Title component is included in Form component unless we configure title component dialog fields it will not show those configurable text on form component.

Views

276

Likes

0

Replies

0
Re: Passing data between components (embed)
Avatar
Give Back 3
MVP
Manjunath_K
MVP

Likes

138 likes

Total Posts

188 posts

Correct Reply

61 solutions
Top badges earned
Give Back 3
Give Back
Boost 50
Boost 5
Boost 3
View profile
Manjunath_K
- Adobe Experience Manager
@lwang You mean to say in main language page1. modal component is added & configured2. also added componentA in which this modal component is embedded & that modal component is configured again with different title etc. fields when you inspect page source 1st modal component showing configured values but 2nd modal component(which is embedded in componentA) does not showing configured values. is that correct?

Views

299

Likes

0

Replies

0