robfletcher/grails-jquery-mobile — Issue #2: Resources not found when using Grails 2.0.0.RC1
Author: ph0rman
Created: 2011-10-26 18:16:54+00:00
State: open

After installing jquery-mobile v0.2 in my Grails 2.0.0.RC1 project, while doing a run-app, certain icons are missing (loading spinner, left/right button arrows) and the following errors appear in the console:

| Error 2011-10-26 10:37:04,368 ["http-bio-8080"-exec-2] ERROR resource.ResourceMeta - While processing /css/jquery.mobile-1.0rc1.css, a resource was required but not found: /css/images/icons-18-white.png
| Error 2011-10-26 10:37:04,371 ["http-bio-8080"-exec-2] ERROR resource.ResourceMeta - While processing /css/jquery.mobile-1.0rc1.css, a resource was required but not found: /css/images/icons-18-black.png
| Error 2011-10-26 10:37:04,373 ["http-bio-8080"-exec-2] ERROR resource.ResourceMeta - While processing /css/jquery.mobile-1.0rc1.css, a resource was required but not found: /css/images/icons-36-white.png
| Error 2011-10-26 10:37:04,375 ["http-bio-8080"-exec-2] ERROR resource.ResourceMeta - While processing /css/jquery.mobile-1.0rc1.css, a resource was required but not found: /css/images/icons-36-black.png
| Error 2011-10-26 10:37:04,378 ["http-bio-8080"-exec-2] ERROR resource.ResourceMeta - While processing /css/jquery.mobile-1.0rc1.css, a resource was required but not found: /css/images/ajax-loader.png

For Grails 2.0.0.RC1 to correctly resolve the paths, the jquery.mobile-1.0rc1.css file needs to be modified so that url reads like "url(../images/" rather than "url(images". This modification should be made at line 731 (icons-18-white), line 745 (icons-18-black), line 761 (icons-36-white), line 768 (icons-36-black), and line 865 (ajax-loader).