org.apache.myfaces.tobago.component
Class UIScript

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.apache.myfaces.tobago.component.UIScript
All Implemented Interfaces:
javax.faces.component.StateHolder

public class UIScript
extends javax.faces.component.UIComponentBase

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 ScriptTagDeclaration.


Field Summary
static String COMPONENT_FAMILY
           
static String COMPONENT_TYPE
           
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Constructor Summary
UIScript()
           
 
Method Summary
 String getFamily()
           
 String getFile()
           
 String getOnexit()
          Deprecated.  
 String getOnload()
          Deprecated.  
 String getOnsubmit()
          Deprecated.  
 String getOnunload()
          Deprecated.  
 String getScript()
          Deprecated.  
 void restoreState(javax.faces.context.FacesContext context, Object componentState)
           
 Object saveState(javax.faces.context.FacesContext context)
           
 void setFile(String file)
           
 void setOnexit(String onexit)
          Deprecated. 
 void setOnload(String onload)
          Deprecated. 
 void setOnsubmit(String onsubmit)
          Deprecated. 
 void setOnunload(String onunload)
          Deprecated. 
 void setScript(String script)
          Deprecated. 
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_TYPE

public static final String COMPONENT_TYPE
See Also:
Constant Field Values

COMPONENT_FAMILY

public static final String COMPONENT_FAMILY
See Also:
Constant Field Values
Constructor Detail

UIScript

public UIScript()
Method Detail

getFamily

public String getFamily()
Specified by:
getFamily in class javax.faces.component.UIComponent

getOnload

@Deprecated
public String getOnload()
Deprecated. 

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);


setOnload

@Deprecated
public void setOnload(String onload)
Deprecated. 


getFile

public String getFile()

setFile

public void setFile(String file)

getOnunload

@Deprecated
public String getOnunload()
Deprecated. 

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


setOnunload

@Deprecated
public void setOnunload(String onunload)
Deprecated. 


getScript

@Deprecated
public String getScript()
Deprecated. 

Alternatively include a custom script file via the file attribute.


setScript

@Deprecated
public void setScript(String script)
Deprecated. 


getOnexit

@Deprecated
public String getOnexit()
Deprecated. 

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


setOnexit

@Deprecated
public void setOnexit(String onexit)
Deprecated. 


getOnsubmit

@Deprecated
public String getOnsubmit()
Deprecated. 

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


setOnsubmit

@Deprecated
public void setOnsubmit(String onsubmit)
Deprecated. 


restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         Object componentState)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class javax.faces.component.UIComponentBase

saveState

public Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class javax.faces.component.UIComponentBase


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.