Re: Flex and CF Sessions (sort of)

2011-03-16 Thread Mary Jo Sminkey

The way I've done this in the past was to store the credentials on the flex
client and re-authenticate the user with these using the CFLOGIN framework.
 This way the responsibility for continuing the session is on the flex side
of things.  

I'd really rather not do this as it would mean using a login specific to the 
application. My current method uses their local machine login (which changes 
every 90 days)which is far more user-friendly as they don't have to remember a 
second login that's only for this tool. But it does require having to handle 
the authentication in CF. And right now, it's working great, no timeout issues 
and very little need for the users to do anything if it wasn't for the 
issue with the error handling 

--- Mary Jo


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343063
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Flex and CF Sessions (sort of)

2011-03-16 Thread Mary Jo Sminkey

 if it wasn't for the issue with the error handling 

It does appear that this is a verified bug in CF 9.01: 

http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html#bugId=83525

Boy it's frustrating when new features are crippled with bugs that make them 
unusable! I'll have to play around with their suggested workaround and see if 
there's any way I can get that to work, as it's the one stumbling block for me 
with going this route.


-- Mary Jo






~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343064
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Flex and CF Sessions (sort of)

2011-03-16 Thread Mary Jo Sminkey

 I'll have to play around with their suggested 
 workaround and see if there's any way I can get that to work, as it's 
 the one stumbling block for me with going this route.
 

