Reserved Attribute: func
Description
This attribute is a way to call a specific function of the parent object directly. This function is limited to a publicly accessible function that takes a single parameter, which the current object must match.Attribute Values
The attribute value is the name of the function of the parent object to be called.Additional Notes
Since it is fairly easy to map a single parameter function call to a attribute setter in setting tag libraries, this attribute is not used that often.Examples
In the following XML code, an ActionListener object is created using a BeanShell script, then addActionListener function of the button object is called to add the listener to the button.<button text="OK"> <bsh func="addActionListener'> // some BeanShell script code that creates a ActionListener … </bsh> </button>
PDF
History


