Interface ScriptTagDeclaration

All Superinterfaces:
HasBinding, HasId, HasIdBindingAndRendered, IsRendered

public interface ScriptTagDeclaration extends HasIdBindingAndRendered
This tag adds script files to include into the rendered page.
Some features are deprecated (because of CSP): This tag adds client side script to the rendered page.
  • Method Details

    • setFile

      void setFile(String file)
      File name to include into the rendered page. The name must be full qualified, or relative. If using a complete path from root, you'll need to add the contextPath from the web application. This can be done with the EL #{request.contextPath}.
      Parameters:
      file - A Script file.
    • setType

      void setType(String type)
      Type of the script.