That suggested workaround is a joke, no way I'd do the massive amount of 
recoding needed to use that. Their suggestion is to catch any errors and append 
the message to your return variables. Even if that worked in my framework 
(which is doesn't) it would require pretty much recoding all the business logic 
to look for these special error messages and handle them (before any other 
processing is done). I'm not even sure there's a way I could handle any 
unexpected exceptions this way, but it certainly wouldn't be easy and would 
probably mean dumping the entire Flex framework to do so. It's not even close 
to a reasonable solution. So looks like using onCFCRequest is out of the realm 
of possibilities.

MJS


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343066
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Flex and CF Sessions (sort of)

2011-03-16 Thread Mary Jo Sminkey

  I'll have to play around with their suggested 
  workaround and see if there's any way I can get that to work, as 
 it's 
  the one stumbling block for me with going this route.
  
 

We decided to just look at adding a timer in Flex to keep the session alive. 
This should work well enough for our needs. I'm not particularly thrilled at 
not being able to verify the user is still logged in, but as long as we keep 
pinging the CF side from Flex, there's no reason they shouldn't be. Anyone 
tried doing this? I never like *relying* on timers but seems to be our best 
approach for now. Since this is an intranet app, and not one that needs a lot 
of security, we don't have to be hugely concerned about users trying to get 
around the authentication. 


-- Mary Jo


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343067
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Flex and CF Sessions (sort of)

2011-03-15 Thread Mary Jo Sminkey

Okay, so we have a flex application running on top of ColdFusion. Basically 
going through CFCs as web services for whatever it needs. But I'm having a hard 
time coming up with the best way to handle sessions. I don't really store much 
in the session, other than just the user ID and whether they are logged in or 
not. I need to handle the user authentication on the CF side and then tell Flex 
the result. All easy enough when the app loads up. 

But I've been trying to make sure that on each CFC request, I am checking that 
they are still logged in and authenticated. I do have some code to ping CF and 
keep the session active, but just in case that isn't working, I need to make 
sure they are still active. I've been playing around with the onCFCRequest and 
got this working for the most part. If their session had timed out, it will 
just re-authenticate them and make sure they're still an active user before 
passing off the request to the CFC. Works great up to this point. 

The problem I'm having is that if they aren't logged in, or if an error is 
thrown inside a CFC and I have the event handler rethrow it, it's not throwing 
it to Flex correctly. Instead of the error type of FaultEvent that Flex 
accepts, it's throwing Server.Processing and instead of the normal error 
details, I always get one that says An exception occurred while invoking an 
event handler method from Application.cfc. The method name is: OnCfcRequest. 
The actual FaultEvent and details that I *should* be getting are buried further 
down inside the fault that Flex is getting (in extendedData.rootcause). So I'm 
not able to do any custom error handling in Flex or show the user the 
Flex-based login failed message. The fault handling worked fine before I 
added the onCFCRequest, so seems to be a bug when you use this. 

Anyone else played with this new event handler method much yet with Flex and 
find a solution for this? Or is there a better way of syncing sessions between 
Flex and ColdFusion that I can look at instead? I'm just not sure of a good way 
for Flex to know if the user is still logged in without running a separate 
authentication check before every service call which seems kind of kludgy. 


-- Mary Jo




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343060
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Flex and CF Sessions (sort of)

2011-03-15 Thread Jeffrey Battershall

The way I've done this in the past was to store the credentials on the flex
client and re-authenticate the user with these using the CFLOGIN framework.
 This way the responsibility for continuing the session is on the flex side
of things.  This works with the RemoteObject.setRemoteCredentials().
 Unfortunately you end up (unless someone else has a better idea) of doing
the re-authentication in Application.cfc. But it does work.  This way the
app can stay up and running well beyond the session timeout.  If you want an
inactivity timeout there are ways  to handle that in Flex.

On Tue, Mar 15, 2011 at 5:03 PM, Mary Jo Sminkey mary...@cfwebstore.comwrote:


 Okay, so we have a flex application running on top of ColdFusion. Basically
 going through CFCs as web services for whatever it needs. But I'm having a
 hard time coming up with the best way to handle sessions. I don't really
 store much in the session, other than just the user ID and whether they are
 logged in or not. I need to handle the user authentication on the CF side
 and then tell Flex the result. All easy enough when the app loads up.

 But I've been trying to make sure that on each CFC request, I am checking
 that they are still logged in and authenticated. I do have some code to ping
 CF and keep the session active, but just in case that isn't working, I need
 to make sure they are still active. I've been playing around with the
 onCFCRequest and got this working for the most part. If their session had
 timed out, it will just re-authenticate them and make sure they're still an
 active user before passing off the request to the CFC. Works great up to
 this point.

 The problem I'm having is that if they aren't logged in, or if an error is
 thrown inside a CFC and I have the event handler rethrow it, it's not
 throwing it to Flex correctly. Instead of the error type of FaultEvent
 that Flex accepts, it's throwing Server.Processing and instead of the
 normal error details, I always get one that says An exception occurred
 while invoking an event handler method from Application.cfc. The method name
 is: OnCfcRequest. The actual FaultEvent and details that I *should* be
 getting are buried further down inside the fault that Flex is getting (in
 extendedData.rootcause). So I'm not able to do any custom error handling in
 Flex or show the user the Flex-based login failed message. The fault
 handling worked fine before I added the onCFCRequest, so seems to be a bug
 when you use this.

 Anyone else played with this new event handler method much yet with Flex
 and find a solution for this? Or is there a better way of syncing sessions
 between Flex and ColdFusion that I can look at instead? I'm just not sure of
 a good way for Flex to know if the user is still logged in without running a
 separate authentication check before every service call which seems kind of
 kludgy.


 -- Mary Jo




 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343061
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Handling a VO parsed from Flex to CF

2008-10-07 Thread Simon Bailey
Hi Tom,

Ok I sussed it, I have discovered that  
arguments.aRecord.course_results[i] was not actually passing the  
Object, to be honest I have no idea what it was passing but whatever  
it was passing it was wrong.  After some further debugging and dumping  
I have now found that the Object is referenced and passed using: i.

So the revised code is:

cfloop array=#arguments.aRecord.course_results# index=i

cfscript
 updateAllResults(i);
 /cfscript

  /cfloop

cffunction name=updateAllResults returntype=Boolean  
access=public

 cfargument name=aResult type=ResultVO



Thanks all,

Simon


On 7 Oct 2008, at 13:02, Tom Chiverton wrote:

On Tuesday 07 Oct 2008, Simon Bailey wrote:
 Unable to invoke CFC - The value coldfusion.runtime.TemplateProxy
 cannot be converted to a number.

If you CFDUMP or debug just before the loop, what is the value
of 'i', 'arguments.aRecord.course_results'
and 'arguments.aRecord.course_results[i]' ?

-- 
Tom Chiverton



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313532
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Handling a VO parsed from Flex to CF

2008-10-07 Thread Tom Chiverton
On Tuesday 07 Oct 2008, Simon Bailey wrote:
 Unable to invoke CFC - The value coldfusion.runtime.TemplateProxy
 cannot be converted to a number.

If you CFDUMP or debug just before the loop, what is the value 
of 'i', 'arguments.aRecord.course_results' 
and 'arguments.aRecord.course_results[i]' ?

-- 
Tom Chiverton
Helping to challengingly syndicate efficient granular e-commerce





This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313529
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Handling a VO parsed from Flex to CF

2008-10-07 Thread Simon Bailey
Unable to invoke CFC - The value coldfusion.runtime.TemplateProxy  
cannot be converted to a number.

However I am 100% that all the passed elements are of correct data  
types?

Is this throwing the error up think i.e. aRecord is a VO and  
course_results is the array of VO's?

#arguments.aRecord.course_results[i]

Simon

On 7 Oct 2008, at 00:11, Brian Kotek wrote:

Well are you getting an error message? You can use Firebug or Charles  
to see
the server's response to the AMF request. You can also check the server
logs, or even add a try catch and save the error to a text file or PDF  
so
that you can see it.

On Mon, Oct 6, 2008 at 7:04 PM, Simon Bailey [EMAIL PROTECTED] wrote:

 Hey guys thanks for that,

 @brian I tried your suggestion to no avail:

 cfloop array=#arguments.aRecord.course_results# index=i

cfquery name=qResult datasource=#dsn#

 UPDATE c_results

SETrating =
 #arguments.aRecord.course_results[i].rating#,
comment=
 '#arguments.aRecord.course_results[i].comment#'

WHERE  result_id =
 #arguments.aRecord.course_results[i].result_id#

/cfquery

/cfloop

 Stripped out the datum struct also to try and simplify matter.  I have
 debugged flex and I know the params are fine being passed in? Anything
 glaringly obvious here?

 Course results is the array, rating is a number, and comment is a
 string.

 Cheers,

 Simon

 On 6 Oct 2008, at 19:13, Brian Kotek wrote:

 Like I said, you can enable this in the JDBC connection string. It is
 simply
 off by default due to the security ramifications of allowing multiple
 statements by default.

 On Mon, Oct 6, 2008 at 1:58 PM, Justin Scott [EMAIL PROTECTED]
 wrote:

 Brian Kotek wrote:
 Well it definitely doesn't in MySQL but obviously YMMV depending on
 platform.

 Well, I can't help it that MySQL is an inferior platform. ;)

 /me runs away in a zig-zag pattern while ducking and covering his
 head.


 --
 Justin Scott, http://www.tlson.com/










~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313527
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Handling a VO parsed from Flex to CF

2008-10-07 Thread Paul Kukiel
This helps me alot when debugging cfc from a Flex app

At the top of the method being called.

cfmail to=me from=me subject=arguments type=html
  cfdump var=#arguments# /
cfmail

Paul.



-Original Message-
From: Simon Bailey [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 7 October 2008 10:41 PM
To: cf-talk
Subject: Re: Handling a VO parsed from Flex to CF

Unable to invoke CFC - The value coldfusion.runtime.TemplateProxy  
cannot be converted to a number.

However I am 100% that all the passed elements are of correct data  
types?

Is this throwing the error up think i.e. aRecord is a VO and  
course_results is the array of VO's?

#arguments.aRecord.course_results[i]

Simon

On 7 Oct 2008, at 00:11, Brian Kotek wrote:

Well are you getting an error message? You can use Firebug or Charles  
to see
the server's response to the AMF request. You can also check the server
logs, or even add a try catch and save the error to a text file or PDF  
so
that you can see it.

On Mon, Oct 6, 2008 at 7:04 PM, Simon Bailey [EMAIL PROTECTED] wrote:

 Hey guys thanks for that,

 @brian I tried your suggestion to no avail:

 cfloop array=#arguments.aRecord.course_results# index=i

cfquery name=qResult datasource=#dsn#

 UPDATE c_results

SETrating =
 #arguments.aRecord.course_results[i].rating#,
comment=
 '#arguments.aRecord.course_results[i].comment#'

WHERE  result_id =
 #arguments.aRecord.course_results[i].result_id#

/cfquery

/cfloop

 Stripped out the datum struct also to try and simplify matter.  I have
 debugged flex and I know the params are fine being passed in? Anything
 glaringly obvious here?

 Course results is the array, rating is a number, and comment is a
 string.

 Cheers,

 Simon

 On 6 Oct 2008, at 19:13, Brian Kotek wrote:

 Like I said, you can enable this in the JDBC connection string. It is
 simply
 off by default due to the security ramifications of allowing multiple
 statements by default.

 On Mon, Oct 6, 2008 at 1:58 PM, Justin Scott [EMAIL PROTECTED]
 wrote:

 Brian Kotek wrote:
 Well it definitely doesn't in MySQL but obviously YMMV depending on
 platform.

 Well, I can't help it that MySQL is an inferior platform. ;)

 /me runs away in a zig-zag pattern while ducking and covering his
 head.


 --
 Justin Scott, http://www.tlson.com/












~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313580
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Handling a VO parsed from Flex to CF

2008-10-07 Thread Paul Kukiel
This helps me alot when debugging cfc from a Flex app

At the top of the method being called.

cfmail to=me from=me subject=arguments type=html
  cfdump var=#arguments# /
cfmail

Paul.

-Original Message-
From: Simon Bailey [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, 7 October 2008 10:41 PM
To: cf-talk
Subject: Re: Handling a VO parsed from Flex to CF

Unable to invoke CFC - The value coldfusion.runtime.TemplateProxy  
cannot be converted to a number.

However I am 100% that all the passed elements are of correct data  
types?

Is this throwing the error up think i.e. aRecord is a VO and  
course_results is the array of VO's?

#arguments.aRecord.course_results[i]

Simon

On 7 Oct 2008, at 00:11, Brian Kotek wrote:


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313582
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Handling a VO parsed from Flex to CF

2008-10-07 Thread Brian Kotek
I just use Charles (I paid for it but the free version works just as well
with some nag messages). Won't work with AIR (since it isn't browser based)
but works great with Flex.

On Tue, Oct 7, 2008 at 8:31 PM, Paul Kukiel [EMAIL PROTECTED] wrote:

 This helps me alot when debugging cfc from a Flex app

 At the top of the method being called.

 cfmail to=me from=me subject=arguments type=html
  cfdump var=#arguments# /
 cfmail

 Paul.

 -Original Message-
 From: Simon Bailey [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 7 October 2008 10:41 PM
 To: cf-talk
 Subject: Re: Handling a VO parsed from Flex to CF

 Unable to invoke CFC - The value coldfusion.runtime.TemplateProxy
 cannot be converted to a number.

 However I am 100% that all the passed elements are of correct data
 types?

 Is this throwing the error up think i.e. aRecord is a VO and
 course_results is the array of VO's?

 #arguments.aRecord.course_results[i]

 Simon

 On 7 Oct 2008, at 00:11, Brian Kotek wrote:


 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313587
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Handling a VO parsed from Flex to CF

2008-10-06 Thread Simon Bailey
Hi all,

I have a relatively straight forward question I was wondering if  
people may shed some light on.  I am passing a value object from Flex  
to CF which has a course_id, course_name and an Array of values.  In  
my method in my cfc I would like to update one mysql table with the  
course_id + course_name and another table with the array contents.

Any suggestions?

Cheers,

Simon

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313448
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Handling a VO parsed from Flex to CF

2008-10-06 Thread Tom Chiverton
On Monday 06 Oct 2008, Simon Bailey wrote:
 I have a relatively straight forward question I was wondering if
 people may shed some light on.  I am passing a value object from Flex
 to CF which has a course_id, course_name and an Array of values.  In
 my method in my cfc I would like to update one mysql table with the
 course_id + course_name and another table with the array contents.

Err, right ?
And ?
cfquery, cfloop, cfquery ?

-- 
Tom Chiverton
Helping to interactively establish six-generation eye-catching B2B clusters





This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313456
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Handling a VO parsed from Flex to CF

2008-10-06 Thread Simon Bailey
Ok hands up I sounded like a dumb a$$.  Its the loop query aspect I  
had an issue with and thought I would test the water if I was on the  
right logic from the get go before I questioned the below code as it  
is failing somehow:

cfquery name=qResult datasource=#dsn#

 cfloop  
array=#arguments.aRecord.course_results# index=i

 cfset datum = structNew()
 cfset datum =  
arguments.aRecord.course_results[i]

 UPDATE c_results

 SETrating =  #datum.rating#,
 comment= '#datum.comment#'

 WHERE  course_id =  #datum.course_id#

 /cfloop

 /cfquery

On 6 Oct 2008, at 15:44, Tom Chiverton wrote:

On Monday 06 Oct 2008, Simon Bailey wrote:
 I have a relatively straight forward question I was wondering if
 people may shed some light on.  I am passing a value object from Flex
 to CF which has a course_id, course_name and an Array of values.  In
 my method in my cfc I would like to update one mysql table with the
 course_id + course_name and another table with the array contents.

Err, right ?
And ?
cfquery, cfloop, cfquery ?

-- 
Tom Chiverton
Helping to interactively establish six-generation eye-catching B2B  
clusters





This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in  
England and Wales under registered number OC307980 whose registered  
office address is at Halliwells LLP, 3 Hardman Square, Spinningfields,  
Manchester, M3 3EB.  A list of members is available for inspection at  
the registered office. Any reference to a partner in relation to  
Halliwells LLP means a member of Halliwells LLP.  Regulated by The  
Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above  
and may be confidential or legally privileged.  If you are not the  
addressee you must not read it and must not use any information  
contained in nor copy it nor inform any person other than Halliwells  
LLP or the addressee of its existence or contents.  If you have  
received this email in error please delete it and notify Halliwells  
LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313461
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Handling a VO parsed from Flex to CF

2008-10-06 Thread Brian Kotek
For starters the CF drivers won't let you attempt to execute multiple
statements in a single cfquery like that (though I believe this can be
changed with connection string arguments). Try moving the loop outside of
the cfquery tags so that each query runs within a single cfquery tag.

On Mon, Oct 6, 2008 at 11:12 AM, Simon Bailey [EMAIL PROTECTED] wrote:

 Ok hands up I sounded like a dumb a$$.  Its the loop query aspect I
 had an issue with and thought I would test the water if I was on the
 right logic from the get go before I questioned the below code as it
 is failing somehow:

 cfquery name=qResult datasource=#dsn#

 cfloop
 array=#arguments.aRecord.course_results# index=i

 cfset datum = structNew()
 cfset datum =
 arguments.aRecord.course_results[i]

 UPDATE c_results

 SETrating =
  #datum.rating#,
 comment= '#datum.comment#'

 WHERE  course_id =  #datum.course_id#

 /cfloop

 /cfquery

 On 6 Oct 2008, at 15:44, Tom Chiverton wrote:

 On Monday 06 Oct 2008, Simon Bailey wrote:
  I have a relatively straight forward question I was wondering if
  people may shed some light on.  I am passing a value object from Flex
  to CF which has a course_id, course_name and an Array of values.  In
  my method in my cfc I would like to update one mysql table with the
  course_id + course_name and another table with the array contents.

 Err, right ?
 And ?
 cfquery, cfloop, cfquery ?

 --
 Tom Chiverton
 Helping to interactively establish six-generation eye-catching B2B
 clusters



 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in
 England and Wales under registered number OC307980 whose registered
 office address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
 Manchester, M3 3EB.  A list of members is available for inspection at
 the registered office. Any reference to a partner in relation to
 Halliwells LLP means a member of Halliwells LLP.  Regulated by The
 Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above
 and may be confidential or legally privileged.  If you are not the
 addressee you must not read it and must not use any information
 contained in nor copy it nor inform any person other than Halliwells
 LLP or the addressee of its existence or contents.  If you have
 received this email in error please delete it and notify Halliwells
 LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.com.



 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313465
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Handling a VO parsed from Flex to CF

2008-10-06 Thread Justin Scott
 For starters the CF drivers won't let you attempt to execute multiple
 statements in a single cfquery like that (though I believe this can be
 changed with connection string arguments). Try moving the loop outside of
 the cfquery tags so that each query runs within a single cfquery tag.

Sure it will, as long as the statements are delimited properly.  In the 
case of SQL Server, you can run multiple insert/update statements 
separating them with a semicolon.  If I remember correctly, you are only 
limited to a single SELECT result set being returned unless you're 
calling a stored procedure and have defined result sets.

For example, the following query works fine:

cfquery datasource=ds name=getNewID
   INSERT INTO table VALUES ('some record');
   SELECT @@IDENTITY AS newID
/cfquery

cfoutput#getNewID.newID#/cfoutput


-- 
Justin Scott, http://www.tlson.com/


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313466
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Handling a VO parsed from Flex to CF

2008-10-06 Thread Brian Kotek
Well it definitely doesn't in MySQL but obviously YMMV depending on
platform.
On Mon, Oct 6, 2008 at 11:49 AM, Justin Scott [EMAIL PROTECTED]wrote:

  For starters the CF drivers won't let you attempt to execute multiple
  statements in a single cfquery like that (though I believe this can be
  changed with connection string arguments). Try moving the loop outside of
  the cfquery tags so that each query runs within a single cfquery tag.

 Sure it will, as long as the statements are delimited properly.  In the
 case of SQL Server, you can run multiple insert/update statements
 separating them with a semicolon.  If I remember correctly, you are only
 limited to a single SELECT result set being returned unless you're
 calling a stored procedure and have defined result sets.

 For example, the following query works fine:

 cfquery datasource=ds name=getNewID
   INSERT INTO table VALUES ('some record');
   SELECT @@IDENTITY AS newID
 /cfquery

 cfoutput#getNewID.newID#/cfoutput


 --
 Justin Scott, http://www.tlson.com/


 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313480
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Handling a VO parsed from Flex to CF

2008-10-06 Thread Justin Scott
Brian Kotek wrote:
 Well it definitely doesn't in MySQL but obviously YMMV depending on
 platform.

Well, I can't help it that MySQL is an inferior platform. ;)

/me runs away in a zig-zag pattern while ducking and covering his head.


-- 
Justin Scott, http://www.tlson.com/


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313481
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Handling a VO parsed from Flex to CF

2008-10-06 Thread Brian Kotek
Like I said, you can enable this in the JDBC connection string. It is simply
off by default due to the security ramifications of allowing multiple
statements by default.

On Mon, Oct 6, 2008 at 1:58 PM, Justin Scott [EMAIL PROTECTED] wrote:

 Brian Kotek wrote:
  Well it definitely doesn't in MySQL but obviously YMMV depending on
  platform.

 Well, I can't help it that MySQL is an inferior platform. ;)

 /me runs away in a zig-zag pattern while ducking and covering his head.


 --
 Justin Scott, http://www.tlson.com/


 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313482
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Handling a VO parsed from Flex to CF

2008-10-06 Thread Simon Bailey
Hey guys thanks for that,

@brian I tried your suggestion to no avail:

cfloop array=#arguments.aRecord.course_results# index=i

 cfquery name=qResult datasource=#dsn#

 UPDATE c_results

 SETrating =   
#arguments.aRecord.course_results[i].rating#,
 comment=  
'#arguments.aRecord.course_results[i].comment#'

 WHERE  result_id =   
#arguments.aRecord.course_results[i].result_id#

 /cfquery

 /cfloop

Stripped out the datum struct also to try and simplify matter.  I have  
debugged flex and I know the params are fine being passed in? Anything  
glaringly obvious here?

Course results is the array, rating is a number, and comment is a  
string.

Cheers,

Simon

On 6 Oct 2008, at 19:13, Brian Kotek wrote:

Like I said, you can enable this in the JDBC connection string. It is  
simply
off by default due to the security ramifications of allowing multiple
statements by default.

On Mon, Oct 6, 2008 at 1:58 PM, Justin Scott [EMAIL PROTECTED]  
wrote:

 Brian Kotek wrote:
 Well it definitely doesn't in MySQL but obviously YMMV depending on
 platform.

 Well, I can't help it that MySQL is an inferior platform. ;)

 /me runs away in a zig-zag pattern while ducking and covering his  
 head.


 --
 Justin Scott, http://www.tlson.com/






~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313498
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Handling a VO parsed from Flex to CF

2008-10-06 Thread Brian Kotek
Well are you getting an error message? You can use Firebug or Charles to see
the server's response to the AMF request. You can also check the server
logs, or even add a try catch and save the error to a text file or PDF so
that you can see it.

On Mon, Oct 6, 2008 at 7:04 PM, Simon Bailey [EMAIL PROTECTED] wrote:

 Hey guys thanks for that,

 @brian I tried your suggestion to no avail:

 cfloop array=#arguments.aRecord.course_results# index=i

 cfquery name=qResult datasource=#dsn#

  UPDATE c_results

 SETrating =
 #arguments.aRecord.course_results[i].rating#,
 comment=
 '#arguments.aRecord.course_results[i].comment#'

 WHERE  result_id =
 #arguments.aRecord.course_results[i].result_id#

 /cfquery

 /cfloop

 Stripped out the datum struct also to try and simplify matter.  I have
 debugged flex and I know the params are fine being passed in? Anything
 glaringly obvious here?

 Course results is the array, rating is a number, and comment is a
 string.

 Cheers,

 Simon

 On 6 Oct 2008, at 19:13, Brian Kotek wrote:

 Like I said, you can enable this in the JDBC connection string. It is
 simply
 off by default due to the security ramifications of allowing multiple
 statements by default.

 On Mon, Oct 6, 2008 at 1:58 PM, Justin Scott [EMAIL PROTECTED]
 wrote:

  Brian Kotek wrote:
  Well it definitely doesn't in MySQL but obviously YMMV depending on
  platform.
 
  Well, I can't help it that MySQL is an inferior platform. ;)
 
  /me runs away in a zig-zag pattern while ducking and covering his
  head.
 
 
  --
  Justin Scott, http://www.tlson.com/
 
 
 



 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313499
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Flex to CF using Mapping

2008-01-02 Thread Dan Vega
Dale,
Flash remoting needs to be turned on and you need to have a channel setup in
remoting config. Look at the file below and check out the adobe devnet at
http://www.adobe.com/devnet/flex/flex_cf.html

WEB-INF/flex/remoting-confi.xml

?xml version=1.0 encoding=UTF-8?
service id=remoting-service
class=flex.messaging.services.RemotingService
messageTypes=flex.messaging.messages.RemotingMessage

adapters
adapter-definition id=cf-object class=
coldfusion.flash.messaging.ColdFusionAdapter default=true/
adapter-definition id=java-object class=
flex.messaging.services.remoting.adapters.JavaAdapter/
/adapters

default-channels
channel ref=my-cfamf/
/default-channels

destination id=ColdFusion
channels
channel ref=my-cfamf/
/channels
properties
source*/source
!-- define the resolution rules and access level of the cfc
being invoked --
access
!-- Use the ColdFusion mappings to find CFCs, by default
only CFC files under your webroot can be found. --
use-mappingsfalse/use-mappings
!-- allow public and remote or just remote methods to
be invoked --
method-access-levelremote/method-access-level
/access

property-case
!-- cfc property names --
force-cfc-lowercasefalse/force-cfc-lowercase
!-- Query column names --
force-query-lowercasefalse/force-query-lowercase
!-- struct keys --
force-struct-lowercasefalse/force-struct-lowercase
/property-case
/properties
/destination

/service

On Jan 1, 2008 8:57 PM, Dale Fraser [EMAIL PROTECTED] wrote:

 I have done this before but can't get it to work this time (first time
 with
 CF8).



 I am using Flex to connect to CFC's via mapping. I have enabled mapping
 use
 in the XML and restarted the server but I get this error.



 [RPC Fault faultString=[MessagingError message='Destination 'ColdFusion'
 either does not exist or the destination has no channels defined (and the
 application does not define any default channels.)']
 faultCode=InvokeFailed faultDetail=Couldn't establish a connection to
 'ColdFusion']

 at
 mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invoke
 ()

 [E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.
 as:264]

 at

 mx.rpc.remoting.mxml::Operation/http://www.adobe.com/2006/flex/mx/internal::

 invoke()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\remoting
 \mxml\Operation.as:204]

 at
 mx.rpc.remoting::Operation/send
 ()[E:\dev\flex_3_beta3\sdk\frameworks\project
 s\rpc\src\mx\rpc\remoting\Operation.as:120]

 at Function/http://adobe.com/AS3/2006/builtin::apply()

 at
 mx.rpc.remoting.mxml::Operation/send
 ()[E:\dev\flex_3_beta3\sdk\frameworks\pr
 ojects\rpc\src\mx\rpc\remoting\mxml\Operation.as:177]

 at Function/http://adobe.com/AS3/2006/builtin::apply()

 at

 mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/proxy::

 callProperty()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\Ab
 stractService.as:292]

 at
 DataGrid1/___DataGrid1_Button1_click()[F:\DataGrid1\src\DataGrid1.mxml:17]





 It seems to be asking for a Channel, but I want to using a mapping and not
 define channels.



 Regards

 Dale Fraser



 http://learncf.com







 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

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


Re: Flex to CF using Mapping

2008-01-02 Thread Dan Vega
  Dale,
Flash remoting needs to be turned on and you need to have a channel setup in
remoting config. Look at the file below and check out the adobe devnet at
http://www.adobe.com/devnet/flex/flex_cf.html

*WEB-INF/flex/remoting-config.xml*

   default-channels
   channel ref=my-cfamf/
   /default-channels

   destination id=ColdFusion
   channels
   channel ref=my-cfamf/
   /channels
   properties
   source*/source
   !-- define the resolution rules and access level of the cfc
being invoked --
   access
   !-- Use the ColdFusion mappings to find CFCs, by default
only CFC files under your webroot can be found. --
   use-mappingsfalse/use-mappings
   !-- allow public and remote or just remote methods to
be invoked --
   method-access-levelremote/method-access-level
   /access


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

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


Flex to CF using Mapping

2008-01-01 Thread Dale Fraser
I have done this before but can't get it to work this time (first time with
CF8).

 

