This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When user is creating new project or project group in e.g. non-writeable folder error message is poped after hitting Finish and wizard is canceled and user has no chance to correct the mistake and has to go through the whole wizard again. It should be possible to correct the error in wizard with all already entered values directly.
Current architecture of wizards framework does not allow this. We are using in projects standard TemplateWizard from OpenIDE. How it works is that it shows wizard of the template and after the wizard is finished (means closed) the instantiation of the template is started. If something wrong happens during the instantiation, the wizard which is already gone cannot be shown for corections. Moving issue to OpenIDE to resolve it there.
One way this could work is to validate the input on each page when you hit the "Next" button. It's quite common for wizards to put up a dialog which says "/foo/bar does not exist. Create it now?" [ Create ] [ Ignore] when I hit Next on a page where I've entered /foo/bar/Baz.java as the filename for my output file. Of course it's possible that something will still fail when the user hits Finish (for example, the directory may have been deleted again) but it's a lot less likely.
Yes, but even if instantiate() fails the wizard should be redisplayed allowing user to correct things and press Finish again or Cancel the wizard. IMO communication between panels is OK, each panel has isValid() which it can use to prevent user from submiting wrong information, the problem is at the end, once Finish is pressed there is no way how to resume wizard, repair thing or two and try it again.
*** This issue has been marked as a duplicate of 23116 ***
Verified.