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'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.
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 :-)
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.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---