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
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.
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
Yes, it is working better now, although I am building recent ACS Commons
and it looks like it has broken dependencies,
It is a dependency that is referring to it's
parent:com.day.cq:parent:pom:40which is not there:
Is it a glitch of Adobe Nexus or just wrong dependencies? I believe
parent should be...
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.
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
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.
I am struggling with some generic piece of code:Resource resource =
dynamicallyFindNeededResource(res);Class someModel =
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 ...
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.
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
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
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
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...
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...
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...
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 ...
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
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
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
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!
Hello everyone! I am Dawid, working as a AEM Developer for two years so
far. Happy to find this community at least 🙂 I am living in Poland,
working mostly remotely for foreign (Western Europe) clients.