Does anyone know if there are plans to allow passing arguments when calling goals? For instance, I have to run the same goal for each item in a list. It would be nice to be able to pass the item as argument and get some result back, similar to a jelly invoke call... Something like:
<j:forEach var="curItem" items="${myList}">
<attainGoal name="myGoal" var="theResult">
<arg type="java.lang.Object" value="${curItem}"/>
</attainGoal>
<echo>Current item: ${theResult}</echo>
</j:forEach>
...
<goal name="myGoal" returns="java.lang.String">
<param type="java.lang.Object" name="theItem"/>
<j:invoke on="theItem" method="toString" var="return"/>
</goal>
But more useful...
Thanks,
Steve