Ticket #261 (closed defect: fixed)
collection-control with eg. disabled controls gives error
| Reported by: | sdm | Owned by: | mpo |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.4 |
| Component: | modules/kauri-forms | Version: | trunk |
| Keywords: | Cc: |
Description
Relevant part of the fconf:
'tblCollection' : {
label : 'myCollection',
base : 'collection',
control: 'collection-control',
child: {
members: {
'id' :
base: 'integer',
control: {
base: 'input-control',
initial: {'enable': false}
}
}}}}
With this fconf, I get the following error while the collection-control is being built (I tested this in FF and IE):
[Exception... "'[ConstructorRegistry?.get] No registered constructor found: composite in registry ConstructorRegistry?: Registry of [Form] controlTypes' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]
This collection-control works fine if I leave out the following part:
control: {
base: 'input-control',
initial: {'enable': false}
}
I can confirm this issue. Note that the following alternative works as expected:
'id' :{ base: 'integer', control: 'disabled-control' } and in controlTypes: 'disabled-control': { base: 'input-control', initial: { 'enable': false } }