On Sat, May 16, 2009 at 1:53 AM, ivan <[email protected]> wrote:

>
> First I have to say sorry everyone for asking too many questions,
> asking a question is my last choice after i coludn't find an answer in
> a book or somewhere else.
>
> The question is: I am trying to use a StatefulSnippet. The snippet has
> a dispatch for three methods "list", "add", "pager".
>
> All three snippets are displayed on the same page. "List" is a list of
> db entities, "add" is a form for adding a new entity and "pager" are 4
> links for navigating the result set, defined by two variables "first"
> and "pageSize".
>
> The 4 links "first", "prev", "next" and "last" _work_, they update the
> value of the "first" variable so i can see that "pager" method is
> allways called with the same instance of my StatefulSnippet.
>
> But the problem is that the "list" snippet is always called on a new
> instance of my StatefulSnippet even though all these parts are
> displayed on the same page.
>
> I have a feeling that I am still missing something pretty fundamental
> here. Any ideas?


Yes.  This is a bug in the way StatefulSnippets are processed.  I've fixed
the bug and will commit a fix up in an hour or so.

In the future, please ask questions... that's what this list is for!


>
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to