|
From: Jan H. (JIRA) <no...@sp...> - 2008-02-11 09:40:29
|
[ http://jira.springframework.org/browse/RCP-536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_31942 ]
Jan Hoskens commented on RCP-536:
---------------------------------
After some more research, it seems that ordinary dialogs don't have this problem. Although they don't dispose their content at the moment the dialog is disposed. A next call to open the dialog will implicitly mean that the old content is dereferenced and set available for garbage collection. (contentPane is a JPanel, when creating contentPane is set to a new JPanel hence the old is dereferenced. Note: can optionally be a problem in custom code if referencing the contentpane.)
The wizardDialog however adds its pages when creating the content pane and these are not dereferenced in the same way. Hence the list of pages is only growing and showing duplicates.
> AbstractWizard#addPages is called multiple times, when Wizard is reused
> -----------------------------------------------------------------------
>
> Key: RCP-536
> URL: http://jira.springframework.org/browse/RCP-536
> Project: Spring Framework Rich Client Project
> Issue Type: Bug
> Components: Command System
> Affects Versions: 1.0.0
> Reporter: Johannes Schneider
> Priority: Critical
>
> The method AbstractWizard#addPages is called multiple times when a WizardDialog is shown multiple times.
> You can reproduce this using the PetClinitStandalone.
> Just open the NewOwnerWizard, enter some values, go to the next page and *cancel*.
> Now reopen the wizard. Now the wizard has each page added two times.....
> This is a major problem that should be fixed asap. Wizards are almost unusable now.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|