since ‎12-05-2016
‎25-11-2020
luke_grover
Level 2
Re: Issues with custom columns in listview for AEM 6.3 on  /aem/products.html/
Avatar

luke_grover

luke_grover
- Adobe Experience Manager
So, I'm not sure about that, please share if you figure out a way to make that work.It looks like you have already tried to approach provided here: Customizing the Consoles. ​It doesn't look there is a GitHub link (like it says), but this is a pretty good example of doing that for sites. GitHub - Adobe-Marketing-Cloud/aem-sites-extension-listview-columns: Sample package for AEM 6 Sites extension. Add custo…

Views

887

Likes

0

Replies

0
Re: Issues with custom columns in listview for AEM 6.3 on /aem/products.html/
Avatar

luke_grover

luke_grover
- Adobe Experience Manager
Sure, so assets is once again a different set of components.Take a look at this set of nodes.../libs/dam/gui/coral/components/admin/contentrenderer/row/*For example,/libs/dam/gui/coral/components/admin/contentrenderer/row/asset/asset.jspI added the following... <% Resource propsNode = resource.getChild("jcr:content"); String lukesScore = propsNode.getValueMap().get("lukesScore", String.class); if(lukesScore == null) lukesScore = ""; %> <%= xssAPI.encodeForHTMLAttr(lukesScore)%> I added some v...

Views

894

Like

1

Replies

0
Re: Component Using OSGi DS not added to Sling Scheduler
Avatar

luke_grover

luke_grover
- Adobe Experience Manager
That made all the difference in getting your sample to be added to the scheduler automatically. Which got me looking into why your sample worked while mine didn't. Turns out the activate method is required.Adding the following caused everything to start working...@Activateprotected void activate(final SampleScheduler.Configuration config) { //Required}So I played around with it by removing the parameter and once again it stopped getting added to the scheduler. So, it looks like you need to have ...

Views

739

Likes

2

Replies

0
Re: Component Using OSGi DS not added to Sling Scheduler
Avatar

luke_grover

luke_grover
- Adobe Experience Manager
So the values are definitely different. Interestingly, I copied the example Arun provided and it has the same problem as my example with OSGi DS annotations, but it did show some extra properties provided below. I'm guessing most people don't see this problem during development because they are utilizing the system console to play around with the configurations. Once a configuration exists the task is scheduled and there isn't an issue, but in higher environments where access to modify configura...

Views

732

Likes

0

Replies

0
Component Using OSGi DS not added to Sling Scheduler
Avatar

luke_grover

luke_grover
- Adobe Experience Manager
I have 2 simple schedulers. They should both result in an message to the logs every 5min. However, The OSGi DS version does not get registered as a Scheduled Task. Is there something in addition to what is below that is needed to make this work?Using Felix SCR/** * This service runs every 5 mins */@Component(metatype = true, label = "A scheduled task", description = "Simple demo for cron-job like task with properties")@Service(value = Runnable.class)@Properties({ @Property(name = "scheduler.expr...

Views

1.6K

Likes

2

Replies

5
Re: Unable to Prevent LinkChecking on Servlet Request
Avatar

luke_grover

luke_grover
- Adobe Experience Manager
So thanks to Jörg Hoh​'s comment, I added a new sling rewriter configuration for this case as it seems the default rewriter configuration was being used which tries to rewrite the html tags in the json response.So I ended up with this: So, a few takeaways from this... If utilizing the htmlparser like this, you must specify a value for the includeTags otherwise, the configuration does nothing.I specified application/json in the contentTypes but the content type always seems to be text/htmlI didn'...

Views

922

Likes

2

Replies

1
Re: Unable to Prevent LinkChecking on Servlet Request
Avatar

luke_grover

luke_grover
- Adobe Experience Manager
So are you suggesting that we need to have a custom sling rewriter to resolve? There isn't a rewriter for json but it does appear to get picked up by the default at the end of the list.Here is the response from the link /system/console/status-slingrewriter ... these are just the OOTB rewriters as the instance doesn't have custom ones.Current Apache Sling Rewriter Configuration=================================================================Active Configurations-----------------------------------...

Views

879

Likes

0

Replies

0
Unable to Prevent LinkChecking on Servlet Request
Avatar

luke_grover

luke_grover
- Adobe Experience Manager
I have a simple servlet that should return some commerce data. I have simplified the example here... but the issue is that if there is a link in any of the properties then I get invalid JSON and the link checker filter appears to altering the response even though I have disabled it via configuration.package com.example.issue;import org.apache.sling.api.SlingHttpServletRequest;import org.apache.sling.api.SlingHttpServletResponse;import org.apache.sling.api.resource.Resource;import org.apache.slin...

Views

2.7K

Likes

3

Replies

10
Lazy Content Migrations
Avatar

luke_grover

luke_grover
- Adobe Experience Manager
So on the documentation for the lazy content migration it doesn't directly say that there is a way to execute the migration tasks individually. Is it possible to manually select which ones you want to run or is it just the one flag and you have to run all the tasks?

Views

531

Like

1

Replies

1
Re: Issues with custom columns in listview for AEM 6.3 on /aem/products.html/
Avatar

luke_grover

luke_grover
- Adobe Experience Manager
So, Commerce is setup a little different from sites. I would look at overlaying some items for the list view/libs/commerce/gui/content/collections/products/jcr:content/views/list/columnsand the tables are driven from /libs/commerce/gui/components/admin/products/childrow/childrow.jspHopefully, that gets you started. It seems like there is an issue with how commerce is setup that won't allow the table to be sortable even though it can be enabled for the list view columns.

Views

893

Likes

2

Replies

0