lift / lift/framework

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

Open
#349 2 comments 0 reactions 1 assignee View on GitHub

@dpp is already working on this.

Since Mar 1, 2012.

P:Normal T:Enhancement
Dominant language
Scala
Stars
1.3k
Forks
275
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.