I am using Flex to connect to CFC's via mapping. I have enabled mapping use
in the XML and restarted the server but I get this error.

 

[RPC Fault faultString=[MessagingError message='Destination 'ColdFusion'
either does not exist or the destination has no channels defined (and the
application does not define any default channels.)']
faultCode=InvokeFailed faultDetail=Couldn't establish a connection to
'ColdFusion']

 at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invoke()
[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.
as:264]

 at
mx.rpc.remoting.mxml::Operation/http://www.adobe.com/2006/flex/mx/internal::
invoke()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\remoting
\mxml\Operation.as:204]

 at
mx.rpc.remoting::Operation/send()[E:\dev\flex_3_beta3\sdk\frameworks\project
s\rpc\src\mx\rpc\remoting\Operation.as:120]

 at Function/http://adobe.com/AS3/2006/builtin::apply()

 at
mx.rpc.remoting.mxml::Operation/send()[E:\dev\flex_3_beta3\sdk\frameworks\pr
ojects\rpc\src\mx\rpc\remoting\mxml\Operation.as:177]

 at Function/http://adobe.com/AS3/2006/builtin::apply()

 at
mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/proxy::
callProperty()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\Ab
stractService.as:292]

 at
DataGrid1/___DataGrid1_Button1_click()[F:\DataGrid1\src\DataGrid1.mxml:17]

 

 

