Project Documentation
Foundation

Summary

Tag name: <s:script>
UIComponent class: org.apache.myfaces.custom.script.Script
Tag class: org.apache.myfaces.custom.script.ScriptTag
Component type: org.apache.myfaces.Script
Component family: javax.faces.Output
Renderer type: org.apache.myfaces.Script
Renderer class: org.apache.myfaces.custom.script.ScriptRenderer

Adds (java)script to the browser

Attributes

Name Type Supports EL? Description
binding org.apache.myfaces.custom.script.Script Only EL Identifies a backing bean property (of type UIComponent or appropriate subclass) to bind to this component instance. This value must be an EL expression.
id String Yes Get a string which uniquely identifies this UIComponent within the scope of the nearest ancestor NamingContainer component. The id is not necessarily unique across all components in the current view.
language String Yes script language
rendered boolean Yes A boolean value that indicates whether this component should be rendered. Default value: true.
src String Yes URL for script file.
type String Yes type of script source