How can I use twice or more the same template in a single page and still submit it to the controller as parameters?

Let's say I have a _bookTemplate.gsp template file with his content:

<div>
   <div><g:textField name="title" value="${book?.title}" /></div>
   <div><g:textField name="author" value="${book?.author}" /></div>
</div>

...And I want to render it as, say, myFavouriteBook and myLeastFavouriteBook and also be able to save what the user entered. What should be the correct render call for this? Or maybe another tag..?

0 Answers