4 Replies Latest reply on Mar 10, 2014 3:40 PM by Elijah Baley

    @DynamicResource not loading

    Elijah Baley Newbie

      I am using CDK 4.2.2 to build a component. Currently I am unable to get @DynamicResources to load.

       

      @DynamicResource
      public class MyMessages implements org.richfaces.resource.UserResource{    
           public InputStream getInputStream() throws IOException {
                ...     
           }
              
      }
      

       

      @ResourceDependencies({
          @ResourceDependency(name = "com.my.renderkit.MyMessages")
      })
      public abstract class MyWidgetRendererBase extends InputRendererBase {
      
      
      

       

      All i get is:

      Mar 7, 2014 11:21:47 AM com.sun.faces.context.ExternalContextImpl getMimeType

      WARNING: JSF1091: No mime type could be found for file com.my.renderkit.MyMessages.  To resolve this, add a mime-type mapping to the applications web.xml.

      Only .css, .js, and .reslib load correctly. Is there some step I am missing?