Grails DWR Plugin Service Not Injected In Controller -
i new dwr. have tried implementing dwr plugin in grails. integrated plugin in grails , able call service method also.
but when try call controller method internally calls service method, throws error saying "not able call method on null object"
i think controller method when called dwr not able service method reference.
please refer dwr configuration mentioned below, , let me know how inject service in controller in grails dwr plugin
code in bootstrap.broovy :
def dwrconfig = { service(name:'hotelservice', javascript:'hotelservice') { param (name:'class') { 'com.tutorial.hotelservice' } } create(creator:'new', javascript:'hotelcontroller') { param (name:'class') { 'com.tutorial.hotelcontroller' } } }
Comments
Post a Comment