BTW, when the partialUpdate method is called , the result is
correct.

  But when refreshing the browser or open a new browser, the result
also is 3,

Cheers,
  Neil

On Dec 9, 12:44 am, "Neil.Lv" <anim...@gmail.com> wrote:
> Hi all,
>
>    How can bind more than one element in the render method in
> CometActor ?
>
>    The msg1 is an
> ###
> class TestComet extends CometActor {
>   override def defaultPrefix = Full("info")
>   ...
>   def render = { bind("One"   -> <span>1</span>,
>                              "Two"   -> <span>2</span>,
>                              "Three" -> <span>3</span>,
>                              "Four"  -> <span>4</span>,
>                              "Five"  -> <span>5</span>,
>                              "Six"   -> <span>6</span> ) }
>   ...}
>
> ###
>
>   And in the index.html page
> ###
> ...
> <lift:comet type="TestComet">
>   <info:One/>
> </lift:comet>
> <span>********************************</span>
> <lift:comet type="TestComet">
>   <info:Two/>
> </lift:comet>
> <span>********************************</span>
> <lift:comet type="TestComet">
>   <info:Three>
> </lift:comet>
> <span>********************************</span>
> <lift:comet type="TestComet">
>   <info:Four>
> </lift:comet>
> ...
> ###
>
>   And these four comet all show the same result  <span>3</span>,
> not 1, 2, 3, 4, 5, 6 ....
>
>   I don't know what's wrong with it ?
>
>   Dose anybody know what's the problem with this render metho?
>
>   Thanks for any help.
>
> Cheers,
>   Neil

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to