Just the persistent data. I realize the object could not be stored in the 
client scope. It's a shame though.

So, using client vars, I would need to create a new instance of the cfc on 
each page and then re-populate it with data from the client variable scope. 
That part I understand. But, when I move to a new page, how can I ensure 
that any changes to the cf's properties get saved to the client var scope. 
Would this have to be done in the onrequestend.cfm template? Could I check 
for an instance of the object in this template, and then, if it exists, 
save each of its available properties to the client scope?

Are an objects properties available in a struct format in the calling 
template? myobject.properties?

Brook



At 01:27 PM 04/11/02 -0500, you wrote:
>I said that? When? :)
>
>It depends on what you mean.
>
>Do you mean storing the CFC _in_ the shared scope access? If so, the
>answer is no. Client vars can only store simple values. You could
>serialize the data of the CFC (not the CFC itself), and then use that
>data to initialize a new CFC when the client hits the site again.
>
>If you mean access client vars from CFCs - I recommend against that.
>CFCs should not (and this is _my_ opinion only) access variables outside
>of their own scope.
>
>=======================================================================
>Raymond Camden, ColdFusion Jedi Master for Hire
>
>Email    : [EMAIL PROTECTED]
>WWW      : www.camdenfamily.com/morpheus
>Yahoo IM : morpheus
>
>"My ally is the Force, and a powerful ally it is." - Yoda
>
> > -----Original Message-----
> > From: Brook Davies [mailto:brook@;maracasmedia.com]
> > Sent: Monday, November 04, 2002 12:02 PM
> > To: CF-Talk
> > Subject: Persistent CFC's in the client scope
> >
> >
> > Can any one explain how you would use client variables and
> > persistence with
> > a CFC? Raymond Camden said it was possible, but I'm not sure
> > how it would
> > work.
> >
> > Interestingly, I could not find any mention of using the
> > client scope with
> > CFC's from macromedia. Does this mean it is not supported? Is
> > the client
> > variable method of maintaining state being replaced by J2EE
> > sessions? Is
> > J2EE sessions even the right term for this new way of storing
> > session state?
> >
> > Brook
> >
> >
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to