You would probably have to subclass WizardModel, or come up with a new IWizardModel implementation completely. The former will probably suffice, unless some strategic methods are declared final.

lizz wrote:
I really dont want to add more steps that the ones I already have. for the
case when step c is no longer valid I woild like the next button to be
disabled and the finish button to be enabled. Isn't there a method for
updating the button panel?


Kent Tong wrote:
lizz wrote:
I have three wizard steps A, B and C
In step B I have a drop down choice. Whether step c is valid or not
depends on the selection in the drop down choice in step B.

Everytime the user changes the selection in the drop down choice the
wizard must be updated (the evaluate method must be run) since for some
selections the next button will be disabled since step b is the last
step, while for other selections c is the last step and the next button
is enabled.

When I'd suggest you add an artificial step D as the final step saying
"You're completed the whole process".
This step is always enabled. Then no matter step C should be enabled or
not, the user will always see
a "Next" button.

Another option is try enabling wantOnSelectionChangedNotifications() to
refresh the whole page.



Reply via email to