I am a newbie to Lift and Scala. I'm registering users and once they
have entered the information in successfully. I want to redirect to a
"thank_you" page that will display a snippet
<lift:UserOps.thanksMessage>
<p>
<entry:fullname/> thanks for joining Echo. The
confirmation
instructions for completing the signup process have been sent to
your email address, <entry:email/>
</p>
</lift:UserOps.thanksMessage>
I assume that when I redirect it doesn't hold the state of the user
information.
On submit I invoke signup
def signup(xhtml: NodeSeq) : NodeSeq = {
........
S.redirectTo("thank_you")
}
ThanksMessage function....................
def thanksMessage(xhtml: NodeSeq) : NodeSeq = {
print("Username: " + user.username)
bind("entry", xhtml,
"fullname" -> Text(user.userProfile.fullName),
"email" -> Text(user.email))
}
I have declared a RequestVar object
** object userVar extends RequestVar(new User()) **
but I'm sure that it is creating an empty user object in my RequestVar
userVar when I redirect.
Is a StatefulSnippet the solution for this? I just think that there's
a much simpler solution that I'm overlooking.
Jay
--
You received this message because you are subscribed to the Google Groups
"Lift" 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/liftweb?hl=en.