Session scope.

Coldfusion maintains session for remoting as it does for http requests from html apps. How would you hold normally hold session data? Maybe a facade object?

On 21/07/06, Doug Arthur <[EMAIL PROTECTED] > wrote:

How would you invoke one method on a cfc from flex, then call another method on the same cfc and the cfc maintain the values from the first invoke?
 
 
example:

<cfcomponent>

    <cffunction name="init" access="remote" output= "false" returntype="any">
        <cfreturn this />
    </cffunction>
    <cffunction name="doSomething" access= "remote" output="false" returntype= "any>
        <cfreturn getSomeValue() & ' is the value you asked for...' />
    </cffunction>
    
    <cffunction
name="setSomeValue" access="remote" output= "false" returntype="any">
        <cfargument name="someValue" required= "true" default="" />
        <cfset Variables.someValue = arguments.someValue />
    </cffunction>
    <cffunction name="getSomeValue" access= "remote" output="false" returntype="any">
        <cfreturn Variables.someValue />
    </cffunction>
</cfcomponent>
 
remoteObject.setSomeValue('something');
remotObject.doSomething(); // I'm looking for event.result to contain the string 'something is the value you asked for...'
 
 
 


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to