since ‎17-06-2020
Online
Anudeep_Garnepudi
Level 5
Re: trying to get a simple developer env steup. Which of...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
Hi @nutmix Check your Eclipse is using latest Java(1.8 or above) and Maven(3.9.9), if not try update your eclipse settings or else try to build from command prompt.

Views

43

Like

1

Replies

1
Re: setup a local AEM development environment not working...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
Try building the project from command prompt, your eclipse build in Maven and Java versions might be different. Building from command prompt could solve your issue.

Views

28

Likes

0

Replies

0
Re: setup a local AEM development environment not working...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
I am able to build successfully with Java 8

Views

73

Likes

0

Replies

0
Re: setup a local AEM development environment not working...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
Update this org.apache.maven.plugins maven-compiler-plugin 11 with org.apache.maven.plugins maven-compiler-plugin 1.8 1.8 true

Views

87

Likes

0

Replies

0
Re: setup a local AEM development environment not working...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
The WKND project was built on Java 11, as you are using Java 8 remove the release tag and add above configuration.

Views

96

Likes

0

Replies

0
Re: setup a local AEM development environment not working...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
Update the Maven Compiler Plugin in parent pom.xml as above and try to build

Views

110

Likes

0

Replies

0
Re: setup a local AEM development environment not working...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
Hi @nutmix Import the main folder(aem-guides-wknd-aem-guides-wknd-0.0.6) which has parent pom.xml. Update your Compiler plugin as below org.apache.maven.plugins maven-compiler-plugin 1.8 1.8 true

Views

125

Like

1

Replies

10
Re: quickstart.jar just hangs when I run it: "Push back b...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
Hi @nutmix Initially AEM 6.5 not supported Oracle Java 11, we have to download Java 11 from Adobe site. Now seems Adobe extended support for Oracle Java 11 as well. If it is not working, please tryInstalling Java 8Delete the crx-quickstart folderRun the jar fileHope this works.

Views

47

Like

1

Replies

2
Re: How to hit a servlet using selector when resourceType...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager Assets
Drop your my-component in parsys which/where you want and then copy that path and hit. Your my-component must be dropped inside your custom parsys.

Views

48

Likes

0

Replies

0
Re: How to hit a servlet using selector when resourceType...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager Assets
It will work in any parsys, you just need to copy the component path under /content just like how you did now and hit it with selector and extension. That's it.

Views

58

Likes

0

Replies

0
Re: How to hit a servlet using selector when resourceType...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager Assets
I see, there is a extra space at the end "sling.servlet.resourceTypes="+ "my-project/components/general/my-component ", remove and try one. Hope this time it works

Views

78

Likes

0

Replies

0
Re: How to hit a servlet using selector when resourceType...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager Assets
My bad, please include jcr:content as well.

Views

98

Likes

0

Replies

0
Re: How to hit a servlet using selector when resourceType...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager Assets
Can you go to CRXDE and check this path "/content/my-project/homepage/profile-page/test/en/par/my-component" exists or not. If yes check the node has sling:resourceType as "my-project/components/general/my-component"

Views

112

Likes

0

Replies

0
Re: How to hit a servlet using selector when resourceType...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager Assets
If you hit http://localhost:4502/content/my-project/homepage/profile-page/test/en/par/my-component.html, showing authored component data?

Views

122

Likes

0

Replies

0
Re: How to hit a servlet using selector when resourceType...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager Assets
give a valid extension like html/json/txt. Give extension = "html" and selectors = {"selector"}

Views

137

Likes

0

Replies

0
Re: How to hit a servlet using selector when resourceType...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager Assets
Hi @pillaivinit Drop my-component in any page and hit that path along with extension and selector with which you registered Servlet. For exampleCreate a page with name test-pageDrop my-component in that pagecopy that path i.e /content/your-project/test-page/par/my-component.selector.extension and hit from browserselector and extension must be same as you provided in sling.servlet.extensionssling.servlet.selectors

Views

146

Likes

2

Replies

