framework icon indicating copy to clipboard operation
framework copied to clipboard

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

Open noelweichbrodt opened this issue 13 years ago • 1 comments

Cf https://groups.google.com/forum/?fromgroups#!topic/liftweb/aWLdGonXDLg

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 { //… ]}

noelweichbrodt avatar Jul 17 '12 18:07 noelweichbrodt

So basically it sounds like we need a better warning or something to correctly indicate when a Screen is being created as a singleton.

As a side note, it seems like the new Screen { ... } syntax ends up using Scala existential types, which now require explicit importing (or you get a feature warning). We may want to think about a better best practice around this for Lift 3.

Shadowfiend avatar May 13 '14 22:05 Shadowfiend