public class

UIScript

extends UIComponentBase
java.lang.Object
   ↳ javax.faces.component.UIComponent
     ↳ javax.faces.component.UIComponentBase
       ↳ org.apache.myfaces.tobago.component.UIScript

Class Overview

This tag adds script files to include to the rendered page. Direct calls can also be registered via special attributes, This will be deprecated (because of CSP) in later versions. UIComponent class, generated from template component1.2.stg with class org.apache.myfaces.tobago.internal.taglib.component.ScriptTagDeclaration.

Summary

Constants
String COMPONENT_FAMILY
String COMPONENT_TYPE
[Expand]
Inherited Fields
From class javax.faces.component.UIComponent
Public Constructors
UIScript()
Public Methods
String getFamily()
String getFile()
String getOnexit()
Alternatively include a custom script file via the file attribute and use Tobago.registerListener(myFunction, Tobago.Phase.BEFORE_EXIT);@deprecated
String getOnload()
Alternatively include a custom script file via the file attribute and use Tobago.registerListener(myFunction, Tobago.Phase.DOCUMENT_READY); or Tobago.registerListener(myFunction, Tobago.Phase.WINDOW_LOAD);@deprecated
String getOnsubmit()
Alternatively include a custom script file via the file attribute and use Tobago.registerListener(myFunction, Tobago.Phase.BEFORE_SUBMIT);@deprecated
String getOnunload()
Alternatively include a custom script file via the file attribute and use Tobago.registerListener(myFunction, Tobago.Phase.BEFORE_UNLOAD);@deprecated
String getScript()
Alternatively include a custom script file via the file attribute.@deprecated
void restoreState(FacesContext context, Object componentState)
Object saveState(FacesContext context)
void setFile(String file)
void setOnexit(String onexit)
void setOnload(String onload)
void setOnsubmit(String onsubmit)
void setOnunload(String onunload)
void setScript(String script)
[Expand]
Inherited Methods
From class javax.faces.component.UIComponentBase
From class javax.faces.component.UIComponent
From class java.lang.Object
From interface javax.faces.component.StateHolder

Constants

public static final String COMPONENT_FAMILY

Constant Value: "org.apache.myfaces.tobago.Script"

public static final String COMPONENT_TYPE

Constant Value: "org.apache.myfaces.tobago.Script"

Public Constructors

public UIScript ()

Public Methods

public String getFamily ()

public String getFile ()

public String getOnexit ()

Alternatively include a custom script file via the file attribute and use Tobago.registerListener(myFunction, Tobago.Phase.BEFORE_EXIT);@deprecated

public String getOnload ()

Alternatively include a custom script file via the file attribute and use Tobago.registerListener(myFunction, Tobago.Phase.DOCUMENT_READY); or Tobago.registerListener(myFunction, Tobago.Phase.WINDOW_LOAD);@deprecated

public String getOnsubmit ()

Alternatively include a custom script file via the file attribute and use Tobago.registerListener(myFunction, Tobago.Phase.BEFORE_SUBMIT);@deprecated

public String getOnunload ()

Alternatively include a custom script file via the file attribute and use Tobago.registerListener(myFunction, Tobago.Phase.BEFORE_UNLOAD);@deprecated

public String getScript ()

Alternatively include a custom script file via the file attribute.@deprecated

public void restoreState (FacesContext context, Object componentState)

public Object saveState (FacesContext context)

public void setFile (String file)

public void setOnexit (String onexit)

public void setOnload (String onload)

public void setOnsubmit (String onsubmit)

public void setOnunload (String onunload)

public void setScript (String script)