It seems I'm missing some key issue here as this is a common pattern in web-application development.
Any help is very much appreciated, thanks.--Andreas Joseph Krogh <and...@officenet.no>Senior Software Developer / CTOPublic key: http://home.officenet.no/~andreak/public_key.asc------------------------+---------------------------------------------+OfficeNet AS | The most difficult thing in the world is to |Rosenholmveien 25 | know how to do a thing and to watch |1414 Trollåsen | somebody else doing it wrong, without |NORWAY | comment. |Org.nr: NO 981 479 076 | || |Tlf: +47 24 15 38 90 | |Fax: +47 24 15 38 91 | |Mobile: +47 909 56 963 | |------------------------+---------------------------------------------+
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Yes, calling StatefulSnippet.redirectTo() instead of S.redirectTo would
solve my problem. But to be spec-compliant I want to use seeOther (303)
so I ended up using:
S.seeOther(S.uri, () => {
registerThisSnippet() // For redirecting to the same instance of this
snippet
}
Originally I managed state using RequestVars but using StatefulSnippet
with registerThisSnippet() and just holding stuff in member-variables is
much easier and fits my needs just fine, as I dont share any state with
other snippets here.
I don't have commit-rights to add seeOther to StatefulSnippet but it's a
very simple addition:
StatefulSnippet already has:
def redirectTo(where: String) = S.redirectTo(where, registerThisSnippet)
So it's a simple matter of adding:
def seeOther(where: String) = S.seeOther(where, registerThisSnippet)
Any committer up to adding this?
--
Andreas Joseph Krogh <and...@officenet.no>
--
Andreas Joseph Krogh <and...@officenet.no>
Senior Software Developer / CTO
Public key: http://home.officenet.no/~andreak/public_key.asc
------------------------+---------------------------------------------+
OfficeNet AS | The most difficult thing in the world is to |
Rosenholmveien 25 | know how to do a thing and to watch |
1414 Trollåsen | somebody else doing it wrong, without |
NORWAY | comment. |
Org.nr: NO 981 479 076 | |
| |
Tlf: +47 24 15 38 90 | |
Fax: +47 24 15 38 91 | |
Mobile: +47 909 56 963 | |
------------------------+---------------------------------------------+
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
> Andreas Joseph Krogh <and...@officenet.no> <and...@officenet.no>
> Senior Software Developer / CTO
> Public key: http://home.officenet.no/~andreak/public_key.asc
> ------------------------+---------------------------------------------+
> OfficeNet AS | The most difficult thing in the world is to |
> Rosenholmveien 25 | know how to do a thing and to watch |
> 1414 Trollåsen | somebody else doing it wrong, without |
> NORWAY | comment. |
> Org.nr: NO 981 479 076 | |
> | |
> Tlf: +47 24 15 38 90 | |
> Fax: +47 24 15 38 91 | |
> Mobile: +47 909 56 963 | |
> ------------------------+---------------------------------------------+
>
>
>
>
>
>