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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

puradawid
Community profile puradawid Level 3
Job title here
Location here
16 BADGES
Level 3

Level 3

Learn more
Joined the community 29-04-2017 2:44:48 AM
Offline
Top badges earned by puradawid
Customize the badges you want to showcase on your profile
Re: Form submission is getting failed with Empty CSRF token error entry in logs
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
Does your form render CSRF token at all? Maybe the form has no capability to render it and hence it doesn't work.

Views

345

Likes

0

Replies

0
Re: How to re-try calls to Rest API from OSGi service
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
There are a couple of libraries like that: they are mostly connected with some resilience packages, but I wouldn't bother in this case (although maybe you're interested in something like resilience4j, but in my opinion that's very large framework and you need some library, like this Guava RetryingI am using it from time to time to my scripts that do some automation on AEM instances, and it does it very well. I am done with Apache HttpClient for years now in favor of some simple APIs like OkHttp ...

Views

241

Like

1

Replies

0
How to architect packages of large project?
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
Hey,in my experience every AEM project was based on approach to have one package for components (including templates, bundle with models and other services, etc.), one for demo content and one for test content. When there are 10 or 20 components structure of such package is not that bad. With 100 components its starting to be quite hard to maintain:- code coupling (reusing same templates in many ways)- deployment is risky (rollbacks are even more)Generally speaking, too many features are going i...

Views

839

Like

1

Replies

3
Re: AEM 6.3 PARSYS NO DECORATION
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
Hey,are you sure that nothing else is stopping parsys to render properly? I had the same problem with older version of AEM (6.1 SP1) but it turns out that there is an exception within one of components inside.

Views

748

Likes

0

Replies

0
Re: AEM Nexus Repository - is it down?
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
My apologies, that was first thing that ca me to my mind. Anyway, using -U always makes local repository useless IMHO.

Views

2.3K

Likes

0

Replies

0
Re: AEM 6.2 - Missing element AD in element OCD
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
I am having this same problem with ACS commons - in terms of Shared Properties feature - can't configure it from Felix console. This link kautuksahni​ shared is just getting me into main page of this forum.Tried to google that problem but find nothing. This looks like AD is missing in OCD node and I am wondering if this state should be forbidden from any reason (no need to have attributes in configuration at all).

Views

2.8K

Likes

4

Replies

0
Re: AEM Nexus Repository - is it down?
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
If you have problems still it seems that you need to force updates for maven build. Use -U flag.

Views

2.3K

Likes

0

Replies

5
Re: AEM Nexus Repository - is it down?
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
Yes, it is working better now, although I am building recent ACS Commons and it looks like it has broken dependencies, becausehttps://repo.adobe.com/nexus/service/local/repositories/releases/content/com/adobe/cq/cq-dialog-conversion/1.0.2/cq-dial… It is a dependency that is referring to it's parent:com.day.cq:parent:pom:40which is not there: https://repo.maven.apache.org/maven2/com/day/cq/parent/40/parent-40.pom Is it a glitch of Adobe Nexus or just wrong dependencies? I believe parent should be...

Views

3.1K

Likes

0

Replies

4
AEM Nexus Repository - is it down?
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
Hey, I have got errors during downloading artifacts from Adobe's nexus instance.But it looks like the nexus is actually down https://repo.adobe.com/nexus/content/groups/public/ Can someone confirm that? Maybe the repo has been moved recently? Many thanks.

Views

4.1K

Likes

2

Replies

18
Re: What do I need to do to solve this problem !!!
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
How are you running AEM?It looks like many bundles are not present in OSGi. Probably because they were not installed in a first place.Is it repetable issue (just removing crx-quickstart repository and run AEM jar once again)?

Views

1.3K

Likes

0

Replies

0
Re: How alter SlingHttpServletRequest with different Resource?
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
The point is I have got this resource already, but I want to adapt it to specific sling model.

Views

1.4K

Likes

0

Replies

2
Re: How alter SlingHttpServletRequest with different Resource?
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
So the point is there is a mechanism that is looking for another resource in a content tree (nearest sibling with resource type) to generate this one, i.e. "configuration".There is no way to forward this request nor include neither.

Views

1.4K

Likes

0

Replies

4
How alter SlingHttpServletRequest with different Resource?
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
I am struggling with some generic piece of code:Resource resource = dynamicallyFindNeededResource(res);Class someModel = pickUpSomeSlingModelClass();return resource.adaptTo(someModel);The problem is I want to expand this type of adapting to request as well:Adaptable adaptable = checkIfModelAdaptableByRequest(someModel) ? changeRequestResourceToCurrentOne(request, resource) : resource;return adaptable.adaptTo(someModel);What comes to my mind is the changeRequestResourceToCurrentOne method has to ...

Views

1.7K

Likes

0

Replies

7
Re: Unable to save a multifield value as a page property
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
Quite wild guess: but there might be blogAuthor already created and that's why its not getting "updated".

Views

590

Likes

0

Replies

1
Support of JCR Versioning in CRXDE
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
Trivial and possibly stupid question but I just have a mind fog on that topic:Is there any way to check-in node in terms of creating a version of mix:versionable node in CRX/DE? I clicked literally everywhere to find that option in UI but found absolutely nothing.

Views

402

Like

1

Replies

1
Re: Nested components are not editable when copied into same page in AEM 6.1 SP1 (TouchUI)
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
Alright, cheers smacdonald2008, I will report the bug. Anyway this looks so odd I had to ask community in a first place.Let you know what the status is. For the sake of keeping these things for future generations

Views

938

Likes

0

Replies

1
Re: CQ5/AEM learning
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
Really good set of questions, cheers for thatAlthough, the last question 'How to use angular with AEM' might be quite... well, answered at least with multiple options

