Dietrich Streifert schrieb:
> Ok, so null is implicitly allowed if I define nullable: true right?
yes :)
>
>
> Sebastian Werner schrieb:
>> Hi Dietrich,
>>
>> nullable is the only requirement in 0.7. You can remove "null" from the
>> "check" list.
>>
>> Sebastian
>>
>>
>> Dietrich Streifert schrieb:
>>
>>> Hello List,
>>>
>>> on my way from 0.6.6 to 0.7 I've encountered the following problem:
>>>
>>> I have a property which should be nullable and want to restrict the
>>> possible values with an array of allowed values. Because null is allowed
>>> I tried the following:
>>>
>>> busy :
>>> {
>>> check : [ "init", "load", "save", "wait", "delete", "login", null ],
>>> init : null,
>>> apply : "_applyBusy",
>>> nullable : true
>>> },
>>>
>>> When I do this I get the following error message in the console:
>>>
>>> [Exception... "'Error: Could not convert complex objects like null at
>>> array index 6 to map syntax' when calling method:
>>> [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001c
>>> (NS_ERROR_XPC_JS_THREW_JS_OBJECT)" location: "<unknown>" data: no]
>>>
>>> Line 0
>>>
>>> How can I allow null as a valid value?
>>>
>>> Thank you for your help.
>>>
>>> Regards.
>>>
>>>
>>
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> qooxdoo-devel mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>>
>
> --
> Mit freundlichen Grüßen
> Dietrich Streifert
> --
> Visionet GmbH
> Firmensitz: Am Weichselgarten 7, 91058 Erlangen
> Registergericht: Handelsregister Fürth, HRB 6573
> Geschäftsführer: Stefan Lindner
>
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel