I have written a custom clientlib that fills in the title on the creation of a page based on the name of the page.What you get by default: no title --> create button disabledWhat you get if you type a title manually --> create button enabledWhat you get if you try to set te value using a clientlib -...
I could use something like here? sling-models-demo/ResourcePathInjector.java at master · justinedelson/sling-models-demo · GitHubResourcePath path = element.getAnnotation(ResourcePath.class);if (path == null) { return null;}
So the @Inject annotation has no @Source annotation pointing to a specific injector so they all pass my customer injector? By "or no custom injector which provides the source value" you mean that the getName method of the injector returns a value matching the value in the @Source annotation?
I have written my own custom annotation 'Jeroen':import com.asadventure.platform.component.text.JeroenInjector;import org.apache.sling.models.annotations.Source;import org.apache.sling.models.spi.injectorspecific.InjectAnnotation;import java.lang.annotation.ElementType;import java.lang.annotation.Re...
It works but only if I use the following code to retrieve a session: observationSession = repository.loginAdministrative(null);If I use the following my onEvent method is never called:ResourceResolver serviceResourceResolver = resolverFactory.getServiceResourceResolver(AutoClosableResourceResolverFa...
At Adobe Experience Manager Help | Creating an Adobe Experience Manager Event Listener that tags pages they also use felix scr annotations, am I missing something?