Tobago Components 1.5.x
Tag script


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.

UIComponentClass: org.apache.myfaces.tobago.component.UIScript

RendererType: Script



Tag Information
Tag Classorg.apache.myfaces.tobago.internal.taglib.ScriptTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
idfalsetruejava.lang.StringThe component identifier for this component. This value must be unique within the closest parent component that is a naming container.
Type: java.lang.String
bindingfalsefalsejavax.el.ValueExpression
(must evaluate to javax.faces.component.UIComponent)
The value binding expression linking this component to a property in a backing bean.

Warning: For the tobago extension library tx the binding differs from JSP and Facelets:

  • JSP: The component is the inner main control (e. g. UIInput).
  • Facelets: The component is the outer UIPanel.

Type: javax.faces.component.UIComponent
renderedfalsefalsejavax.el.ValueExpression
(must evaluate to boolean)
Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit.
Type: boolean
Default: true
filefalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)

Type: java.lang.String
onexitfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)

**** @deprecated. Will be removed in a future version ****

Alternatively include a custom script file via the file attribute and use Tobago.registerListener(myFunction, Tobago.Phase.BEFORE_EXIT);
Type: java.lang.String
onloadfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)

**** @deprecated. Will be removed in a future version ****

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);
Type: java.lang.String
onsubmitfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)

**** @deprecated. Will be removed in a future version ****

Alternatively include a custom script file via the file attribute and use Tobago.registerListener(myFunction, Tobago.Phase.BEFORE_SUBMIT);
Type: java.lang.String
onunloadfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)

**** @deprecated. Will be removed in a future version ****

Alternatively include a custom script file via the file attribute and use Tobago.registerListener(myFunction, Tobago.Phase.BEFORE_UNLOAD);
Type: java.lang.String
scriptfalsefalsejavax.el.ValueExpression
(must evaluate to java.lang.String)

**** @deprecated. Will be removed in a future version ****

Alternatively include a custom script file via the file attribute.
Type: java.lang.String

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.