Skip to content

Nesting Comet inside LazyLoad which is itself inside a Comet Actor doesn't work #1980

Description

@gravelld

Mailing List thread

Example page in a wider project - you know how to find the Scala code.

I have a Comet Actor which uses LazyLoad.render programmatically to lazy load part of its display. When the lazy loading is complete the rendered NodeSeq contains further Comet Actors. These display initially, however no further updates occur - rerendering of the nested Comet Actors are not passed to the page.

Workaround

Create your own MyLazyLoad Actor and, if required programmatically, initialise it as so:

S.findOrCreateComet("MyLazyLoad", Full(Helpers.nextFuncName), ns, S.attrsFlattenToMap, true).map { foundComet =>
  foundComet ! MyLazyLoad.Init(initData)
  Comet.containerForCometActor(foundComet, Full(ns))
} match {
  case Full(cometContainer) => cometContainer
  case failedResult => throw new IllegalArgumentException(s"$failedResult")
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions