Hi,


with the old AutoCompleteField I used to creat an instance as:


    widgets.AutoCompleteField(attrs = {'size':51},
                              label = lazy_gettext(u'Metodologia'),
                              name='metodologia',
                              search_controller="/analises/search_metodologia",
                              search_param="metodologia",
                              result_name="metodologias",
                              css_classes = ['required'],
                              validator = validators.UnicodeString(not_empty = 
True)),

But now I have some problems (one of them I solved by passing the value
returned in a dictionary, since I'm only interested in the "text" part of this
widget) that are:

     - how to validate only the text part?  I'll never have an "id".
     - how to define the size of the text field?
     - how can I pass the "css_classes" to the text field, so that it gets
       properly formatted accordingly to my CSS rules?

TIA,
-- 
Jorge Godoy      <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to