forked from AdvancedPhotonSource/ComponentDB
-
Notifications
You must be signed in to change notification settings - Fork 0
"template" for new subclass of ItemDomainCableDesignWizardBase.java
craigmcchesney edited this page Nov 29, 2019
·
1 revision
Here is the minimal code for creating a new subclass of the wizard base class:
/** * Controller for adding cable bundles. * * @author cmcchesney */ @Named(BundleWizard.CONTROLLER_NAMED) @SessionScoped public class BundleWizard extends ItemDomainCableDesignWizardBase implements Serializable { public static final String CONTROLLER_NAMED = "bundleWizard"; public static BundleWizard getInstance() { return (BundleWizard) SessionUtility.findBean(BundleWizard.CONTROLLER_NAMED); } /** * Implements the save operation, invoked by the wizard's "Save" navigation * button. */ public String save() { SessionUtility.addErrorMessage( "Could not save cable bundle", "Feature not yet implemented."); return ""; } }