Date picker in Grails with JQuery UI: Resource not found error -
i trying utilize date picker jqquery ui in grails. source files are
applicationresources.groovy
modules = { application { dependson 'jquery' resource url:'js/application.js' resource url:'css/main.css' resource url:'css/mobile.css' resource url:'css/mobile.css' } overrides { 'jquery-theme' { resource id:'theme', url:'../plugins/jquery-ui-1.10.3/web-app/jquery-ui/themes/blitzer/jquery-ui-1.10.4.custom.css' } } }
and html file includes code
<r:require module="jquery"/> <r:require module="jquery-ui"/> <jqui:resources theme="blitzer" /> <r:script> $(document).ready(function() { $("#datepicker").datepicker({dateformat: 'yy/mm/dd'}); }) </r:script>
when load html page, next errors
error 2014-06-24 12:25:35,766 [http-bio-8080-exec-10] error resource.resourcemeta - resource not found: /plugins/jquery-ui-1.10.3/jquery-ui/themes/blitzer/jquery-ui-1.10.3.custom.css error 2014-06-24 12:25:36,570 [http-bio-8080-exec-10] error resource.resourcemeta - resource not found: /plugins/jquery-ui-1.10.3/jquery-ui/themes/blitzer/jquery-ui-1.10.3.custom.css error 2014-06-24 12:25:36,631 [http-bio-8080-exec-1] error resource.resourcemeta - resource not found: /plugins/jquery-ui-1.10.3/web-app/jquery-ui/themes/blitzer/jquery-ui-1.10.4.custom.css
how can resolve these errors , apply custom theme?
without attempting defaults attempting override jquery-ui. recommendation seek out defaults , progress there: per instructions: http://grails.org/plugin/jquery-ui
install jquery-ui adding
compile ":jquery-ui:1.10.3"
to buildconfig
refresh-dependencies
then add together main.gsp
<r:require module="jquery-ui"/>
see how goes effort override
grails grails-2.0 grails-plugin
No comments:
Post a Comment