5 Replies Latest reply on Apr 14, 2013 8:11 PM by Sham HC

    How to get a TagManager instance?

    mdp3

      Hey there!

       

      I'm trying within one of my components to get a reference to a valid TagManager so that I can call resolve on some Tag IDs that I have.

       

      The documentation I've read says to do either:

      TagManager tagManager = JcrTagManagerFactory.getTagManager(session);

      TagManager tagManager = resourceResolver.adaptTo(ResourceResolver.class);

       

      but I can't get either of these to work. Anyone have any code they've used in a component to get a TagManager?