Hi,
i created a component based on cdk and richfaces developer guide, i add a js file to mytemplate.jspx as below
<h:scripts>
/org/richfaces/renderkit/html/scripts/myutil.js
</h:scripts>
mytemplate.jspx
<a onclick="RichFaces.RunUtil()" >Click</a>
myutil.js
RichFaces.RunUtil = function testUtil(){
alert("This is Test");
}
after i run this i've got this js error : RichFaces.RunUtil is not define also i test this
function testUtil(){
alert("This is Test");
}
<a onclick="testUtil()" >Click</a>
but i still get same error
PS : i created this by maven so my project structure /org/richfaces/renderkit/.. is under resources folder
WDYT ? any help appreciate