Hi all,

I'm new to stripes, and "accidently" tried to do the following:

<s:layout-definition>
   ...
   <c:forEach ...>
      <s:layout-component name="row">
         ...
      </s:layout-component>
   </c:forEach>
   ...
</s:layout-definition>

The idea was, that the core of the c:forEach tag could be overidden, if
the default was not appropriate.
Of course, that doesn't work that way, because the component is rendered
once in the 'layout-render' tag, on the source page, and it's a static
string from that on (aka. a parameter).

I really wanted something like that to get a standard listing design on
my pages, so I implemented a dynamic component. It works like a normal
layout-component, but it does not get rendered under the layout-render
tag, instead it is "invoked" each time during the rendering of the
layout-definition tag, so the above example works with it. I called it
layout-dynamic-component in the tld file.

I attached the source. It is a few minor modification to the layout
tags, and a new, simple tag. If anyone finds it useful, feel free to use it.

Robert.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to