Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

mpalme1
Community profile mpalme1 Level 1
Job title here
Location here
2 BADGES
Level 1

Level 1

Learn more
Joined the community 26-05-2020 9:28:18 AM
Offline
Top badges earned by mpalme1
Customize the badges you want to showcase on your profile
Re: Two similar servlets. One works. The other errors "in...
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
@Vijayalakshmi_S, the syntax you are showing above is what I ended up using, and it works. Specifying both selectors in the same working servlet and handling the different logic inside. I initially avoided this approach because of the recommendations against that approach in this article https://taradevko.com/aem/sling-selector-best-practice/, but at this point, I needed to just get it to work, and this works.

Views

232

Likes

0

Replies

0
Re: Two similar servlets. One works. The other errors "in...
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
Hey @KiranVedantam1992, thanks for trying to help me. I've tried several different selector names in TestServletTwo and they all get the same 400 Bad Request result. The error.log doesn't show anything about this error right after I hit it. Just a few *INFO* entries about missing .woff files. Those are present when invoking the first servlet successfully, too. But if I try to invoke the request on the second failing servlet directly in chrome developer tools, the response is actually an html pag...

Views

220

Likes

0

Replies

0
Re: Two similar servlets. One works. The other errors "in...
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
Hey, @shelly-goel. When I check the two servlets in Sling Servlet Resolver, "testselector" resolves to the TestServlet class, but "testselectortwo" does not resolve to TestServletTwo class. I removed TestServlet from the code entirely and recompiled. TestServletTwo still returns 400 Bad Request. I tried to alter TestServlet using the syntax in the article you linked for multiple selectors, but I get several depreciated warnings, and a requests to it start returning 400 Bad Request.

Views

331

Likes

0

Replies

0
Re: Two similar servlets. One works. The other errors "invalid recursion selector value"
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
yes @BrianKasingli. Same implementation. When debugging, I never get to the first line of the servlet that is returning 400 bad request.

Views

413

Likes

0

Replies

0
Re: Two similar servlets. One works. The other errors "in...
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
Hey @shelly-goel. Thank you so much for responding. The two servlets are part of the same bundle, and it is active. I have been testing from the same page and javascript, just changing the selector in the path for the ajax call between tests. I don't know what registering Sling > Sling Servlet Resolver looks like. Not sure if I've done that or how I would if I haven't.

Views

398

Likes

0

Replies

