org.apache.myfaces.tobago.internal.taglib.component
Interface ScriptTagDeclaration

All Superinterfaces:
HasBinding, HasId, HasIdBindingAndRendered, IsRendered

public interface ScriptTagDeclaration
extends HasIdBindingAndRendered

This tag adds script files to include into the rendered page.

Deprecated (because of CSP): This tag adds client side script to the rendered page.


Method Summary
 void setFile(String file)
          File name to include into the rendered page.
 void setOnexit(String onexit)
          Deprecated. Since 2.0.0. Please include a custom script file via the file attribute and use Tobago.registerListener(myFunction, Tobago.Phase.BEFORE_EXIT);
 void setOnload(String onload)
          Deprecated. Since 2.0.0. Please 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);
 void setOnsubmit(String onsubmit)
          Deprecated. Since 2.0.0. Please include a custom script file via the file attribute and use Tobago.registerListener(myFunction, Tobago.Phase.BEFORE_SUBMIT);
 void setOnunload(String onunload)
          Deprecated. Since 2.0.0. Please include a custom script file via the file attribute and use Tobago.registerListener(myFunction, Tobago.Phase.BEFORE_UNLOAD);
 void setScript(String script)
          Deprecated. Since 2.0.0. Please include a custom script file via the file attribute.
 
Methods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasId
setId
 
Methods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.HasBinding
setBinding
 
Methods inherited from interface org.apache.myfaces.tobago.internal.taglib.declaration.IsRendered
setRendered
 

Method Detail

setFile

void setFile(String file)
File name to include into the rendered page.

Parameters:
file - A JavaScript file.

setOnload

@Deprecated
void setOnload(String onload)
Deprecated. Since 2.0.0. Please 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);


setOnunload

@Deprecated
void setOnunload(String onunload)
Deprecated. Since 2.0.0. Please include a custom script file via the file attribute and use Tobago.registerListener(myFunction, Tobago.Phase.BEFORE_UNLOAD);


setOnexit

@Deprecated
void setOnexit(String onexit)
Deprecated. Since 2.0.0. Please include a custom script file via the file attribute and use Tobago.registerListener(myFunction, Tobago.Phase.BEFORE_EXIT);


setOnsubmit

@Deprecated
void setOnsubmit(String onsubmit)
Deprecated. Since 2.0.0. Please include a custom script file via the file attribute and use Tobago.registerListener(myFunction, Tobago.Phase.BEFORE_SUBMIT);


setScript

@Deprecated
void setScript(String script)
Deprecated. Since 2.0.0. Please include a custom script file via the file attribute.



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