Leo, I have this scenario where an object has two collections. I want to iterate over the first collection from left to right.. and then once that is complete, want to iterate over the second collection from top to bottom. Basically there are more than one record for each row in the object. How can I achieve that? I am running into some limitation as it doesn't allow me to use the same row for specifying more than one forEach loop tag.
<jx:forEach items="${adjustmentsList}" var="adjustment" varStatus="i"> <jx:if test="${i.index == 0}"> No. Account No. Account Desc <jx:forEach items="${adjustment.answersList}" var="q"> ${q.questionText} </jx:forEach> </jx:if> </jx:forEach> <jx:forEach items="${adjustmentsList}" var="adjustment" varStatus="i"> ${i.index+1} <jx:forEach items="${adjustment.answersList}" var="q"> ${q.answerText} </jx:forEach> <jx:if test="${!empty adjustment.accountsList}"> <jx:forEach items="${adjustment.accountsList}" var="acct"> ${acct.answerCode} ${acct.answerText} </jx:forEach> </jx:if> </jx:forEach>
------------------------------------------------------------------------------
_______________________________________________ jXLS-user mailing list jXLS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jxls-user