Naftoli,
Thanks for the response.
I don't think I understand your post very well. I have two redirectTos
in the code and I tried putting registerThisSnippet in both. This what
I tried.
object mySnip extends SessionVar[Box[Wizard]](Emtpy)
class Wizard extends StatefulSnippet with Logger {
Actually if you're grabbing the href from StatefulSnippet.link then you
shouldn't need to write registerThisSnippet, or redirect.
Can you verify that the code block passed to StatefulSnippet.link is getting
executed?
-
Although it would be cool to figure out how to pause and resume
StatefulSnippets, I just reworked it to use DispatchSnippets and
SessionVars and in only took 10 mins.
Thanks again to Naftoli.
-A
On Mar 4, 3:03 pm, andythedestroyer andythedestro...@gmail.com
wrote:
Naftoli,
Thanks for the
I don't think Scala's XPath supports @attributes. You have to use the API
of scala.xml.Elem to look up the value of an attribute.
But there's a better way: do what StatefulSnippet.link does yourself. Look up
the source. I think the method you want is S.fmapFunc or something like that if
I'm not
See my other email, but session vars have the obvious disclaimer that there's
only one per session, while any number of StatefulSnippets can be tracked in
parallel.
-
andythedestroyerandythedestro...@gmail.com wrote:
Although it would be cool to figure out
Actually if you're grabbing the href from StatefulSnippet.link then you
shouldn't need to write registerThisSnippet, or redirect.
Can you verify that the code block passed to StatefulSnippet.link is getting
executed?
That's what I thought. I checked and the code block is not getting
called.
Ok Wow. Sometimes you really impress me dpp. That worked. I don't
think I ever would have figured that out but now that I see it I see
what is going on. I have never used HighLevelSessionDispatcher before
though.. I need to go though the code and learn that one.
Good stuff. Thanks again you smart
On Thu, Mar 4, 2010 at 4:26 PM, andythedestroyer andythedestro...@gmail.com
wrote:
Ok Wow. Sometimes you really impress me dpp. That worked. I don't
think I ever would have figured that out but now that I see it I see
what is going on. I have never used HighLevelSessionDispatcher before