Hi Jim, Every thread has its own namestack. The listener runs in its own thread and so does every HTTP request. So dynamic variables are not the right abstraction here unfortunately. What you should do instead is have the furnace action set form values with set-value, and access those values from the fhtml template. The best way to save a value between invocations of an action is to persist it in a database, because then your web app will support transparent fail-over. Another good approach is to subclass the dispatcher responder and store them in there, and add your actions to the dispatcher as well. If you're interested I'll write up an example of this pattern.
Slava On Sat, Jul 10, 2010 at 4:21 AM, Jim mack <j...@less2do.com> wrote: > When rendering an fhtml page within the furnace.alloy framework, I am trying > to get to the same namespace that the listener is in. In other words, I > expected to use set in the listener, then get (on the same key) in the fhtml > page, but it returns f. I see that the page has a namestack 11 deep, my > listener's is 4. > > I think I understand cset and cget, sset and sget, and html forms' set-value > and value, but am trying for something a little more global but not quite > global-global. Is the 4th namespace when in listener unreachable from the > furnace.alloy namestack? > > -- > Jim > "I'm for extending the working Medicare program for our seniors all the way > back to contraception, so Americans can concentrate on living their lives > without fear of changing a job, going bankrupt from deductibles or fighting > HMO bureaucracy." > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk > > ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk