Oracle ADF Faces - afh:script
Summary

Tag name: < afh:script >

UIComponent class: oracle.adf.view.faces.component.html.HtmlScript

Component type: oracle.adf.HtmlScript

The script component supports both the importing of libraries and inline scripts.

Example:

Example of a simple Javascript function script.

      <afh:script text="function doubleOrTriple()
                    {
                      var p = new TableProxy('table1');
                      var c = p.getFormElement('numbers', 0);
                      var t = (c.value - 0);
                      if (t &lt; 10)
                      { t *= 2 }
                      else 
                      { t *= 3}
                      p._form.newValueField.value = t;
                    }"/>

Attributes
Ungrouped attributes
Name Type Supports EL? Description
attributeChangeListener javax.faces.el.MethodBinding Only EL a method reference to an attribute change listener
generatesContent boolean Yes if the script generates content using document.write() or document.writeln(), set this to true. It defaults to false.
partialTriggers String[ ] Yes the IDs of the components that should trigger a partial update. This component will listen on the trigger components. If one of the trigger components receives an event that will cause it to update in some way, this component will request to be updated too.
source String Yes the URI of a script library to import.
text String Yes the inline script
Core attributes
Name Type Supports EL? Description
binding oracle.adf.view.faces.component. html.HtmlScript Only EL a binding reference to store the component instance
id String No the identifier for the component. This must be a valid XML ID, and therefore may not contain whitespace or start with a number. Also, JSF requires that IDs must not contain any colons (":").
rendered boolean Yes whether the bean is rendered. When set to false, no output will be delivered for this bean.
Copyright © 2003-2006, Oracle Corporation. All Rights Reserved.

E-mail this page
Printer View Printer View
Oracle Is The Information Company About Oracle | Oracle RSS Feeds | Careers | Contact Us | Site Maps | Legal Notices | Terms of Use | Privacy