docx4j support for content controls (sdt), especially binding them to Custom XML, including OpenDoPE implementation
when adding a new row in an existing table with one row
Tr workingRow = (Tr) XmlUtils.deepCopy(existingRow);
everything works fine.
But if I don't remove the existingRow or add more rows then I have a java.util.ConcurrentModificationException.
Can you help me please?
- Posts: 1
- Joined: Tue Nov 14, 2017 11:52 pm
You just need to respect Java's standard rules/idiosyncrasies when manipulating lists (eg deleting while iterating).
If you are identifying objects for deletion inside a for, put these in a second list, then, outside the for, delete them.
Hope this helps. If you need more help, you'll need to provide some executable code.
- Posts: 3530
- Joined: Wed Mar 19, 2008 11:47 pm
Return to content controls (w:sdt) and data binding
Who is online
Users browsing this forum: No registered users and 2 guests