since ‎25-11-2014
‎18-06-2020
pradeepdubey82
Level 3
Re: AEM 6.4 touch UI dialog | Reload the component dialog... pradeepdubey82 - Adobe Experience Manager
All these properties works at component level. Like after component edit is completed, or delete etc. My requirement is lets say i have 2 widgets in component , after editing the value in first widget i am setting values for 2nd widget that is dropdown(multifield dropdown). These values are not picked at runtime, page need to be refreshed for this. So i want the things to work without refreshing the page. Isn't AEM has anything workaround for this problem?
470
Views
0
Likes
0
Comments
Re: AEM 6.4 touch UI dialog | Reload the component dialog... pradeepdubey82 - Adobe Experience Manager
This is not working. Once i refresh the page then it is loading the new values in the dropdown. I am looking something which can be achieved without closing the dialog and page refresh.
374
Views
0
Likes
0
Comments
AEM 6.4 touch UI dialog | Reload the component dialog after select event pradeepdubey82 - Adobe Experience Manager
Hi All, I have a requirement where i need to reload the component(not page refresh) when changed the tag value.At present i am refreshing the page using window.location.reload();which is closing the dialog and refreshing the page, this is what i don't want. Please advise, thanks in advance. Thanks,Pradeep
583
Views
0
Likes
6
Answers and Comments
Re: Dynamically populate selection dropdown in AEM6.2 pradeepdubey82 - Adobe Experience Manager
I don't remember full but there is js code which makes ajax call to pulldynamic values and populated them using jquery and coral ui.
3167
Views
0
Likes
0
Answers
Re: [New] Welcome to AEM Community! Please Introduce Yourself pradeepdubey82 - Adobe Experience Manager
Hi All,Myself Pradeep Dubey, working on AEM past more than 6 years.Thanks,Pradeep
33662
Views
1
Like
0
Replies
AEM 6.4 SPA with Angular | Run mode specific environment.ts pradeepdubey82 - Adobe Social
Hi All,I have to read environment.ts based on run mode. For example in dev i have environment.dev.ts, in QA i have environment.qa.ts, in uat i have environment.uat.ts files.When starting AEM let's say in dev run mode then environment.dev.ts should read similarly for other run mode respective file to be read.At present it always read environment.ts file only.Please advise how to achieve it. Any help is highly appreciated.Thanks,Pradeep
1895
Views
0
Likes
0
Answers and Comments
Re: AEM6.4 @Reference not working in SlingServlet pradeepdubey82 - Adobe Experience Manager
I had set default value(i have shared all my code in post), still i have to open the configuration and save once to bring servlet in satisfied state.
2838
Views
0
Likes
0
Answers
Re: AEM6.4 @Reference not working in SlingServlet pradeepdubey82 - Adobe Experience Manager
I finally solved this, though it was very weird, first we have to save the configuration then servlet will become in 'satisfied' state.Once servlet is in satisfied state we can call the same in url.Thanks everyone for helping me on this.Regards,Pradeep
2833
Views
0
Likes
0
Answers
Re: AEM6.4 @Reference not working in SlingServlet pradeepdubey82 - Adobe Experience Manager
Hi Donald,No luck,  same error,  servlet is in unsatisfied state.
2815
Views
0
Likes
0
Answers
Re: AEM6.4 @Reference not working in SlingServlet pradeepdubey82 - Adobe Experience Manager
Hi Donald,In AEM 6.4 There is a entirely different approach to read config values. That i am trying to understand how to implement it.
2834
Views
0
Likes
0
Answers
Re: AEM6.4 @Reference not working in SlingServlet pradeepdubey82 - Adobe Experience Manager
I followed the same link, not working in  sling servlet.
2837
Views
0
Likes
0
Answers
Re: AEM6.4 @Reference not working in SlingServlet pradeepdubey82 - Adobe Experience Manager
Hi Hemant arora tried your way also, didn't work.
2833
Views
0
Likes
0
Answers
Re: AEM6.4 @Reference not working in SlingServlet pradeepdubey82 - Adobe Experience Manager
Hi Donald,My requirement is to read custom configuration properties from osgi console in sling servlet using AEM6.4 SP2.The example you shared is just to define and use the class in @Reference. I didn't find any custom configuration.Thanks,Pradeep
2818
Views
0
Likes
0
Answers
Re: AEM6.4 @Reference not working in SlingServlet pradeepdubey82 - Adobe Experience Manager
Hi Donald,Below is my entire codeimport org.osgi.service.metatype.annotations.AttributeDefinition;import org.osgi.service.metatype.annotations.ObjectClassDefinition;@ObjectClassDefinition(name = "My Service Configuration", description = "Service Configuration")public @interface CustomConfigIntf {@AttributeDefinition(name = "Test Namel", defaultValue="Pradeep", description = "Read my name") String name();}public interface MySimpleService {public String getName();}import org.osgi.service.component...
2822
Views
0
Likes
0
Answers
Re: AEM6.4 @Reference not working in SlingServlet pradeepdubey82 - Adobe Experience Manager
Yes, My bundle is in active state, and servlet is unsatisfied state due to @Reference
2835
Views
0
Likes
0
Answers
Re: AEM6.4 @Reference not working in SlingServlet pradeepdubey82 - Adobe Experience Manager
Yes, If I add @Reference sling servlet stopped working. It is in unsatisfied state due to the reference.
2838
Views
0
Likes
0
Answers
AEM6.4 @Reference not working in SlingServlet pradeepdubey82 - Adobe Experience Manager
Hi All,My sling servlet is not working as soon as i add @Reference in it, otherwise it works fineBelow is the servlet code, i have create custom configuration as per the AEM6.4 standards(one @Interface class, one Interface class, one Impl class with proper annotations(org.osgi.service.component.annotations))@Component(service = Servlet.class, property = { Constants.SERVICE_DESCRIPTION + "=Simple Demo Servlet","sling.servlet.methods=" + HttpConstants.METHOD_GET, "sling.servlet.paths=" + "/bin/tes...
18661
Views
1
Like
23
Answers and Comments
Re: Custom Replication Agent problem pradeepdubey82 - Adobe Experience Manager
Thank you Airtash. It worked.
2652
Views
1
Like
0
Answers
Re: Custom Replication Agent problem pradeepdubey82 - Adobe Experience Manager
Hi,I am also facing same issue,Agent is not valid. ContentBuilder not availablecreated multi module aem project using archetype 15. Below is my content builder code@Component(name="Custom Content Builder", service=ContentBuilder.class)public class CustomContentBuilder implements ContentBuilder {private static final Logger LOGGER = LoggerFactory.getLogger(CustomContentBuilder.class);@Reference private ResourceResolverFactory resolverFactory;public static final String NAME = "Custom Content Builde...
2639
Views
1
Like
0
Answers
AEM6.4 SP3 | OKTA + Oauth authentication integration pradeepdubey82 - Adobe Experience Manager
Hi All,After spending all most a day to figure out on how to implement okta+oauth in AEM6.4, i found nothing much on this. No proper documentation which can explain this use case.My client want to use okta + oauth in AEM for user authentication.I am using AEM6.4 SP3. Anyone please advise how to achieve this? Any help is greatly appreciated.Thanks,Pradeep
1122
Views
0
Likes
0
Answers and Comments
Re: AEM6.4 SP3 Asset metadata editor | dynamically populate list upon selection change pradeepdubey82 - Adobe Experience Manager
Yes this is what i was looking.Thank you very much for the help.Regards,Pradeep
2414
Views
0
Likes
0
Answers
Re: AEM6.4 SP3 Asset metadata editor | dynamically populate list upon selection change pradeepdubey82 - Adobe Experience Manager
This is neither page properties nor component dialog. I clearly mentioned asset metadata editor. In asset metadata editor there is a drop-down. In first drop-down I have fixed values, in 2nd drop-down values are dynamic those are based on selection changed in first drop-down.I hope you understood my question and problem.Thanks,Pradeep
2420
Views
0
Likes
0
Answers
AEM6.4 SP3 Asset metadata editor | dynamically populate list upon selection change pradeepdubey82 - Adobe Experience Manager
Hi All,I have a requirement to populate the 2nd list when changing the value in first list in asset metadata editorSay for example Option1, Option2 are the dropdown in first list.When selected option1, 2nd list should have values (xxx,yyy,zzz)When selected option2, 2nd list should have values (aaa,bbb,ccc)Please let me know if someone has any idea on this. Any help is highly appreciated.Thanks,Pradeep
4777
Views
0
Likes
6
Answers and Comments
Re: AEM6.2 sling models | Resource resolver is already closed pradeepdubey82 - Adobe Experience Manager
@Inject private Date timer;timer is the property in dialog of type Date. This is needed to pass to schedule the task.My requirement is to run some piece of code on selected time. I am not using typical scheduler why because felix console access is not provided us, it is maintained and managed by Adobe, we can't ask them to run scheduler as and when needed. We have only author access. So in authoring dialog as soon as author is selecting particular date and time, my timer task code should execute...
3105
Views
0
Likes
0
Answers
Re: AEM6.2 sling models | Resource resolver is already closed pradeepdubey82 - Adobe Experience Manager
now i am getting nullpointer for resourceresolverpackage com.test.core.models;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.net.MalformedURLException;import java.net.URL;import java.net.URLConnection;import java.nio.charset.Charset;import java.text.DateFormat;import java.text.SimpleDateFormat;import java.util.Date;import java.util.Timer;import java.util.TimerTask;import javax.annotation.PostConstruct;import javax.inject.Inject;import javax....
3116
Views
0
Likes
0
Answers
Re: AEM6.2 sling models | Resource resolver is already closed pradeepdubey82 - Adobe Experience Manager
Not solved the issue even after placed timertask logic in separate classNw below is my timertask class code@Componentpublic class SchedulerTask extends TimerTask {private static Logger LOG = LoggerFactory.getLogger(SchedulerTask.class);@Referenceprivate ResourceResolver resourceResolver;Timer timer = new Timer();private DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");public void run() { try {}}}Below error i am getting org.apache.sling.api.scripting.ScriptEvaluationException: org.apa...
3100
Views
0
Likes
0
Answers
Re: AEM6.2 sling models | Resource resolver is already closed pradeepdubey82 - Adobe Experience Manager
Hi Jorg,Please find the full class code belowpackage com.test.core.models;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;import java.net.MalformedURLException;import java.net.URL;import java.net.URLConnection;import java.nio.charset.Charset;import java.text.DateFormat;import java.text.SimpleDateFormat;import java.util.Date;import java.util.Timer;import java.util.TimerTask;import javax.annotation.PostConstruct;import javax.inject.Inject;import javax.jcr....
3113
Views
0
Likes
0
Answers
AEM6.2 sling models | Resource resolver is already closed pradeepdubey82 - Adobe Experience Manager
Hi All,I am getting error in sing model class saying resource resolver is already closed Below is my code for reference.@Model(adaptables = Resource.class)public class SchedulerComponent {private static Logger LOG = LoggerFactory.getLogger(SchedulerComponent.class);@Inject private Date timer;@Injectprivate ResourceResolver resourceResolver;@PostConstructpublic final void init() {try { Session session = resourceResolver.adaptTo(Session.class);} catch(Exception ex) {}}}Below is error stack trace.j...
10581
Views
2
Likes
19
Answers and Comments
Re: AEM6.3 | @Reference aanotation is not working in abstract class pradeepdubey82 - Adobe Experience Manager
Hi Donald,I am going through below linkDeprecated List ("The Adobe AEM Quickstart and Web Application.")org.apache.felix.scr.annotationsis not showing in deprecated list.All deprecated API like JcrResourceResolverFactory, OsgiUtil, User, Group, Apache Json etc showing as striked out in code.Do you have any AEM documentation which clearly states org.apache.felix.scr.annotations is deprecated?Thanks,Pradeep
2973
Views
0
Likes
0
Answers
Re: AEM6.3 | @Reference aanotation is not working in abstract class pradeepdubey82 - Adobe Experience Manager
Hi,I am working on upgrade from 6.1 to 6.3. Code which was working fine in 6.1 is not working on 6.3.@Referenceprivate Replicator replicator Throwing nullpointer exception in abstract class (@Service annotation only no @Component annotation on top of class definition). It was working in 6.1.Gone through the links shared in response, i think there are lot of changes i have to do (pom file changes, felix annotation are deprecated)I was thinking this will be minor change. But after going through th...
2976
Views
0
Likes
0
Answers
Likes given to