JBoss.orgCommunity Documentation

Chapter 4. Smooks Configuration Editor Page

4.1. Smooks Parse Type
4.2. Import File
4.3. Date Decoder Detail Page

Smooks Configuration Editor Page is one tab of the Smooks Editor.

Graphical Editor

Figure 4.1. Graphical Editor


You can add/edit/remove the Date Decoder on the Сonfiguration page of the Smooks Editor.

The configuration also edit the Smooks parse type and manage the Import Files.

Open the Other Configurations section, we will see there is a set of radio buttons:


Select the radio button to change the Smooks parse type.

Open the Other Configurations section, there is an Import Files list under the Smooks parse type buttons.


There are three buttons on the right side of the File Import list. You can click those to add/edit/remove the import files.

Tip:

If the import file dosen't exist, the image of the import file will change to "Error Image". If you double-click the import file in the Import File list, the file will be open with a new default editor.

Date Decoder is a resourceConfig element in the Smooks configuration file. It describes how to transform the "Date" type.

Click the New button to open the New Resource Type wizard dialog.


There are several resource type on the list. Select the Date Decoder and click the Finish button, a new Date Decoder item was added and shown on the resource type list.

There are several parameters in the Date Decoder resourceConfig element:

  • locale-language

  • format

  • locale-country

You can modify the parameters of the Date Decoder item with the left detail page.


When you defined a new Date Decoder, they can use the JavaBean Properties GUI to set the them to be the "Java type".