15
Re: Customizing Page Properties in Classic UI - AEM 6.5.5
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
Hi @Parvathy_C Unlike the Touch UI, Class UI dialog does not support resource merge. Once you create a classic dialog, it will override the parent(sling:resourceSuperType) dialog completely. You can do two things.Completely copy the classic dialog from parent(sling:resourceSuperType) and paste in under current Template rendering Component and add your tab.Use xtype as include to each of the parent tabs and point to parent tab (see image below) and add your tab Check /libs/foundation/components/p...

Views

48

Like

1

Replies

0
Re: Obtaining resourceresolver in Sling Model
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
@kautuk_sahni Here logic is written in Constructor, there is no default Constructor or Constructor injection. Adding default Constructor or Constructor injection should work here right?

Views

61

Likes

0

Replies

0
Re: Asset Finder Issue
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
Hi @binoyp Check the asset meta properties dam:MIMEtype and dc:format are set or not.AG

Views

54

Like

1

Replies

0
Re: HTML to PDF Generation - UnsatisfiedLinkError-Unable...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
@srikanthp689160 I think they are not JAR files but packages that needs to be installed. Google each package for more details.

Views

74

Likes

0

Replies

0
Re: custom validation for coral text filed
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
create a node under textfield with node name granite:data and set property to it myapp-maxlength(String) : 10

Views

71

Likes

0

Replies

0
Re: custom validation for coral text filed
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
Hi @Sandeep6 Add granite:class property to text field and update selector in js. property: granite:class (String) txt-validateValidation JS:$(window).adaptTo("foundation-registry").register("foundation.validation.validator", {selector: ".txt-validate",validate: function(el) {...}This will work.AG

Views

84

Like

1

Replies

2
Re: Obtaining resourceresolver in Sling Model
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
Hi @viki1101 You don't have a default Constructor (Constructor without any parameters) because of which your Model is failing to instantiate. As you are adding your own Constructor Java Compiler will not provide the default one, you must add explicitly. Add below two line it should work.public ResourcePathModel() {}AG

Views

104

Like

1

Replies

0
Re: HTML to PDF Generation - UnsatisfiedLinkError-Unable...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
Yes

Views

95

Likes

0

Replies

0
Re: HTML to PDF Generation - UnsatisfiedLinkError-Unable...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
@srikanthp689160 In AEM itself as part of your bundle. Try to add in dependencies tag.

Views

108

Likes

0

Replies

0
Re: HTML to PDF Generation - UnsatisfiedLinkError-Unable...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
Hi @srikanthp689160 Check the below link and try adding the native dependencies.https://github.com/wooio/htmltopdf-java/blob/master/README.md#troubleshootingHope this will resolve your issue.AG

Views

138

Like

1

Replies

6
Re: Answer AD0-E103 Adobe Experience Manager Sites Develo...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
Hi @mauriziop158592 To be very simple, inheritance is only possible with sling:resourceSuperType it doesn't matter if it is core or custom component.To answer your question, only option B is extending/inheriting a component rest others are not.AG

Views

71

Like

1

Replies

0
Re: Fetching jcr:content properties
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
Glad to help. Cheers!

Views

64

Likes

0

Replies

0
Re: Fetching jcr:content properties
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
Hi @viki1101 You can do that by simply injecting Page Properties into Model. Check the below code.@Model(adaptables = {Resource.class,SlingHttpServletRequest.class})public class TestModel { @ScriptVariable ValueMap pageProperties; private pageTitle; public String getPageTitle() { return pageTitle; } @PostConstruct protected void init() { pageTitle = pageProperties.get("jcr:title", "No Title"); }}I am simply returning Page Title.AG

Views

79

Likes

3

Replies

2
Re: I want to list details of all content fragment models...
Avatar

Anudeep_Garnepudi

Anudeep_Garnepudi
- Adobe Experience Manager
Hi @sumans4511174 You and get by executing JCR SQL2 query.Firstly get JCR Session from either ResourceResolver or JcrUtils(depends on your implementation).Get QueryManager then create and execute Query. Check below code example.QueryManager qm = session.getWorkspace().getQueryManager(); String queryString = "SELECT * FROM [cq:PageContent] AS comp WHERE ISDESCENDANTNODE(comp, \"/conf\") AND [cq:templateType] = \"/libs/settings/dam/cfm/model-types/fragment\"";Query query = qm.createQuery(queryStri...

Views

40

Likes

2

Replies

0