This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
To make stuff like this readable, please use the "Code" button in our message editor to wrap the code/xml/jsp text with tags that will keep it from being reformatted.
A datatable is not an "iteration". It's a 2-dimensional graphical structure. You cannot "insert another datatable between rows" because the concept of "between rows" doesn't apply. The embedded object has to be placed in a row. Or in header/footer.
You can embed a datatable as one of the cell item components of another datatable, although that would normally cause the embedded datatable to render on each row of its parent datatable. If you're creative, you can stitch 3 datatables together to give the visual appearance of a datatable "between rows". Or, since you're using RichFaces, you might find that the grouping features that the extended datatable forms will do what you want.
An IDE is no substitute for an Intelligent Developer.