0
Two similar servlets. One works. The other errors "invalid recursion selector value"
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
I have the following servlet that works great@component( service=Servlet.class, property= { "sling.servlet.resourceTypes="+"mysite/components/structure/page", "sling.servlet.selectors="+"testselector", "sling.servlet.extensions="+"json", ServletResolverConstants.SLING_SERVLET_METHODS + "=GET" } ) public class TestServlet extends SlingSafeMethodsServlet I can call it using jquery ajax on a page like this $.ajax({ type:"GET", url: "/_jcr_content.testselector.json", success: function(data){ console...

Views

507

Likes

0

Replies

11
Re: Assets HTTP API pagination and dispatcher caching
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
Thanks, @kunal23. Great idea.

Views

212

Likes

0

Replies

0
Assets HTTP API pagination and dispatcher caching
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
I am working on a component that loads content fragment data with javascript and a request to the assets HTTP API. I need a full result set but the response is paginated as described here:https://experienceleague.adobe.com/docs/experience-manager-65/assets/extending/assets-api-content-fragments.html?lang=en#available-featuresIf I passed ?limit=150, I would get all my results, but then the dispatcher won't cache the response without me setting a global ignoreUrlParams configuration as described h...

Views

231

Likes

0

Replies

2
ResourceResolver getResource returns null inside servlet
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
On AEM 6.5.3, I'm trying to create a content fragment programmatically inside a servlet using a content fragment model. This is my code. The content fragment model and parent folder do exist in the JCR at the paths I am specifying in modelPath and targetFolderPath, but resourceResolver.getResource is returning null for both. What am I doing wrong? package com.ab.mysite.core.servlets; import org.osgi.service.component.annotations.Component; import org.osgi.service.component.annotations.Reference;...

Views

703

Likes

0

Replies

3
Re: POST from 3rd party client to SlingServlet registered...
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
So, that being the case, I think I'd want to create a least privileged account in http://localhost:4502/useradmin that would be used for the auth headers of the request and only allow it to post to that path, but it seems like I can't assign permissions to an account for anything under path /bin. How would I go about that?

Views

303

Likes

0

Replies

0
Re: POST from 3rd party client to SlingServlet registered...
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
ok, thanks @Manjunath_K

Views

312

Likes

0

Replies

0
Re: POST from 3rd party client to SlingServlet registered...
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
Except I'm not trying to call the servlet from a component. I actually need to be able to call the servlet from a program running outside of AEM.

Views

328

Likes

0

Replies

0
POST from 3rd party client to SlingServlet registered using resourceTypes
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
I am trying to create a servlet, registered using resourceType, that can accept an HTTP POST from a client external to the AEM site. Here's is my current code: package com.ab.mysite.core.servlets; import org.osgi.service.component.annotations.Component; import java.io.IOException; import javax.servlet.Servlet; import javax.servlet.ServletException; import org.apache.sling.api.SlingHttpServletRequest; import org.apache.sling.api.SlingHttpServletResponse; import org.apache.sling.api.servlets.Sling...

Views

350

Likes

0

Replies

5
Re: Fire Workflow Launcher on Content Fragment save
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
@Vijayalakshmi_S Thank you so much for all your help. I got it working now.

Views

446

Likes

0

Replies

0
Re: Fire Workflow Launcher on Content Fragment save
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
@Vijayalakshmi_S, would my conditionsjcr:content/data/master/cq:tags!=jcr:content/data/master/insight-title!=jcr:content/data/cq:model==/conf/mysite/settings/dam/cfm/models/insightbecomemaster/cq:tags!=master/insight-title!=cq:model==/conf/mysite/settings/dam/cfm/models/insight?

Views

477

Likes

0

Replies

0
Re: Fire Workflow Launcher on Content Fragment save
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
@Vijayalakshmi_S, thank you so much. I'll try that and report back.

Views

485

Likes

0

Replies

0
Re: Fire Workflow Launcher on Content Fragment save
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
Oh, wow, Vijayalakshmi_S, thank you. That is very kind. I would appreciate the help. Ok, so, if I have content fragments "article-about-weather", "article-about-sports", "article-about-fashion", and "article-about-politics", the paths to those content fragments could look like this:/content/dam/mysite/us/en/content-fragments/insights/legacy/articles/article-about-weather/content/dam/mysite/us/en/content-fragments/insights/2020/articles/article-about-sports/content/dam/mysite/us/en/content-fragme...

Views

503

Likes

0

Replies

0
Re: Fire Workflow Launcher on Content Fragment save
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
Thanks, @Vijayalakshmi_S. In my case, there are a variable number of folders between /content-fragments and /jcr:content/data. I'm not clear from any of the documentation I've looked at what syntax is supported for path conditions. Is this documented anywhere? Is it some limited form of regex?

Views

538

Likes

0

Replies

0
Fire Workflow Launcher on Content Fragment save
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
I'm trying to configure a workflow launcher to fire when a content fragment is saved and not before. Currently, my launcher is configured like this: Event Type: ModifiedNodetype: dam:AssetPath: /content/dam/mysite/us/en/content-fragments/insights(/.*)Run Mode: AuthorConditions:jcr:content/data/master/cq:tags!=jcr:content/data/master/insight-title!=jcr:content/data/cq:model==/conf/mysite/settings/dam/cfm/models/insightWorkflow: MyWorkflow The conditions keep it from firing unless insight-title fi...

Views

598

Likes

0

Replies

11
Re: How to make parsys containers available in content fr...
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
Turns out this css in core.css is what causes the overlapping:.cq-Overlay > .cq-Overlay > .cq-Overlay { z-index: 174; } I'm not sure how to correct for that, though.

Views

443

Likes

0

Replies

0
Re: How to make parsys containers available in content fr...
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
So, another developer and I were looking at this and figured out that our issue comes from the components overlapping each other in the editor. To test that out, we used style tags and float left and right to get them not to overlap. Once we did that, the drop zone became available. But it broke our design layout. So, now we're trying to figure out how to preserve the layout but still make the components adjacent instead of overlapping.

Views

445

Likes

0

Replies

0
Re: How to make parsys containers available in content fr...
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
Interesting. Thanks, @Arun_Patidar. So, there must be something going on with my implementation that is causing the functionality to break. I'm not sure how to troubleshoot, though.

Views

466

Likes

0

Replies

0
Re: How to make parsys containers available in content fr...
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
Posted here: https://github.com/adobe/aem-core-wcm-components/issues/1082#issue-647344056

Views

424

Likes

0

Replies

0
Re: How to make parsys containers available in content fr...
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
Thanks, @Jörg_Hoh. I believe this is a core component based on this https://docs.adobe.com/content/help/en/experience-manager-core-components/using/components/content-fragment-component.html and this https://github.com/adobe/aem-core-wcm-components/tree/master/content/src/content/jcr_root/apps/core/wcm/components/contentfragment/v1/contentfragment. I'll try the github page.

Views

430

Likes

0

Replies

0
Re: How to make parsys containers available in content fr...
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
Well, I am authoring the content fragment in my assets library using the content fragment model as you said. In this case, I am trying to use the Content Fragment Component (this one: https://docs.adobe.com/content/help/en/experience-manager-core-components/using/components/content-fragment-component.html) to render the content of the Content Fragment. That component will include those "in between" parsys drop zones as described here: https://docs.adobe.com/content/help/en/experience-manager-64/...

Views

492

Likes

0

Replies

0
Re: How to make parsys containers available in content fragment component embedded using data-sly-resource
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
@kautuk_sahni, i still have not found a solution

Views

595

Likes

0

Replies

0
How to make parsys containers available in content fragment component embedded using data-sly-resource
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
I have a component with htl that wraps a couple of components including a content fragment component like this: And that works except that, in the page editor, the "in between" parsys containers of that resourced content fragment component are visible but components can't be added from the component drawer. If I drag them onto the page over the parsys, they don't drop. dragging an image component into parsys but it is disabled Is there a way to make it so they can be?

Views

725

Likes

0

Replies

12
Re: How to display html tags in jcr fields?
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
Thank you! That worked.

Views

438

Likes

0

Replies

0
How to display html tags in jcr fields?
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
I have several type:String fields in the jcr that contain html tags in them. I need to render on my page such that the html tags are injected into the dom rather than be escaped. But right now, they are getting escaped.For example, in the jcr I might have this fieldIn the browser, that is ending up like this: <p>Texting with your feet is a rare skill.</p> I don't know if this is relevant to my question, but the jcr fields I'm trying to render are in the /jcr:content/data/master of a content frag...

Views

543

Like

1

Replies

3
How do you render html in jcr type:String field through custom component htl?
Avatar
Validate 1
Level 1
mpalme1
Level 1

Likes

2 likes

Total Posts

37 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
mpalme1
- Adobe Experience Manager
I've got several type:String fields in my jcr properties that I need to render through the htl script of a custom component. Don't know if this matters, but these String fields are populated from multi-line fields of a content fragment. In my component code, I have the ContentFragment, and for jcr fields that were populated by single-line text fields on the content fragment model (and thus have no html tags in them), they render fine if I do something like this: @Override public String getTitle(...

Views

194

Likes

0

Replies

1
Likes given to
Likes from