On Mon, Dec 1, 2008 at 10:43 AM, Paul Butcher <[EMAIL PROTECTED]> wrote:

>
> I hate to "nag", but does anyone have any idea what's up with the bug
> in the chat example I e-mailed about a while ago?


I fixed it yesterday.  The code is in GitHub and I believe the latest JAR
files are up on Scala-tools.org (do an mvn -U clean install to get the
latest.)


>
>
> I've been playing around with the ask/answer functionality in the
> interim, and (although it's quite possible that I'm missing something)
> I can't get it to work at all. The first time I call ask it works as
> I'd expect, but the second time it doesn't seem to have any effect
> (the page remains as it was before calling ask). Which is consistent
> with what I see in the chat example.


There were a number of bugs in the ask/answer code.  Mainly, the delegate
was not updating the draw space correctly.  That's been fixed.


>
>
> Does anyone have any examples of ask/answer other than the chat
> example?
>
> Of course, none of this stops me from being able to implement comet
> functionality (and Lift is still the best framework I've come across
> for this purpose, even without ask/answer). But being able to use ask/
> answer would be nice :-)


See if it works.  If you find new code that fails, please post it and I'll
fix those bugs.


>
>
> On Nov 21, 6:27 pm, Paul Butcher <[EMAIL PROTECTED]> wrote:
> > So I'm gradually getting my head around lift, in particular the comet
> > support. I'm currently trying to understand how the Chat example's
> > AskName functionality works. I believe that I've uncovered a bug, but
> > I'm not sure why it doesn't work or how to fix it.
> >
> > The Chat class's localSetup method is clearly trying to ensure that
> > the name entered is at least 3 characters long:
> >
> >   override def localSetup {
> >     if (userName.length == 0) {
> >       ask(new AskName, "what's your username") {
> >         case s: String if (s.trim.length > 2) => userName = s.trim;
> > reRender(true)
> >         case s => localSetup; reRender(false)
> >       }
> >     }
> >   }
> >
> > But this doesn't seem to work. If you enter a name longer than 2
> > characters everything works just fine. If, on the other hand, you
> > enter a shorter one it doesn't let you proceed (which is good), but if
> > you subsequently enter a longer name, it still doesn't let you
> > proceed.
> >
> > I'm pretty sure that this isn't some artifact of my local installation
> > as I see the same behavior here:
> >
> > http://demo.liftweb.net/chat
> >
> > I can see what the code is trying to achieve. Why isn't it working?
> >
> > Thanks in advance!
> >
> > Paul.
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
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