Ticket #261 (closed defect: fixed)

Opened 9 months ago

Last modified 4 months ago

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}

}

Attachments

Change History

Changed 9 months ago by jgou

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 }
}

Changed 4 months ago by freya

  • status changed from new to closed
  • resolution set to fixed

Add/Change #261 (collection-control with eg. disabled controls gives error)

Author


E-mail address and user name can be saved in the Preferences.


Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.