Hi all,
I've never managed to make something like this work, so I'm wondering if
there's another way to do it.
I render a component using a simple snippet, and I update its status using a
comet (partialUpdate), I want to update also its own menu and the available
actions depending on its status.
I've implemented a method for this component that will return it's menu as a
NodeSeq containing SHtml.a's, this method is called by the Comet(well, with
0.9 it throws a NullPointerException, but it seems that it's been fixed in
0.10). However the returned SHtml.a's when clicked are not apparently
executed on the server.
So if someone would explain what's happening or provide me with an
alternative way for acheiving my requirement, I'll be very grateful.
a simple code example :
override def lowPriority = {
case action : String => partialUpdate(
AppendHtml(
"container",
SHtml.a(Text("click")){
println("clicked")
Noop
}
))
}
Cheers,
Ramzi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---