Hi,
On click of a button .. I am trying to call a java script code .. I am using Jdev 11.1.1.7.1
Here on the jsff page fragment i have added the following code at the beginning
<f:view>
<af:document id="d1" title="abc">
<af:resource type="javascript">
function myFunction() {
alert("I am an alert box!");
}
</af:resource>
On button i have used the clientlistener like this
<af:clientListener type="action" method="myFunction"/>
I am getting the following error when i run the page.
javax.faces.component.UIViewRoot cannot be cast to oracle.adf.view.rich.component.fragment.UIXRegion
Any idea of why this is happening ? what change should I be doing ?
Thanks,
Vinay