ADF provides <af:insertTextBehavior> component to insert text at current cursor position
This tag is an alternative for java script.
To demonstrate <af:insertTextBehavior> tag ,
let's have a scenario with two input texts and a command button.
On click of 'Insert' button, InputA value("AND") will be inserted at the current cursor position of InputB.
Below snippet is used for acheiving this task:
<af:insertTextBehavior> is used with Command button component to insert text on click of command button.
<af:insertTextBehavior> tag attributes:
for-destination component id .
triggerType- The event type which will trigger the text to be inserted.
For more information on <af:insertTextBehavior> tag attributes , Click here.