Well, the verdict here:

1) If I create the object every request, the javascript appears and  
the cfform works fine
2) If I CFINCLUDE a CFM template, the javascript appears and the  
cffform works fine
3) If it is invoked from a persistent object (in either application  
or session scope) it shows up the first time I access the page, but  
subsequent access fails to send the page with the needed javascript

Hmm.  I want the cfgrid considerably less than I want to do either of  
the first two, because both of the first two options introduce the  
problems I was trying to avoid by having the thing in memory in the  
first place.  Ah, well.

----------------------------------
Charles Sheehan-Miles | http://www.sheehanmiles.com
Author of Republic: A Novel of America's Future

....Sparse, clean narrative... Pay attention to this new book... --  
Pulitzer
Prize winning journalist John Hanchette, Niagara Falls Reporter

This novel ...may be prophetic...It will disturb you...It should. --
DailyKos




On Sep 10, 2007, at 11:53 AM, Brian Kotek wrote:

> You could try dumping the variables scope of the CFC to see if  
> cfform is
> putting something in there. But whatever the problem is, I'm pretty  
> sure it
> must be related to the fact that the CFC is being stored in a  
> shared scope.
> Does switching to a per-request CFC allow the JavaScript to work  
> correctly?
> While I don't recommend doing it in general, you might also see if  
> doing a
> cfinclude of a template that contains the cfform tags makes a  
> difference.
>
> On 9/10/07, Jaime Metcher <[EMAIL PROTECTED]> wrote:
>>
>> Well, this really is just a wild guess, but maybe it's worth trying
>> re-instantiating the CFC on every request.  CFFORM could be  
>> stashing some
>> state in that CFC.
>>
>> Jaime Metcher
>>
>>> -----Original Message-----
>>> From: Charles Sheehan-Miles [mailto:[EMAIL PROTECTED]
>>> Sent: Monday, 10 September 2007 6:58 PM
>>> To: CF-Talk
>>> Subject: Re: Odd behavior when using cfform inside a CFC
>>>
>>>
>>> Jaime .... interesting question, and yes, the CFC in this case is
>>> stored in the session scope.
>>>
>>
>>
>>
>>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288132
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to