SOA Magazine IV 01.2015
SOA Magazine IV 01.2015
SOA Magazine IV 01.2015
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Figure 5 - Validators HTG Java Class<br />
Regarding validation for Custom Components, this can be done in two ways: (1) in the “validator”<br />
components’ property of the declarative component, basic validation, or (2) in custom classes for more<br />
complex validation, for example, imagine that Address declarative component is only valid if “Country”<br />
field is filled as well as “Address” and “Postal Code”, otherwise an error message is raised to the<br />
frontend. For this kind of behavior we have developed “HTGComplexTypesValidation” java class where<br />
all generic validations will be available for future reuse. In Figure 6 is shown the Address complex type<br />
validation.<br />
Copyright © 2015 | All Rights Reserved <strong>SOA</strong> <strong>Magazine</strong> <strong>IV</strong> 33