Expand my Community achievements bar.

Nupur_Jain
Nupur_Jain
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • Hi @sanchay1   looking at the error you are getting in build, the build is unable to find SDK in maven central repository. You need to setup adobe repository in order to download this particular artifact. For this, follow https://experienceleague.adobe.com/docs/experience-cloud-kcs/kbarticles/KA-174...

    Type

    Questions

    Views

    1.6K

    Like

    1

    Replies

    0
  • Hi @sean12341    The syntax you see here totally aligns with JS standard. It is just that the name "Class" that makes the whole thing confusing.  Now check Js file in libs which is /libs/clientlibs/granite/richtext/base/Class.js.   Here, Class  is being defined as JS Object which is then declared to...

    Type

    Questions

    Views

    476

    Likes

    3

    Replies

    0
  • Hi @sateeshreddy    The task you want to achieve does not fit to extending component usecase. You chose to extend when to want to add/delete fields/properties in dialog and html OR you want to change styling etc. But here the number of fields are going to be totally different and require full new di...

    Type

    Questions

    Views

    846

    Like

    1

    Replies

    0
  • Hi @sateeshreddy I am assuming you want to get cq:tags property values of page in component. If that is so, 1. First get Page object of currentPage like  @ScriptVariable private Page currentPage; 2. Then you can get page tags like   Tag[] tags = currentPage.getTags(); ORcurrentPage.getProperties...

    Type

    Questions

    Views

    1.6K

    Like

    1

    Replies

    0
  • Hi @sateeshreddy    Could you please give us more context like: 1. Is sling model being called on page component or content component?you can also directly use annotation @Inject or @ValueMap to get values like:@Inject ()@Named("cq:tags") String[] cqTags;OR@ValueMapValue(name="cq:tags")String[] cqTa...

    Type

    Questions

    Views

    1.7K

    Likes

    2

    Replies

    2
  • Hi @fionas76543059    You can embed the jar using the following way: In AEMasCS project/ archetype project with version >= 24, OSGi bundle out of core module is embedded in all module as opposed to ui.apps module (Old project structure) Add dependency for third party jar in all pom.xmlAdd <embedded>...

    Type

    Questions

    Views

    3.5K

    Like

    1

    Replies

    1
  • Hi @nbhart    I decompiled the org.apache.sling.resourceresolver.impl.ResourceResolverFactoryActivator class which is providing the configuration for resource resolver mapping. I have found that when it reads the list of mapping provided by us, it divides the mapping into 3 parts with help of regex ...

    Type

    Questions

    Views

    877

    Like

    1

    Replies

    0
  • Hi @webdev91    You can use Bundle Activator to refresh the service. Find below the sample code:     public Promise<Void> enable(ComponentDescriptionDTO dto, ServiceComponentRuntime scr){ return Optional.ofNullable(dto) .map(scr::enableComponent) .orElse(getFailedPromise()); } ...

    Type

    Questions

    Views

    1.1K

    Likes

    2

    Replies

    1
  • Hi @naveen_27_05    You can use Foundation Validator.You can follow this blog https://aemhints.com/2020/11/02/validating-dialog-value/ Here, if you check, field is checked against regex and if regex matches, js function return nothing which means field is valid otherwise it returns some error messag...

    Type

    Questions

    Views

    883

    Like

    1

    Replies

    0
  • Hi @Jeremy98    You can follow these steps:   1. Add Favicon Icon to Client library resources folder like /apps/<your-project>/clientlibs/clientlib-site/resources/images/favicon.ico 2. Add Dispatcher Rewrite Rule in rewrite.rules file to map /favicon.ico to favicon file on clientlibrary like ##favic...

    Type

    Questions

    Views

    769

    Likes

    2

    Replies

    0
Top badges earned by Nupur_Jain
Customize the badges you want to showcase on your profile