Created
May 24, 2011 03:44
-
-
Save fmpwizard/988112 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case object MyTabGroup extends RequestVarSnapshotGroup | |
object MyVar1 extends SnapshotRequestVar(MyTabGroup, "foo") | |
object MyVar2 extends SnapshotRequestVar(MyTabGroup, 42) | |
def render = { | |
/** | |
* when this function is applied, | |
* it will restore the values of all the members of the MyTabGroup | |
*/ | |
val snapshot: () => Unit = RequestVar.snapshot(MyTabGroup) | |
... | |
"type=hidden" #> SHtml.hidden(snapshot) & | |
... | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment