[Checkins] SVN: z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component. set forceSelection for combobox to avoid user input

Laurent Mignon Laurent.Mignon at softwareag.com
Tue Mar 24 16:14:10 EDT 2009


Log message for revision 98337:
  set forceSelection for combobox to avoid user input

Changed:
  U   z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.py
  U   z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.txt

-=-
Modified: z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.py
===================================================================
--- z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.py	2009-03-24 17:17:13 UTC (rev 98336)
+++ z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.py	2009-03-24 20:14:09 UTC (rev 98337)
@@ -204,6 +204,7 @@
             hiddenName = config['name']+':list',
             triggerAction = 'all',
             editable = True,
+            forceSelection = True,
             store= [(item['value'], item['content'])
                 for item in self.widget.items],
             ))

Modified: z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.txt
===================================================================
--- z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.txt	2009-03-24 17:17:13 UTC (rev 98336)
+++ z3c.formext/branches/sagblmi-morecomponent/src/z3c/formext/component.txt	2009-03-24 20:14:09 UTC (rev 98337)
@@ -222,6 +222,7 @@
   >>> pprint(interfaces.IExtJSComponent(choiceWidget).getConfig())
   {'editable': True,
    'fieldLabel': u'Choice',
+   'forceSelection': True,
    'hiddenName': 'choiceField:list',
    'id': 'choiceField',
    'itemCls': 'required',
@@ -244,6 +245,7 @@
   >>> pprint(interfaces.IExtJSComponent(choiceWidget).getConfig())
   {'editable': True,                                                                                               
    'fieldLabel': u'Choice (Not Required)',                                                                          
+   'forceSelection': True,
    'hiddenName': 'optionalChoiceField:list',                                                                        
    'id': 'optionalChoiceField',                                                                                     
    'name': 'optionalChoiceField',                                                                                   
@@ -646,6 +648,7 @@
   >>> pprint(config['items'][3])
   {'editable': True,
    'fieldLabel': u'Gender',
+   'forceSelection': True,
    'hiddenName': 'form.widgets.gender:list',
    'id': 'form-widgets-gender',
    'name': 'form.widgets.gender',



More information about the Checkins mailing list