On Tuesday, November 1, 2011 at 8:38 AM, Antonio Salazar Cardozo wrote:
Hello all,I just ran into a use case where I'm generating comet actors with a randomized name (so they are tab-specific), but want to send any and all of them, including any created this request/response cycle, a message to join them to a central coordinating actor when rendering a particular page. LiftSession.sendCometActorMessage was a godsend for this, until I started giving the actors randomized names. Could we introduce a way to address actors with *any* name, in addition to actors with *no* name (what happens when passing Empty for the name parameter in sendCometActorMessage now), in sendCometActorMessage?
For now, we can hack it using a (Transient)RequestVar that sets up the proper name whenever either the comet actor or the sendCometActorMessage method accesses it, but it seems like having it supported in sendCometActorMessage directly would be handy dandy.Thanks!Antonio
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code