1. Using JS in a jsff page
jsff doesn't usually load the js when the af:resource tag is embeded just after jsp:root tag.
To make it work add af:resource inside a formLayout or panelGroupLayout.
<af:panelGroupLayout>
<af:resource type="javascript">
function fnc(evt){ ... }
</af:resource>
</af:panelGroupLayout>
more detailed info can be found at
https://blogs.oracle.com/jdevotnharvest/entry/gotcha_when_using_javascript_in
jsff doesn't usually load the js when the af:resource tag is embeded just after jsp:root tag.
To make it work add af:resource inside a formLayout or panelGroupLayout.
<af:panelGroupLayout>
<af:resource type="javascript">
function fnc(evt){ ... }
</af:resource>
</af:panelGroupLayout>
more detailed info can be found at
https://blogs.oracle.com/jdevotnharvest/entry/gotcha_when_using_javascript_in
No comments:
Post a Comment