Sun Identity Manager Deployment Reference

Calling Resource Methods from Forms

You can invoke methods on a resource from a form by using the invoke method.

The invoke method is called by specifying the class name and name of the method. Arguments can also be passed to the method within the invoke tags as shown in the following example.


<Default>
   <block>
      <defvar name=’vmsResName’>
         <index i=’0’>
         <ref>accountInfo.accounts[type=vms].name</ref>
         </index>
      <defvar>
         <invoke name=’callResourceMethod’class=’com.waveset.ui.FormUtil’>
            <ref>display.session</ref>
            <ref>vmsResName</ref>
         <null/>
         </invoke>
</Default>

From the Form Element dialog for the field

ProcedureTo Call Resource Methods from a Form

  1. Select Javascript from the Display Class menu.

  2. Click OK.