since ‎05-08-2015
‎10-12-2019
Gdubz-57m2mu
Level 4
Re: [New] Welcome to AEM Community! Please Introduce Yourself
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
Hi all,My name is Greg Wells and I'm an Adobe certified AEM Developer for Navy Federal Credit Union. Been in web development for close to 8 years now, originally as a front-end developer and the last few years as a back-end developer in AEM. I've got experience with CQ 5.5, 5.6.1, 6.0, and we're in the process of updating to AEM 6.2.Some of my hobbies include target shooting, video games, racing cars, and professional development (always learning new things). I try my best to help out on the for...

Views

11.5K

Like

1

Replies

0
Re: 6.2 unresolved bundles
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
Prince Shivhare wrote... you can also try. In the parent pom.xml: com.adobe.aem uber-jar 6.2.0-SP1 provided apis Wouldn't they need to manually install the unobfuscated JARs into their local .m2 repo if they used this dependency?

Views

2.8K

Likes

0

Replies

1
Re: Detect server in Adobe AEM WorkFlow?
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
BjornEricsson wrote... I Think that I used the wrong wording in my original post. I want to detect server type in a Workbench Process. Is that doable with this approach? What do you mean by "server type" if not author vs. publisher? or dev/testing environment vs PROD environment?Both of these scenarios can be covered by checking run modes, you would just need to include a few extra run modes for each environment (integration, staging, production).

Views

2.8K

Likes

2

Replies

2
Re: Ways to identify wcm mode in Javascript/Jquery
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
smacdonald2008 wrote... See this community article -- https://edivad.wordpress.com/2013/10/23/whats-my-cq-run-mode/ If wordpress is blocked by anyone else's corporate proxy (like ours), here's the core of that article:/* * EditMode.js * * Simple javascript object meant to be used within a CQ development to understand on a Javascript side which my Edit Mode is. * * USAGE: * 1) Drop the file in your clientlib * 2) Reference it in your js.txt * * You can now use it as it will automatically create a...

Views

2.3K

Like

1

Replies

0
Template Visibility in Touch UI
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
In ClassicUI's SiteAdmin panel, there was a column for Template. Does nothing like this exist in TouchUI?I honestly can't seem to find a single way to determine what template a specific page is using in TouchUI. I'm considering overlaying /libs/cq/gui/components/coral/admin/page/columnpreview/columnpreview.jsp so that when you select a page, you can at least get the information there, but that seems so stupid that I've got to do that.Anyone else done this? Or come up with another solution for sh...

Views

717

Likes

0

Replies

3
Re: Creating Custom Social Component (Comments) - Error extending comments component
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
Arun,We're using the Unobfuscated 6.2 Uber-jar. com.adobe.aem uber-jar 6.2.0 apis provided

Views

724

Like

1

Replies

0
Re: aem 6.2 warning
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
Any chance that Adobe will implement a hotfix for this? I know it's just a warning but seeing it pop up all the time bothers me.I honestly don't know enough about Oak to know for sure, but it seems this was addressed with OAK-4139[1]?[1] https://issues.apache.org/jira/browse/OAK-4139

Views

1.5K

Likes

0

Replies

0
Re: LoginException: Cannot derive user name for bundle (Service Resolver Issue)
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
Thanks for both replies, Peter, very helpful!Quick question, did you intentionally delete the one about the OSGi book?

Views

4.5K

Likes

0

Replies

0
Re: LoginException: Cannot derive user name for bundle (Service Resolver Issue)
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
smacdonald2008 wrote... I would go the @Service approach. Any idea if there is any sort of performance degradation* from doing this simply to provide the @Reference capability to a class/interface? Couldn't tell just from looking at the documentation[1].* other than a couple extra declaration lines in the META-INF file.[1] http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin/scr-annotations.html#service

Views

4.5K

Like

1

Replies

0
Re: Access Properties values set via WCM USE class
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
ptK wrote... Gdubz wrote... Hi ptK, Firstly, WCMUse[1] is deprecated, use WCMUsePojo[2] instead. Secondly, is there any particular reason you're using a ModifiableValueMap[3] to READ values? You should really just be using a regular ValueMap[4] instead, if you can help it. In the event that you can't help but use the ModifiableValueMap, you may need to utilize a Service Resolver[5] that has sufficient privileges to read and write content, in lieu of the user's (possibly unprivileged) ResourceRes...

Views

1.1K

Like

1

Replies

