[forge-issues] [JBoss JIRA] (FORGE-2021) Forge UI should not call UICommand.validate() if required inputs are not populated
Lincoln Baxter III (JIRA)
issues at jboss.org
Thu Sep 18 16:06:02 EDT 2014
Lincoln Baxter III created FORGE-2021:
-----------------------------------------
Summary: 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
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