This content has been marked as final.
Show 4 replies
-
1. Re: @DynamicResource not loading
michpetrov Mar 10, 2014 6:17 AM (in response to ysbelman)Well, the mime type of your resource seems to be missing, how is the getContentType() method from UserResource implemented?
-
2. Re: Re: @DynamicResource not loading
ysbelman Mar 10, 2014 9:30 AM (in response to michpetrov)i have this for contentType. But the class is never instantiated, constructor is never called and getContentType() is never called.
public String getContentType() { return HtmlConstants.JAVASCRIPT_TYPE; }
-
3. Re: Re: Re: @DynamicResource not loading
michpetrov Mar 10, 2014 11:42 AM (in response to ysbelman)Ok, you need a set mime-type in your web.xml, just like the error message tells you.
It should look like this (taken from the web.xml of the sandbox project)
<mime-mapping> <extension>MyMessages</extension> <mime-type>text/javascript</mime-type> </mime-mapping>
-
4. Re: @DynamicResource not loading
ysbelman Mar 10, 2014 3:40 PM (in response to ysbelman)Oh, now it works! Thank you Michal.