0 Replies Latest reply on Aug 26, 2011 9:46 AM by omid pourhadi

    CDK resources not loaded

    omid pourhadi Newbie

      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