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 Summary

    Modifier and Type
    Method
    Description
    void
    File name to include into the rendered page.

    Methods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasBinding

    setBinding

    Methods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasId

    setId

    Methods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.IsRendered

    setRendered
  • 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 JavaScript file.