Re: Sling models - Resource decorator

2017-06-06 Thread Roy Teeuwen
Hey Jason, No to both assumptions - I used @Inject public Resource resource. Just tried the @Self, same result - I have @Model(adaptables = Resource.class). I don't want to bind my model to a custom Resource class, that would be the same as saying I have to do @Model(adaptables =

RE: Sling models - Resource decorator

2017-06-06 Thread Jason Bailey
Hey Roy, Couple of Assumptions: For the Self resource you have it defined as: @Self public Resource resource; and for the @Model you have something like @Model(adaptables = RoysCustomDecorator.class) Am I close? -Jason -Original Message- From: Roy Teeuwen [mailto:r...@teeuwen.be]

sling tags similar to Adobe AEM / Wordpress

2017-06-06 Thread Ioan Eugen Stan
Hello, Does anybody know how we can use a tagging framework like Adobe Experience Manager Tagging framework or Wordpress Tags/Categories? Even somthing similar in functionality might be good enough. I need a way to create and manage tags and lookup content based on tags. Initally I don't

Sling models - Resource decorator

2017-06-06 Thread Roy Teeuwen
Hey all, I am using sling models version 1.2.2, and I have the following logic: - I find some resources with the resource resolver (resourceResolver.findResources) - The returned resources are the correct resources which are decorated by my custom resource decorator - I iterate the list to