The MashupHub framework shows the HTML emitted by the IEditor.renderEditor
and the IEditor.handleAjax
methods as a series of screens in a wizard-like interface.
The forward flow of the wizard proceeds as follows:
- Show the chooser page allowing the user to select the type of entry they wish to create (for example, feed, Excel, XML, WSDL).
- Show the first screen of the plug-in produced by IEditor.renderEditor.
- Show screens 2 through n of the plug-in produced by IEditor.handleAjax.
- Show the Save page allowing the user to specify metadata.
The wizard also supports a backward flow by showing previously hidden screens. No server requests are generated when moving backward. After moving backward, the wizard can move forward through the screens without server requests if no changes to prior screen have been made.
A plug-in using the standard ViewBean
classes does not need to be aware of the existence of the wizard provided that it uses the IEditorContext.getClientId
method to correctly distinguish its HTML element IDs. The ViewBean
classes wrap all emitted plug-in HTML in <div>
tags with a unique identifier per screen. The client-side plug-in classes rely on this ID to determine the active screen from screens hidden by the wizard. The FormViewBean
base class also links the Next
, and Finish
buttons on screens to proper client-side actions to support backward and forward navigation in the wizard.
Parent topic: Browser component interfaces: imc3