0
Re: LoginException: Cannot derive user name for bundle (Service Resolver Issue)
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
PuzanovsP wrote... Apologies if I don't understand something in your question, Why not define an API where each user write action is Service function with it's own logic and related references? This AWESOME feature is available in 6.2 !!! [1] Then, you would not need to do this OSGi framework level magic(even through ThreadSafe). As per OSGi the reason why it provides Service and Reference annotations, is to take care of the more complicated stuff, which you are trying to solve here(which they s...

Views

4.4K

Likes

0

Replies

0
Re: Check Touch UI Mode in Sightly HTML[AEM 6.2]
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
adobecquser cq wrote... Hi All, Thank you for your reply. isn't working as expected, when even on page refresh. Edit / Preview has always worked this way.As susheel has already said, if you want to see a true preview of what your page would look like in Publish, I suggest keeping a second tab open of your page with ?wcmmode=disabled appended to the end of it. I would also remove the "/cf#/" or the "/editor.html/" part of the URL too, so you're not loading anything that wouldn't load on Publish.

Views

4.0K

Likes

0

Replies

0
Re: LoginException: Cannot derive user name for bundle (Service Resolver Issue)
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
I can get this working without log errors if I retrieve the ResourceResolverFactory from from the FrameworkUtil[1] class instead of from the SlingScriptHelper interface, essentially forcing the BundleContext to my class' bundle, instead of the Sling API bundle.// get the ResourceResolverFactory directly from your own bundle. BundleContext bundleContext = FrameworkUtil.getBundle(TempFunctions.class).getBundleContext(); ServiceReference factoryRef = bundleContext.getServiceReference(ResourceResolv...

Views

4.5K

Likes

0

Replies

0
Re: Return in Sightly
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
Feike Visser wrote... @greg, great catch! In this case there is no real need for Java, you can have this too in your component: ${resource.path} Thanks, and I completely agree, a lot of the common functionality is available without writing your own custom classes.What I posted should work if he or she is really determined to use Java instead. Like if they intend to take this and extend it further, and were merely using the resource.getPath(); as a simple example to pose the question with.

Views

752

Likes

0

Replies

0
Re: Return in Sightly
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
EDIT: Worth noting that I think the only thing semantically wrong with your code is that your method name is "getvalue()" instead of "getValue()". Case sensitivity is very important! THAT SAID, you really SHOULD use WCMUsePojo instead of WCMUse.If you're determined to use Java instead of what's available through JavaScript, this should work for you:Java Class:package com.your.pkg.name; import com.adobe.cq.sightly.WCMUsePojo; import org.apache.sling.api.resource.Resource; import org.slf4j.Logger;...

Views

710

Likes

0

Replies

0
Re: Access Properties values set via WCM USE class
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
Hi ptK,Firstly, WCMUse[1] is deprecated, use WCMUsePojo[2] instead. Secondly, is there any particular reason you're using a ModifiableValueMap[3] to READ values? You should really just be using a regular ValueMap[4] instead, if you can help it.In the event that you can't help but use the ModifiableValueMap, you may need to utilize a Service Resolver[5] that has sufficient privileges to read and write content, in lieu of the user's (possibly unprivileged) ResourceResolver[6].[1] https://docs.adob...

Views

1.1K

Like

1

Replies

0
Re: javax.jcr.AccessDeniedException: OakAccess0000: Access denied
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
Hi Dean,Unless I'm mistaken, simply extending WCMUsePojo does not allow you the ability to use @Reference annotations to pull other services/components into your class. Your class would either need to be a @Service or @Component itself in order to have this luxury.One thing you COULD do is get a reference through the SlingScriptHelper[1] interface, like so:package com.your.pkg.name; import com.adobe.cq.sightly.WCMUsePojo; import org.apache.sling.api.resource.Resource; import org.apache.sling.api...

Views

1.2K

Likes

0

Replies

0
LoginException: Cannot derive user name for bundle (Service Resolver Issue)
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
Platform Version: AEM 6.2Something I've noticed after using the service resolver pattern for a few months now, is that unless my class is a @Service and can @Reference the ResourceResolverFactory, then anytime I try to get a service resolver, I get the following error:org.apache.sling.api.resource.LoginException: Cannot derive user name for bundle org.apache.sling.api [64] and sub service ugc-writer at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getServiceResourceResolver(...

Views

10.5K

Like

1

Replies

8
TouchUI - Content Hidden Below the Fold
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
When authoring in TouchUI, anything that is "below the fold" on page load has a gray overlay on top of it. Using the Inspector in Chrome Dev Tools, it looks as though something isn't updating this div's height on-scroll: Is this a known issue? Is there a fix for this?Is this because maybe some evil FE dev on my project wrote some custom code that overrides some OOTB scroll event listener? lol

Views

675

Likes

0

Replies

2
Re: How to use Interface ResourceChangeListener
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
Also worth noting, in my own search for replacement of these deprecations in our own listener classes, I stumbled onto this code sample from Adobe Consulting Services' ACS AEM Samples github[1]: SampleResourceChangeListener.java[2].Looks like exactly what you need, Reini-.[1] https://github.com/Adobe-Consulting-Services/acs-aem-samples[2] https://github.com/Adobe-Consulting-Services/acs-aem-samples/blob/master/bundle/src/main/java/com/adobe/acs/samples/events/impl/SampleResourceChangeListener.ja...

Views

3.0K

Like

1

Replies

0
Re: How to use Interface ResourceChangeListener
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
Not sure why it's not showing the @Deprecated annotation on any of the Sling API JavaDocs online[1], but if you open the org.apache.sling.api.SlingConstants class that's included in the AEM 6.2.0 UberJar, you'll see the following:/** * The topic for the OSGi event which is sent when a resource has been added * to the resource tree. * The event contains at least the {@link #PROPERTY_PATH}, {@link #PROPERTY_RESOURCE_SUPER_TYPE} * and {@link #PROPERTY_RESOURCE_TYPE} properties. * @since 2.0.6 (Slin...

Views

3.0K

Likes

0

Replies

0
Re: Notifications: Performance issues at scale?
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
Thank you so much for the reply, Dan. Makes a bit more sense after reading a couple articles on it.For anyone else that may come across this post in the future, this is the article I found, and the links that it contains:Write-based fan-out vs read-based fan-out : http://rubanm.tumblr.com/post/59561467766/write-based-fan-out-vs-read-based-fan-outThe Architecture Twitter Uses to Deal with 150M Active Users : http://highscalability.com/blog/2013/7/8/the-architecture-twitter-uses-to-deal-with-150m-...

Views

879

Likes

0

Replies

0
Notifications: Performance issues at scale?
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
Did some local testing and noticed that if, for example, 3 people are following a blog post and someone leaves a comment, there are 5 Mongo documents created:1x Comment1x Activity, for the user who commented3x Notifications, for each user following this blog postWhat happens if we had, again just for example, 15,000 users following a blog post...!Would that generate 15,002 Mongo documents each time a comment was posted?Would this slow down the time it takes to post each comment?Couldn't this qui...

Views

969

Like

1

Replies

2
Re: ResourceResolver try-with-resources in AEM 6.2
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
Feike Visser wrote... I like your way/suggestion.I think the main reason why it is not used much is because this requires Java 8. Fair enough. We just recently finished upgrading all of our PROD servers to 1.8 and we're now in the process of refactoring code to take advantage of some of these new features.

Views

1.1K

Like

1

Replies

0
Re: ResourceResolver try-with-resources in AEM 6.2
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
smacdonald2008 wrote... Most ppl that is speak with about this manually close sessions. Have you tried this API? We have historically done something like the following code, albeit with the getting/closing abstracted away to util class methods:String serviceName = “some-service-name”; ResourceResolver serviceResolver = null; try { Map serviceParams = new HashMap<>(); serviceParams.put(ResourceResolverFactory.SUBSERVICE, serviceName); serviceResolver = resolverFactory.getServiceResourceResolver(s...

Views

1.1K

Likes

0

Replies

0
ResourceResolver try-with-resources in AEM 6.2
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
Based on the versions I've found, it should work but I just wanted to confirm if anyone has used/tested this with any luck, without leaving tons of sessions open all over the place.According to SLING-4805[1], ResourceResolver should properly extend AutoCloseable[2] as of Sling API 2.11.0. And according to the bundle I'm seeing in my system console of my local AEM 6.2 instance, it's using Sling API 2.11.0. So I should be able to refactor all of our try-catch-finally resource resolver code to try-...

Views

2.8K

Likes

3

Replies

6
Re: TouchUI Dialog Editor
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
Your favorite XML editor with the following tabs open for (partial/incomplete) reference:Granite UI Documentation (Coral UI 3)Legacy Granite UI Documentation (Coral UI 2)Once you've knocked out a few of them, you'll get more familiar with the basic structure of TouchUI dialogs.I would also recommend checking out a few of the Touch UI specific blog posts from Sreekanth's blog, he's got some great examples of Touch UI dialogs.

Views

638

Likes

0

Replies

0
Re: Website optimisation tips
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
Along with the link that Scott gave you, take a look at the Adobe Granite HTML Library Manager[1] configuration if you haven't already. Should help make the OOTB clientlibs a little lighter in PROD.[1] https://docs.adobe.com/docs/en/aem/6-2/deploy/configuring/osgi-configuration-settings.html#Adobe Granite HTML Library Manager

Views

925

Likes

0

Replies

0
Re: Granite UI Documentation Lacking
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
smacdonald2008 wrote... I have passed this to various AEM managers - thank you for your feedback. We will continue to help fill this gap with HELPX articles, etc in the community. Hi Scott, any update?The Granite UI PathBrowser component is still missing from both Current GraniteUI[1] and Legacy CoralUI2[2] documentation. The only place I was able to find any information on this was from the AEM 6.1 docs[3].[1] https://docs.adobe.com/docs/en/aem/6-2/develop/ref/granite-ui/api/jcr_root/libs/grani...

Views

1.2K

Likes

0

Replies

0
Re: Curl in AEM 6.2
Avatar

Gdubz-57m2mu

Gdubz-57m2mu
- Adobe Experience Manager
kautuksahni wrote... chaitanyac9677 wrote... ok, Thanks for reply but still group names been saved as system generated i.e. something like this /home/groups/1/1EfrGlFhT9KTQq344Dmy, so to know 1EfrGlFhT9KTQq344Dmy belogs to which group we might need to search again. Is there any otherway that we can provide regular group name in cURL? Hi, Yes you are right, so if you are aware of the group name, then use may use curl by :- FaddMembers=myUserName1 -FaddMembers=myUserName2 $ curl -u admin:admin -Fa...

Views

1.8K

Like

1

Replies

0