|
I'm fixing the struts1 plugin to work with Grails 2.x, and I've fixed up stuff to work on Grails 2. However I've run into a bit of a problem with ControllerActionProxy, it is looking for the class SimpleGrailsControllerHelper, but it seems to be removed in Grails 2. Is there an analog replacement class to this?
This is the bit of code that needs it: def helper = new SimpleGrailsControllerHelper(application, applicationContext, getServlet().getServletContext()) helper.configureStateForWebRequest(webRequest, webRequest.getRequest()) ModelAndView mv = helper.handleActionResponse(controller, result, actionName, viewName) Anyone have any suggestions on what class I can use instead? Since it's completely missing I'm not sure where to look for deprecation information. Also I want to do a pull request but I can't find it on github. Is it somewhere I can send a pull request? Or maybe it didn't make the conversion from svn? I think some people will be looking to use it after my talk at gr8conf at the end of month :) It would be nice if I can make it work with Grails 2 instead of saying it's for 1.3.x only :) I don't mind copying it over, if I can get permissions. My username on GitHub and the grails site is 'rvanderwerf'. Thanks, Ryan --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Administrator
|
Hi Ryan,
You probably need MethodGrailsControllerHelper now Cheers On Fri, Jul 20, 2012 at 7:15 AM, Ryan Vanderwerf <[hidden email]> wrote: > I'm fixing the struts1 plugin to work with Grails 2.x, and I've fixed up stuff to work on Grails 2. However I've run into a bit of a problem with ControllerActionProxy, it is looking for the class SimpleGrailsControllerHelper, but it seems to be removed in Grails 2. Is there an analog replacement class to this? > > This is the bit of code that needs it: > > def helper = new SimpleGrailsControllerHelper(application, applicationContext, getServlet().getServletContext()) > helper.configureStateForWebRequest(webRequest, webRequest.getRequest()) > ModelAndView mv = helper.handleActionResponse(controller, result, actionName, viewName) > > Anyone have any suggestions on what class I can use instead? Since it's completely missing I'm not sure where to look for deprecation information. > > > Also I want to do a pull request but I can't find it on github. Is it somewhere I can send a pull request? Or maybe it didn't make the conversion from svn? I think some people will be looking to use it after my talk at gr8conf at the end of month :) It would be nice if I can make it work with Grails 2 instead of saying it's for 1.3.x only :) > I don't mind copying it over, if I can get permissions. My username on GitHub and the grails site is 'rvanderwerf'. > > Thanks, > > > Ryan > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > -- Graeme Rocher Grails Project Lead SpringSource - A Division of VMware http://www.springsource.com --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
That did the trick. Thanks Graeme! - I've worked out the other issues myself and it seems to be working, but will test it more tonight. In the meantime, any ideas on how I can publish it into GitHub?(I can't create an entry under grails-plugins because I'm not in the organization). Or should I just zip it up and send it to someone?
Cheers Ryan ________________________________________ From: [hidden email] [[hidden email]] On Behalf Of Graeme Rocher [[hidden email]] Sent: Friday, July 20, 2012 1:46 AM To: [hidden email] Subject: Re: [grails-dev] SimpleGrailsControllerHelper gone? Hi Ryan, You probably need MethodGrailsControllerHelper now Cheers On Fri, Jul 20, 2012 at 7:15 AM, Ryan Vanderwerf <[hidden email]> wrote: > I'm fixing the struts1 plugin to work with Grails 2.x, and I've fixed up stuff to work on Grails 2. However I've run into a bit of a problem with ControllerActionProxy, it is looking for the class SimpleGrailsControllerHelper, but it seems to be removed in Grails 2. Is there an analog replacement class to this? > > This is the bit of code that needs it: > > def helper = new SimpleGrailsControllerHelper(application, applicationContext, getServlet().getServletContext()) > helper.configureStateForWebRequest(webRequest, webRequest.getRequest()) > ModelAndView mv = helper.handleActionResponse(controller, result, actionName, viewName) > > Anyone have any suggestions on what class I can use instead? Since it's completely missing I'm not sure where to look for deprecation information. > > > Also I want to do a pull request but I can't find it on github. Is it somewhere I can send a pull request? Or maybe it didn't make the conversion from svn? I think some people will be looking to use it after my talk at gr8conf at the end of month :) It would be nice if I can make it work with Grails 2 instead of saying it's for 1.3.x only :) > I don't mind copying it over, if I can get permissions. My username on GitHub and the grails site is 'rvanderwerf'. > > Thanks, > > > Ryan > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > -- Graeme Rocher Grails Project Lead SpringSource - A Division of VMware http://www.springsource.com --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Powered by Nabble | Edit this page |
