31.01.2015 Views

SOA Magazine IV 01.2015

SOA Magazine IV 01.2015

SOA Magazine IV 01.2015

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

HTG Generic Task Attributes Validations<br />

In regard of task validation we have three types of validations:<br />

Simple Component level. For example: input fields for numeric types only.<br />

Custom Component level. For example, dependent fields in a custom component.<br />

Task submission level. For example, submission of the task form with validation rules for<br />

individual components that cannot be filled.<br />

In what concerns the first type of validation, Simple Components, it is defined in “validator”<br />

components’ property, as depicted in Figure .<br />

Figure 5 - HTG Component Validation<br />

In order to centralize all of this type of validations we have created “ValidatorsHTG” java class. This class<br />

is instantiated with session scope in “Managed Beans” tab of faces-config.xml file. In Figure 5 are shown<br />

two component validations of two different types in “ValidatorsHTG” java class.<br />

Copyright © 2015 | All Rights Reserved <strong>SOA</strong> <strong>Magazine</strong> <strong>IV</strong> 32

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!