I am having issue with my js function within a ADF Faces af:interator. I have 3 controls within an af:iterator (af:ouputText, af:inputText, af:selectBooleanCheckBox) and I would like to have a js function on the checkbox so that when checking the checkbox, the text of the outputText will be copied into the inputText.
The issue here is that within the af:iterator, ADF will generate its own id or append a weird number for the ids and I am not sure if I should rely on those generated ids to write my js function. I know that I should be using PPR for this, but I can’t.
You can use a combination of
<af:clientAttribute/> and <af:clientListener/>and some javascript to achieve this behavior.You will also need to set clientComponent to true on the
<af:inputText/>.This works in my test program.