[flexcoders] Re: Mapping Fails, CFCs
I appreciate this and will explore it should I not find another method. It is my feeling that a workaround is not needed for this because CF and Flex 2 play nice with eachother by default. --- In flexcoders@yahoogroups.com, EECOLOR <[EMAIL PROTECTED]> wrote: > > Hello, > > i have no experience with mappings. You could however put the files in a > directory and point a Custom Tag Root to that directory. In ColdFusion > Custom tag roots act as classpaths. > > > Greetz Erik > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Mapping Fails, CFCs
The code actually works as expected as long as I am calling from the webroot (ex. myApp.cfc.SomeComponent) -However, I have posted it below for your review. As far as the two XML files are concerned, I do not have the file flex-enterprise-services.xml on my local machine. The only file I have is services-config.xml Keep in mind that on my machine locally, I am running the developer edition of CF7. Thanks you all for helping me to try and figure this out. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Mapping Fails, CFCs
Sorry, I may not have been clear enough. But the issue is not mapping VOs here. It is CF throwing an error saying it cannot find the component. (The single quote is an artifact. The original code does not have it) Unfortunately, no it does not. I only put the {} around it from a previous try. This code is the most updated: This is weird. I can't figure out why I cannot get it to find the CFC. The exact error message is: Could not find the Coldfusion Component deskH93236.LenderServices. Please check that the given name is correct and the component exists. I have done this, of course, by running a on the CF server from a normal CFM page to make sure the mapping was right. *Hm. Scratches head* -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Mapping Fails, CFCs
Hi all, Sorry to be a pain, but I am still struggling with this problem in a big way. I still cannot get my mappings to work from Flex 2. I really need to work this out or I am going to be forced to change the paths to every file (AS Classes Remote Alias, CFCs, CFC Calls, etc) each time I want to test on the production server and then change them back when I want to go back to my development machine. Can anyone suggest something? Again, the mappings work fine when called from a normal CFM template. They fail in Flex returning the "Coludn't find component..." error. Thank so much if anyone could help. -LIR -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Mapping Fails, CFCs
I work with a shared host, so I wonder if that is possible. But I would like to give it a go. Could you provide me a simple example? Thanks -LIR -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Mapping Fails, CFCs
On 9/28/06, lostinrecursion <[EMAIL PROTECTED]> wrote: > I appreciate this and will explore it should I not find another > method. It is my feeling that a workaround is not needed for this > because CF and Flex 2 play nice with eachother by default. FB pointing at the right config file on your cf server? i also see use-mappings config in 2 files in the flex dir on my cf server, services-config.xml & flex-enterprise-services.xml. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Mapping Fails, CFCs
In helping other developers with this the general rule I have found is this. When you have enabled the use-mappings in the config file for cf, you can then access your cfc's from flex using mappings.This works great for any objects that you would use as the source of your RemoteObject call. However once you are using mappings the path for the VO's you return can not be translated correctly. So they never get translated to the correct AS object counterpart. We have found that as soon as you drop those cfc in a folder in the webroot everything works fine. I am not sure if this is a bug, or if there is something I am missing about the setup. I have a feeling that the mapping adds something to the path internally so the path doesnt match our alias anymore.Anywah, just my thoughts on it. Good Luck. simeonOn 9/28/06, lostinrecursion <[EMAIL PROTECTED]> wrote: The code actually works as expected as long as I am calling from the webroot (ex. myApp.cfc.SomeComponent) -However, I have posted it below for your review. destination="ColdFusion" result="event.token.resultHandler(event)" fault="event.token.faultHandler(event)" source="{myMapping.myService'}" showBusyCursor="true" /> As far as the two XML files are concerned, I do not have the file flex-enterprise-services.xml on my local machine. The only file I have is services-config.xml Keep in mind that on my machine locally, I am running the developer edition of CF7. Thanks you all for helping me to try and figure this out. __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: Mapping Fails, CFCs
On 9/28/06, lostinrecursion <[EMAIL PROTECTED]> wrote: The code actually works as expected as long as I am calling from thewebroot (ex. myApp.cfc.SomeComponent) -However, I have posted itbelow for your review. destination="ColdFusion" result="event.token.resultHandler(event)" fault="event.token.faultHandler(event)" source="{myMapping.myService'}" showBusyCursor="true" />Does it work if you hardcode the source attribute? FYI, there is a extraneous single quote in there.DK As far as the two XML files are concerned, I do not have the fileflex-enterprise-services.xml on my local machine. The only file I haveis services-config.xmlKeep in mind that on my machine locally, I am running the developer edition of CF7.Thanks you all for helping me to try and figure this out.--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links <*> To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/<*> Your email settings:Individual Email | Traditional <*> To change settings online go to:http://groups.yahoo.com/group/flexcoders/join(Yahoo! ID required)<*> To change settings via email: mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to:[EMAIL PROTECTED]<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/-- Douglas Knudsenhttp://www.cubicleman.com this is my signature, like it? __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: Mapping Fails, CFCs
Would the solution not be to use a customtag root to place your common cfc's in? This way you wont have any translation problems in the future as some1 pointed out in this request. Do you see anything negative in using custom tag paths? Greetz Erik __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: Mapping Fails, CFCs
Custom tag roots work like classpaths for CFC's, create a custom tag root via the administrator and place common cfc's inthere. Another possible solution for you might be a local proxy cfc. All calls to the backend go through this CFC. We use a proxy CFC for various reasons: - authentication - formatting of results - caching of called cfc's This proxy cfc has a method that allows you to call the component that was given as an argument, it will do a createObject and call the method requested. Greetz Erik __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___