David > If it's the latter, I'd use the "name" attribute in <lift:comet type="Chat" > name="LiftChatRoom"/> to pass the information. Lift creates a separate > CometActor instance for each different name. Thus, you can have 5 > CometActors for 5 different chat rooms as long as they have a unique name.
Yes. This is my case. > > Does this help? A lot. Thanks. > > On Wed, Nov 12, 2008 at 5:35 AM, Francois Bertrand <[EMAIL PROTECTED]>wrote: > > > > > Hi: > > > How can I pass initialization parameter to a Comet Actor? > > > Using the chat demo as a use case, consider if I want; > > > - let the user choose a chat room, > > - the list of chat room is only known at runtime (I can't pass the > > room's id in the xhtml template) > > > Is it as simple as calling "S.param()" inside the "render()" method ? > > > Thanks > > Francois > > -- > Lift, the simply functional web frameworkhttp://liftweb.net > Collaborative Task Managementhttp://much4.us > 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 liftweb@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---