I hadn't extended it to the page context, but I do something similar
for my customer object. I have a structure called 'contextInfo' that is
sort of a dumping grounds for any information that applies to the
customer for a page or two only.
Extending the idea to the page context would seem like a good idea to
me.

-- 
 jon
 mailto:[EMAIL PROTECTED]

Thursday, January 2, 2003, 12:27:28 PM, you wrote:
JH> Ok, this might sound weird, but I'm thinking of building something I'd 
JH> call a page-context.

JH> The idea is that on certain pages one needs to have a lot a variables 
JH> that you load once, from a database or file and then use pretty often. 
JH> You can manually cache these variables in the application scope, but I 
JH> was looking for something more specific. An example of such data might 
JH> be: a default sort order, l10n texts etc.

JH> So this would work like a normal client or session variable, but these 
JH> variables would be unique for each page (haven't though about includes 
JH> yet, but they may have their own page context too). I'm working on a 
JH> simple system that stores these variables in-memory in either the 
JH> application or the server scope, but I'd rather not use any of those. 
JH> Another option would be to create a java object that can be referenced 
JH> statically to get to these variables (haven't worked that out either).

JH> Then appart from the default page data there might be user specific paga 
JH> date like the users preferred sort order, last 10 entered search 
JH> keywords etc. One could store these in the clientscope or the session 
JH> scope, but then these would be accessible from any other page aswell. So 
JH> in this case there would be a pageSession and a pageClient scope to 
JH> handle these kinds of data.

JH> I haven't worked out the details yet, but I'm open for any ideas, pros, 
JH> cons etc.

JH> Jesse

JH> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to