It seems to be asking for a Channel, but I want to using a mapping and not
define channels.

 

Regards

Dale Fraser

 

http://learncf.com

 

 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

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


Re: Connection Flex to CF Error

2007-07-27 Thread Dan Vega
Tom
Have you checked out this tutorial yet? It helped me out!

http://www.kylehayes.info/blog/index.cfm/2007/4/16/Captivate-Tutorial-Viewing-a-ColdFusion-Query-in-a-Flex-DataGrid


On 7/26/07, Tom Chiverton [EMAIL PROTECTED] wrote:

 On Wednesday 25 Jul 2007, [EMAIL PROTECTED] wrote:
  Everything about my installations are defaults. I'm using the built in
 cf
  server as well.

 Get wireshark/webscarab/servicecapture and check where the AMF packets are
 going.

 --
 Tom Chiverton

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England
 and Wales under registered number OC307980 whose registered office address
 is at St James's Court Brown Street Manchester M2 2JF.  A list of members is
 available for inspection at the registered office. Any reference to a
 partner in relation to Halliwells LLP means a member of Halliwells LLP.
 Regulated by the Law Society.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents.  If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 8008.

 For more information about Halliwells LLP visit www.halliwells.com.


 

~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


Re: Connection Flex to CF Error

2007-07-26 Thread Tom Chiverton
On Wednesday 25 Jul 2007, [EMAIL PROTECTED] wrote:
 Everything about my installations are defaults. I'm using the built in cf
 server as well.