Views

842

Likes

0

Replies

0
Re: AEM 6.2: Url Shortening using sling mapping for multi-language site
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
Yup that is completely feasible. Sling Mappings are designed for exactly that purpose, you just need to write correct regular expression.But my question is - do you really need that xyz transformation? As far as I can tell ommiting xyz in path might get conflict with another zyx folder in the same lever having the same page name. I am just making sure that its what you have designed, because if it will turn out that this was a just mistake and you need to get back to original path architecture w...

Views

434

Likes

0

Replies

0
Nested components are not editable when copied into same page in AEM 6.1 SP1 (TouchUI)
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
When I am copying components that contains other components inside (included by data-sly-resource) and pasting into the same even parent parsys (so making this new components tree direct sibling of the base one) I cannot edit components copied inside. I can edit root component though. There are no overlays at all, just the main component have one. There is no error in a console, and the request for specific bunch of components (newly added) have already included cq tags so its not something rela...

Views

1.3K

Likes

0

Replies

3
Re: Unable to see Images in Content Finder
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
Many things are possible here:- could you provide path for example image- are there specific ACLs?- does image have tags?

Views

613

Likes

0

Replies

0
Re: 404 when access resource using /etc.clientlib proxy
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
With all do respect - clientlibs are only for CSS and Javascript code. They are don't have anything common with images or other static content so that is why it won't work as expected.

Views

1.7K

Likes

0

Replies

0
Re: Jenkins build failure with maven-sling-plugin:2.3.0 on AEM 6.2
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
Also -X flag during maven build can be helpful sometimes (spitting out the response code, etc)

Views

664

Likes

0

Replies

0
Re: WcmUsePojo Vs Sling Models
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
There is no the best solution for that. It depends on many various things smacdonald2008​ wrote already (with massive exhausing explanation). Although tldr: using Sling Models coexist with using a lot of annotations (like JPA a little, at least for me) and Use classes are rather manual processing from a resource to specific class. Moreover, and forgive my ignorance, Sling Models are using (100% sure) adaptTo method and I am not sure which mechanism Use classes are using (I think its some injecti...

Views

1.2K

Likes

0

Replies

0
Re: Retrieving the 'SlingHttpServletRequest request' from a parent node.
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
Sad to say that, but Resource class has no adapter to SlingHttpServletRequest class. This is a problem with adaptTo method is not reversable so aInstance.adaptTo(B.class).adaptTo(A.class) don't have to work and those transitions are described with adapters you can find in OSGi console.So, for example, if you are using Sling Models you can simply set class to be adaptable from request, and after that inject main resource using @Via(Resource.class) @Self annotations.This discussion about propertie...

Views

1.2K

Like

1

Replies

0
Re: Why docker does not help you with AEM
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
Well, there is a little exception there (OSGi bundle can be split/replaced from existing content and nothing bad is happening - assuming it is a valid and working replacement), apart from that I agree with that statement.However, how are you handling existing deployment anyway? I think it is installing a new package to the existing repository. How its different from using Docker to run instance (without wiping data out of course) and installing new application package on prod as usual)? There al...

Views

6.1K

Likes

0

Replies

0
Re: Sling model for adapting partial filtered list of grand-children.
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
What you can do its just using script bindings, like that in HTL (seems to be legit way to do):Keep in mind that filter property here its just a custom one, so you can do it even with two parameters like property and value, who knows what is better!Alright, so now there is a draft how to use it, but how to implement it? I won't write all class, believe that you can figure out most of placeholders I left you here:@Model // all those stuff you need to make its model, adaptable should be a Request ...

Views

935

Likes

0

Replies

0
Re: Issue with sling:resourceSuperType AEM 6.3
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
Unfortunately, includes are defined with extension, so that if generic page template went to html that will cause those jsp files won't be included.What you can do ASAP is just creating those files with jsp you have (that are overriding base page) with html extension and just simply load JSP as include, like:But you have to check that base page is having same structure as it had previously.

Views

7.0K

Likes

0

Replies

0
Re: How to create Test driven development(TDD) for AEM components. Is there any framework to do that in AEM?
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
I have got the same problem here. Testing in AEM.First of all, unit tests in Java are obvious and explored well in last, at least, 10 years. Testing those: models, servlets and such is easy (at unit scope of course).However, its getting nasty when you want to test component scope (so that you want to test 1. component rendering 2. dialog 3. design rules). There is a thing called Hobbes.js that is testing well single component (its just a JS code that is ran within editor (or developer I can't re...

Views

1.5K

Likes

0

Replies

1
Re: Form is not getting submitted in dispatcher
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
Hey AryA, to be honest:hard to tell what is your dispatcher configurationare you getting 404 during this call to that JSP? Is it fine, HTTP OK 200, any other response code? Any content in response?Some of dispatchers (I am not 100% sure but the default one seems to be done well) are configured to not handle jcr:content (to response with 404 or even worse).

Views

1.4K

Likes

0

Replies

0
Re: How to remove the wrapping div when using data-sly-resource?
Avatar
Give Back 25
Level 3
puradawid
Level 3

Likes

12 likes

Total Posts

31 posts

Correct reply

3 solutions
Top badges earned
Give Back 25
Ignite 5
Ignite 3
Ignite 1
Give Back 10
View profile
puradawid
- Adobe Experience Manager
Feike Visser wrote... Ok..., here comes a black-magic Sightly trick.... Use this (resourceType) in case you are referring to a page... Basically to remove the div you need to specify the resourceType... This is the most black-magic trick I have seen for sightly! 🙂 I thought that providing resoureType won't affect rendering at all (just be nice way to render even if there is no node under certain path). Thanks for that info!

Views

1.6K

Like

1

Replies

0