History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: GRAILS-587
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Graeme Rocher
Reporter: Maurice Nicholson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Grails

render tag ignores "it" when using both model and collection attributes

Created: 12/Jan/07 07:09 AM   Updated: 05/Sep/07 04:55 PM
Component/s: TagLib
Affects Version/s: 0.3.1
Fix Version/s: 1.1

Time Tracking:
Not Specified

Issue Links:
Related
 


 Description  « Hide
When using collection and model together, eg:
<g:render template="/book/book" collection="${books}" model="[terms: searchTerms]" />

The "it" attribute (collection element) is not provided to the template.

Also it would be cool if the template was automatically passed a "book" attribute (the same name as the template itself), like Rails. Currently my templates need:

<g:if test="${!book}"><g:set var="book" value="${it}" /></g:if>

so they can be called called directly (ie, singularly) or using the collection style.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.