Hi.
I tray to use org.docx4j.wml.CTSdtComboBox but I encounter the exception:
I know that CTSdtComboBox does not have an @XmlRootElement. Can you tell me how to create ComboBox for docx documents ?
Thanks.
This is my code:
SdtBlock sdt = wmlFactory.createSdtBlock();
org.docx4j.wml.SdtPr sdtPr = wmlFactory.createSdtPr();
sdt.setSdtPr(sdtPr);
org.docx4j.wml.CTSdtComboBox cTSdtComboBox = wmlFactory.createCTSdtComboBox();
CTSdtListItem item = wmlFactory.createCTSdtListItem();
item.setValue("My value");
cTSdtComboBox.getListItem().add(item);
sdtPr.getRPrOrAliasOrLock().add(cTSdtComboBox); // ...