Get wireshark/webscarab/servicecapture and check where the AMF packets are 
going.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


Connection Flex to CF Error

2007-07-25 Thread Bill Betournay
C Fault faultString=[MessagingError message='Unknown destination
'ColdFusion'.'] faultCode=InvokeFailed faultDetail=Couldn't establish a
connection to 'ColdFusion']
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invoke()
at
mx.rpc.remoting.mxml::Operation/http://www.adobe.com/2006/flex/mx/internal::
invoke()
at mx.rpc.remoting::Operation/send()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.rpc.remoting.mxml::Operation/send()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at
mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/proxy::
callProperty()
at productsView::ProductCart/__test_click()

Can anyone tell me what this error usually means??  Obviously it can't
connect to CF but I don't understand why. 

Bill



~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

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


Re: Connection Flex to CF Error

2007-07-25 Thread Tom Chiverton
On Wednesday 25 Jul 2007, [EMAIL PROTECTED] wrote:
 Can anyone tell me what this error usually means??  Obviously it can't
 connect to CF but I don't understand why.

Is CF running ? What is your endpoint URL ?

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


RE: Connection Flex to CF Error

2007-07-25 Thread Bill Betournay
Hi Tom

Yes, it's running. An app I've been working on was running fine until this
morning when I started getting this error. Here's the code for a simple CF
call.

mx:RemoteObject id=testcfService destination=ColdFusion
source=CW_BuyVouchers.buyonline.flexStore.CFCs.SecureService
mx:method name=loginSuccess result=testResultHandler(event)/
/mx:RemoteObject

[Bindable]
private var thisTest:String = ;

private function testResultHandler(event:ResultEvent):void
{
thisTest = testcfService.loginSuccess.lastResult;
}

