Lift's multi-step wizard support is less than optimal.  I'm working with
some folks to improve the situation and it's part of the 1.1 roadmap.

On Thu, Aug 27, 2009 at 1:40 PM, harryh <[email protected]> wrote:

>
> Are stateful snippets considered a good way to do multi-step "wizard"
> like interfaces?  They seem like a good fit, but I'm running into 1
> annoying problem.  I'm seeting things up so in my .html file I have
> something like this:
>
> <lift:MyPage.stepOne form="POST">
>  // HTML for step 1
> </lift:MyPage.stepOne>
> <lift:MyPage.stepTwo>
>  // HTML for step 2
> </lift:MyPage.stepTwo>
>
> Then in the MyPage StatefulSnippet I return NodeSeq.Empty for 1 step,
> and actual contents for the other.
>
> The only issue is that for the "inactive" steps HTML like the
> following gets sent to the browser:
>
> <form action="/my_page" method="post"><input name="F110858803410EI0"
> type="hidden" value="true" /></form>


Yeah... that's a bug.  I'll have a fix committed up in a few.


>
>
> This isn't a huge deal really, but it's kind of annoying.  It almost
> seems like that  a <lift:> element with a form attribute shouldn't
> generate the <form> if the snippet function returns NodeSeq.Empty


That's defined behavior and it will be that way in just a minute.


>
>
> -harryh
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to