[forge-issues] [JBoss JIRA] (FORGE-2021) Forge UI should not call UICommand.validate() if required inputs are not populated

George Gastaldi (JIRA) issues at jboss.org
Fri Sep 19 00:52:02 EDT 2014


     [ https://issues.jboss.org/browse/FORGE-2021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

George Gastaldi reassigned FORGE-2021:
--------------------------------------

    Assignee: George Gastaldi


> Forge UI should not call UICommand.validate() if required inputs are not populated
> ----------------------------------------------------------------------------------
>
>                 Key: FORGE-2021
>                 URL: https://issues.jboss.org/browse/FORGE-2021
>             Project: Forge
>          Issue Type: Feature Request
>          Components: UI - API
>    Affects Versions: 2.10.1.Final
>            Reporter: Lincoln Baxter III
>            Assignee: George Gastaldi
>             Fix For: 2.x Future
>
>
> This command: 
> {code}public class WindupWizard implements UIWizard, UICommand
>     @Inject
>     @WithAttributes(label = "Input", required = true, description = "Input File or Directory (a Directory is required for source mode)")
>     private UIInput<FileResource<?>> input;
>     @Override
>     public void validate(UIValidationContext context)
>     {
>         FileResource<?> inputValue = this.input.getValue();
>         File inputFile = inputValue.getUnderlyingResourceObject();
> {code}
> Results in an NPE when the command is called using guided execution:
> {code}
> [Desktop]$ windup-migrate-app 
> Exception when parsing/running: windup-migrate-app , null
> [Desktop]$ 
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the forge-issues mailing list