mx:Button id=test click=testcfService.loginSuccess()/
mx:Label text={thisTest}/


And the function in the CFC is

cffunction name=loginSuccess access=remote returntype=string
!--- cfset returnValue = mx:Label width=100% text=Welcome
Back   #Client.firstName#  ! styleName=sectionHeader/ / ---
cfreturn Welcome Back!!---#Client.firstName#   ---
/cffunction


Yes, the path to the CFC is correct.

Bill


-Original Message-
From: Tom Chiverton [mailto:[EMAIL PROTECTED] 
Sent: 25 July 2007 06:52
To: CF-Talk
Subject: Re: Connection Flex to CF Error

On Wednesday 25 Jul 2007, [EMAIL PROTECTED] wrote:
 Can anyone tell me what this error usually means??  Obviously it can't
 connect to CF but I don't understand why.

Is CF running ? What is your endpoint URL ?

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and
Wales under registered number OC307980 whose registered office address is at
St James's Court Brown Street Manchester M2 2JF.  A list of members is
available for inspection at the registered office. Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may
be confidential or legally privileged.  If you are not the addressee you
must not read it and must not use any information contained in nor copy it
nor inform any person other than Halliwells LLP or the addressee of its
existence or contents.  If you have received this email in error please
delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.




~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

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


Re: Connection Flex to CF Error

2007-07-25 Thread Tom Chiverton
On Wednesday 25 Jul 2007, [EMAIL PROTECTED] wrote:
 Hi Tom

 Yes, it's running. An app I've been working on was running fine until this
 morning when I started getting this error.

And you can't do a diff against the previous version of the code ? Or check it 
out and check it's not a code gaff ?

 mx:RemoteObject id=testcfService   destination=ColdFusion
   source=CW_BuyVouchers.buyonline.flexStore.CFCs.SecureService
..
 Yes, the path to the CFC is correct.

What's your endpoint config in services-config.xml (or remoting-config.xml in 
CF8) ?
Can you connect to that URL through a web browser / from the command line ?

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


~|
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:284513
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Connection Flex to CF Error

2007-07-25 Thread Bill Betournay
I'm not sure I know what you mean Tom.
I'm running CF8 and the only reference to endpoint is in the
services-config.xml file. This is the it:

!--  CF Based Endpoints --
channel-definition id=my-cfamf
class=mx.messaging.channels.AMFChannel
endpoint
uri=http://{server.name}:{server.port}{context.root}/flex2gateway/;
class=flex.messaging.endpoints.AMFEndpoint/
properties
polling-enabledfalse/polling-enabled
serialization
instantiate-typesfalse/instantiate-types
/serialization
/properties
/channel-definition

channel-definition id=cf-polling-amf
class=mx.messaging.channels.AMFChannel
endpoint
uri=http://{server.name}:{server.port}{context.root}/flex2gateway/cfamfpoll
ing class=flex.messaging.endpoints.AMFEndpoint/
properties
polling-enabledtrue/polling-enabled
polling-interval-seconds8/polling-interval-seconds
serialization
instantiate-typesfalse/instantiate-types
/serialization
/properties
/channel-definition

channel-definition id=my-cfamf-secure
class=mx.messaging.channels.SecureAMFChannel
endpoint
uri=https://{server.name}:{server.port}{context.root}/flex2gateway/cfamfsec
ure class=flex.messaging.endpoints.SecureAMFEndpoint/
properties
polling-enabledfalse/polling-enabled
serialization
instantiate-typesfalse/instantiate-types
/serialization
/properties
/channel-definition

!--  ColdFusion specific RTMP channel --
!--
channel-definition id=cf-rtmp
class=mx.messaging.channels.RTMPChannel
endpoint uri=rtmp://{server.name}:2048
class=flex.messaging.endpoints.RTMPEndpoint/
properties
idle-timeout-minutes20/idle-timeout-minutes
serialization
instantiate-typesfalse/instantiate-types
/serialization
/properties
/channel-definition
--

!--  Java Based Endpoints --
!--
channel-definition id=java-amf
class=mx.messaging.channels.AMFChannel
endpoint
uri=http://{server.name}:{server.port}{context.root}/flex2gateway/amf;
class=flex.messaging.endpoints.AMFEndpoint/
/channel-definition

channel-definition id=java-secure-amf
class=mx.messaging.channels.SecureAMFChannel
endpoint
uri=https://{server.name}:{server.port}{context.root}/flex2gateway/amfsecur
e class=flex.messaging.endpoints.SecureAMFEndpoint/
/channel-definition

channel-definition id=java-polling-amf
class=mx.messaging.channels.AMFChannel
endpoint
uri=http://{server.name}:{server.port}{context.root}/flex2gateway/amfpollin
g class=flex.messaging.endpoints.AMFEndpoint/
properties
polling-enabledtrue/polling-enabled
polling-interval-seconds8/polling-interval-seconds
/properties
/channel-definition

channel-definition id=java-rtmp
class=mx.messaging.channels.RTMPChannel
endpoint uri=rtmp://{server.name}:2036
class=flex.messaging.endpoints.RTMPEndpoint/
properties
idle-timeout-minutes20/idle-timeout-minutes
/properties
/channel-definition
--

channel-definition id=java-http
class=mx.messaging.channels.HTTPChannel
endpoint
uri=http://{server.name}:{server.port}{context.root}/flex2gateway/http;
class=flex.messaging.endpoints.HTTPEndpoint/
/channel-definition

channel-definition id=java-secure-http
class=mx.messaging.channels.SecureHTTPChannel
endpoint
uri=https://{server.name}:{server.port}{context.root}/flex2gateway/httpsecu
re class=flex.messaging.endpoints.SecureHTTPEndpoint/
/channel-definition
/channe



~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

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


Re: Connection Flex to CF Error

2007-07-25 Thread Tom Chiverton
On Wednesday 25 Jul 2007, [EMAIL PROTECTED] wrote:
 I'm running CF8 and the only reference to endpoint is in the
 services­config.xml file. This is the it:

K.

 !­­  CF Based Endpoints ­­
 channel­definition id=my­cfamf
 class=mx.messaging.channels.AMFChannel
 endpoint
 uri=http://{server.name}:{server.port}{context.root}/flex2gateway/;

