do you know if there’s an equivalent in Grails to ASP.NET MVC’s Html.RenderAction also found in Ruby on Rails as Cells?
The basic idea is that you can render something but the decision what to render is passed on to a different controller. So for example if you have a shopping cart’s preview on the page that it’s not taken from the current controller nor from data stored in session but from a result of another action in another controller (say ShoppingCartController).
Thanks.
I found it! It’s called “include plugin”. You install it like any other plugin and than you have the option to say:
<inc:include controller=”shoppingCart” action=”preview”/>
and it does exactly what it’s supposed to do: render the outcome of preview action on ShoppingCartController.