Detail
Enhancement
In typed forms you can use a property to implement an upload field:
#!java @InstanceFormat @ItemDisplay(ItemDisplayType.VALUE) @PropertyEditor(BinaryDataEditor.class) @AcceptedTypes(value = { "text/xml", "application.xml", ".xml" }) @RenderWholeLine BinaryData getData();
Improvement
An upload field with multiple selection should be specifiable via a list-valued property:
#!java @InstanceFormat @ItemDisplay(ItemDisplayType.VALUE) @PropertyEditor(BinaryDataEditor.class) @AcceptedTypes(value = { "text/xml", "application.xml", ".xml" }) @RenderWholeLine List<BinaryData> getData();
Test
- /com.top_logic.demo/src/test/java/test/com/top_logic/demo/scripted/TestDeclarativeForms.script.xml