On Mon, May 11, 2009 at 3:08 PM, Bryan. <[email protected]> wrote:

>
> Hi David,
>
> Is it possible that the partialUpdate is being called before the page
> is ready?


Yes.

Doing alerts in partial updates is not optimal.  I'd suggest doing all the
drawing via HTML.  You can do a partial update in a way that it will modify
the HTML.

When a CometActor is rendered on a new page, its render method is called if
there have been partial updates to the component since the component was
last rendered.


>  It works fine if I put Thread.sleep(1000) after the case
> Results.
>
> Thanks,
> Bryan
>
> On May 11, 5:21 pm, David Pollak <[email protected]>
> wrote:
> > Try putting the "this.start" at the end of the Actor body... I think the
> > start method is being called prematurely.
> >
> >
> >
> > On Mon, May 11, 2009 at 1:14 PM, Bryan. <[email protected]> wrote:
> >
> > > I posted this message through the Google Groups interface and was
> > > forced to upload tohttp://groups.google.com/group/liftweb/files?hl=en.
> > > Sorry about the confusion.
> >
> > > --Bryan
> >
> > > On May 11, 4:01 pm, David Pollak <[email protected]>
> > > wrote:
> > > > You didn't include the code... :-(
> >
> > > > On Mon, May 11, 2009 at 12:18 PM, Bryan <[email protected]> wrote:
> >
> > > > > This could be a result of my strange usage of comet actors, but I'm
> > > > > getting incosistent comet behavior.  When run in windows + jetty I
> > > > > have no problems.  In linux + jetty, subsequent requests fail.
>  I'll
> > > > > explain.
> >
> > > > > I have attached comet-test.tar.gz to the files page as an example.
> > > > > When you enter in a search term and click on submit it should popup
> up
> > > > > 2 JS alert messages.  This seems to work everytime upon first
> request
> > > > > (when you restart jetty).  On all susequent tries of the Jetty
> > > > > instance, the comet requests fail when you click back to the home
> page
> > > > > and search again.  I've tried clearing my browser cache, cookies,
> and
> > > > > even trying on a remote windows browser with no luck.  If I add
> > > > > Thread.sleep(1000) to the comet actor's localSetup, then everything
> > > > > appears to work OK.
> >
> > > > > Please see the sample code and let me know if I'm doing something
> > > > > wrong.
> >
> > > > > Thanks,
> > > > > Bryan
> >
> > > > --
> > > > Lift, the simply functional web frameworkhttp://liftweb.net
> > > > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > > > Follow me:http://twitter.com/dpp
> > > > Git some:http://github.com/dpp
> >
> > --
> > Lift, the simply functional web frameworkhttp://liftweb.net
> > Beginning Scalahttp://www.apress.com/book/view/1430219890
> > Follow me:http://twitter.com/dpp
> > Git some:http://github.com/dpp
>
> >
>


-- 
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