On Sun, Aug 5, 2012 at 2:41 PM, Mads Hartmann Jensen <
mad...@gmail.com> wrote:
> Thanks!
>
> I only used a plain parameter to make it easier to
> show that the test was failing :) Otherwise I would need to
> get the generated UUID every time to make the correct
> POST request.
So, I'm trying with the UUId now, and I remembered how Lift does not
change the UUID of fields during test mode, they are stable, as long
as you don;t add more fields to your snippet, but for a soimple
example, we can say they are always the same.
But, just replacing the names text for the UUID (in my case it is
f00000000100000000_75d55eb9b447d5eb17b5021ebceb8124ba1e0046
does not seem to work, I get the request posted, but the associated
function is not being called, so my snippet now is:
"#result *" #> Result.is.getOrElse("Nothing entered yet") &
"#text" #> SHtml.text("", s=> Result(Some(s))) &
"type=submit" #> SHtml.onSubmitUnit(process)
I'll keep trying a few different things to see what works, and I'll
post back if I get it to work.
Thanks for the question though, I have been meaning to look at this
for a while, and getting a question on the list is always a good
excuse to work on Lift :)
Diego