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>

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

-harryh

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@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