Hi for boolean, the class editor presents 3 last fields. Form type (radio button, check box): ok Display Type: I don't get this one Default: I don't get this one ; I tried false/No/no but I always get a parsing error. Could you give some explanations on these last 2 fields? Thank you. Marc
-----Original Message----- From: Marc Lijour [mailto:[email protected]] Sent: mardi 26 décembre 2006 23:19 To: [email protected] Subject: [xwiki-dev] boolean xwiki data-type
Hi
for boolean, the class editor presents 3 last fields.
Form type (radio button, check box): ok Display Type: I don't get this one Default: I don't get this one ; I tried false/No/no but I always get a parsing error.
Could you give some explanations on these last 2 fields?
I don't know what they are either. I think we need a class editor documentation page somewhere or even better some panels on the right explaining the fields. Once you've figured out what they do, it would be cool if you could help us on documenting this :-) Thanks -Vincent ___________________________________________________________________________ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com
for boolean, the class editor presents 3 last fields.
Form type (radio button, check box): ok Display Type: I don't get this one Default: I don't get this one ; I tried false/No/no but I always get a parsing error.
Boolean properties always have 0, 1 or --- as the internal value. But what the user sees in the webpage can be customized. - Form type affects the form element used for editing. I don't think I have to explain what select/checkbox/radio does. - Display Type tells what are the displayed labels: the options for select or radio items, the value displayed in 'view' mode. Possible values are yesno, truefalse, active and allow (for the moment). The actual labels are written in ApplicationResource.properties, as active_0=Inactive, active_1=Active. So you can write anything in here, as long as it is defined in the properties. Otherwise, 0/1 will be used. - Default: should be ---, 0 or 1 to work. It indicates the default value to be used for new objects. Indeed, all class property types should have tooltips explaining the exact meaning.
Looking again through the code, I noticed an error in my previous post. The internal value for --- is -1, so possible default values are -1, 0 or 1, meaning None, False, True, respectively. On 12/28/06, Sergiu Dumitriu <[email protected]> wrote:
for boolean, the class editor presents 3 last fields.
Form type (radio button, check box): ok Display Type: I don't get this one Default: I don't get this one ; I tried false/No/no but I always get a parsing error.
Boolean properties always have 0, 1 or --- as the internal value. But what the user sees in the webpage can be customized. - Form type affects the form element used for editing. I don't think I have to explain what select/checkbox/radio does. - Display Type tells what are the displayed labels: the options for select or radio items, the value displayed in 'view' mode. Possible values are yesno, truefalse, active and allow (for the moment). The actual labels are written in ApplicationResource.properties, as active_0=Inactive, active_1=Active. So you can write anything in here, as long as it is defined in the properties. Otherwise, 0/1 will be used. - Default: should be ---, 0 or 1 to work. It indicates the default value to be used for new objects.
Indeed, all class property types should have tooltips explaining the exact meaning.
On Thursday 28 December 2006 16:30, Sergiu Dumitriu wrote:
Looking again through the code, I noticed an error in my previous post.
The internal value for --- is -1, so possible default values are -1, 0 or 1, meaning None, False, True, respectively.
Thank you
participants (3)
-
Marc Lijour -
Sergiu Dumitriu -
Vincent Massol