from https://github.com/lift/framework/blob/master/web/webkit/src/main/scala/net/liftweb/http/S.scala
/**
* If you bind functions (i.e. using SHtml helpers) inside the
closure passed to callOnce,
* after your function is invoked, it will be automatically removed
from functions cache so
* that it cannot be invoked again.
*/
def callOnce[T](f: => T): T = {
autoCleanUp.doWith(true) {
f
}
}
Hope it helps
P.S. the code posting rules are here:
http://www.assembla.com/spaces/liftweb/wiki/Posting_example_code
Regards,
Diego
> --
> You received this message because you are subscribed to the Google Groups "Lift" group.
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
>
>
--
Diego Medina
Web Developer
(305) 788-4954
di...@fmpwizard.com
http://www.fmpwizard.com
Could you post a sample app that shows the problem?
Thanks
Diego
Sent from my cell
Could you be more specific about what you are trying to do? It doesn't
sound lift related, but maybe you meant something different than what
I think.
>
> Any solution for the problem described above?
>
I posted an answer to his question, you may want to start a new thread
with your own question.
Regards,
Diego
>
>
> Thanks,
> Chka
>
> --
> 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
--
Diego Medina
Lift/Scala Developer
di...@fmpwizard.com
http://www.fmpwizard.com