Wizard Handling

Description and Sort Criterion for Wizards

A wizard configuration may now include the descriptions property to provide short descriptions in addition to the wizard's name. An example:

<bean id="createStatistics"
    class="com.infopark.cm.htmlgui.browse.menuaction.CustomCommand">
  <property name="titles"><map>
    <entry key="de" value="Dateistatistik anzeigen"/>
    <entry key="en" value="Show File Statistics"/>
    <entry key="fr" value="Afficher les statistiques du fichier"/>
    <entry key="it" value="Mostrare le statistiche del file"/>
    <entry key="es" value="Mostrar estadísticos del fichero"/>
  </map></property>
  <property name="descriptions"><map>
    <entry key="de"><value>
     Wie viele Dateien wurden in einem bestimmten Zeitraum angelegt und freigegeben?
    </value></entry>
    <entry key="en"><value>
     How many files have been created and released in a given period of time?
    </value></entry>
  </map></property>
  <property name="selectionType" value="none"/>
  <property name="command" value="createStatistics::render"/>
  <property name="dialog" value="true"/>
</bean>

Furthermore, the new property sortKey can be used to define the order in which the wizards are displayed in the Wizard Selection start area. The wizard are sorted by their sortKey in alphabetically ascending order.

Creating a Single Checkbox

In wizards, the new wizard function checkBox can be used to create a single checkbox.

Styles for Text Input Fields

In wizards, the CSS class as well as the style attribute can be specified for text input fields (date, file, text, textarea). Example:

::layout::fileField myUpload "File field" class "myCSS" \
style "background-color: red"

Shared Wizards

Wizards are now read in by a script shared among the CMS instances: share/script/cm/serverCmds/wizards.tcl. This Tcl file sources all the wizards found in the directories share/script/cm/serverCmds/wizards and instance/script/cm/serverCmds/wizards.

The instance-specific files instance/script/cm/serverCmds/wizards.tcl are no longer required and should be deleted after individual (not wizard-related) changes that were made to them have been transferred to other script files. If instance-specific versions of this script exist, a corresponding entry in the log file of the CM will be made.

Optional Form Validation with Wizard Buttons

As a default, the GUI validates the contents of wizard dialog forms when the user clicks a wizard button. This behavior can now be switched off, to ensure, for example, that subdialogs are opened immediately even if the form contents contains errors.