[forge-issues] [JBoss JIRA] (FORGE-2524) CommandController#setValueFor(someMANYinput, File) wraps the value into List<List<File>>

Ondrej Zizka (JIRA) issues at jboss.org
Tue Nov 3 17:03:00 EST 2015


    [ https://issues.jboss.org/browse/FORGE-2524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125124#comment-13125124 ] 

Ondrej Zizka commented on FORGE-2524:
-------------------------------------

I'm still checking what's going on, and it might be something outside Forge. Close this if I don't provide steps to reproduce and forget to close myself. 

> CommandController#setValueFor(someMANYinput, File) wraps the value into List<List<File>>
> ----------------------------------------------------------------------------------------
>
>                 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
>            Priority: Minor
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the forge-issues mailing list