Hi Lee,
Is there any progress on this issue?
I'm investigating the possibility to use Grails for Portlets. The project I'm targetting will start in a few weeks, so we cannot wait for the 1.1 release, therefor I'm trying to run the plugin on 1.0.4.
I'm trying to make it run on JBoss Portal first, because that is the target platform for this client. The main problem I'm running into is that, looking at the plugin code, the Pluto implementation uses a PortletRequest implementation that is also a HttpServletRequest implementation (same for response). Unfortunately in the JBoss implementation this is not the case: The PortletRequest is wrapped around the original HttpServletRequest. I've adapted the GrailsPortletHandlerInterceptor to check for the JBoss case (very ugly though) and then unwrap the original HttpServletRequest/Response.
The next problem I run into is that in the render phase, the controller is not bound as a request attribute. If I read the code correctly, the controller is add as an attribute to the PortletRequest. In the Pluto case this will work, because the PortletRequest IS the ServletRequest that is later passed on to the ViewServlet per include. In the JBoss case, since the two requests are different, the attribute gets lost.
This is as far as I got now.
Cheers,
-Maarten Winkels
Hi Lee, are you doing this as a plug-in? otherwise it should go in post 1.0