One way would be to use SessionVar's to store the values of each of
your form fields, and on page request, you would load those values.
But the problem with this is that you can only have one browser window
open, if you have two, they would override each other.
If you need multiple tas to work, I think that using RequestVars with
a mix of snapshots[1] should do the trick, but I haven't tried that
before (very tempting though :) )
There is a way to make form fields use the same GUID, but this would
make your forms vulnerable to replay attacks, and I don't think you
would really want that
[1] http://blog.fmpwizard.com/54204619 (small gem title)
Hope that helps
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
Web Developer
di...@fmpwizard.com
http://www.fmpwizard.com
--
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
Personally I think it would be nice if GUIDs were optional. If a template has a name attribute, why not use that as the key in the function map?
On Tue, Nov 29, 2011 at 6:05 PM, Naftoli Gugenheim <nafto...@gmail.com> wrote:Personally I think it would be nice if GUIDs were optional. If a template has a name attribute, why not use that as the key in the function map?That's just not possible. The GUIDs have to be GUIDs... that's a core part of Lift.The GUIDs are not the issue here, it's the place that the browser chooses to treat as the "previous" page... Chrome and newer versions of Firefox treat the "previous" page URL differently, and I have to test for that and make sure the right thing happens.
--
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
On Tue, Nov 29, 2011 at 8:53 PM, Naftoli Gugenheim <nafto...@gmail.com> wrote:On Tue, Nov 29, 2011 at 11:50 PM, David Pollak <feeder.of...@gmail.com> wrote:
On Tue, Nov 29, 2011 at 6:05 PM, Naftoli Gugenheim <nafto...@gmail.com> wrote:Personally I think it would be nice if GUIDs were optional. If a template has a name attribute, why not use that as the key in the function map?That's just not possible. The GUIDs have to be GUIDs... that's a core part of Lift.The GUIDs are not the issue here, it's the place that the browser chooses to treat as the "previous" page... Chrome and newer versions of Firefox treat the "previous" page URL differently, and I have to test for that and make sure the right thing happens.
On Tue, Nov 29, 2011 at 11:56 PM, David Pollak <feeder.of...@gmail.com> wrote:
On Tue, Nov 29, 2011 at 8:53 PM, Naftoli Gugenheim <nafto...@gmail.com> wrote:On Tue, Nov 29, 2011 at 11:50 PM, David Pollak <feeder.of...@gmail.com> wrote:
On Tue, Nov 29, 2011 at 6:05 PM, Naftoli Gugenheim <nafto...@gmail.com> wrote:Personally I think it would be nice if GUIDs were optional. If a template has a name attribute, why not use that as the key in the function map?That's just not possible. The GUIDs have to be GUIDs... that's a core part of Lift.The GUIDs are not the issue here, it's the place that the browser chooses to treat as the "previous" page... Chrome and newer versions of Firefox treat the "previous" page URL differently, and I have to test for that and make sure the right thing happens.
Would the solution you have in mind also fix regular forms, eg ones made with Screen and with forms built by using SHtml.text, or would it only fix Wizard? If it would only fix Wizard I'm curious what your thoughts are on the idea of using a hidden field for each form element to hold the GUID so that the regular element maintains its name.
> You mentioned there was a way to make the form fields use the same GUID, but
> I can't find any information on how to do that. To me, that would be
I looked and it was the other way around, on test mode, the GUID are
stable (well, for the most part unless you make some changes to your
forms). SO while in test mode, you can surround your fields with a
method that would force random GUID even in test mode. Sorry for the
false hope.
I am glad you got something working for now though and that you shared
it on the list.
Regards,
Diego
--
Lift's GUID stuff is a core part of Lift and is not going to change.
Lift's GUID stuff is a core part of Lift and is not going to change.It won't change in any respect, ever, no matter what?
--
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
On Fri, Dec 2, 2011 at 12:23 AM, Naftoli Gugenheim <nafto...@gmail.com> wrote:
Lift's GUID stuff is a core part of Lift and is not going to change.It won't change in any respect, ever, no matter what?
It can't. There are so many parts of Lift that depend on the GUID, how the GUD is constructed (including the fact that it's a monotonically increasing value), that trying another scheme will potentially break a lot of code. It would mean a complete re-write of all of SHtml, Screen, Wizard, Comet, and more. Trying to change from GUIDs would mean writing a new web framework.
--
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
Yes, David asked me to look into it and I'm planning on it.
Diego
Sent from my android cell