I have searched a number of threads and have found similar posts but
nothing the exactly answers this relatively simple question.
I am using the Lift submit method (net.liftweb.http.Shtml.submit) to
submit a form.  Upon submission, I want to execute another method
called getImgs(s: String), so I have set up my submit button as so:

def chooseIndex: NodeSeq = {
...
<td>{submit("Metabolic Reserve Index", () => getImgs("met"))}</td>
...
}

In my .html file for this page I call the snippet with form="post"
<lift:PortalHome.chooseIndex form="post" />

The getImgs method has a variable that relies on a URL parameter that
is lost when I click the submit button, so my S.param("id").get
returns a None.get error.  How can I retain the parameter through the
submit process?  Is it best to use a StatefulSnippet?  Can I read in
the parameter as an attribute?  I feel like like there are a number of
ways to accomplish this, but what is the best, or most "lifty" way?

Thanks,
David

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to