#654: [PATCH] Add hidden field to autocomplete
-------------------------+--------------------------------------------------
 Reporter:  xentac       |       Owner:  anonymous
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:           
Component:  Widgets      |     Version:           
 Severity:  normal       |    Keywords:           
-------------------------+--------------------------------------------------
 We have found the need to add ids to the autocomplete widget.  That way we
 know which database row the user selected, instead of trying to match a
 string.

 Sadly, this breaks backwards compatibility when you first set up the form
 (the value dictionary has to change) and when you get data back from the
 form, other than that, the JSON search method can stay the same.  All this
 patch does is add a second hidden field and change the name of the text
 field.

 We ended up converting the AutoCompleteField into a CompoundWidget to be
 able to do this properly.

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/654>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Tickets" 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-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to