Class TagLibrary

java.lang.Object
org.primefaces.showcase.view.app.TagLibrary

@Named @ApplicationScoped public class TagLibrary extends Object
Parse the primefaces.taglib.xml and stores a map of all available tags. Used for generating the VDL (View Declaration Language) documentation links.
  • Constructor Details

    • TagLibrary

      public TagLibrary()
  • Method Details

    • init

      @PostConstruct public void init()
    • getTags

      public Map<String,String> getTags()
      Returns the map of tag names.
      Returns:
      a map where the keys are lowercase tag names and the values are the real tag names.
    • isTagVdlAvailable

      public boolean isTagVdlAvailable(String documentationLink)
      Checks if the VDL (View Declaration Language) tag is available for the given documentation link.
      Parameters:
      documentationLink - the documentation link to check.
      Returns:
      true if the VDL tag is available, false otherwise.
    • getTagVdlComponent

      public String getTagVdlComponent(String documentationLink)
      Gets the VDL (View Declaration Language) component for the given documentation link.
      Parameters:
      documentationLink - the documentation link to get the VDL component for.
      Returns:
      the VDL component name.