<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nibedita Nandi on Medium]]></title>
        <description><![CDATA[Stories by Nibedita Nandi on Medium]]></description>
        <link>https://medium.com/@novicetech?source=rss-ae3b687e0222------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hyevxbEJCuDzpMvpc9XCBw.jpeg</url>
            <title>Stories by Nibedita Nandi on Medium</title>
            <link>https://medium.com/@novicetech?source=rss-ae3b687e0222------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 04:20:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@novicetech/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Checkbox Checked By Default]]></title>
            <link>https://novicetech.medium.com/checkbox-checked-by-default-24509c873a71?source=rss-ae3b687e0222------2</link>
            <guid isPermaLink="false">https://medium.com/p/24509c873a71</guid>
            <category><![CDATA[checkbox]]></category>
            <category><![CDATA[aem-components]]></category>
            <category><![CDATA[defaultchecked]]></category>
            <dc:creator><![CDATA[Nibedita Nandi]]></dc:creator>
            <pubDate>Wed, 08 Jul 2026 14:28:34 GMT</pubDate>
            <atom:updated>2026-07-08T14:28:34.012Z</atom:updated>
            <content:encoded><![CDATA[<p>The use-case I am going to document is very trivial yet we tend to forget the solution for it.</p><p><strong>Problem Statement : </strong>When we open the component dialog, the checkbox should be checked by default and on saving the dialog checkbox value should be stored as true.</p><p><strong>Resolution :</strong></p><ol><li>First, create a dialog with a checkbox and make sure to add its sling:resourceType = granite/ui/components/coral/foundation/form/checkbox</li><li>Add <strong>value </strong>property(boolean) <strong>true.</strong></li><li>Add <strong>checked </strong>property(boolean) <strong>true</strong>.</li><li>Make sure to have <strong>name </strong>property against which the field value gets stored in JCR.</li><li>Add a <strong>text </strong>property which appears as the label for the field in the dialog.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5k0FR7R0ts9Er43LWoGH8Q.png" /><figcaption>Dialog properties</figcaption></figure><p>That’s it.</p><p>6. Checkbox gets checked by default when we open the dialog.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*UNHSKUj47asBVvTXIjiv3Q.png" /><figcaption>Checkbox gets checked by default</figcaption></figure><p>7. When we save the dialog on the page, <strong>checkedCheckbox</strong> gets true value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*_8I628eKlgAwBTTYPxB0kw.png" /><figcaption>true value gets saved in JCR</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=24509c873a71" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ValueMapValue vs Inject]]></title>
            <link>https://novicetech.medium.com/valuemapvalue-vs-inject-7c768b60b454?source=rss-ae3b687e0222------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c768b60b454</guid>
            <category><![CDATA[inject]]></category>
            <category><![CDATA[sling-model]]></category>
            <category><![CDATA[valuemap]]></category>
            <category><![CDATA[aem]]></category>
            <dc:creator><![CDATA[Nibedita Nandi]]></dc:creator>
            <pubDate>Sun, 11 May 2025 12:59:11 GMT</pubDate>
            <atom:updated>2025-05-11T12:59:11.585Z</atom:updated>
            <content:encoded><![CDATA[<p>I am trying to document my understanding on ValueMapValue and Inject annotation here in this blog.</p><p><strong>Inject : </strong>This is a general purpose annotation which retrieves values from various injectors. It injects different type of objects i.e., sling object, resource, JCR properties, services etc.</p><p><strong>Noncompliant Code</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/925/1*bcBbwq-2-e3KZJAZMxjLWg.png" /></figure><p><strong>ValueMapValue : </strong>This is injector specific annotation which retrieves values from ValueMap injector.</p><p><strong>Compliant Code</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4Z_7Ws2WdZ-1v4tbl5OFzQ.png" /></figure><p><strong>Understanding on Inject annotation</strong></p><ul><li>Inject iterates a well defined ordered list (we can see the list here : <a href="https://sling.apache.org/documentation/bundles/models.html#available-injectors">https://sling.apache.org/documentation/bundles/models.html#available-injectors</a>) of Injectors and the first injector which returns a non null value is taken, and the result is injected.</li><li>When we use Inject there’s an ambiguity which type of object being injected. It could be a JCR property or sling object or service etc. Although @Source annotation would have resolved the issue but we have to be sure on the specific injectors then only we can use @Source annotation and the usage of annotation is also rare.</li></ul><pre>@Inject<br>@Via(&quot;resource&quot;)<br>@Source(&quot;valuemap&quot;)//here injector is valuemap<br>private String desc;</pre><ul><li>When we use Inject and adaptables is SlingHttpServletRequest we should use @Via annotation to adapt resource object explicitly because the original adaptable is not resource.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FGV8D9AmeeG2mlbEyjfgpg.png" /><figcaption>Inject annotation with Via</figcaption></figure><ul><li>When a sling model is created, all the injections are at least tried. When there is a no property called propertyDontExist (shown below in the code snippet screenshot) in the ValueMap of the resource, other injectors are queried if they can handle that injection. Assuming that no injector can do that, the value of the field propertyDontExist remains null . So, this turned out to be a performance bottleneck. You can read more about it here <a href="https://cqdump.joerghoh.de/2022/11/28/sling-model-performance/">https://cqdump.joerghoh.de/2022/11/28/sling-model-performance/</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*6eQ8neboduSu4SnMhHVQMQ.png" /></figure><p><strong>Understanding on ValueMapValue</strong></p><ul><li>ValueMapValue can easily retrieve properties from ValueMap injector which leads us write less code and it increases clarity in the code as well.</li><li>It is advised to use injector specific annotations such as @ValueMapValue, @SlingObject, @ChildResource, @OSGiService etc. over @Inject annotation.</li><li>When we use ValueMapValue(and adaptables in SlingHttpServletRequest) we need not to set via annotation. It will automatically take the resource if the adaptable is SlingHttpServletRequest. Although this Via feature works with injector specific annotation as well but it is discouraged to use it when we use injector specific annotation because it’s barely used and just increases the complexity of the model.</li></ul><p>Reference Documents : <a href="https://sling.apache.org/documentation/bundles/models.html">https://sling.apache.org/documentation/bundles/models.html</a></p><p><a href="https://cqdump.joerghoh.de/2022/11/28/sling-model-performance/">https://cqdump.joerghoh.de/2022/11/28/sling-model-performance/</a></p><p>I am more than happy to hear any kind of suggestions/feedbacks on it. Thank you!!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c768b60b454" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AEM Repo Tool — code sync between AEM server and Local Codebase in IntelliJ IDE]]></title>
            <link>https://novicetech.medium.com/aem-repo-tool-code-sync-between-aem-server-and-local-codebase-in-intellij-ide-9e567afbaf62?source=rss-ae3b687e0222------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e567afbaf62</guid>
            <category><![CDATA[backend]]></category>
            <category><![CDATA[aem]]></category>
            <category><![CDATA[jcr]]></category>
            <category><![CDATA[frontend]]></category>
            <dc:creator><![CDATA[Nibedita Nandi]]></dc:creator>
            <pubDate>Mon, 24 Mar 2025 20:24:08 GMT</pubDate>
            <atom:updated>2025-03-24T20:24:08.176Z</atom:updated>
            <content:encoded><![CDATA[<h3>AEM Repo Tool — code sync between AEM server and Local Codebase in IntelliJ IDE</h3><p>Today we will discuss about AEM Repo Tool which is a very efficient command line tool(IDE agnostic) to sync JCR content between AEM server and local codebase i.e. Pushing content changes from codebase to AEM server or pulling content from AEM server to code. repo is a single bash script depending on basic Unix tools. I will show the setup on a Windows based machine with<strong> IntelliJ</strong>.</p><p><strong>Repo Installation: </strong>This is the latest version from 2017 which I installed in my machine from <a href="https://github.com/Adobe-Marketing-Cloud/tools/releases/tag/repo-1.4">https://github.com/Adobe-Marketing-Cloud/tools/releases/tag/repo-1. 4</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/1*JC_0rkfjEx0AlXzrgUyPHg.png" /><figcaption>Repo tool installation done</figcaption></figure><p>As I am on a Windows machine I also installed Cygwin which provides a Unix like environment and additionally I included Linux utilities like zip, unzip, curl, and rsync to extend its functionality.</p><p><strong>Cygwin Installation: S</strong>tep by Step installation with screenshots</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*-H4EXe6efo_CAgOLOeBWOA.png" /><figcaption>Image 1</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LwXL1z47wr9Mf8S2tHqFZQ.png" /><figcaption>Include unzip package (Likewise we need to add zip, curl, rsync packages)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3RjoJUT8XifZxOUpy3nkzQ.png" /><figcaption>Included packages will be shown up here and then click Next and wait for installation to be completed. Installation will be completed in few mins.</figcaption></figure><p><strong>Configuring repo tool in IntelliJ:</strong></p><p>Put Command(Transfers data from codebase to AEM server):</p><p><strong>Program</strong> : Absolute path for Cygwin i.e. C:\cygwin64\bin\bash</p><p><strong>Arguments </strong>: -l C:\Users\your-user-name\Documents\repoTool\repo put -f “$UnixSeparators($FilePath$)$”</p><p>and then click next</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0lWKBHIZguxRgjpNgCFOZA.png" /><figcaption><strong>PUT Operation</strong></figcaption></figure><p>We receive this below log in the console when PUT command is a success.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*gTLQ_h7xILmz7tXWg6-LeA.png" /><figcaption>PUT operation success</figcaption></figure><p>We can see the changes in AEM server if we simply refresh it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*kOkvdIxUau0gsgw399eT8A.png" /><figcaption>AEM Server code updated after PUT operation</figcaption></figure><p>Similarly, we need to configure for get, status and diff.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/682/1*xlfKg9jw3szCBPvLfeB5qg.png" /><figcaption><strong>GET Operation</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*1qpmz6CWU2uXrTXzwOeOuA.png" /><figcaption><strong>Status Operation</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*-Js8F0Qok3qE3RVfYoaJfw.png" /><figcaption><strong>Diff Operation</strong></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*SonCFJAqyV4U04w_99q72A.png" /><figcaption>Console log after diff operation</figcaption></figure><p><strong>Resource:</strong> <a href="https://github.com/Adobe-Marketing-Cloud/tools/tree/master/repo">https://github.com/Adobe-Marketing-Cloud/tools/tree/master/rep</a></p><p>Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e567afbaf62" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AEM project creation & common issues resolved]]></title>
            <link>https://novicetech.medium.com/aem-project-creation-common-issues-resolved-fc30b2681cc3?source=rss-ae3b687e0222------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc30b2681cc3</guid>
            <dc:creator><![CDATA[Nibedita Nandi]]></dc:creator>
            <pubDate>Sat, 08 Jun 2024 19:13:00 GMT</pubDate>
            <atom:updated>2024-06-08T19:21:57.056Z</atom:updated>
            <content:encoded><![CDATA[<p>There are multiple ways to create a Maven AEM project. Here we are using Maven AEM Project Archetype 35.</p><p><strong>Prerequisites:</strong> There are two prerequisite steps before we build an AEM maven project in your machine. We need to have jdk, maven set up in the machine.</p><p>I am using these following versions- Java 11, maven 3.9+.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WgcbEBVWt2ePALIg0VqhDw.png" /><figcaption>Prerequisite Installation</figcaption></figure><p><strong>Setting up the Environment Variables: </strong>Once these basic installations are done, we need to set the environment variables. I am using windows OS so setting up environment variable are straight-forward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*SWbB3LhFzRfV5Z0iAXPAtA.png" /><figcaption>Environment variable setup for Jdk</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*rJNrRzFDdvB6_mpfw-AGSA.png" /><figcaption>Environmental setup for Maven</figcaption></figure><p>Set Path variable for Java and maven.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*uaxtJSlNjYLhsO6kdiQbfg.png" /><figcaption>Path setup for Java &amp; Maven</figcaption></figure><p><strong>Build the Project:</strong></p><ol><li>Once these above preparatory steps are done we need to ensure that we have our AEM instance running locally on port 4502.</li><li>Create a folder and then access the folder where you want to create an aem-project. E.g. <strong>cd \path-to-folder\aem-project </strong>and create your project by this command <strong>mvn -B org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate -D archetypeGroupId=com.adobe.aem -D archetypeArtifactId=aem-project-archetype -D archetypeVersion=35 -D appTitle=”XXXX” -D appId=”XXXX” -D groupId=”XXX” -D aemVersion=6.5.5 -D singleCountry=n.</strong></li><li>Run the following command <strong>mvn clean install -PautoInstallSinglePackage</strong> to build and deploy the entire project to AEM.</li><li>The build takes sometime to complete and it shows ‘BUILD SUCCESS’ message in the command prompt.</li><li>Once the build is successful, navigate to <a href="http://localhost:4502/system/console/bundles">http://localhost:4502/system/console/bundles</a> to check if bundles are in <strong>active </strong>state. All the bundles should be active else we will see blank page or error in pages.</li></ol><p>Now we will discuss on some common issues I encounter while building the project and how I resolved them.</p><p><strong>Issue-1</strong></p><p>Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.2.1:generate (default-cli) on project standalone-pom: java.nio.file.FileSystemException: C:\Users\XX\XX\XX\project\dispatcher\src\conf.d\enabled_vhosts\aemdemo_publish.vhost: A required privilege is not held by the client.</p><p><strong>Resolution</strong></p><p>We are required to run command prompt as Administrator and then build the project by this command <strong>mvn clean install -PautoInstallSinglePackage.</strong></p><p><strong>Issue-2</strong></p><p>Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.12.0:npm (npm run prod) on project project.ui.frontend: Failed to run task: ‘npm run prod’ failed</p><p><strong>Resolution</strong></p><p>Update the “typescript”: “3.3.3333” to “typescript”: “4.8.2&quot; in package.json, then delete package-lock.json. After that we need to execute mvn clean install -PautoInstallSinglePackage from the CLI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*1YCY8SOCeiyRfqPjphgL2Q.png" /><figcaption>package.json</figcaption></figure><p><strong>Issue-3</strong></p><p>org.apache.sling.api.servlets,version=[2.3,3) — Cannot be resolved</p><p><strong>Resolution</strong></p><p>Go to the core/pom.xml of your project and update the dependency under Import-Package(add this dependency org.apache.sling.api.servlets;version=&quot;[2.3,3)&quot;)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*LkJt4iKJoRuyQyrtcs4cPA.png" /><figcaption>core/pom.xml</figcaption></figure><p><strong>Issue-4</strong></p><p>com.adobe.aem.wcm.seo,version=[1.0,2) — Cannot be resolved but is not required<br>com.adobe.aem.wcm.seo.localization,version=[1.0,2) — Cannot be resolved but is not required</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0QTtglmGOTD7wuCFEwWKHA.jpeg" /><figcaption>Error</figcaption></figure><p><strong>Resolution</strong></p><p>Error shows 2.17.12 is the core wcm component version and this error says that this core component version is compatible with service pack 6.5.6+, therefore I installed <strong>aem-service-pkg-6.5.10</strong> to resolve this issue.</p><p><strong>Some useful links</strong></p><ul><li><a href="https://stackoverflow.com/questions/20278236/org-apache-sling-api-resource-version-2-3-3-cannot-be-resolved">org.apache.sling.api.resource,version=[2.3,3) -- Cannot be resolved</a></li><li><a href="https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/error-failed-to-execute-goal-com-github-eirslett-frontend-maven/td-p/439761">[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.6:npm (npm install) on project aem-magazine.ui.frontend: Failed to run task: &#39;npm install&#39; failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit</a></li><li><a href="https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/anyone-help-me-to-resolve-this-error-quot-com-day-cq-wcm-api/m-p/627681">Anyone help me to resolve this Error &quot;com.day.cq.wcm.api,version=[1.30,2) -- Cannot be resolved&quot;</a></li><li><a href="https://github.com/adobe/aem-core-wcm-components/issues/1962">WCM Core bundle won&#39;t start · Issue #1962 · adobe/aem-core-wcm-components</a></li><li><a href="https://www.aemguide.in/2023/07/javaniofilefilesystemexception.html">java.nio.file.FileSystemException: dispatcher\src\conf.d\enabled_vhosts\aem_author.vhost: A required privilege is not held by the client.</a></li><li><a href="https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem6-5-xf-core-components-are-not-rendering/m-p/562657">Re: AEM6.5 XF Core components are not rendering</a></li></ul><p>Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc30b2681cc3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>