Has anyone had experience passing multi-valued arguments to a custom action in FormsBuilder? I created a custom action with one input:
<action id="test_action">
<params>
<param name="input" required="false"/>
</params>
<preconditions/>
<execution class="my.test.action.TestAction">
</action>
In FormsBuilder, I created an invoke button and assigned the test action. I mapped the input parameter to a readonly table control that allowed multiple values (the underlying data model element also allowed multiple values).
In my custom action execution class, I get the value of the input:
String[] selection = args.getValues("input");
When I test the action, if I select multiple values from my read only table, I only get the first value selected returned to the action... i.e. the String array selection has only one element who's value is the first value selected in my read only table.
Anyone have a suggestion for how to pass all the values selected?
Thanks.