Thanks for the fast answer, Raymond.

It is difficult cause of our firewall configuration.

I made another page with only cfacontentobjectget and that works well.
Looks like being a chaching problem.

The customTag is called within the objects edit-handler.
Before calling the customtag i open <cfa_handler> with ISOLanguage then doing the 
check for multilingual properties.
What happens now:
When I first call the edit handler it works. 
Refreshing the site or calling the edit handler for the same object a second time 
leads into trouble.

I believe that my programm worked well on CF5.0 because of the different cache 
handling in opposite to CFMX.
Maybe it would be a solution to do the check on the properties before opening the 
cfa_handler tag in the edit handler.

So the cfa_contentobjectget is not the problem as I know now.

Best regards,
Thomas





-----Urspr�ngliche Nachricht-----
Von: Raymond Camden [mailto:[EMAIL PROTECTED]] 
Gesendet: Dienstag, 10. Dezember 2002 16:22
An: Spectra-Talk
Betreff: RE: Changes in cfa_contentobjectget???


Any possible way you can show me a sample page with a dump of an object missing the 
keys?
 
 

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc

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: [LWD://] Thomas Lendzion [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 10, 2002 9:17 AM
To: [EMAIL PROTECTED]
Cc: Raymond Camden
Subject: Changes in cfa_contentobjectget???



Hi all, it is me again. 

I have a very important question. 

In spectra 1.5.1 cfa_contentobjectget returned the whole objectstucture including the 
substructures for multilingual properties.

In 1.5.2 it returns a flat structure without language sub structures. 

Our applications use a customtag that checks the multilingual properties in all 
languages the application supports (languages are defined as a contentobject as well).

If the property is not defined in one or more languages it makes a contentobjectdata 
and adds the key (iso_code) to the object.

But now I do not retrieve the subkey for the different languages so my customtag fails 
with the error message: 
'You have attempted to dereference a scalar variable of type class java.lang.String as 
a structure with members.' 

Any ideas? 

Thanks for fast help, 
Thomas 


Code: 
<cfa_contentObjectGet 
    dataSource="#request.cfa.objectstore.dsn#" 
    objectID="#attributes.objectID#" 
        r_stObject="stFullObjectData"> 

<<cfa_contentObjectGetMultiple 
                dataSource="#request.cfa.objectStore.dsn#" 
                typeID="D033B14E-9B57-4F79-A41ED43820E8FD89" 
                r_stObjects="hwsLanguages"> 

<cfloop list="#attributes.LCheckProp#" index="check"> 
        
        <cfloop collection="#hwsLanguages#" item="iso"> 

                <cfif not StructKeyExists(stFullObjectData[check],
hwsLanguages[iso].iso_code)> 
                        <cfparam name="bForceNewInstance" default="1"> 
                                <cfa_contentObjectData 
 
dataSource="#request.cfa.objectstore.dsn#" 
 
objectID="#attributes.objectID#" 
 
ISOlanguage="#hwsLanguages[iso].iso_code#" 
                                                bActivate="Yes"> 
                                        <cfa_contentObjectProperty name="#check#" 
value=""> 
                                </cfa_contentObjectData>

                </cfif> 
        </cfloop> 
</cfloop> 



______________________________________________________________________
Get the mailserver that powers this list at http://www.coolfusion.com
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to