Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gravelld opened this issue Jan 7, 2020 · 0 comments

Comments

@gravelld
Copy link

gravelld commented Jan 7, 2020

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")
}
@andreak andreak assigned andreak and unassigned andreak Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants