Wizard Form Page Unexpectedly Redirects with 303 Back to Top-Level Site

39 views
Skip to first unread message

Noel Weichbrodt

unread,
Jul 12, 2012, 3:56:48 PM7/12/12
to lif...@googlegroups.com
This is not a request for help, just a document of my own stupidity. Hopefully it saves someone else (or my future self!) some time & trouble.

Symptom: 
Your form page that is using a Wizard will unexpectedly redirect to the top-level index page when you try to access it. Eg, you try to access /test and you end up with a HTTP 303 redirect to /. You have no URL rewrite, HTTP pipeline redirect, or form redirect that would do such a thing.

Solution:
You dummy, you tried to make a Screen using the same syntax as the Wizard. Eg:
object Foo extends Wizard {
  object Bar extends Screen {
    //…
}}
Try the correct Screen syntax on for size:
object Foo extends Wizard {
  val Bar = new Screen {
    //…
]}

HTH. 
—Noel Weichbrodt

Diego Medina

unread,
Jul 12, 2012, 4:06:54 PM7/12/12
to lif...@googlegroups.com
Thanks for the email.

Diego
> --
> Lift, the simply functional web framework: http://liftweb.net
> Code: http://github.com/lift
> Discussion: http://groups.google.com/group/liftweb
> Stuck? Help us help you:
> https://www.assembla.com/wiki/show/liftweb/Posting_example_code



--
Diego Medina
Lift/Scala Developer
di...@fmpwizard.com
http://www.fmpwizard.com

David Pollak

unread,
Jul 15, 2012, 12:04:03 PM7/15/12
to lif...@googlegroups.com
Noel,

Thanks for the excellent pointer to the subtle difference... can you open a ticket at http://ticket.liftweb.net and assign it to me referencing this thread.  I'll try to create autodetect logic in Wizard to flag this sort of thing.

Thanks!

David

—Noel Weichbrodt

--



--
Telegram, Simply Beautiful CMS https://telegr.am
Lift, the simply functional web framework http://liftweb.net

Noel Weichbrodt

unread,
Jul 17, 2012, 2:50:33 PM7/17/12
to lif...@googlegroups.com
Thanks David, see https://github.com/lift/framework/issues/1293.
Couldn't assign the issue to you since I'm not a github collaborator.

—Noel

On Sunday, July 15, 2012 11:04:03 AM UTC-5, David Pollak wrote:
Noel,

Thanks for the excellent pointer to the subtle difference... can you open a ticket at http://ticket.liftweb.net and assign it to me referencing this thread.  I'll try to create autodetect logic in Wizard to flag this sort of thing.

Thanks!

David

David Pollak

unread,
Jul 17, 2012, 4:00:35 PM7/17/12
to lif...@googlegroups.com
Thanks!  I've assigned it to me.
Reply all
Reply to author
Forward
0 new messages