Is this likly to be correct (your site doesn't go via a proxy or something 
that changes the URL ?

There should be a matching destination called 'coldfusion' further up the 
file ?

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


~|
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:284519
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Connection Flex to CF Error

2007-07-25 Thread Paul Hastings
Tom Chiverton wrote:
 uri=http://{server.name}:{server.port}{context.root}/flex2gateway/;
 
 Is this likly to be correct (your site doesn't go via a proxy or something 
 that changes the URL ?

yes that's the default for cf 7/8's services-config.xml

~|
Check out the new features and enhancements in the
latest product release - download the What's New PDF now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


Re: Connection Flex to CF Error

2007-07-25 Thread Tom Chiverton
On Wednesday 25 Jul 2007, [EMAIL PROTECTED] wrote:
  uri=http://{server.name}:{server.port}{context.root}/flex2gateway/;
  Is this likly to be correct (your site doesn't go via a proxy or
  something that changes the URL ?
 yes that's the default for cf 7/8's services­config.xml

I know it's the default.
Doesn't mean it's correct for how you're using it.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


~|
ColdFusion 8 beta - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

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


RE: Connection Flex to CF Error

2007-07-25 Thread Chad Gray
If you go to the endpoint do you get a blank page?  You should.

IE when I go here: http://demo.dev/flex2gateway/

The last time I played with Flex I put the endpoint in the RemoteObject.  There 
are probably a lot of ways to set it up though.

mx:RemoteObject 
id=roServalent 
destination=ColdFusion 
source=local.careycolor.servalent.login
endpoint=http://demo.dev/flex2gateway/; 
result=letUserIn()

mx:method name=authUser
mx:arguments
login{login.text}/login
pwd{pwd.text}/pwd
/mx:arguments
/mx:method

/mx:RemoteObject

-Original Message-
From: Bill Betournay [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 25, 2007 12:14 PM
To: CF-Talk
Subject: RE: Connection Flex to CF Error

Hi Tom

Yes, it's running. An app I've been working on was running fine until this
morning when I started getting this error. Here's the code for a simple CF
call.

mx:RemoteObject id=testcfService destination=ColdFusion
source=CW_BuyVouchers.buyonline.flexStore.CFCs.SecureService
mx:method name=loginSuccess result=testResultHandler(event)/
/mx:RemoteObject

[Bindable]
private var thisTest:String = ;

private function testResultHandler(event:ResultEvent):void
{
thisTest = testcfService.loginSuccess.lastResult;
}

mx:Button id=test click=testcfService.loginSuccess()/
mx:Label text={thisTest}/


And the function in the CFC is

cffunction name=loginSuccess access=remote returntype=string
!--- cfset returnValue = mx:Label width=100% text=Welcome
Back   #Client.firstName#  ! styleName=sectionHeader/ / ---
cfreturn Welcome Back!!---#Client.firstName#   ---
/cffunction


Yes, the path to the CFC is correct.

Bill


-Original Message-
From: Tom Chiverton [mailto:[EMAIL PROTECTED] 
Sent: 25 July 2007 06:52
To: CF-Talk
Subject: Re: Connection Flex to CF Error

On Wednesday 25 Jul 2007, [EMAIL PROTECTED] wrote:
 Can anyone tell me what this error usually means??  Obviously it can't
 connect to CF but I don't understand why.

Is CF running ? What is your endpoint URL ?

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and
Wales under registered number OC307980 whose registered office address is at
St James's Court Brown Street Manchester M2 2JF.  A list of members is
available for inspection at the registered office. Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may
be confidential or legally privileged.  If you are not the addressee you
must not read it and must not use any information contained in nor copy it
nor inform any person other than Halliwells LLP or the addressee of its
existence or contents.  If you have received this email in error please
delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.






~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finderproductID=1522loc=en_us

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


RE: Connection Flex to CF Error

2007-07-25 Thread Bill Betournay
Everything about my installations are defaults. I'm using the built in cf
server as well.

Bill

-Original Message-
From: Tom Chiverton [mailto:[EMAIL PROTECTED] 
Sent: 25 July 2007 10:10
To: CF-Talk
Subject: Re: Connection Flex to CF Error

On Wednesday 25 Jul 2007, [EMAIL PROTECTED] wrote:
  uri=http://{server.name}:{server.port}{context.root}/flex2gateway/;
  Is this likly to be correct (your site doesn't go via a proxy or
  something that changes the URL ?
 yes that's the default for cf 7/8's services-config.xml

I know it's the default.
Doesn't mean it's correct for how you're using it.

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and
Wales under registered number OC307980 whose registered office address is at
St James's Court Brown Street Manchester M2 2JF.  A list of members is
available for inspection at the registered office. Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may
be confidential or legally privileged.  If you are not the addressee you
must not read it and must not use any information contained in nor copy it
nor inform any person other than Halliwells LLP or the addressee of its
existence or contents.  If you have received this email in error please
delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.




~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

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


Re: Connection Flex to CF Error

2007-07-25 Thread Paul Hastings
Bill Betournay wrote:
 Everything about my installations are defaults. I'm using the built in cf
 server as well.

are your CFCs in a cf mapped dir  did you do a cf re-install lately? maybe 
forgot to set use-mappings to true in remoting-config.xml?

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

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


Re: Connection Flex to CF Error

2007-07-25 Thread Tom Chiverton
On Wednesday 25 Jul 2007, [EMAIL PROTECTED] wrote:
 Everything about my installations are defaults. I'm using the built in cf
 server as well.

On port 8500 or something (i.e. not 80) ? Could a firewall be in the way ?

-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.


~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

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


CFUNITED news: Continuous Testing for Flex and CF, iPod, 8 days to CFUNITED.

2007-06-18 Thread Michael Smith
Michael

Here is the ColdFusion and Fusebox news:

* Only 8 days left until CFUNITED-07! Managers Guide to CFUNITED.
* CFUNITED Europe Call for Speakers OPEN
* Open Source Code Off Results! Winner announced on Friday
* CFUNITED-07 Manager's Guide. Why send your developers to CFUNITED?
* CFMeetup Thur 12:30pm - Patrick Quinn Application Server Analytics
* New CFUNITED podcasts released http://cfunited.com/blog/index.cfm/podcast
  - Rob Gonda: Flex Intensive for ColdFusion Dev
  - Peter Bell: Practical Code Generation by Example
* New Fusebox website due for release at CFUNITED. Got Fusebox? t-shirt.
* Fusebox YouTube video competition ends 6/22/07
* Interview with Kurtis D Leatham on Structures, Arrays, and database
* Interview with Thomas Burleson about on  Continuous Testing with Flex 
and ColdFusion Projects.


After attending CFUnited Express in NYC this Spring, I saw the 
potential of CFUnited 2007. Its a
conference full of information that will get you up to date on all the 
latest and greatest in the
ColdFusion Developers world today. I am not missing any Teratech 
conferences anymore. Frameworks
Conference and CFUnited Express proved that you can get so much more 
knowledge and training from few
days on the conference, versus paying much more attending a class and 
getting much less for the
money. I spoke to CFUnited 2006 attendees who cant stop praising the 
event. There are sessions for
everyone, from developer to the manager. Can't wait for June 27th. 
Thanks! -Elena A. Federal
Reserve Bank NY (CFUNITED/Express NYC attendee)

Other great quotes from attendees about Why people should attend CFUnited
http://cfunited.com/blog/index.cfm/2007/4/30/Survey-Contest-Winner


* Only 8 days left until CFUNITED-07! Hotel info. Managers Guide to 
CFUINTED.

Need help getting your manager to understand why it makes sense to go to 
CFUNITED? Download our
Managers Guide to CFUINTED at http://cfunited.com/go/managers-guide . 
Takes less than 5 minutes to read.

* CFUNITED Europe Call for Speakers OPEN

We've announced the CFUnited Europe Call for Speakers!
http://callforspeakers.cfconf.org/?event=suggesteventId=165

Date: March 12-13th 2008
Location: Novotel London West, UK
To celebrate the 10 year anniversary of CFUnited we're going to Europe 
to share the CFUnited
Experience with all the ColdFusion developers overseas.
http://europe.cfunited.com/


* CFUNITED-07 pre-conference classes

Registration and more info at http://cfunited.com/go/classes

Monday 6/25
CU221   Rob Gonda   Flex Intensive for ColdFusion Developers
CU222   Ajay Sathuluri  CF Server Administration for Security and More
CU223   Oguz Demirkapi  Multi Language Applications in CF in Theory and 
Practice
CU224   Nate Nelson Advanced Database

Tuesday 6/26
CU225   Peter Bell  Practical Code Generation: By Example
CU226   Simon Horwith   Architecting and Optimizing CF Applications for 
Performance and Scalability
CU227   John Paul Ashenfelter   Best Practice Bootcamp for Developers
CU228   Charlie Arehart New in CFMX 6 and 7: What Did You Miss?


* Open Source Code Off Results

Go to the CFUnited Wiki and check out the Open Source Contest Entries. 
We had some great projects
submitted and it definitely shows off our talented community! Winners 
will be announced on Friday
June 15th by the Advisory Board. If you have your own open source 
project you'd like to share,
please list it on the CFUnited wiki!

http://wiki.cfunited.com/index.cfm/Open_Source_Contest_Entries


* CFUNITED-07 Manager's Guide

Why send your developers to CFUnited? This question and more are 
answered in this Manager's Guide
to how CFUnited benefits your company and how being an attendee 
contributes largely to the CF
Community.

http://cfunited.com/go/managers-guide


* ColdFusion is Alive - partial survey results

Some of you may have read the Computer World article listing ColdFusion 
as one of 10 dead languages
and Ben Forta's response, Ray's opinions and Adam's rant on this. 
Obviously ColdFusion is not dying
but how do you convice your clients that CF is the right solution? I am 
giving a talk at CFUNITED-07
on Selling ColdFusion to Clients that will cover what strategies to 
use for selling ColdFusion to
clients and how to deal with common objections that clients have. I also 
have partial results of the
survey on your experience with what arguments have been working on the 
street.
Read more and see the survey results at:

http://teratech.com/blog/index.cfm/2007/5/30/ColdFusion-is-Alive-Partial-survey-results
(If you haven't taken the survey yet then please do! There is a link 
from the above page to it)





* How to get your boss to send you to CFUNITED
Having trouble getting authorization to attend CFUNITED - check out 
these top reasons for coming!

http://cfunited.com/blog/index.cfm/2007/5/15/Top-Ten-Reasons-to-Attend


* User Group Manager Meeting Tues 6/26/07 -  http://ugmm.cfunited.com/



* CFMeetup Thur 12:30pm - Rob Gonda Flex 

CFLOGIN and Flex 2 CF Wizard

2006-09-14 Thread David Panzarella
Hi all,
Does anyone have a working example of auth.cfc (the file that gets
generated when using the CF Wizard? I thought the code below would be
sufficient but its still not working. Any suggestions?

CODE:

AUTH.CFC:
cffunction name=login access=remote returntype=boolean
cfargument name=user required=yes /
cfargument name=password required=yes /

cfset var qRead=

cfquery name=qRead datasource=tiomkin
SELECT UserName, UserPassword
FROM USERS
WHERE UserName = cfqueryparam cfsqltype=CF_SQL_VARCHAR
value=#arguments.user# /
AND UserPassword = cfqueryparam cfsqltype=CF_SQL_VARCHAR
value=#arguments.password# /
/cfquery

cfif qRead.recordcount gt 0
cfreturn true
cfelse
cfreturn false
/cfif
/cffunction

LOGIN.MXML:

?xml version=1.0 encoding=utf-8?

mx:Form xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=*
width=100% height=100% creationComplete=initApp()

mx:Metadata
[Event(forgotpassword)]
[Event(loginSuccessful)]
/mx:Metadata

mx:Script
![CDATA[
import mx.events.ValidationResultEvent;
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import mx.utils.ObjectUtil;
import mx.controls.Alert;


private var lso:SharedObject;

private function initApp():void
{
this.lso = SharedObject.getLocal(auth);

if( this.lso.data['email'] != null )
{
this.user.text = this.lso.data['email'];
this.rememberLogin.selected = true;
}
if( this.lso.data['password'] != null )
{
this.password.text = this.lso.data['password'];
this.rememberLogin.selected = true;
}
}

private function isValid():Boolean
{
var pswdValidResult:ValidationResultEvent =
this.pswdValidate.validate(this.password.text);

if (pswdValidResult.type==ValidationResultEvent.VALID)
{
return true;
}
else
{
return false;
}

}


private function authenticateUser():void
{
if( isValid() )
{
authManager.login( this.user.text, this.password.text
);
}
}

private function errorMessage(msg:String):void
{
//Alert.show( ObjectUtil.toString(event.message) );
this.errorMsg.text = msg;
this.errorMsg.height = 15;
this.errorMsg.visible = true;
}

private function serverFault(event:FaultEvent):void
{
errorMessage(event.message['message']);
}



private function login_result(event:ResultEvent):void
{
// login successful, remember the user.
if( Boolean(event.result) )
{
if( this.rememberLogin.selected )
{
this.lso.data['user'] = this.user.text;
this.lso.data['password'] = this.password.text;
}
else
{
this.lso.data['user'] = null;
this.lso.data['password'] = null;
}

this.dispatchEvent( new Event('loginSuccessful') );
}
else
{
// login didn't work. show message
errorMessage(Login unsuccessful);
}
}
]]
/mx:Script

mx:RemoteObject
id=authManager
destination=ColdFusion

source=Tiomkin.Tiomkin_Admin.components.cfgenerated.managers.Auth
showBusyCursor=true
mx:method name=login result=login_result(event)
fault=serverFault(event) /
/mx:RemoteObject

mx:StringValidator
id=pswdValidate
source={this.password}
property=text
required=true /

mx:Text id=errorMsg visible=true
color=red width=100% height=0 /


mx:FormItem width=100% label=UserName required=true
mx:TextInput id=user
width=175/
/mx:FormItem
mx:FormItem width=100% label=Password required=true
mx:TextInput id=password
displayAsPassword=true
width=175/
/mx:FormItem
mx:FormItem
mx:CheckBox id=rememberLogin
label=Remember Login
selected=false /
/mx:FormItem

mx:VBox width=100% horizontalAlign=right
mx:Button label=Login click=authenticateUser();/
mx:LinkButton label=Forgot Password?
click=this.dispatchEvent(new Event('forgotpassword'));
fontStyle=italic width=150 textAlign=right/
/mx:VBox

/mx:Form

Thanks in advance,
David


~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

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


Flex and CF

2004-08-23 Thread Marco Antonio C. Santos
Hi

looking by the CF developer view what I can do with Flex resources?
How to integrate it with CF? When Flex can help me?

Thanx
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]
 [Donations and Support]