fields icon indicating copy to clipboard operation
fields copied to clipboard

Allow f:with tags to be nested within templates

Open tcrossland opened this issue 10 years ago • 0 comments

Currently the <f:with> tag can be nested but only within a single pageScope. It would be useful to allow nesting to work within templates.

For example:

/author/show.gsp

<f:with bean="authorInstance">
  <f:display property="books"/>
  <f:display property="name"/>
</f:with>

/_fields/author/books/_displayWidget.gsp

<ul>
  <g:each in="${value}" var="book">
    <f:with bean="${book}">
      <li><f:display property="title"/></li>
    </f:with>
  </g:each>
</li>

tcrossland avatar Feb 04 '16 11:02 tcrossland