Re: Redirect in Application.cfc Pseudo Contructor Area: Bad Form?
Being that the https is required on every request, having this at the top of your constructor makes sense, to prevent processing of the other functions should the request be unsecure. I would put the check and redirect in a custom function, and call the function in the beginning of your constructor. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com On 6/17/2009 10:02 AM, Dawson, Michael wrote: One of the first things I want to do, on each request, is to ensure that each request/response is secured. Therefore, if cgi.https is off, I will redirect the browser to the secured location. My plan was to put this code in the pseudo-constructor area (not in any particular function body): cfif len(trim(cgi.query_string)) gt 0 cfset queryString=?#cgi.query_string# cfelse cfset queryString= /cfif cfif cgi.https is off cflocation url=https://#cgi.server_name##cgi.path_info##queryString#; addtoken=no statuscode=301 /cfif The code works fine, but I'm wondering if it is the wrong place to put this code. Would it be more-semantic if it were located in the onRequestStart function? On this particular site, every page will need to be secured. Michael Dawson Manager of Web Applications Office of Technology Services University of Evansville Each time you send an email message with a background pattern or loud background color, an endangered tree dies. Please help us save a tree. Just say NO to email backgrounds. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323578 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: scoping
#foo.goo# is acceptable. I, personally, explicitly scope every variable: cfset VARIABLES.foo = APPLICATION.foo.moo() / #VARIABLES.foo.goo# We also have an extremely high traffic, high utilization application, so explicitly scoping every var helps us keep memory in check (plus makes maintaining the code easier). Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com On 6/15/2009 9:22 AM, Chad Gray wrote: Say you defined a local variable like this on a CFM page and it returns a query object: cfset foo = application.foo.moo() Should I write out my variables like this when I out the query object? #variables.foo.goo# Or is this sufficient? #foo.goo# ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323504 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Cflayout CfMenu Problem
No, if you are placing the cfmenu inside a border region (like north) then the styles won't allow the submenu items to properly flow over your center region. You may be able to find the necessary css class for those sub-items and apply an overriding style definition, declaring a z-index that is higher than that of the center region... Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com On 6/3/2009 11:26 PM, Paul Henderson wrote: I'm experimenting with cflayout and cfmenus, following the CF8 WACK. I'm using a border type cflayoutarea and I've place a horizontal cfmenu in the top area. But the dropdown items in the menu are cut off, or layered behind the cflayoutarea below it. I tried setting the overflow to visible but that spits out an error. Any ideas? I'm guessing maybe some kind of css trick may help? Thanks -Paul ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323157 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
[Resolved] Dynamic robots.txt
We use a custom 404 handler, so we looked at the template asked for (robots.txt) and, if that was what was called, cfincluded a robots.cfm that generated the output with a cfheader status 200 and a cfcontent type text/plain. Worked great, thanks for all the feedback. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com On 5/27/2009 11:20 AM, Andy Matthews wrote: The three saddest letters in the english language: IIS -Original Message- From: Barney Boisvert [mailto:bboisv...@gmail.com] Sent: Wednesday, May 27, 2009 11:18 AM To: cf-talk Subject: Re: Dynamic robots.txt Use mod_rewrite to rewrite robots.txt to robots.txt.cfm internally and have it generate whatever it needs. We don't generate any robots.txt files dynamically, we generate several static versions (robots_something.txt, robots_or_other.txt, etc.), and then use mod_rewrite with RewriteCond checks to serve back the correct one for each request to robots.txt. Doing dynamic generation would be just as easy, we just couldn't scale it sufficiently with that mechanism. Just ensure you return text/plain as your content type. cheers, barneyb On Wed, May 27, 2009 at 6:41 AM, Andy Matthewsamatth...@dealerskins.com wrote: We have an application which delivers about 2000 websites. This is really nice for lots of things, but not so nice for items such as robots.txt where we might want unique values. Reviewing the spec for robots.txt it requires that sitemap references be absolute paths (while everything else can be root relative). As a hard coded file we obviously can't do this. A coworker had the idea to delete our robots.txt file and use our 404 handler to toss that request to ColdFusion, and write in the absolute path to our sitemap each time the file is requested. 1) Can this be done reliably? 2) Is anyone out there doing this already and could answer these questions? Andy Matthews Senior Web Developer www.dealerskins.com P Please consider the environment before printing this e-mail. Total customer satisfaction is my number 1 priority! If you are not completely satisfied with the service I have provided, please let me know right away so I can correct the problem, or notify my manager Aaron West at aw...@dealerskins.com. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322830 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Dynamic robots.txt
It's a little hard to explain. It's an inherited application, that is (very) slowly being refactored. To get some idea, you can read this post from last year: http://blog.cutterscrossing.com/index.cfm/2008/6/22/Build-Applications-That-Scale No, there aren't 2000 entries in IIS. It's a single application template engine that keys off of the domain name to decide what the site will look like/do. It's crazy to work on, and a testament to what CF is capable of. Peter Bell was brought in to help us with some planning on refactoring, and Mike Brunt was brought in post server migration to assist us with some fine tuning. As a team, it isn't what our ideal app would look like, and we're moving in that direction, but we also have to keep feeding the kids;) Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com On 5/27/2009 2:43 PM, Nathan Strutz wrote: I second Michael's suggestion of IIRF, http://www.codeplex.com/IIRF - it's pretty good. Now, back to the original question, how to make a dynamic robots.txt file. Why not generate it? Throw together a script that generates the content of your file, then write it to the web root of your web sites. ba-da-bing, no server installs for rewrite plugins, no strange 404 error catching and no reconfiguration of JRun to get it to parse *.txt files. Put it on a schedule to run every day or every hour or just run it when you want. Now that that's solved (...right...) what's this about an app that runs 2000 web sites? Please tell me there aren't 2000 entries in your web server for different domains and that you instead, intelligently, map them to the same web front end with some certain things switched in and out based on the domain... please? I once worked at this shop where we had 10 nearly identical sites. Just the pain in managing that was hard enough. When the owner wanted to add 5 more, I stopped him, wrote a generic customizable version and then let him add as many as he wanted. Less management for me, quicker response time for him. nathan strutz [Blog and Family @ http://www.dopefly.com/] [AZCFUG Manager @ http://www.azcfug.org/] [Twitter @nathanstrutz] On Wed, May 27, 2009 at 11:17 AM, Michael Dinowitz mdino...@houseoffusion.com wrote: I've gone the route of rewriting IIS's 404 handler in the past and I highly suggest against it. Mapping .txt to CF would work, but that means every .txt file will be handled, not just robots.txt. What I do for my clients is use the ionic isapi to watch for any call to robots.txt and then redirect the request (on the back end) to ColdFusion. To the visitor, it looks like an actual robots.txt. I do the same for dynamic sitemaps as well as a number of other things. http://www.codeplex.com/IIRF Yes it's free but that should not be a negative. On Wed, May 27, 2009 at 9:41 AM, Andy Matthewsamatth...@dealerskins.com wrote: We have an application which delivers about 2000 websites. This is really nice for lots of things, but not so nice for items such as robots.txt where we might want unique values. Reviewing the spec for robots.txt it requires that sitemap references be absolute paths (while everything else can be root relative). As a hard coded file we obviously can't do this. A coworker had the idea to delete our robots.txt file and use our 404 handler to toss that request to ColdFusion, and write in the absolute path to our sitemap each time the file is requested. 1) Can this be done reliably? 2) Is anyone out there doing this already and could answer these questions? Andy Matthews Senior Web Developer www.dealerskins.com P Please consider the environment before printing this e-mail. Total customer satisfaction is my number 1 priority! If you are not completely satisfied with the service I have provided, please let me know right away so I can correct the problem, or notify my manager Aaron West at aw...@dealerskins.com. ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322843 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Load Test Apps
We found OpenLoad to be reasonable, for a tool that could also read AMF requests, which we required since we have so many tools front ended by Flash and Flex. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com On 5/12/2009 2:26 PM, Justin Scott wrote: Any recommendations on web site load testing apps? I'm considering JMeter and the Microsoft Web Application Stress Tool. Anything else I should be looking at? What's easiest to configure, run, and gives decent reporting? -Justin ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322447 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Confused about checkbox handling for Ajax
Have you tried introspecting the post to the server with Firebug, to see what the client is sending to the server? Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com On 5/8/2009 10:06 AM, John Pullam wrote: I understand that a traditional checkbox does not show up on the form if it is not checked and am quite comfortable with setting defaults and processing it. But what about an Ajax implementation where the checkbox is used to trigger the Ajax routine? I have a field defined as: cfinput type=checkbox name=Accessible value=1 and it is bound to: cfselect name=Session1 bind=cfc:OptionSelect.getSessions({Accessible}) bindonload=true / I have no problem getting the cfc to execute when I click or unclick the checkbox, but what values are being sent (the behaviour seems a bit odd ... it always behaves as though it is checked). How do I ensure that the accurate status of the checkbox is sent to the cfc? ~| 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:322329 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Detect a 301 redirect
Do you know what one of these pages is? Maybe you could do a GetHttpRequestData() call and introspect the headers key of the return struct. Maybe something there will give you what you need. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Ian Skinner wrote: Andy Matthews wrote: Well, a 301 redirect sort of means that the original file isn't there any more right. So that should be triggered via your 404 handler. You could intercept at that point and display message, along with the new location. andy Not quite. We have the 301 redirects in place so no 404 errors are thrown. When you type in an old URL your browser gets a 301, and send you on the correct new location. This is all good in my mind. But some powers that be, say No, we must tell users they have been redirected What I was hoping for, but I am getting discouraged on finding, is a simple trigger where I can simply add a message to the page say something like You came from zzz which now lives at yyy, please update your information. when such a redirect occurs. ~| 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:322198 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Any JS wizards out there care to lend a hand?
Don't think you really need a new menu, just convert some of you functions to *use* JQuery. Something like: var el = $('#hb-nav li:first'); Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Che Vilnonis wrote: Hello Peter. I *do* and will use jQuery for everything else on the site. Consider myself converted. What I am having difficulty finding is a jQuery dropdown menu that has a similar look and feel. Namely, dropdowns that have multiple columns and indented values. If you need an example of what I mean, just roll-over the Books/DVDs tab. Thanks, Che -Original Message- From: Peter Boughton [mailto:bought...@gmail.com] Sent: Thursday, April 23, 2009 6:38 PM To: cf-talk Subject: Re: Any JS wizards out there care to lend a hand? Use jQuery. Seriously. Combine valid HTML (you need to fix that too) with jQuery and the number of cross-browser problems you'll have will drop massively. Both because the jQuery authors/contributors have already done the hard bit of figuring out browser quirks, and also just because it simplifies your code a great deal - the simpler the code, the less that can go wrong. ~| 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:321929 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Anyone using Michael Sprague's jQuery tool as alternative for cfgrid?
Don, Why don't you just use Ext? That's what cfgrid and cfcalendar are built on anyway, and 2.2 (and the coming 3.0 release) are even better. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Don L wrote: At a client site, we're using BlueDragon 6.2.1, but we need to use cfgrid and possibly cfcalendar as well, but not supported by BD, Michael Sprague's tool looks very promising, anyone use it? Thanks. Don Chunshen Li ~| 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:321952 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFWindow OnLoad Issue
Ah, sorry. That would work with a straight Ext implementation. CFWindow shouldn't require it, unless the css files are being loaded in after the script files (instead of before). You'll have to check your source on that. If they are coming in that order (js then css) then there really isn't anything you can do. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com LSD 4Me wrote: Would that be on the cfwindow? ie...CFWINDOW class=x-hidden??? I think if you apply a class of 'x-hidden' that you won't see the content until you 'show' the window. I think. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com LSD 4Me 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:321077 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFWindow OnLoad Issue
I think if you apply a class of 'x-hidden' that you won't see the content until you 'show' the window. I think. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com LSD 4Me wrote: Hi, I am having an issue where i have 3 cfwindows that are initshow = False But when the page loads, you see the content of them being intitialized and then quickly disappears.. How do i set it up so that the cfwindow AND its content remains hidden throughout the initial page load process? THANKS! ~| 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:321070 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Nested CFLAYOUT doesn't work in IE ?
Nested CFLayout doesn't work at all. This is an issue with CF's implementation of Ext border layouts. They apply the region name to the id attribute of the div (ie: region north - id=north). This prohibits you from creating nested layouts, as you would have multiple divs with the same id value, totaly fubarring your css. Honestly, it's easier to write it as a full Ext implementation. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Tom Chiverton wrote: I'm trying to do something fairly normal - a main tabbed layout, with a three column area inside the tab. All is well in FireFox, but IE just shows the tab name, and a tiny bit of border (as if height of tab content is 0). If I remove the outer cflayout, the one providing the tabs, I get the three columns fine. Anyone else seen this and know what is up ? Test file: html head/head body cflayout type=tab cflayoutarea title=Home cflayout type=border cflayoutarea position=left hi /cflayoutarea cflayoutarea position=right ho /cflayoutarea cflayoutarea position=center de /cflayoutarea /cflayout /cflayoutarea /cflayout !--- cflayout type=tab cflayoutarea title=Home --- hello cflayout type=border cflayoutarea position=left hi /cflayoutarea cflayoutarea position=right ho /cflayoutarea cflayoutarea position=center de /cflayoutarea /cflayout !--- /cflayoutarea /cflayout --- /body /html ~| 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:321035 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Page Split in Coldfusion
Check the CF LiveDocs Ajax UI documentation, and look at the cflayout and cflayoutarea tags. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Jimmy Kurd wrote: I have been trying to find a mechanism to split a page into 3 sections in Coldfusion and update the seperate sections based on the action selected. I did the same thing in ASP.NET with SPLIT mechanism and i was able to create a 3-section split page and update variables with no problems. I am sure there is a way to do this in Coldfusion but i cannot find any source. Please HELP! ~| 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:320866 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: (ot) FireFox - JS Problem
Unless it is a specific requirement to access both the parent window and the popup content at the same time, then I would suggest not doing a popup at all, but use a modal JavaScript dialog (similar to that cfwindow creates) instead for your 'popup' content. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Robert Harrison wrote: Jake, You're right about Firefox. I'll never get it to close the popup, so I found another method. I'm not sure what your application is, but for me I was able to user show/hide DIV layers to achieve a similar result. You may want to think about changing the approach to something similar. Thanks for the insight on FF. I beat me head in for 3 hours over that, and would probably still be trying to debug something that did not have any bugs. Darn browsers! Robert B. Harrison Director of Interactive Services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 P : 631.231.6600 Ext. 119 F : 631.434.7022 http://www.austin-williams.com Great advertising can't be either/or. It must be . Plug in to our blog: AW Unplugged http://www.austin-williams.com/unplugged ~| 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:320329 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: crud generator comparison / overview ?
I don't know of a comparison. I know I like Illudium, because I can adjust the XSLT to make it output as I would like it. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Peter Boughton wrote: Does anyone know if there's a comparison / overview of the various different CRUD code generators available? ~| 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:320019 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Good Release Management Software
Subversion + ANT, a good well-thought-out process, and a scheduled task Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Joseph Bugeja wrote: Do you recommend any good release management software, ideally an open source solution that we can use to automate releases of our software? ~| 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:319944 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CFTOOLTIP Not Working
Are you seeing any errors in Firebug when the page loads, or during the mouseover action? Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Ron Gruner wrote: cftooltip has stopped working on my local test server (IIS, CF8) after a year but the same pages work fine on the production server. Nothing's changed that I can think of and all other JS and Spry functions continue to work fine both locally and remotely. What would cause just cftooltip to not work? ~| 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:319884 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ajax and special characters
If, when making your Ajax calls, you pass the returnFormat = JSON attribute to your CFC method, then CF will automatically encode the result when creating the JSON output. When passing a JSON value to ColdFusion, inside your CFC method you can use the DeserializeJson() method to decode the value. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Richard White wrote: hi we are developing an Ajax based system using JavaScript and Coldfusion. we have only just started to realise the need for escaping / encoding special characters. how do you guys deal with this, e.g: 1) how do we deal with the special characters in JavaScript to ensure that Coldfusion receives them correctly 2) how does Coldfusion decode them to read them exactly how they were sent 3) how does Coldfusion send them back encoded to ensure JavaScript receives them OK 4) how does JavaScript then decode them when it receives them i would appreciate any advice on where to start looking and any tutorials there may be to understand this. thanks richard ~| 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:319789 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Error: FIle Not Found
/File1.cfm must be located in your site root, so Project_Folder must be defined as the site root. What does the line of code say that is throwing the File not found error? It may be that the function you are calling requires a file system path. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Priya Koya wrote: Hi All, I am using COldFusion8 and trying to execute the file but error: File not found: /File1.cfm My project is in path: C:\Inetpub\Project_Folder\somefile.cfm I have created a .cfm page in the path: C:\Inetpub\Project_Folder\folder1\File1.cfm. Any Suggestions? ~| 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:319804 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Error: FIle Not Found
Priya, This still doesn't show us the line of code calling that file. This would determine the type of path you require. A cffile tag, for instance, would require a system path to the resource (c:\Inetpub\etc), whereas the cfinclude tag would require something like a relative path (template=/File1.cfm). Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Priya Koya wrote: This is what the error I get: File not found: /FIle1.cfm Resources: - Check the ColdFusion documentationhttp://www.macromedia.com/go/proddoc_getdocto verify that you are using the correct syntax. - Search the Knowledge Basehttp://www.macromedia.com/support/coldfusion/to find a solution to your problem. Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729) Remote Address 127.0.0.1 ReferrerDate/Time 25-Feb-09 12:22 PM Stack Trace (click to expand)javascript:; coldfusion.runtime.TemplateNotFoundException: File not found: /EditSites.cfm at coldfusion.filter.PathFilter.invoke(PathFilter.java:89) at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.CfmServlet.service(CfmServlet.java:175) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) On Wed, Feb 25, 2009 at 12:00 PM, Cutter (CFRelated) cold.fus...@cutterscrossing.com wrote: /File1.cfm must be located in your site root, so Project_Folder must be defined as the site root. What does the line of code say that is throwing the File not found error? It may be that the function you are calling requires a file system path. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Priya Koya wrote: Hi All, I am using COldFusion8 and trying to execute the file but error: File not found: /File1.cfm My project is in path: C:\Inetpub\Project_Folder\somefile.cfm I have created a .cfm page in the path: C:\Inetpub\Project_Folder\folder1\File1.cfm. Any Suggestions? ~| 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:319808 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Multiple ColdFusion AKA JRun Server port numbers.
Ian, We use Apache + CF 8 Multi-Instance in our local development, with each developer maintaining a mirrored environment. What we've found is that by setting a process, and building out each instance in the same order, we all retain the same ports. Changing port numbers shouldn't an issue for you, as long as you're using the ports already setup by your servers. By this I mean it won't hurt for you to change your 'sites' instance to 51002, if that is your port for your 'control' instance, as long as you're changing the 'control' instance to the 51001 previously held by the 'sites' instance. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Ian Skinner wrote: As I have recently learned better, when one creates multiple ColdFusion instances (aka JRun Servers) each one gets a unique port number staring at 51000 and incrementing from there. One then uses this port number in the JRunConfig Bootstrap 127.0.0.1:51000 line as part of the httpd.conf document Apache Virtual Host definition to define which Virtual Hosts run against which ColdFusion instances. I think I understand this well enough, but my question is about modifying these ports if I do not want to use the ones defined by default when one creates a new CF instance through the Administrator wizard. The reason for this in my mind is keeping multiple server environments as similar as possible. We are building a new development and production combination of servers. I would like our httpd.conf files to have as few differences as possible between the two. To not be constrained by having these port numbers be determined the order the CF instances are created on the server, I was looking for guidance on defining these ports explicitly. So if I just go through the jrun.xml file and change these ports for each server is this enough to define them. Or is there someplace else I need to modify this? TIA Ian ~| 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:319752 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cflayout annoying issue
MS, The Ext Viewport doesn't work in this fashion (that's the underlying component of cflayout). The Viewport will only take up the viewable area of the browser, with the 'center' view always taking up the remaining space (only area that doesn't require explicit dimensions). What you need is straight HTML and CSS. I would suggest you look at the Three Column Layout (flanking menus) in The Layout Reservoir of BlueRobot.com You don't need Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com MS wrote: Hi all Quick cflayout question. I have a normal layout (positions = TOP, LEFT, CENTER, RIGHT, BOTTOM) page. Problem: if the center inside the CENTER cflayoutarea is larger than the screen, I'm getting a scroll bar just in that CENTER cflayoutarea. Instead, the whole page should expand to accommodate the height of CENTER. I tried playing with height:100% everywhere and I can't do the trick. cflayout cflayoutarea position=top Top /cflayoutarea cflayoutarea position=left Left /cflayoutarea cflayoutarea position=center BIG CONTENT (in height) BIG CONTENT (in height) BIG CONTENT (in height) ** I want this to expand and cause scrollbars to appear on the whole page, not just on this DIV /cflayoutarea cflayoutarea position=right Right /cflayoutarea /cflayout Hope it makes sense. Cheers, MS ~| 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:319477 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Session vars in onRequestEnd
How do you handle access to Session and Application variables within onRequestEnd in Application.cfc? Migrating a legacy app, and forgetting how to properly handle this. -- Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.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:319402 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Session vars in onRequestEnd
Thanks Dave. That's what I thought too, but I read something in the comments of an old post on Ray's blog that had me second guessing. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Dave Watts wrote: How do you handle access to Session and Application variables within onRequestEnd in Application.cfc? Migrating a legacy app, and forgetting how to properly handle this. You can access them normally within onRequestEnd. You only have to access them through arguments within onSessionEnd or onApplicationEnd. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| 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:319423 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Phantom SMTP server
Have you run a search of all active code on that server, to make sure that someone hasn't placed a file with a cfmail tag with the smtp attribute? Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Jeff Martin wrote: I was perusing the mail.log file this morning because for some reason the mail spooler stopped running. The good news is that restarting CF got mail flowing again. I found a strange thing though. There are lines in the mail.log that read Could not connect to SMTP host: {servername}, port: 25 the weird thing is that the server name that appears on these lines is not the smtp server that is configured for ColdFusion. This is a standard license of CF8 so there should be no other configurations for CF anywhere on the machine. I did a search for that server name on the entire hard disk and the only reference to that smtp server I could find was in ColdFusion8\lib\neo-mail.xml. I changed this to the correct smtp server and restarted ColdFusion, but I'm still seeing these lines in the mail.log. Anyone have any clue where this phantom SMTP server record is coming from? ~| 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:319296 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: HTML email appearing blank in thunderbird
Is it well formed html? Opening and closing html, head, and body tags? I've found if the doc is incomplete it won't display in Thunderbird. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Mike Little wrote: hi guys, sending out an html email using cfmail, working fine for apple mail, outlook, hotmail, gmail - but appears completely blank for mozilla thunderbird clients. has anyone else struck this? mike ~| 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:319261 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFGrid: Calling custom javascript on click.
Anthony, To do this kind of thing, you'll need to tap into the underlying Ext library used by cfgrid. I have a rough example of this sort of thing in the depths of this post: http://blog.cutterscrossing.com/index.cfm/2007/11/30/CF8-Ajax-Grid-Renderers-and-Events You can also find a log of information just by going over the Ext JS API browser for that version (1.1): http://extjs.com/deploy/ext-1.1.1/docs/ Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Anthony Tietjen wrote: I would like to call a custom javascript function when clicking on a cell in an cfgrid (of html format). The closest thing I can find is to use the HREF= attribute, but it doesn't seem to work with javascript inside it. Simple example: cfgridcolumn name=Foo header=Foo href=javascript:customFunction(ID); Do I need to tap into the underlying functionality of Ext JS? If so, where should I start? Thanks! ~| 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:319124 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF Vertical Expanding Menu
If you're using ColdFusion 8 then you could just use the cfmenu tag Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Joel Polsky wrote: Hi.. Need a easy solution to create a vertical menu system that expands when clicked. (much like the book mark menu in Firefox) I'm sure this has been asked before, but the reference I've found on the list are dead links. Can it be done in CF? Menu would be like this, MENU 1 +Sub 1a +Sub 1b Sub 2a +Sub 1c MENU 2 +Sub 1a +Sub 1b Sub 2a +Sub 2c Thanks! ~| 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:319130 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: JVM Tuning and Garbage Collection
Rick, We run very similar traffic. We found GC to be much better, for our app, when using the 1.5.0_14 JVM, over the default CF8 JVM. We hired Mike Brunt to come in and consult with us (some of the best money we ever spent). This may be better with the 1.6.0_11 JVM, but we haven't tested that yet. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Rick Root wrote: Dear cf-talk, I'm working on a site that averages about 10 requests per second over the course of a 24 hour period... of course it's considerably more active during peak time periods (actually about 9am-midnight, with peak activity between 8 and 10pm. We spread this across 3 instances with 1gb of memory each. Time between major GCs right now is about 14 minutes. However during the peak time, major GCs run about every 6 minutes. These garbage collections cause a temporary pause in the processing of requets while memory is cleaned up, and when you're getting 8 requests per second, they pile up quite rapidly. Right now I have Fusion Reactor configured to only allow 15 requests into CF at a time and queue the rest.. but during these 15-20 seconds of slow processing (every 6 minutes on each of the 3 instances), unusual things happen like lock timeouts in the application.cfm. Now.. after a major garbage collection, memory usage drops from 1GB to 400MB. We're running windows server 2003 with 2 Xeon 3ghz CPUs and 4GB of RAM .. coldfusion 8,0,1,195765, JVM 1.6.0_04 my JVM arguments: java.args=-server -Xmx1024m -Xms768m -Dmail.host=www.classcreator.com -Dsun.io.useCanonCaches=false -XX:MaxPermSize=192m -XX:+UseParallelGC -Dcoldfusion.rootDir={application.home}/ Here are my settings from the Request Tuning part of the CF Administrator: Maximum number of simultaneous Template requests 25 Maximum number of simultaneous Flash Remoting requests 3 Maximum number of simultaneous Web Service requests 3 Maximum number of simultaneous CFC function requests 3 Maximum number of running JRun threads 40 Maximum number of queued JRun Threads 1000 And as I said... Fusion Reactor is configured to queue requests beyond 15and there are three instances (all with the same settings) so.. how can I reduce the negative effects of garbage collection on the application? Any suggestions? ~| 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:318932 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF8 Multi Server Config Help
You are confusing your Coldfusion configuration with your web server configuration. They are two entirely separate things. See if this series of posts can help you out: http://blog.cutterscrossing.com/index.cfm/2007/7/23/Local-Development-Setup-Pt-1-Apache-and-ColdFusion-7-or-8 Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Joel Polsky wrote: On my local machine, I've installed CF8 with the Multi-Server features. I'm trying to set up a 2nd server that will serve up a brand new site, new mappings, new DB references etc.. I want to start clean (but still need to keep and maintain my current site etc.) I have the old site in c: C:\inetpub\wwwroot\SITENAME When I enable the 2nd server, the root site folder seems to be: C:\JRun4\servers\NEWSITE\cfusion.ear\cfusion.war I'd like it to be: C:\inetpub\wwwroot\NEWSITENAME HOW can I change this? I found a reference to change the web-inf/jrun-web.xml file but the code the reference mentions to change is not in the file. There must be an easier way! Thanks Joel ~| 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:318848 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF8 Multi Server Config Help
Joel, I would suggest to anyone to use the multi-server install. Each cf server instance has it's own jvm and RAM allocation, plus you truly separate your applications at that point (we run an instance for front-end site display and a separate instance for the Control Panel app to configure sites). That being said, you might not want a separate instance for every site, as you can quickly eat system resources as well. The default cfusion instance is only used for it's Enterprise Manager to create new instances, otherwise we turn it off by default. The step you've probably missed is in setting up the Jrun connector. Once your new instance is running, you need to setup a webserver connector, connecting a site to a specific JRun instance. You do this with the wsconfig utility: c:\Jrun4\bin\wsconfig.exe This is a java based utility, that will show you all of the current connectors, and allow you to add or remove connectors. It is very easy to use with IIS. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Joel Polsky wrote: Thanks I will look at that. Though I use IIS-6 locally and Windows Server 2003 on the live site. On another point, yet related. Our live server was NOT installed with the Multi Instance features.. Will this REQUIRE a fill reinstall? What are the ramifications of doing this? SHOULD I even worry about the ability to run a totally new server instance for a brand new version of our site? (Ground up development) Thanks On Wed, Feb 4, 2009 at 12:50 PM, Cutter (CFRelated) cold.fus...@cutterscrossing.com wrote: You are confusing your Coldfusion configuration with your web server configuration. They are two entirely separate things. See if this series of posts can help you out: http://blog.cutterscrossing.com/index.cfm/2007/7/23/Local-Development-Setup-Pt-1-Apache-and-ColdFusion-7-or-8 Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Joel Polsky wrote: On my local machine, I've installed CF8 with the Multi-Server features. I'm trying to set up a 2nd server that will serve up a brand new site, new mappings, new DB references etc.. I want to start clean (but still need to keep and maintain my current site etc.) I have the old site in c: C:\inetpub\wwwroot\SITENAME When I enable the 2nd server, the root site folder seems to be: C:\JRun4\servers\NEWSITE\cfusion.ear\cfusion.war I'd like it to be: C:\inetpub\wwwroot\NEWSITENAME HOW can I change this? I found a reference to change the web-inf/jrun-web.xml file but the code the reference mentions to change is not in the file. There must be an easier way! Thanks Joel ~| 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:318855 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Something like cfwindow?
Ray is right on the money, cfwindow is the BasicDialog object in Ext JS 1.1. In Ext 2.2 you would use the standard Window object. You may want to look at the ColdExt project (http://coldext.riaforge.org/) for a custom tag approach to implementing Ext JS within your CF7 environment. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Raymond Camden wrote: All the CF8 stuff is based on existing, open source Ajax libraries. CFWindow is based on the ExtJS BasicDialog object. See the ExtJS web site for more info. ~| 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:318768 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 pooling - why bother?
Not using connection pooling, in our environment, significantly slow down all process, and increases overhead to an order that eventually will bring a server to a complete non-responsive state. Basically, you end up tying up every available active thread request with long running DB requests, and the inactive thread pool 'overflows', to the point that active requests will complete, but inactive threads never transfer to active status. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Jaime Metcher wrote: Hey Cutter, in our environment we would be insane not to use connection pooling. ...unless it's actually faster to not use connection pooling. So is it? Jaime ~| 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:318771 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 pooling - why bother?
I guess it depends on your application, and the traffic you expect. One of our servers will process 500k db requests in a 4 hour period (according to FusionReactor), so in our environment we would be insane not to use connection pooling. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com jaime.metc...@medeserv.com.au (Jaime Metcher) wrote: Hi all, Just wondering if anyone has benchmarked CF's connection pooling. I'm getting results suggesting that turning on maintain connections does basically nothing for performance, and that using an alternative unpooled connection provider (in this case Spring's DriverManagerDataSource with jTDS) is way faster. The context to this is that Spring's doc says you shouldn't use their DriverManagerDataSource for production. Because it doesn't use pooling, it's not up to the job. So they say. However, testing on CF8.01 with 10 simultaneous requests, I'm getting about 50% better throughput with Spring's setup than going via CF's datasources. Now, benchmarking is a perilous undertaking, but this is my real-world app I'm using for testing, so the numbers are certainly meaningful for me. Seeing Spring's do not use this - it is a toy connection provider outperform CF, and not otherwise display any signs of being a toy, was a bit of a shock. Where I'm really going with this is trying to work out whether DriverManagerDataSource actually is a toy - I'm no mad performance tweaker, but a 50% hit is something I can't ignore - but I'll ask that on a Java list. Jaime ~| 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:318674 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Hacking into CFGrid
Check out this post on how to create a grid renderer for the CF8 Ajax Grid: http://blog.cutterscrossing.com/index.cfm?mode=entryentry=924FD535-3048-71C2-1732C7C676604ABE Don't forget, the underlying Ajax components are built upon Ext JS 1.1. There is full API documentation available for 1.1 within the Learning Center area of the site. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Ian Skinner wrote: Has anybody hacked into an HTML cfgrid... in order to format some numbers. I presume one would need do something with JavaScript somehow connected to the CFGrid. I've sucessfully used some sneaky CSS to at least get a right alignment to my numbers. .x-grid-col-[col#] {text-align: right;} It would be really nice if I could also add something that will format the numbers with thousand's separators. TIA Ian ~| 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:318696 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
CFPayment and PayPalPro
Anyone have some example code of using the CFPayment project (http://cfpayment.riaforge.org) with PayPalPro? -- Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.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:318313 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: How long to get new posts picked up by CFBloggers.org?
Check your feed for bad characters. The last time this happened to me I had a bad character, which prevented CFB from picking it up. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Andy Matthews wrote: Ray added me to CFBloggers.org about 5 days ago. Since then I've made two new posts but neither of them have gotten picked up by the site. Do I need to do something specific or should it be automatic? I posted this on the 17th: http://www.andymatthews.net/read/2009/01/17/Locks-of-Love:-or-how-I-learned-to-let-go and this on the 19th (last night): http://www.andymatthews.net/read/2009/01/19/shrinkURL---API-wrapper-for-URL-shortening-services Is there someone who gets picked up on that site that could let me know if I need to update anything on my feed, or do I need to ping the service with each new post? ~| 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:318205 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Recognizing spyders
We maintain sessions for a variety of reasons. Our sites contain multiple user facing applications, typically dealing with product detail or directly reviewing client inventory. Sessions are used to track a site user's full path through a site. Page views, lead submissions, app level review (some of our front-end apps are Flash based). So, we get full activity reporting, plus are able to differentiate (in our stats review) multiple site sessions by the same user, seeing if return sessions might be more productive, and tying together the session's activity for complete user action overview. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Judah McAuley wrote: Out of curiosity, what are the primary business objectives for maintaining session on pages that are not user-specific? I typically have divided my site into two parts, a public part that doesn't maintain session and then an area behind a login form. Once you have logged in and identified yourself as a user, I keep track of the user through the whole site, public and private. But I don't generally see a need to maintain session info for a visitor unless they have done something user-specific, which would require a login. That eliminates bots right there. Judah On Thu, Jan 15, 2009 at 8:43 PM, Cutter (CFRelated) cold.fus...@cutterscrossing.com wrote: We found this post from Ben Nadel to be extremely helpful in detecting bot traffic. We have a highly customized statistical tracking system in place for our web traffic, and wanted to accomplish two primary objectives: a) not record page views of bots, and b) not maintain a separate session on every page view (this is accomplished by identifying the visit as a bot and setting the session timeout to 2 sec). We have found Ben's work here to be highly effective. http://www.bennadel.com/blog/1083-ColdFusion-Session-Management-And-Spiders-Bots.htm Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Jim McAtee wrote: We keep our own page view stats in a database and want to avoid counting page views by visiting spyders. What's a good method for recognizing spyders without throwing away valid visitor page views? Something using cgi.user_agent, no doubt, but how can we keep a fairly comprehensive list up to date, and do we try to do exact string matches, partial matches, or what? ~| 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:318061 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Recognizing spyders
We track backend user activity as well, to see which apps are getting the most usage, which helps us target priority areas and allows us to customize user experience. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Judah McAuley wrote: That's the sort of thing I was thinking of. I've always done that sort of thing via cookies with a db recording page atctivity until the user logs in. And, obviously, you could make a user id part of the cookie so as to track individual user behavior even prior to a login. Just cuts down on the number of sessions created. I like the idea of transient 2-second sessions though for bots. I'll have to give the topic some more though next time I create a site of that sort. These days I'm doing mostly back end business programming so session creation overhead isn't an issue. Good topic to think on anyway. Cheers, Judah On Fri, Jan 16, 2009 at 6:09 AM, Cutter (CFRelated) cold.fus...@cutterscrossing.com wrote: We maintain sessions for a variety of reasons. Our sites contain multiple user facing applications, typically dealing with product detail or directly reviewing client inventory. Sessions are used to track a site user's full path through a site. Page views, lead submissions, app level review (some of our front-end apps are Flash based). So, we get full activity reporting, plus are able to differentiate (in our stats review) multiple site sessions by the same user, seeing if return sessions might be more productive, and tying together the session's activity for complete user action overview. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Judah McAuley wrote: Out of curiosity, what are the primary business objectives for maintaining session on pages that are not user-specific? I typically have divided my site into two parts, a public part that doesn't maintain session and then an area behind a login form. Once you have logged in and identified yourself as a user, I keep track of the user through the whole site, public and private. But I don't generally see a need to maintain session info for a visitor unless they have done something user-specific, which would require a login. That eliminates bots right there. Judah On Thu, Jan 15, 2009 at 8:43 PM, Cutter (CFRelated) cold.fus...@cutterscrossing.com wrote: We found this post from Ben Nadel to be extremely helpful in detecting bot traffic. We have a highly customized statistical tracking system in place for our web traffic, and wanted to accomplish two primary objectives: a) not record page views of bots, and b) not maintain a separate session on every page view (this is accomplished by identifying the visit as a bot and setting the session timeout to 2 sec). We have found Ben's work here to be highly effective. http://www.bennadel.com/blog/1083-ColdFusion-Session-Management-And-Spiders-Bots.htm Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Jim McAtee wrote: We keep our own page view stats in a database and want to avoid counting page views by visiting spyders. What's a good method for recognizing spyders without throwing away valid visitor page views? Something using cgi.user_agent, no doubt, but how can we keep a fairly comprehensive list up to date, and do we try to do exact string matches, partial matches, or what? ~| 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:318079 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Using Ray's RSS.cfc and getting invalid feed
I had issue at one time with my feed. Turned out to be an invalid, non-display character appearing in the feed. Something from copy and pasting something into the backend editor. C P from direct from some code editors might do this... Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Andy Matthews wrote: I'm in the process of finalizing my blog and working on setting up the RSS feed: http://www.andymatthews.net/rss/ I'm getting an error when I try to validate the feed: http://feedvalidator.org/check.cgi?url=http://www.andymatthews.net/rss/ I've gone through and added cdata nodes where applicable but that doesn't seem to be helping. Anyone have any idea what's wrong? andy ~| 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:318080 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Styling CFWINDOW
The Ext site (http://www.extjs.com) has additional 'skins' for their apps listed in the 'Learning Center' area of the site. You'll want to make sure you look at the items in their 1.1 version area, as that's what Adobe's using under the hood. It's all stylesheet controlled. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Les Mizzell wrote: I've been looking for a good while now, and so far haven't found anything great... Is there a good guide out there on styling CFWINDOW? Not the window contents - the window itself... Or is there a better way I need to be looking at to start with? Window(s) in question my contain query objects, graphics, and links to other stuff... ~| 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:318084 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Recognizing spyders
We found this post from Ben Nadel to be extremely helpful in detecting bot traffic. We have a highly customized statistical tracking system in place for our web traffic, and wanted to accomplish two primary objectives: a) not record page views of bots, and b) not maintain a separate session on every page view (this is accomplished by identifying the visit as a bot and setting the session timeout to 2 sec). We have found Ben's work here to be highly effective. http://www.bennadel.com/blog/1083-ColdFusion-Session-Management-And-Spiders-Bots.htm Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Jim McAtee wrote: We keep our own page view stats in a database and want to avoid counting page views by visiting spyders. What's a good method for recognizing spyders without throwing away valid visitor page views? Something using cgi.user_agent, no doubt, but how can we keep a fairly comprehensive list up to date, and do we try to do exact string matches, partial matches, or what? ~| 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:318047 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Problem extending CFC with access='remote'
Fairly certain you would have to serialize the query output to JSON using the serializeJSON() method. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Ed Waible wrote: When I execute a .cfm with the following CFSELECT in the page I get an error that the acccess attribute needs to be remote, which it is... see below. cfselect name=country id=form_country value=country bind=cfc:quote.getCountries() bindonload=true / - this does not work The specified function getCountries on the CFC autoQuote must have its access attribute set to 'remote'. If I change this to use the actual cfc that contains the the method the page runs fine. I need to be able to extend this, any ideas? cfselect name=country id=form_country value=country bind=cfc:util.getCountries() bindonload=true / - this works CFC's are below... cfcomponent displayname=quote extends=util /cfcomponent cfcomponent displayname=util cffunction name=getCountries access=remote returntype=query output=false cfquery datasourcemydns name=qCountries select country from countries order by country /cfquery cfreturn qCountries /cffunction /cfcomponent ~| 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:317945 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Updated Adobe Article
http://blog.cutterscrossing.com/index.cfm/2007/7/23/Local-Development-Setup-Pt-1-Apache-and-ColdFusion-7-or-8 Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.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:317895 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Is it possible to reference a cfc method using ajax?
That depends on the function's attributes. The returnFormat argument will automatically serialize the ColdFusion datatype into a JSON object. I suggest that anyone using it should play with the returns a bit to see what comes back for the different CF datatypes. Most things are fairly standard, with the exception of Adobe's implementation of returning a query. Adobe's implementation provides for a much smaller data return, but it isn't in the standard format used by most other app servers, so it requires a small bit of client-side parsing to get the intended result. Nothing painful, just important to know the difference. I've written a CFQueryReader object for Ext, to parse CF query returns for use with Ext components: http://blog.cutterscrossing.com/index.cfm/2008/11/20/ColdFusion-Query-Json-Data-Reader Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Dawson, Michael wrote: I don't even want to know what value that method would return. mike -Original Message- From: Raymond Camden [mailto:rcam...@gmail.com] Sent: Sunday, January 11, 2009 9:44 PM To: cf-talk Subject: Re: Is it possible to reference a cfc method using ajax? Don't forget that in CF8, you can convert a result to JSON over the wire. So if some CFC, let's call it, um, nose, had a method, pick, that returned an array, if you did an Ajax call to nose.cfc?method=pickreturnFormat=json The returnFormat argument will tell the CFC to JSON encode the result. So there is no need to write a special method for the Ajax call. ~| 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:31 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Is it possible to reference a cfc method using ajax?
Haha! So busy reading the thread as a whole that I missed the full context of that particular postOne of the few examples where I would have rather had one of Ben Nadel's examples over Ray's (Sorry bro)... Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Dave Watts wrote: Don't forget that in CF8, you can convert a result to JSON over the wire. So if some CFC, let's call it, um, nose, had a method, pick, that returned an array, if you did an Ajax call to nose.cfc?method=pickreturnFormat=json ... I don't even want to know what value that method would return. That depends on the function's attributes. Cutter, I think you missed Mike's point, although I think it's clear that the resultset would be ... elastic. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| 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:317797 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Is it possible to reference a cfc method using ajax?
Ray, (Please, call me Cutter.) I want to say I looked at that once before, but I just don't remember. At the time, I was also looking to write an implementation that would take the JSON return at it's base level, without additional attributes. I'll take another look at it though, it may be that the non-default may work better... Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Raymond Camden wrote: Steve, I've admittedly only skimmed your blog post, but could your problem with CF's JSON encode of Queries be fixed with the queryFormat attribute? It's another 'special' attribute like returnFormat. On Mon, Jan 12, 2009 at 11:30 AM, Cutter (CFRelated) cold.fus...@cutterscrossing.com wrote: That depends on the function's attributes. The returnFormat argument will automatically serialize the ColdFusion datatype into a JSON object. I suggest that anyone using it should play with the returns a bit to see what comes back for the different CF datatypes. Most things are fairly standard, with the exception of Adobe's implementation of returning a query. Adobe's implementation provides for a much smaller data return, but it isn't in the standard format used by most other app servers, so it requires a small bit of client-side parsing to get the intended result. Nothing painful, just important to know the difference. I've written a CFQueryReader object for Ext, to parse CF query returns for use with Ext components: http://blog.cutterscrossing.com/index.cfm/2008/11/20/ColdFusion-Query-Json-Data-Reader ~| 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:317802 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Is it possible to reference a cfc method using ajax?
Yeah, I have to look at the two formats again (I think the attribute is queryFormat), but I personally like the default format over the standard format. It has a much smaller footprint, with a lot smaller bit set going over the wire. If I remember correctly though, even the alternate format doesn't conform to what most consider the 'standard' format. I'll have to play around with it tonight... Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Raymond Camden wrote: Cool - sorry Cutter. ;) FYI, the ability to generate 2 styles of json from a query is also available in serializeJSON, and can also be used within deserialize as well. On Mon, Jan 12, 2009 at 2:07 PM, Cutter (CFRelated) cold.fus...@cutterscrossing.com wrote: Ray, (Please, call me Cutter.) I want to say I looked at that once before, but I just don't remember. At the time, I was also looking to write an implementation that would take the JSON return at it's base level, without additional attributes. I'll take another look at it though, it may be that the non-default may work better... Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Raymond Camden wrote: Steve, I've admittedly only skimmed your blog post, but could your problem with CF's JSON encode of Queries be fixed with the queryFormat attribute? It's another 'special' attribute like returnFormat. On Mon, Jan 12, 2009 at 11:30 AM, Cutter (CFRelated) cold.fus...@cutterscrossing.com wrote: That depends on the function's attributes. The returnFormat argument will automatically serialize the ColdFusion datatype into a JSON object. I suggest that anyone using it should play with the returns a bit to see what comes back for the different CF datatypes. Most things are fairly standard, with the exception of Adobe's implementation of returning a query. Adobe's implementation provides for a much smaller data return, but it isn't in the standard format used by most other app servers, so it requires a small bit of client-side parsing to get the intended result. Nothing painful, just important to know the difference. I've written a CFQueryReader object for Ext, to parse CF query returns for use with Ext components: http://blog.cutterscrossing.com/index.cfm/2008/11/20/ColdFusion-Query-Json-Data-Reader ~| 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:317814 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Return JSON from a CFC
Yes, it can. In your Ajax call parameters include returnFormat:'JSON', and ColdFusion will automatically serialize your function's return as a JSON object. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Joe wrote: The reason I'm making a web service is b/c I want the JSON to be parsed by jQuery. Are you telling me client-side Javascript can handle CFCs? ~| 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:317450 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Firebird or SQLite
MySQL has become much easier to work with over the years, especially with the GUI tools available on the MySQL site. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com cfcom wrote: We have a situation that requires an easy to admin database (other than MSSql). Any suggestion on which would be the best combination for db administration and cf development? Using... Firebird / cf Sqlite / cf Maybe something else? TIA ~| 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:316785 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Adobe's CF IDE, Bolt
I was being a smartass Tom, for all the Eclipse haters out there. I'm a strong advocate of Eclipse, and CFEclipse in particular, though I'll happily take Bolt for a test spin. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Tom Chiverton wrote: On Friday 05 Dec 2008, Cutter (CFRelated) wrote: How 'bout someone write an HTML/JS AIR based IDE? So we can get true cross-platform compatability. What's the point ? Eclipse sits on top of Java, which runs everywhere. ~| 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:316547 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Adobe's CF IDE, Bolt
No, Andy's Eclipse is always jacked up. I'm convinced, though, that it's a PEBKAC issue. Or he needs to stop looking at porn on his laptop;) Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.com Dave Watts wrote: Because Eclipse runs like a DOG on my machine. It takes sometimes up to 8-10 seconds when I click a tab to maximize that code window to the interface. You might want to try changing the JVM that Eclipse uses. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| 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:316567 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: What IDEs are folks using?
...here's a good argument as to why it should be able to be configured to do this. Or, a good argument for a better development environment. We used to have a similar environment, and now I can't imagine NOT doing purely local development. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer Co-Author of Learning Ext JS http://www.packtpub.com/learning-ext-js/book _ http://blog.cutterscrossing.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:316448 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Adobe's CF IDE, Bolt
Adam, My only issue with the Outline View is that sometimes it's broken. This isn't actually an issue with Outline View so much as some parsing issues of the current document. We've noticed that occasionally a line of code will be improperly parsed as having an error. This usually crops up with lines of code dealing with file or url paths (cflocation, cffile, cfhttp, etc) with some for of dynamic variable reference within the path string. The code is thoroughly valid, yet the parser shows an error, and the Outline View won't display at all. Again, not an extremely common issue, but very prevalent if your application makes a lot of these types of references. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Adam Haskell wrote: Couple of thoughts rick. You could take a stab at adding the feature. There is mechanism in eclipse to do this, and I can't imagine it would be overly difficult. Also, have you considered using the outline view? It is very nice and allows one to scan a file rather quickly. I was jut talking about this 2 days ago with a coworker. Outline view really is very nice, check it out. Adam On Thu, Dec 4, 2008 at 1:19 PM, Rick Faircloth [EMAIL PROTECTED]wrote: While it does offer manual folding, it doesn't maintain the folds when a file is closed...that's worthless... Andy Matthews wrote: You realize that Eclipse has code folding right? -Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2008 10:02 AM To: cf-talk Subject: Re: Adobe's CF IDE, Bolt I don't care if they call it Elmer Fudd as long as it works well and has code folding...that feature alone is worth $100 at least to me... Charlie Griefer wrote: On Thu, Dec 4, 2008 at 7:52 AM, Billy Cox [EMAIL PROTECTED] wrote: Maybe they have to rebrand since Disney's latest non-Pixar movie is named 'Bolt'. I wouldn't want *my* IDE to share a name with a stupid movie. But on a technical note... Is this IDE targeted to current Eclipse users, or is Adobe trying to convert programmers who are using Dreamweaver? It's an Eclipse plugin, so I'd guess the former. Altho I'm sure anyone would be welcome to use it :) ~| 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:316324 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Adobe's CF IDE, Bolt
How 'bout someone write an HTML/JS AIR based IDE? So we can get true cross-platform compatability. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Andy Matthews wrote: Yes. -Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2008 12:26 PM To: cf-talk Subject: RE: Adobe's CF IDE, Bolt Mac only, right? -Original Message- From: Dave l [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2008 1:06 PM To: cf-talk Subject: Re: Adobe's CF IDE, Bolt I have started using Coda (http://www.panic.com/coda/) friggin love it! Probably the first IDE I have actually ever liked. ~| 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:316343 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Adobe's CF IDE, Bolt
1) 'Bolt' was a good movie. 2) 'Bolt' (the IDE codename) is probably a reference to the logo that ColdFusion had in the Allaire days. I'm hoping the keep the codename, and start 'branding' ColdFusion again. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Billy Cox wrote: Maybe they have to rebrand since Disney's latest non-Pixar movie is named 'Bolt'. I wouldn't want *my* IDE to share a name with a stupid movie. But on a technical note... Is this IDE targeted to current Eclipse users, or is Adobe trying to convert programmers who are using Dreamweaver? -Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2008 8:37 AM To: cf-talk Subject: Adobe's CF IDE, Bolt So...anyone *not* using the Bolt beta, please raise your hands... I don't see any hands, so it must be out. Is anyone allowed to confirm that it's out and being used and therefore I didn't get a chance to work with the beta? :o( Rick ~| 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:316277 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Official ColdFusion IDE announced
I think they're a little busy, what with writing new IDEs and Centaur and AIR 1.5 and the like. Momma had a sayin', If it aint broke, don't fix it. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Phillip M. Vector wrote: So they couldn't update? :) Tyler Fitch wrote: So which of those existed in 2006 when Labs was created? You only proved my point here. On Wed, Nov 19, 2008 at 11:06 AM, Phillip M. Vector [EMAIL PROTECTED] wrote: From raiforge searching under wiki Canvas ColdFusion Wiki A ColdFusion wiki. ColdFusion Raymond Camden 4/25/08 5:37 PM CodexWiki An Enterprise ColdFusion Wiki EngineColdFusion Luis Majano 6/5/08 12:52 AM Skweegee Project Management / Issue Management System, Wiki, SVN Browser ColdFusion Russ Johnson10/11/08 12:37 AM Trac_Fu ColdFusion based Trac replacement with SVN Browser and Wiki. ColdFusion Russ Johnson8/28/07 12:50 AM Weeki A Flex-powered Wiki System FlexSebastian Zarzycki 6/27/07 7:26 PM WikiConverter for ColdFusion 8 Converts wiki markup (based upon Wikipedia standard) to HTML and HTML to wiki markup.ColdFusion Brian Rinaldi 7/2/07 8:11 PM So... 6. Tyler Fitch wrote: Labs was launched several years ago. What CF Wiki apps existed back then? Labs is not run by web developers. It's run by product managers who only want to get their data on to pages. Not build an app that already exists. ~| 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:315584 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Show Support for small CF Hosting Companies - Part 2
For a little more info: http://blog.cutterscrossing.com/index.cfm/2008/11/17/Hurdles-For-ColdFusion-Hosting-Providers Please show your support. -- Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.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:315358 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Cfwindow and lots of js files
ColdFusion's Ajax components are great for quick 'sauce', or rapid prototyping. That being said, since it's put together as 'do anything for anyone' implementation, you end up getting a ton you don't typically need, or at minimum an uncompressed, multi-file configuration. For true implementation you will typically be better off using the straight Ext JS library. The 'download' area of the Ext site allows you to build custom scripts, that only include the class objects you require for a specific implementation, and will show you the dependencies needed for specific objects. I would suggest taking this route. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Will Swain wrote: Hi, I'm sure this has been done to death, but here we go anyway. I am using cfwindow to pop up a window for registration on a site. Nice and easy and it works really well, except according to Yslow the page includes 44 external js files. What! Why? Alright, I'm using a cfform in the window, so I could get rid of that and lose maybe 2 of those JS files. Is there any way of slimming down this js, or am I better off, as I suspect, just not using cfwindow at all and looking at a Jquery or similar equivalent? If it's the latter, anyone have any recommendations? Thanks Will ~| 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:315205 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: OT JavaScript question.
var myObj = { variableA: 'some value', variableB: 12, variableC: function(){ // a function } }; I think, you'll want to test. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Ian Skinner wrote: Quick question that I just can not think of the right terms to find in Google. There is a syntax short cut in JavaScript if you are assigning several properties to the same object. What is it? ~| 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:315159 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
SOT: CF conversion
OK, I need a little help. I was asked, a few months back, to co-author a book on Learning ExtJS. When I wrote my chapters, one of them required server-side code, which I (of course) wrote in CF. Unfortunately, the rest of the book's server-side examples are written in PHP. They asked me to convert, but I don't know PHP, so they had the primary author handle the conversion. Well, apparently the author has less knowledge of CF than I do of PHP. I've never studied or written PHP, but it's obvious that his conversions won't work with the examples, and are not one-for one. One of my primary examples had a cfc method that used cfdirectory to return a query object of a directory's contents. He turned around and wrote something that queried a MySQL db. He also returned the value in JSON format. Unfortunately, that format doesn't mirror the format that ColdFusion uses, which is actually a requirement of this exercise, as this piece of the chapter explains custom data readers, and the example is reading JSON in this (the CF) format to populate a data store. Is there a PHP library that does something similar to what CF does, in returning a query object for a directory structure? Can you create PHP 'classes', with methods that can be called directly in an Ajax call? Here's the CFC I was using in my examples: !--- // *** //CLASS|TEMPLATE: //Chapter_12\Chapter12Example.cfc // //PURPOSE: //A ColdFusion component used for Ajax examples in Chapter 12 // //AUTHOR: //Stephen G. 'Cutter' Blades, Jr. // //CHANGE LOG: // *** //SGB [07.17.08] //Template created // *** --- cfcomponent output=false !--- /METHOD: example2 / /@paramid:numeric /@returnoutput:string --- cffunction name=example2 access=remote output=false returntype=string cfargument name=id type=numeric required=true / cfset var output = / cfset var q = / cftry cfquery name=q datasource=chapter12 SELECTfirstName, lastName, occupation FROMPeople WHEREID = cfqueryparam cfsqltype=cf_sql_integer value=#ARGUMENTS.id# / /cfquery cfcatch type=database !--- Place Error Handling Here --- /cfcatch /cftry cfif IsDefined(q.recordcount) and q.recordcount cfsavecontent variable=outputcfoutput #q.firstName# #q.lastName#: #q.occupation#br / /cfoutput/cfsavecontent /cfif cfreturn output / /cffunction !--- /METHOD: getFileInfoByPath / /@paramstartPath:string /@returnq:query --- cffunction name=getFileInfoByPath access=remote output=false returntype=query cfargument name=startPath required=true type=string / cfset var q = / cftry cfdirectory action=list name=q directory=#ExpandPath(ARGUMENTS.startPath)# filter=*.jpg / cfcatch type=any !--- Place Error Handler Here --- cfset q = QueryNew('ID') / cfset q = QuerySetCell(q,'ID',0,1) / /cfcatch /cftry cfreturn q / /cffunction !--- /METHOD: getDirectoryContents / /@paramstartPath:string /@paramrecurse:boolean (optional) /@paramfileFilter:string (optional) /@paramdirFilter:string (optional - File|Dir) /@paramsortField:string (optional - NAME|SIZE|TYPE|DATELASTMODIFIED|ATTRIBUTES|MODE|DIRECTORY) /@paramsortDirection:string (option - ASC|DESC [defaults to ASC]) /@returnretQ:query --- cffunction name=getDirectoryContents access=remote output=false returntype=query cfargument name=startPath required=true type=string / cfargument name=recurse required=false type=boolean default=false / cfargument name=sortDirection required=false type=string default=ASC / !--- Set some function local variables --- cfset var q = / cfset var retQ = / cfset var attrArgs = {} / cfset var ourDir = ExpandPath(ARGUMENTS.startPath) / !--- Create some lists of valid arguments --- cfset var filterList = File,Dir / cfset var sortDirList = ASC,DESC / cfset var columnList = NAME,SIZE,TYPE,DATELASTMODIFIED,ATTRIBUTES,MODE,DIRECTORY / cftry cfset attrArgs.recurse = ARGUMENTS.recurse
Re: After migrating from CFMX 6.1 to CF8 server grinds to halt within a minute
We've had exceptional progress with this. Downgrading the JVM was definitely the way to go for us, and we found the Garbage Collection to be much better as well, though we're not 64-bit. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Justin Hansen wrote: Try down grading your JVM to 1.5.x. http://www.mkville.com/blog/index.cfm/2008/2/4/ColdFusion-8-Random-Slowness-Downgrade-the-JVM Justin ~| 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:314294 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: AW: After migrating from CFMX 6.1 to CF8 server grinds to halt within a minute
That serverstore error is typically in creating additional CF instances with the Enterprise Manager without first adding instance folders within JRun/lib/wsconfig. If you don't manually create these folders first, naming them exactly as you will name your instances, then the Apache connectors get fubarred. http://blog.cutterscrossing.com/index.cfm/2007/7/23/Local-Development-Setup-Pt-2-Multiple-ColdFusion-Instances Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Markus Wollny wrote: Hi! Justin Hansen wrote: Try down grading your JVM to 1.5.x. Already tried that. Apparently this was not the issue; the problem persists with jdk1.5.0_16. I tried the JRE that came with CF8, as well as jdk1.6.0_10 and jdk1.5.0_16, neither resolved the issue at hand. I'll try a standalone configuration next, I think it's probably better to take smaller steps with this beast. I'll downgrade the server to CFMX 6.1 for the weekend and have another go at it next week. BTW - has anybody experienced errors like these in their apache error logs and found out what it takes to resolve that? [Thu Oct 23 16:46:39 2008] [notice] jrApache[21772: 30469] can't persist servers, no serverstore specified. We have already tried uninstalling and re-installing the webserver connectors multiple times for each instance, also varied the installation sequence, but that didn't help either. It's probably not much of an issue for me at this point of time as I expect that to go away with a fresh CF8 standalone install, but that multiserver-config is still on my agenda, even if I'll now gather some performance tuning experience with the standalone variant first. Kind regards Markus Computec Media AG Sitz der Gesellschaft und Registergericht: Fürth (HRB 8818) Vorstandsmitglieder: Johannes S. Gözalan (Vorsitzender) und Rainer Rosenbusch Vorsitzender des Aufsichtsrates: Jürg Marquard Umsatzsteuer-Identifikationsnummer: DE 812 575 276 ~| 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:314296 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: form info to a cfc
This really depends on what it is you're trying to do. If it's an Ajax submission, you can change the returnFormat to 'plain', and in your CFC send back a formatted block. Your callback method would take the response, which you would write to something on your page. If you just have the cfc as the action attribute of a regular old form, that's a different story. You would really want to setup up a processor page, which would invoke your cfc, pass the FORM scope into a method as an argumentCollection, then do something from the response of the method. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com mikeashields wrote: I've crawled inside and out of the documentation for how to pass html form data to a cfc and display the result (see http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=buildingComponents_15.html) but -- possibly due to If the CFC returns a result using the cfreturn tag, ColdFusion converts the text to HTML edit format, puts it in a WDDX packet, and includes the packet in the HTML that it returns to the client. -- I cannot find any way to display the results of passing info either by form or URL ( all that happens on form submit is this url http://70.XX.XX.XX:8500/olo/cfc/SearchOwners.cfc?method=getEmp in the address bar and a completely empty screen). My .CFM FIle: h2Find People/h2 form action=../cfc/SearchOwners.cfc?method=getEmp method=post pEnter employee's last Name:/p input type=Text name=lastName input type=Hidden name=method value=getEmp input type=Submit title=Submit Querybr /form My .CFC File cfcomponent cffunction name=getEmp access=remote cfargument name=lastName required=true cfset var empQuery= cfquery name=empQuery datasource=OLO SELECT * FROM owners WHERE family_name = '#arguments.lastName#' /cfquery cfoutputResults filtered by #arguments.lastName#:/cfoutputbr cfdump var=#empQuery# /cffunction /cfcomponent Yet this invoke cfm works no problem returning results body !--- Invoke Component. --- cfinvoke component=olo.cfc.SearchOwners method=getEmp returnvariable=qResult cfinvokeargument name=lastName value=Shields/ /cfinvoke /body ~| 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:314071 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: SOT: Apache and Windows resources
Thanks Dave. I was afraid of that, as those resources reside in a different domain. I'll have to hack through some testing. Thanks again for your response. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Dave Watts wrote: Trying to setup some Alias paths, within Apache, exposing resources available on a Storage Area Network. These are primarily media type resources (site.com/images, site.com/media, etc.) When working with IIS, you set these up as Virtual Directories, and apply any user permissions within that directory's Properties. Access permissions are defined by a Domain Controller. So, the question is, how do you cover the same directory authorization within an Apache configuration? I've done Aliases to UNC resources in the past, but never had to worry about the DC authorization before. Anyone have an idea as to how this authorization is configured? Since Apache isn't capable of user impersonation as IIS is, you will need to run Apache as a user with access to those remote resources. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| 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:313848 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: GENERATED_KEY not in result
And you're referencing it as result.GENERATED_KEY? Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com John Wilker wrote: I've set result = 'result' in my CFQuery tag, but still get GENERATED_KEY is undefined cfquery datasource=#request.wpDSN# result=result INSERT INTO #request.wpTablePrefix#terms VALUES cfdump label='result' var='#result#'cfabort it's not in the dump. I had CFDynamics confirm MySQL 5, and not using the MySQL 3.51 driver Are there other things to test? CFD doesn't have any more info they can offer. John Wilker 360Conferences, Inc. twitter: jwilker www.johnwilker.com / www.360conferences.com / ignitedenver.blogspot.com Vision is not enough; it must be combined with venture. It is not enough to stare up the steps; we must step up the stairs. ~Vaclev Havel ~| 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:313889 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
SOT: Apache and Windows resources
Trying to setup some Alias paths, within Apache, exposing resources available on a Storage Area Network. These are primarily media type resources (site.com/images, site.com/media, etc.) When working with IIS, you set these up as Virtual Directories, and apply any user permissions within that directory's Properties. Access permissions are defined by a Domain Controller. So, the question is, how do you cover the same directory authorization within an Apache configuration? I've done Aliases to UNC resources in the past, but never had to worry about the DC authorization before. Anyone have an idea as to how this authorization is configured? -- Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.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:313823 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Parse .html files with Coldfusion
If you made the change in the web.xml file then it would. The changes you need to make only need to be made in your apache configuration, and only for that site. @Ian Skinner - Nice catch, forgot about that. I put anything that outputs inside of cfoutput, because of using cfsetting to suppress white space. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Scott Stevens wrote: Can you confirm that you added the AddHandler line to JUST the VirtualHost that you wanted to have the html files interpreted? What if you remove the Directory tags from around it and simply had the line directly in the VirtualHost directive? I did only add the AddHandler to the vhost.conf file for only the 1 domain. It actually didn't matter if I added this. As soon as I made the edits to the web.xml file outlined above, CF started processing .html, .htm files for all domains. Editing the web.xml file is all I did, so unless there is a way to do an IF statement in the web.xml file, I can't imagine how to get around it running on all domains. ~| 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:313419 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Parse .html files with Coldfusion
Plus, you had better know the code of each site really well. One inline style declaration for a color and BOOM, big CF error where none should ever show. This post can help get you through the mult-server Apache instance config. It'll show you how to target an instance for a site as well. http://blog.cutterscrossing.com/index.cfm/2007/7/23/Local-Development-Setup-Pt-2-Multiple-ColdFusion-Instances Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com James Holmes wrote: The most important implication is that every request for an HTML file will now take a thread in CF for the life of the request. It really does depend on the demand on the box. mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ 2008/10/2 Scott Stevens If that's the case, is there a huge processing increase by running the standard .html files through CF? There's no CF code in the .html files for most of the domains on the server, but is it still a big processing hit to the server to run all those files through CF? It would probably add about 1000 new files being sent to CF. I'm guessing, of course, that the traffic to those pages a something to do with it. ~| 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:313384 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Parse .html files with Coldfusion
You can adjust your httpd.conf file. In the section for JRun, specify ..html as one of the file types to be parsed by your coldfusion instance (you'll see a line with .cfm, .cfc, .cfr, etc). Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Scott Stevens wrote: I'm running CF 7.02 on a Linux server (Red Hat,Plesk 8, Apache) and would like to have Coldfusion parse .html files as it would .cfm files. I have root access to the server, and am hosting about 100 domains on the box. I only want Coldfusion to process .html files as .cfm for one particular site. Through many searches I've found some answers, but can't quite get it to work. Here's what I've done. Can someone tell me if I missed something. 1. Added the following to the specific domain's vhost.conf file: Directory /home/httpd/vhosts/mydomain.com/httpdocs AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf .htm .html /Directory 2. Added the following to the web.xml file in the cf_root/wwwroot/WEB-INF directory servlet-mapping id=macromedia_mapping_14 servlet-nameCFMServlet/servlet-name url-pattern*.html/url-pattern /servlet-mapping servlet-mapping id=macromedia_mapping_15 servlet-nameCFMServlet/servlet-name url-pattern*.html/*/url-pattern /servlet-mapping servlet-mapping id=macromedia_mapping_16 servlet-nameCFMServlet/servlet-name url-pattern*.htm/url-pattern /servlet-mapping servlet-mapping id=macromedia_mapping_17 servlet-nameCFMServlet/servlet-name url-pattern*.htm/*/url-pattern /servlet-mapping 3. Added the following -map switch to the apache_connector.sh file in the cf_root/bin/connectors folder. Below is the full apache_connector.sh code. #!/bin/sh # # Configure the Apache connector. # -dir should be the *directory* which contains httpd.conf # -bin should be the path to the apache *executable* # -script should be the path to the script which is used to # start/stop apache # .../../runtime/bin/wsconfig \ -server coldfusion \ -ws apache \ -dir /usr/local/apache2/conf \ -bin /usr/local/apache2/bin/httpd \ -script /usr/local/apache2/bin/apachectl \ -coldfusion -map .htm,.html exit $# 4. Restarted httpd and coldfusion. When I try to access a .html file, it gives me a page with the title JRun Servlet Error, and body 404 null I referenced the link below, which was for IIS, but I guess there's more to it on linux. http://www.talkingtree.com/blog/index.cfm/2006/2/17/CF-Custom-File-Extensions Thanks for any help! ~| 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:313371 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: remote proxy object security
Richard, We recently implemented a few webservices for our parent company. When doing these I took a multi-tier approach: 1) folder of service requires authentication (web server) 2) Application in folder required the request be made over SSL 3) Application took authentication credentials from server auth, and also verified against: a) List of authorized users b) DB check of authentication to system This applied a role to the authenticated user, for which certain services required specific roles for access as well. This is how we've handled this particular access. A lot of the data being returned from the service is also encrypted, providing another layer of security. Using Ajax for these services, you may also want to review this article from Ray Camden, http://www.coldfusionjedi.com/index.cfm/2007/7/31/ColdFusion-8-Ajax-Security-Features. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Richard White wrote: hi, we are creating remote proxy objects / web services as a lot of our software uses JSMX from the client to the server. however, we don't quite understand the security of these objects. how can we ensure that no one else can use these remote proxy objects / web services without coming through the JSMX message calls from our client software? any discussions, tips or advice would be welcome as we are just trying to get our heads around this. thanks richard ~| 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:313226 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Chrome: Cfinput text area: fckeditor
The CF 8.01 updater includes FCKEditor 2.5, if I remember correctly. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Paul Ihrig wrote: so how do i updated the fckeditor that cf 8 uses in its rich text area for cfinput? On Thu, Sep 25, 2008 at 10:39 AM, Ryan Stille [EMAIL PROTECTED] wrote: Paul Ihrig wrote: the fckeditor in cf8 dosnt seem to render in chrome. any ideas? danke -paul I believe it only works in Safari/Chrome when using the latest version of FCKEditor. -Ryan ~| 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:313081 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Windows 2003 server CF 8 Installation issue
If not IIS, then what webserver are you connecting it to? Apache? Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Gus Denton wrote: Sorry for posting twice but I am a bit of a newbie at this.. I am have a really hard time installing CF 8 on Win 2003 SP2, I have changed permissions on the directories, turned off DEP, Installed on an old Win 2000 box and the same problem keeps poping up.. I am try to do the multiserver installation without linking to IIS and every time there is a single error in the install log about ANT not being able to find a single directory xxx\servers\cfusion\coldfusionwar\coldfusionear\webinf\something\lib I have changed permissions cleared temp directories and anything else I can see on the web but to no avail.. I have even pulled down a fresh copy of the Win 801 installer but no love.. Just an incomplete install without any of the CF directories or a wwwroot Short of covering myself in Chicken blood and dancing around a fire naked whilst offering votive offerings to IT gods I am out of ideas ! can anyone spare from an embarasing night in a paddock ! Gus ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312885 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Windows 2003 server CF 8 Installation issue
Gus, I don't know that you truly can deploy multi-server without a web server. I do know that it's not suggested to use the built in, outside of single instance dev. On the swing side, I connect to the built in nearly every time I'm accessing the one of my instance CF admins. Just out of curiosity, why are you using the built in, and not using something like Apache? Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Gus Denton wrote: Doing a standalone installation using builtin webserver available with the installation If not IIS, then what webserver are you connecting it to? Apache? Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Gus Denton wrote: Sorry for posting twice but I am a bit of a newbie at this.. I am have a really hard time installing CF 8 on Win 2003 SP2, I have changed permissions on the directories, turned off DEP, Installed on an old Win 2000 box and the same problem keeps poping up.. I am try to do the multiserver installation without linking to IIS and every time there is a single error in the install log about ANT not being able to find a single directory xxx\servers\cfusion\coldfusionwar\coldfusionear\webinf\something\lib I have changed permissions cleared temp directories and anything else I can see on the web but to no avail.. I have even pulled down a fresh copy of the Win 801 installer but no love.. Just an incomplete install without any of the CF directories or a wwwroot Short of covering myself in Chicken blood and dancing around a fire naked whilst offering votive offerings to IT gods I am out of ideas ! can anyone spare from an embarasing night in a paddock ! Gus ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312890 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cfgridcolumn
This works like any normal select field, passing you the actual value of the selected item, not the display value (unless they're the same). Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com John Bliss wrote: I have a cfgrid bound to a cfc. It'll have one (and only one) editable column, ActiveStateID, which will be a select box on each row. My attempt to do this includes: cfgrid selectmode=edit format=html [snip] cfgridcolumn name=ActiveStateID header=State select=yes display=yes values=1,2,3 valuesdisplay=Active,Enabled,Paused [snip] /cfgrid The problem is that this gives me an ActiveStateID column containing the integer values of the foreign key (1, 2, or 3) instead of select boxes with Active, Enabled, and Paused and the correct option selected. I found this: http://cfsilence.com/blog/client/index.cfm/2006/6/12/CFGRID-Cell-Renderer--ComboBox-Select but that only works for Flash forms/grids. Ideas...? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312904 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: CF8 ajax component skin
Checkout the Learning Center of the Ext website (extjs.com). In the LC's Community Extensions section you can find some other skins (make sure you get the ones for Ext 1.x, which are on the bottom half of the page I think). Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com henry ho wrote: Other than the default, aero vista, are there anymore skins for CF ajax components? The aero vista skins are ugly with CFLAYOUT tabs. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:312056 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Upgrading CF8 to use ExtJS 2.2
You cannot upgrade the ExtJS library that is used by the CF8 Ajax components. Architecture of the Ext library was changed significantly between Ext 1.x and 2.x, and Adobe's Java implementation, which writes the javascript hooks for you when using the appropriate cf tags, would not work properly, were you to 'update' the internal library. If you want to use Ext 2.2, you have to write your implementation from scratch (which you'll want to do, if you want more advanced functionality). Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Dave Hatz wrote: I am looking to upgrade the ExtJS library from 1.1 in CF8 to 2.2. I am looking for any details on how to upgrade ExtJS to 2.2 in CF8. Can someone please provide any details on where I can find this information? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311503 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: PID errors - much simpler
I guess I didn't see the original thread. What's the bit about image manipulation? Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Brad Wood wrote: Yes, I've gotten them when JRUN had a hard crash, but it was never related to image manipulation. ~Brad - Original Message - From: James Wolfe [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Monday, August 25, 2008 5:23 PM Subject: PID errors - much simpler OK, So it appears I went a little too specific with my previous question. Here is a simpler version: Does anyone have files that look like this: hs_err_pid.log ( can be any number) in the following folder: c:\coldfusion8\runtime\bin ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311537 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: PID errors - much simpler
I was thinking that, if he was using cfimage (and heavily), that this new hotfix from last week might be worth trying. Doesn't reference that activity directly, but file locks could cause thread lock issues, which might indirectly bounce CF. http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403411 Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com James Holmes wrote: Because the OP says they get the crash once in every ~10,000 attempts which is probably the limit at which the hotspot compiler decided to compile the given class to native code. After the auto restart the same code works fine. It's a classic sign of this problem. On Tue, Aug 26, 2008 at 9:46 AM, Brad Wood [EMAIL PROTECTED] wrote: James, if the JVM crashes, it will certainly create a hs_err_pid file, but how do you know that the OP's problem is related to hotspot optimization? The talkingtree post says nothing about image manipulation, and there has got to be more than one reason for a JVM crash. ~Brad - Original Message - From: James Holmes [EMAIL PROTECTED] To: CF-Talk cf-talk@houseoffusion.com Sent: Monday, August 25, 2008 8:24 PM Subject: Re: PID errors - much simpler These crashes are related to JVM hotspot optimisation. http://www.talkingtree.com/blog/index.cfm/2004/5/21/hscrashlog0504 Try updating your JVM, if possible. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311549 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Apache + Virtual hosts with CF
Aren't VirtualHosts in that version of Apache referenced through a separate, included .conf file? Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Stephen Adams wrote: Hi, I'm trying to set up VirtualHosts in apache for the cf sites I'm working on. My setup so far is I have apache2.2.9 installed, with cf8 running on Vista Home Premium. Both are working fine, the CF administrator runs fine everything is ok. When I installed CF I did not use the JRun setting instead I selected the multi-server config and selected the Apache directory and bin file. But what I want to do is create Virtual Hosts for each site I work on, for example site1.local or site2.local I have edited my httpd.conf file and added these line at the bottom of the file: NameVirtualHost 127.0.0.1 VirtualHost 127.0.0.1 DocumentRoot C:\Program Files\Apache Software Foundation\Apache2.2\htdocs ServerName localhost /VirtualHost VirtualHost 127.0.0.1 ServerAdmin [EMAIL PROTECTED] DocumentRoot C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\site1\htdocs ServerName site1.local ErrorLog logs/site1-error_log /VirtualHost VirtualHost 127.0.0.1 ServerAdmin [EMAIL PROTECTED] DocumentRoot C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\site2\htdocs ServerName site2.local ErrorLog logs/site2-error_log /VirtualHost I then edited the hosts file under C:\Windows\System32\drivers\etc And restarted Apache, but now when I go to http://site1.local or http://site2.local I keep getting the default It Works page of Apache. To navigate to the site I then have to put http://site1.local/site1/htdocs/index.cfm now I've been looking on the web for answers but I cannot find a clear answer, so if anyone can help that'll be great. Thanks Stephen ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310970 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
CF8 JVM options
Looking to explore other JVM options, and wondering what JVM (other than Sun) anyone else is having success with CF8? -- Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310887 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Configuring Apache Web Server 2.2.9 and CFMX 7.02
(Backup your JRun folder, prior to any of these actions) I would: a) Stop all CF instances. Open the connect util, C:\JRun4\bin\wsconfig.exe, and remove all connections (Note their settings) b) backup the current wsconfig.jar in your C:\JRun4\lib folder c) drop the new one in d) In the C:\JRun4\lib\wsconfig folder, remove the sub-folders (but not the files in the wsconfig root) e) Re-run the server connector utility Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310898 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Configuring Apache Web Server 2.2.9 and CFMX 7.02
Chris, Slightly older Apache, but this might help: http://blog.cutterscrossing.com/index.cfm/2007/1/16/CFMX7-and-Apache-224 Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Chris Montgomery wrote: Howdy, I'm having difficulty configuring Apache Web Server 2.2.9 to work with CFMX 7.02 on my local Windows XP dev box. I've attempted to follow the directions for this at http://kb.adobe.com/selfservice/viewContent.do?externalId=8001e97sliceId=2 (under the section ColdFusion MX 7.0.1 or 7.0.2 Server edition) and modified the example code listed in item 5 as follows: [code] e:\programs\cfusionmx7\runtime\jre\bin\java -cp e:\programs\cfusionmx7\runtime\lib -Dtrace.ci=1 -jar wsconfig.jar -server coldfusion -ws apache -dir e:\Programs\Apache2.2\conf -bin e:\Programs\Apache2.2\bin\httpd -script e:\Programs\Apache2.2\bin\apachectl -coldfusion -v [-apxs] [/code] When I run this at the command prompt, I am receiving an error Unable to access jarfile wsconfig.jar. I'd greatly appreciate any hints to troubleshoot this. Thanks. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310291 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Reloading CFC's?
Philip, I had the same problem, until I notice that Save Class Files was checked in the 'Caching' section of the CF Administrator. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Phillip M. Vector wrote: Do CFC's have to be reloaded? I just put in a function into a cfc and when I try to load it up, it says... The method testing was not found in component C:\Webpages\CurrentProjects\Blisuptown\cfcs\ezsite.cfc. Ensure that the method is defined, and that it is spelled correctly. I'm positive it's spelled correctly (cut and paste) and the code is just a copy of the code in another cffunction (I didn't make the changes to it yet). So my question is why isn't it recognizing the code in the CFC that I know is there? Do I need to restart the CF server every time I make a change to a cfc? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310103 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: (ot) Eclipse Question
You can write an ANT task to sync your folders. Something like: sync todir=${server.target} includeEmptyDirs=true verbose=true failonerror=false fileset dir=${latest.comtemp}${today.date} include name=**/*.cfm/ include name=**/*.cfc/ include name=**/*.xml/ include name=**/*.xsl/ include name=**/*.html/ include name=**/*.js/ include name=**/*.css/ include name=**/*.gif/ include name=**/*.GIF/ include name=**/*.JPG/ include name=**/*.jpg/ include name=**/*.txt/ include name=**/*.htm/ include name=**/*.pdf/ include name=**/*.htc/ include name=**/*.exe/ exclude name=**/*.project/ /fileset /sync I haven't written anything on this, though there are tons of resources through Google. You may also find more details on Jim Priest's ANT Wiki (http://www.thecrumb.com/wiki/ant) Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Dave Phillips wrote: Is this synchronizing built into Eclipse or do I need a plug in? Has anyone done this and, if so, can you provide some details as to how you did it? If you prefer to answer off-list, that's fine. I appreciate the response! Dave -Original Message- From: Sonny Savage [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 30, 2008 9:51 AM To: CF-Talk Subject: Re: (ot) Eclipse Question 1. Work with the code locally. 2. Synchronize to the shared folder, excluding the .project file. On Wed, Jul 30, 2008 at 10:48 AM, Dave Phillips [EMAIL PROTECTED] wrote: For those of you who use Eclipse (and I know a lot of you do) I have a simple question that I can't seem to find an answer for, and I'm hoping someone here has already dealt with it. I need to find a way to keep the .project file in a different location than where the project is pointing to. I know this sounds strange, but, unfortunately, in the environment I'm working in, we access code in a shared folder and the powers that be don't want the .project file showing up there all the time. So much so that I'm being pushed to give up Eclipse for a 'simpler' editor that doesn't do that. Any ideas? Thanks! Dave ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309950 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: (ot) URL Hack Attempt Leaves Me Scractching My Head
MaryJo produces a product that she supports on older platforms, hence the need to bypass cfqueryparam. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Robert Harrison wrote: Version 2 of the scanner I did is now available here: http://www.cfwebstore.com/index.cfm?fuseaction=page.downloaddownloadID=18 Am I missing something here. I thought CFQUERYPARAM solved this problem. Is this redundant or is there some problem with CFQUERYPARAM I'm missing? Robert B. Harrison Director of Interactive services Austin Williams 125 Kennedy Drive, Suite 100 Hauppauge NY 11788 T : 631.231.6600 Ext. 119 F : 631.434.7022 www.austin-williams.com Great advertising can't be either/or... It must be . ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309825 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: (ot) URL Hack Attempt Leaves Me Scractching My Head...
Radek, The point is, without the cfqueryparam it doesn't really get there. The passed user_id isn't bound in the query, so the ;{everything else} get's processed as additional SQL statements. When the value is bound, then the ;{and everything else} would actually be passed into the field (since it isn't being processed by your SQL server as a statement, just a value), failing the field definition and throwing an error. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Radek Valachovic wrote: Okay what about this, for example column name ITEMOID has in DB maxlenght 15 and it is numeric. Integer is -2,147,483,648 and 2,147,483,647 = 10 the point is 10 or 15 doesnt matter. I will specify for ITEMOID in DB maxl = 15 Example QUERY is SELECT location FROM item WHERE url.user_id = #url.user_id# URL gonna look like this example: http://mydomain.com/index.cfm?user_id=125456 Now imagine the Hacker Code (Declare etc etc) will add to the end: http://mydomain.com/index.cfm?user_id=125456;DECLARE How can it be processed when USER_ID in database is specified for LENGHT 15 and USER_ID with Hacker code has lenght like 100? I guess u gonna gonna say that's why u have to use : SELECT location FROM item WHERE url.user_id = cfqueryparam value=#url.user_id# cfsqltype=CF_SQL_INTEGER to validate it. I undestand that, but why it is not validated already when in DB it is specified lenght 15 and using this query: SELECT location FROM item WHERE url.user_id = #url.user_id# it should work and I have to use another validation in code using cfqueryparam?: SELECT location FROM item WHERE url.user_id = cfqueryparam value=#url.user_id# cfsqltype=CF_SQL_INTEGER Thanks RAdek On Thu, Jul 24, 2008 at 2:21 PM, Adrian Lynch [EMAIL PROTECTED] wrote: Whatever the length of the column in your DB. Adrian -Original Message- From: Radek Valachovic [mailto:[EMAIL PROTECTED] Sent: 24 July 2008 19:19 To: CF-Talk Subject: Re: (ot) URL Hack Attempt Leaves Me Scractching My Head... What would you suggest for this kind of thing: Select USERID from users where email = '#trim(arguments.email)#' and password = '#trim(arguments.password)#' Something like this? Select USERID from users where email = cfqueryparam value=#trim(arguments.email)# cfsqltype=CF_SQL_VARCHAR maxlength=? and password = cfqueryparam value=#trim(arguments.password)# cfsqltype=CF_SQL_VARCHAR maxlength=? I put Question marks to MAXLENGHT still thinking if I should specify it for more security (but guessing lenght of emails someone can be rejected) or can it be without MAXLENGHT? Radek ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309667 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Code Cleaning Tool -Removing Tab characters
Will, You can't have tabs? In the deployment phase, or in development? It would be a shame to lose that formatting in the development phase, as that type of formatting (aside from being very standard practice) really does help with code readability. I would suggest you look at ANT for your task. We don't do it ourselves, but I've seen posts where people use SVNANT for code deployment, and let ANT remove all whitespace (tab, new line) from templates at that time. This helps them maintain code readability during the development phase, but helps to reduce bandwidth and storage space in the deployment phase. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Will Tomlinson wrote: Hey, I'm working for a company with a pretty sharp code review tool. There are hundreds of things it checks for. One of them is tab characters. We can't have any tabs in our source. I thought I could stay ahead of the curve by using my own tool that'd run a few checks on my directory, and clean things up a bit. I found my old Count the lines of code thread, where the tool runs through the directory and counts the lines. Could I modify this to fit my needs? OR should I just build a new regex tool? cfdirectory directory=c:\webRoot\someSite action=list name=mySite filter=* sort=directory recurse=yes cfset totalLines = 0 !---loop over all the files and filter on list of extensions--- cfloop query=mySite cfif type eq file cffile action=read file=#directory#\#name# variable=curFile cfif cfc,cfm,xml,as,sql,css,html CONTAINS listGetAt(name, 2, '.') !---create an array of line items (parse by ascii carriage return and output the name of the file--- cfset myArray = listToArray(curFile, #Chr(13)#) cfoutput#name#br //cfoutput !---add current files line count to total--- cfset totalLines = totalLines + arrayLen(myArray) /cfif /cfif /cfloop !---output line count total--- cfoutput#totalLines#/cfoutput Thanks, Will ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308218 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Coldfusion 8 install question
Qing brings up some very good points. You must treat each individual instance of CF as an individual server, and as such upgrades and changes to one will typically not be automatically applied to another. One advantage is that each instance also gets it's own JVM instance, but you must think about this in line with your JVM tuning as well. If your physical server only has 3 GB of RAM, and you're running two instances of CF, then you'll want to make sure that you don't try to allocate a full 1024 MB of memory to your JVM per instance, as you'll want a little more wiggle room for the OS to use. JRun JVM tuning is done directly in the Jrun4\bin\jvm.config, and it's arguments will apply to all JVM instances, unlike the thread tuning arguments you can control within each instance's jrun.xml. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Qing Xia wrote: Since we are talking about multiple instances, I thought I'd pass along a couple of things that have caused me much grief: 1) Be sure that IIS sites need to be assigned to CF instances using the Web Server Configuration tool (installation driver\JRun4\bin\wsconfig.exe) 2) When you apply CF hot fixes, each instance needs to have the hot fixes installed for it individually. On Mon, Jun 23, 2008 at 12:11 PM, John P [EMAIL PROTECTED] wrote: Thank you both for the info. John You need to add the data sources into each instance if you plan on actually using them. Unless you have a site using the default instance, you shouldn't need any data sources set up there. I may be wrong, but I seemed to remember if you added data sources to your base instance BEFORE creating the other instances, the data sources will copy over at the time they are created. If you are looking for a magical way to have the data sources automatically add to all instances at once, try Railo. :) Our server admin has set up CF8 with 4 instances. When adding data sources I have to add them to the root cfide/administrator rather than within the instance example: http:mysite.com/:portNumber/cfide/administrator. Seems like the install might be configured incorrectly, does anyone have any experience with setting up multiple instance data sources? Do they just go in the root cfide? Thanks, John ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307968 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Coldfusion 8 install question
Thanks Qing. We just went through a major datacenter migration, brought on by growing pains (all outlined in my most recent blog post), so I've learned more about CF, JRun, and the JVM in the last nine months than I ever thought I would need to know. Mike Brunt's blog postings, on the Alagad site, have been an invaluable resource, as have posts from Steven Erat, and Sarge Seargent. Takes a little searching, and a lot of testing for what works best for your applications, but it is well worth the effort. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Qing Xia wrote: Wow! This is advanced stuff! I have not done anything for the JVM tuning yet--so I imagine everything is at its default value now. Time to dig in and see what I can do with them... We have 4 CF 8 instances running on one (pretty powerful) virtual server. So far there has been no performance issues, but I am sure there is room for improvement! Thanks for the info. :-) On Mon, Jun 23, 2008 at 12:38 PM, Cutter (CFRelated) [EMAIL PROTECTED] wrote: Qing brings up some very good points. You must treat each individual instance of CF as an individual server, and as such upgrades and changes to one will typically not be automatically applied to another. One advantage is that each instance also gets it's own JVM instance, but you must think about this in line with your JVM tuning as well. If your physical server only has 3 GB of RAM, and you're running two instances of CF, then you'll want to make sure that you don't try to allocate a full 1024 MB of memory to your JVM per instance, as you'll want a little more wiggle room for the OS to use. JRun JVM tuning is done directly in the Jrun4\bin\jvm.config, and it's arguments will apply to all JVM instances, unlike the thread tuning arguments you can control within each instance's jrun.xml. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Qing Xia wrote: Since we are talking about multiple instances, I thought I'd pass along a couple of things that have caused me much grief: 1) Be sure that IIS sites need to be assigned to CF instances using the Web Server Configuration tool (installation driver\JRun4\bin\wsconfig.exe) 2) When you apply CF hot fixes, each instance needs to have the hot fixes installed for it individually. On Mon, Jun 23, 2008 at 12:11 PM, John P [EMAIL PROTECTED] wrote: Thank you both for the info. John You need to add the data sources into each instance if you plan on actually using them. Unless you have a site using the default instance, you shouldn't need any data sources set up there. I may be wrong, but I seemed to remember if you added data sources to your base instance BEFORE creating the other instances, the data sources will copy over at the time they are created. If you are looking for a magical way to have the data sources automatically add to all instances at once, try Railo. :) Our server admin has set up CF8 with 4 instances. When adding data sources I have to add them to the root cfide/administrator rather than within the instance example: http:mysite.com/:portNumber/cfide/administrator. Seems like the install might be configured incorrectly, does anyone have any experience with setting up multiple instance data sources? Do they just go in the root cfide? Thanks, John ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307986 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Coldfusion 8 install question
Or, set it up once, then create an archive .car file to deploy on the other instances. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Brad Wood wrote: You need to add the data sources into each instance if you plan on actually using them. Unless you have a site using the default instance, you shouldn't need any data sources set up there. I may be wrong, but I seemed to remember if you added data sources to your base instance BEFORE creating the other instances, the data sources will copy over at the time they are created. If you are looking for a magical way to have the data sources automatically add to all instances at once, try Railo. :) -Original Message- From: John P [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 5:39 PM To: CF-Talk Subject: Coldfusion 8 install question Our server admin has set up CF8 with 4 instances. When adding data sources I have to add them to the root cfide/administrator rather than within the instance example: http:mysite.com/:portNumber/cfide/administrator. Seems like the install might be configured incorrectly, does anyone have any experience with setting up multiple instance data sources? Do they just go in the root cfide? Thanks, John ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307908 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Upgrade CF 6.1 - CF 8
First, I would absolutely suggest a fresh install. Life is easier, and the install process is fairly quick and painless. We just did a datacenter migration project (which I'll detail in an upcoming blog post). We were running, for a number of reasons, 6.1, 7 and 8 concurrently. When we first looked at moving to 7 we loaded a test system with our codebase for testing. In our massive (4k+ template) system, the only changes we had to make were removing cfbreak tags from cfswitch/cfcase statements (where they weren't necessary to begin with), and some minor refactoring for the use of ExpandPath() in conjunction with cfmapping variables. The transition to 8 didn't require any code changes whatsoever, although we did replace all image.cfc and zip.cfc processing with the built in cf image handling and cfzip tags. (Side Note: Although cfbreak was unnecessary in cfswitch/cfcase statements, the break; statement is still necessary in switch/case blocks within cfscript.) Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Kevin Pechin wrote: Hello All, We are about to take the plunge and upgrade our servers from CF 6 ent to 8 ent. I have been reading about various things to watch out for during the upgrade, but I was hoping that if anyone had any first hand gotchas they would like to share that would be great! We are running 32 bit Win2k3; iis 6; SQL Server db's; no verity. Would anyone recommend uninstalling 6 before going to 8? Thanks! -Kevin ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307703 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Multiple Servers Single Code Tree
Are you on a Windows platform? You might want to look into DFS: http://www.microsoft.com/windowsserver2003/technologies/storage/dfs/default.mspx Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Ryan Paulson wrote: I am looking for a quicker way to update my code. Currently I push to many servers but it would be much easier if I could point ColdFusion to a single code tree on our Storage Area Network (SAN). That way I would only have to push code to one place. Is it possible for multiple CF server installations to share a code tree? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307709 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CFGRID Stylesheet
Yes, you write a custom stylesheet to override the class declarations used in the ext-all.css. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Asim . wrote: its html grid.. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307779 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Extending Application.cfc
I have several tutorials on my site for integrating CF and Apache, with some step-by-step stuff on modifying your config files: http://blog.cutterscrossing.com/index.cfm/Apache Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Didgiman wrote: Nobody? What's this? First y'all tell me to install Apache, just like you did, but when I ask for an example config file, nobody has one? Come on, help a guy out here... Thanks On Mon, Jun 16, 2008 at 9:26 PM, Didgiman [EMAIL PROTECTED] wrote: Ok, ok, you all convinced me. I went along and installed Apache. However, I can't get it to run multiple sites and have the root /CFIDE/ still working (for the CF admin). Can someone please send me a copy of their httpd.conf file, so I can compare it to mine to see what I'm doing wrong. If there's anything funky I need to do with the hosts file as well, please let me know. Thanks to all for the advice! Wim. On Mon, Jun 16, 2008 at 5:32 PM, Brad Wood [EMAIL PROTECTED] wrote: I won't lie to you. If you've never used it, I do think Apache is harder to setup than IIS, or even CF but I still switched to it a long time ago on my home PC because I wanted multiple sites. I love it and I'm glad I did it. (And there's tons of info about it lying around the 'net) ~Brad -Original Message- From: s. isaac dealey [mailto:[EMAIL PROTECTED] Oh... I guess I skimmed over the fact that this was to get around the single-site limitation in the XP Pro version of IIS... So yeah, if that's the issue, I definitely recommend Apache -- it's honestly not any more difficult to set up and configure than ColdFusion imo. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307597 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: many sites, one codebase
Rick, To start off, take a look at cfoop.org, to gain a better understanding of object oriented programming with ColdFusion. Next, download and review the LitePost application off of Google Code. This is a simple blog app with a single model, but showing that model being used by Mach II, Model Glue, and Fusebox 5 implementations. After this you may look at Brian Rinaldi's Illudium PU-36 Code Generator, available on RIAForge. I would also suggest you read some of Sean Corfield's explanations on the Factory pattern. There are a ton of great resources available to you. You might check the UGTV site for presentations on using CFC's, as well as transitioning to Application.cfc. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Rick Faircloth wrote: Jim, I'd like to know more about this. It's all fairly new to me since I've only been with CF 8 for about 3 months now and I came straight from CF 4.5. Is there a particular tutorial online that you know of that walks a newbie to this kind of model through the process of using CFC's? Rick PS - Rick...hope you don't mind me asking this question in your thread. Not trying to hijack it! I'm working on sites that need the same model for code reuse you described in your previous post. One of the best things I ever did was to abstract everything that made sense into CFCs. The CFCs are shared and use a broker model for DB access so the same codebase can easily support any number of databases/DBMSs. Each site, for example, might instantiate an Application CFC which contains site-specific properties - but all of the code is shared. Really the only thing in the site's directories are the site specific material. Jim Davis ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307512 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: CF8 Ajax widgets and ExtJS 2.x
You would not be able to run the CF 8 Ajax components and ExtJS 2.x concurrently, as the inclusion of the ExtJs library would then override classes and functions previously included for the CF 8 components. I haven't tested, but I think you could access cfajaxproxy, and you could use the rich text editor, but that's probably the extent of it. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Leitch, Oblio wrote: Has anyone had experience with making CF8 work with ExtJS 2.x? I'm not trying to change the native functions, but it's all the supporting scripts that get in the way. For example, both rely on YUI, which gets over written when the CF stuff is included. Does Adobe plan on issuing an updated set of tags? How do I make the two play well? TIA --v--V-- ignore this --V--v-- This email message may contain privileged and/or confidential information. If you are not the intended recipient(s), you are hereby notified that any dissemination, distribution, or copying of this email message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this email message from your computer. CAUTION: The Agency of Human Services cannot ensure the confidentiality or security of email transmissions. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307234 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: ext-all.css
Yes, there would be a ton of errors that show for any of the CSS hacks needed to make it also work in IE 6. This is the stylesheet for all of the Ext based CF 8 image components. Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Chad Gray wrote: I am experimenting with CFLayout and I noticed in Firebug's console there are a ton of warnings for this file: ext-all.css Looks like CFLayout is what is calling in the CSS file. link rel=stylesheet type=text/css href=/CFIDE/scripts/ajax/resources/ext/css/ext-all.css / Is this normal? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307299 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Best CF editor?
Eclipse help from Andy Matthews...Whodathunkit! ;) (says the guy sitting next to him in the office...) Steve Cutter Blades Adobe Certified Professional Advanced Macromedia ColdFusion MX 7 Developer _ http://blog.cutterscrossing.com Andy Matthews wrote: CTRL + H brings up the search all selected projects dialog box. -Original Message- From: Qing Xia [mailto:[EMAIL PROTECTED] Sent: Friday, May 30, 2008 11:09 AM To: CF-Talk Subject: Re: Best CF editor? Hello folks: I am a newbie with CFEclilpse. I installed it about a week ago and so far, I am loving it. :-) Like most open-source product though, there is a dizzing array of help information online, but most of them are for advanced stuff, whereas I am only looking for tips to get me started. Would anyone recommend a good online resource for CFEclipse, please? For example, how on earth can I do an Extended Search like the one you are able to do in HomeSite+, by specifying a folder to search in? Tracy Xia On Fri, May 30, 2008 at 11:51 AM, Larry Lyons [EMAIL PROTECTED] wrote: Any second now someone is going to invoke Godwin's law. On Friday 30 May 2008, Gerald Guido wrote: because of the Eclipse gestapo. I am sorry. The WHAT? The Eclipse gestapo? You HAVE to be kidding me. Oh, no, everyone who uses Eclipse is a member of the Thousand Year Riche. Oh yes. Let me just check my suitcase for Scotch on the Rocks Laptop: check Wash bag: check Sharp suit: check Long coat (black): check SS cap: check -- 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 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;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306384 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4