i have a list with a place holder value and i am replacing that value with my dynamic value , but the new contents are not adding to placeholder , rather on last page.
List<Object> lstTexts = getAllElementFromObject(wordTemplate.getMainDocumentPart(), Text.class);
for (Object text : lstTexts) {
Text textElement = (Text) text;
if (textElement.getValue().equalsIgnoreCase("p" + intPageNumber + "l1")) {
textElement.setValue("");
for (Iterator iterator = lstOEQB.iterator(); iterator.hasNext();) {
OpenEndedQuestionBean oeqb = (OpenEndedQuestionBean) iterator.next();
wordTemplate.getMainDocumentPart().addObject(createNumberedParagraph(1, 0, "List", wmlObjectFactory));
} ...