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.

Bug 26880 - Allow to correct error in wizard
Summary: Allow to correct error in wizard
Status: VERIFIED DUPLICATE of bug 23116
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-29 15:03 UTC by Milan Kubec
Modified: 2008-12-22 17:13 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2002-08-29 15:03:06 UTC
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.
Comment 1 David Konecny 2002-09-03 11:29:26 UTC
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.
Comment 2 Torbjorn Norbye 2002-09-03 14:53:26 UTC
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.
Comment 3 Vitezslav Stejskal 2002-09-03 19:36:51 UTC
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. 
Comment 4 Jiri Rechtacek 2002-09-13 10:10:26 UTC

*** This issue has been marked as a duplicate of 23116 ***
Comment 5 Milan Kubec 2003-07-10 16:22:56 UTC
Verified.