
Chapter 4 Generating Hibernate Persistent Objects and JSF Pages
Defining attribute validation rules and default values
PowerDesigner provides validation and default values for the edit boxes in the Create and Edit pages.
To define validation rules:
- Open the attribute property sheet, and click the Standard Checks tab.
- You can define minimum value and maximum values to control the value range.
- You can define a default value. A string, must be enclosed in quotes. You can also define the Initial value in the Details tab.
- You can define a list of values that will be used in a listbox, combo box or radio buttons.
Note: You can set a "list of values" on the Standard Checks tab of an attribute property sheet, and PowerDesigner will generate a combo box that includes the values.
You can also select which control style to use:
- Combobox
- Listbox
- Radio buttons (if the number of values is low) For example: Mr. Ms.
Copyright (C) 2005. Sybase Inc. All rights reserved.
|
|