0 Replies Latest reply on Aug 22, 2008 8:13 AM by Jose Noheda

    Resource not registered in portlet

    Jose Noheda Newbie

      Hi,

      We have a portlet with Richfaces working (this includes AJAX). We had to manually add to the portlet body:

      <script type="..." src="${request.contextPath}/faces/rfRes/org/ajax4jsf/framework.pack.js"></script>
      <script type="..." src="${request.contextPath}/faces/rfRes/org/richfaces/ui.pack.js"></script>

      as they were not been added automatically. Well, no problem. Unfortunately the same solution does not work with other resources and we receive
      [Faces Servlet]: org.ajax4jsf.resource.ResourceNotFoundException: Resource not registered :
      /org/richfaces/renderkit/html/scripts/scriptaculous/scriptaculous.js
      at org.ajax4jsf.resource.ResourceBuilderImpl.getResource(ResourceBuilderImpl.java:389)

      Of course, using
      <a4j:loadScript src="resource:///org/richfaces/renderkit/html/scripts/scriptaculous/scriptaculous.js"/>

      does not show anything on the page at all.

      Any clues what may be missing?

      Regards,