Save This Page
Home » tapestry-src-5.0.19 » org.apache.tapestry5.internal.services » [javadoc | source]
org.apache.tapestry5.internal.services
public interface: DocumentLinker [javadoc | source]

All Known Implementing Classes:
    DocumentLinkerImpl, PartialMarkupDocumentLinker

Responsible for injecting script and style links into the <head> and <body> element of the rendered HTML document.
Method from org.apache.tapestry5.internal.services.DocumentLinker Summary:
addScript,   addScriptLink,   addStylesheetLink
Method from org.apache.tapestry5.internal.services.DocumentLinker Detail:
 public  void addScript(String script)
    Adds JavaScript code. The code is collected into a single block that is injected just before the close body tag of the page.
 public  void addScriptLink(String scriptURL)
    Adds a link to load a script. Scripts will be loaded only once. The <script> elements will be added at the top or bottom of the <body> element (the location is configurable).
 public  void addStylesheetLink(String styleURL,
    String media)
    Adds a link to load a CSS stylesheet. Stylesheets are loaded only once.