Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make SHtml.[input] return Elem with AnswerHolder[T] #349

Open
nuttycom opened this issue Feb 17, 2010 · 2 comments
Open

Make SHtml.[input] return Elem with AnswerHolder[T] #349

nuttycom opened this issue Feb 17, 2010 · 2 comments

Comments

@nuttycom
Copy link

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

@dpp
Copy link
Member

dpp commented Mar 27, 2010

Don't have time to get it done right today. :-(

@github-importer
Copy link

Imported from Assembla: http://www.assembla.com/spaces/liftweb/tickets/349

@ghost ghost assigned dpp Mar 1, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants