I am currently using the latest code on the 2.1.6 branch and decided to give the nested paragraph functionality a try. It didn't seem to work properly so I stepped through the code and found my problem was in the info.magnolia.cms.taglibs.ContentNodeIterator specifically in the doStartTag() method.
The problem was that a RepositoryException would be thrown and caught within the method before the savePreviousState() method was called. That meant when the <cms:newBar> was encountered after the nested contentNodeIterator but before the main contentNodeIterator it had no state and would put the path on the nested newBar to the path of the outer set of paragraphs. I found that if I moved line 163, this.savePrevState();, to the beginning of the try block in the method I was then able to successfully add new paragraphs to the nested set of paragraphs. Once the first nested paragraph was created the RepositoryException was no longer thrown and it would have run correctly, but I couldn't add the first paragraph without the previous state being saved successfully because the path would be incorrect for where to add the nested paragraphs. It was a dependency problem that I couldn't figure out how to solve any other way. Is this a bug or am I potentially doing something wrong in my jsp page? I followed the code on http://www.magnolia.info/wiki/Wiki.jsp?page=ParagraphHowToPutParagraphsI nParagraphs so I don't think I'm missing anything, but I just couldn't get it to work as promised without making the change I stated above and didn't see any posts on the group indicating that anyone else was having the same problem. Thanks, Tom ---------------------------------------------------------------- for list details see http://documentation.magnolia.info/docs/en/editor/stayupdated.html ----------------------------------------------------------------
