--
PedroRio - 11 Jun 2010
The
XvwAttributeBase is not a component per-se, but it is (as the name suggests) the base for all attribute components in the XWC framework
All attribute components (used to build forms) are based on this component and inherit all its properties, thus it's important to know this component.
Property |
Description |
Requirement |
Default Value |
Data Type |
Notes |
width |
Defines the width of the rendered Attribute. |
Optional |
|
String |
|
visible |
Evaluates if the Attribute is visible. |
Optional |
True |
Boolean |
|
validation |
Defines if the Attribute is valid. |
Optional |
|
EL |
If there is an e-mail Attribute Text the validation may be used to decide if the e-mail is in the correct format. |
renderedValue |
COMPLETE |
Optional |
|
Object |
|
recommended |
Alerts the user to an Attribute that should be field in. |
Optional |
False |
Boolean |
|
readOnly |
Decides if the Attribute is read only. |
Optional |
False |
Boolean |
|
onChangeSubmit |
Trigers an event when the Attribute changes value. |
Optional |
False |
Boolean |
|
modelRequired |
COMPLETE |
Optional |
False |
Boolean |
|
minDecimalPrecision |
The minimum decimal precision |
Optional |
|
Integer |
|
maxLength |
Restricts the attributes maximum length. |
Optional/Recommended |
0 |
Integer |
If it is not declared the attribute will be rendered but, since the default value is zero, the user will not be able to write any thing down. It is recommended to define this field on the Attribute |
lovMap |
Defines the Map associated with a Lov |
Optional/Recommended when using a Lov |
|
Map<Object, String> |
When using an AttributeLov, the lovMap is used to define the text and corresponding values of the drop down menu |
lookupViewer |
COMPLETE |
Optional |
|
String |
|
label |
Defines a label that is rendered along with the Attribute. |
Optional |
|
String |
When the Attribute is rendered, the String defined in the label is also rendered to the left of the Attribute |
isLovEditable |
If set to True allows the user to edit the Lov. |
Optional |
False |
Boolean |
|
isLov |
Renders the attribute as a dropbox. |
Optional |
False |
Boolean |
|
invalidText |
The text to display when the attribute has an invalid value |
Optional |
|
String |
|
inputRenderType |
COMPLETE |
Optional |
|
Byte |
|
height |
Defines the height of the rendered Attribute. |
Optional |
|
String |
|
groupNumber |
COMPLETE |
Optional |
False |
Boolean |
|
enableCardIdLink |
COMPLETE |
Optional |
|
Boolean |
|
displayValue |
The displayed value by the attribute |
Optional |
|
String |
|
disabled |
Evaluates if the Attribute is disabled. |
Optional |
False |
EL/Boolean |
|
dependencies |
COMPLETE |
Optional |
|
String[] |
|
decimalPrecision |
Defines the precision of a decimal. |
Optional |
|
Integer |
|
dataType |
To define the type of data of the Attribute. |
Optional |
|
Byte |
|
dataFieldConnector |
To connect a data stored in a Data Base to the XvwAttributeBase. |
Optional |
|
DataFieldConnector |
|