2 Replies Latest reply on Oct 25, 2006 8:33 AM by mygol

    Facelet problem: jscookMenu under MyFacesGenericPortlet

    martplus

      Hello everyone,

      I tried to use jscookMenu (from tomahawk) in a facelet.

      The HtmlJSCookMenuRenderer invokes

      AddResource.addJavaScriptToHeader(javascriptLocation, "JSCookMenu.js", context)
      

      but the implementation causes a class-cast-exception (as excepted, see the todo comment from the tomahawk source):
       private static void addAdditionalHeaderInfoToRender(FacesContext context, AdditionalHeaderInfoToRender info){
      
       //todo: fix this to work in PortletRequest as well
       HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();
       Set set = getAdditionalHeaderInfoToRender( request );
       set.add( info );
       }
      


      Is there a workaround?


      Thanks in advance,

      Martin