]
George Gastaldi closed FORGE-2524.
----------------------------------
Fix Version/s: 2.20.1.Final
3.0.0.Alpha1
Resolution: Done
UIInputMany<Path> does not preserve the original path when
InputComponents.setValue is called
---------------------------------------------------------------------------------------------
Key: FORGE-2524
URL:
https://issues.jboss.org/browse/FORGE-2524
Project: Forge
Issue Type: Bug
Components: UI - API
Affects Versions: 2.20.0.Final
Reporter: Ondrej Zizka
Assignee: George Gastaldi
Priority: Minor
Fix For: 2.20.1.Final, 3.0.0.Alpha1
I suspect the CommandController has a bug in setValueFor() :
When it's MANY and type is File, then when I call
controller.setValueFor(InputPathOption.NAME, (File) inputFile);
then getValueFor() returns List<List<File>>
IMO it should return List<File>. Some auto-wrapping might be happening twice.
Thanks for checking.