Make SHtml.[input] return Elem with AnswerHolder[T]
It would be useful for the SHtml methods that generate form elements to return an object which supports a method to return the data captured during the submission of that form element. This would allow a use pattern that avoids potential timing issues related to setting the values of vars via a closure, as is currently the common use pattern for the SHtml form elements.
See http://groups.google.com/group/liftweb/browse_thread/thread/5ae6ad3aae7ea453/3532e3555a869d02?#3532e3555a869d02 and http://groups.google.com/group/liftweb/msg/014d2d00745f268d for details.
As an alternative to naming this "AnswerHolder" it occurs to me that the common name for this sort of interface in mocking frameworks is Capture[T].
Kris
See http://groups.google.com/group/liftweb/browse_thread/thread/5ae6ad3aae7ea453/3532e3555a869d02?#3532e3555a869d02 and http://groups.google.com/group/liftweb/msg/014d2d00745f268d for details.
As an alternative to naming this "AnswerHolder" it occurs to me that the common name for this sort of interface in mocking frameworks is Capture[T].
Kris
Leave a comment