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 = pickUpSomeSlingModelClass();return resource.adaptTo(someModel);The problem is I want to expand this type of adapting to request as well:Adaptable adaptable = checkIfModelAdapta...
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.
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 l...
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.
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 fr...
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 exampl...