Custom encoders for data types and events are only used if they are explicitly registered at runtime. This process currently has to be carried out by the JavaBean itself, so you may need to subclass the JavaBean and carry out this step in the constructor of the JavaBean subclass.
To register an encoder:
oracle.forms.ui.BeanManager
in your JavaBean
source file.BeanManager.RegisterEncoder()
, passing
in an instance of your encoder as an argument. For example:
... import oracle.forms.ui.BeanManager; ... public class myCalculator extends Calculator { public myCalcualtor(int x, int y) { super(); BeanManager.registerEncoder(new mypackage.FractionEncoder()); // do other stuff here
...
Writing a Custom Data Type Encoder
Writing a Custom Event Encoder