Re: FB4 prefuseaction postfuseaction hang server
Sean Brian, Your right, I was, thanks for pointing that out. I've heard of MVC but yet to learn how to develop with it. Thanks for the help, works great putting it into a seperate circuit. -t On Wed, 29 Dec 2004 15:46:14 -0800, Sean Corfield [EMAIL PROTECTED] wrote: On Wed, 29 Dec 2004 15:27:18 -0500, Troy Murray [EMAIL PROTECTED] wrote: I currently have one circuit named admin that I'm using. Below is the circuit.xml file: ... I can run this just fine in my application, no problems. Now if I take the do action=admin.footer / for example out of the fuseaction list and delete and put it under the postfuseaction and then view the list or delete fuseaction, my server hangs as it's eating up the CPU (goes on longer then 2 minutes before I restart the server). You're creating an infinite loop. If your postfuseaction is admin.footer, that will go to circuit admin (this one) and run footer followed by postfuseaction... which will try to run admin.footer again. You'll need a separate circuit containing the header / footer stuff so that your admin circuit can do those actions. This is a good reason for following MVC-like principles of separating presentation from business logic and even separately the bulk of your presentation code from the layout level (in other words, splitting UI into presentation logic and presentation layout). -- Sean A Corfield -- http://www.corfield.org/ Team Fusebox -- http://www.fusebox.org/ Breeze Me! -- http://www.corfield.org/breezeme Got Gmail? -- I have 6 invites to give away! If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Special thanks to the CF Community Suite Silver Sponsor - RUWebby http://www.ruwebby.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188990 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
FB4 prefuseaction postfuseaction hang server
I'm sure I'm missing something simple here, but I can't seem to figure it out although I have found a work around. I currently have one circuit named admin that I'm using. Below is the circuit.xml file: circuit access=public prefuseaction /prefuseaction fuseaction name=list do action=admin.header / include template=qry/qry_GetFileList / xfa name = deleteAction value = delete / xfa name = searchAction value = list / include template=dsp/dsp_fileList / do action=admin.footer / /fuseaction fuseaction name=delete do action=admin.header / include template=dsp/thisFar / do action=admin.footer / /fuseaction fuseaction name=header include template=dsp/dsp_pageHeader / /fuseaction fuseaction name=footer include template=dsp/dsp_pageFooter / /fuseaction postfuseaction /postfuseaction /circuit I can run this just fine in my application, no problems. Now if I take the do action=admin.footer / for example out of the fuseaction list and delete and put it under the postfuseaction and then view the list or delete fuseaction, my server hangs as it's eating up the CPU (goes on longer then 2 minutes before I restart the server). Bottom line is, do action works in individual fuseaction list or delete but not when it's in the prefuseaction or postfuseaction areas. Any help would be appreciated! -- Troy Murray ~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188959 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: FB4 prefuseaction postfuseaction hang server
Are you sure you aren't creating an endless loop by running something in the prefuseaction that, when it runs, tries to run a prefuseaction again, and again, etc? Hope that helps. We use prefuseactions in many places so they do indeed work. On Wed, 29 Dec 2004 15:27:18 -0500, Troy Murray [EMAIL PROTECTED] wrote: I'm sure I'm missing something simple here, but I can't seem to figure it out although I have found a work around. I currently have one circuit named admin that I'm using. Below is the circuit.xml file: circuit access=public prefuseaction /prefuseaction fuseaction name=list do action=admin.header / include template=qry/qry_GetFileList / xfa name = deleteAction value = delete / xfa name = searchAction value = list / include template=dsp/dsp_fileList / do action=admin.footer / /fuseaction fuseaction name=delete do action=admin.header / include template=dsp/thisFar / do action=admin.footer / /fuseaction fuseaction name=header include template=dsp/dsp_pageHeader / /fuseaction fuseaction name=footer include template=dsp/dsp_pageFooter / /fuseaction postfuseaction /postfuseaction /circuit I can run this just fine in my application, no problems. Now if I take the do action=admin.footer / for example out of the fuseaction list and delete and put it under the postfuseaction and then view the list or delete fuseaction, my server hangs as it's eating up the CPU (goes on longer then 2 minutes before I restart the server). Bottom line is, do action works in individual fuseaction list or delete but not when it's in the prefuseaction or postfuseaction areas. Any help would be appreciated! -- Troy Murray ~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188960 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: FB4 prefuseaction postfuseaction hang server
On Wed, 29 Dec 2004 15:27:18 -0500, Troy Murray [EMAIL PROTECTED] wrote: I currently have one circuit named admin that I'm using. Below is the circuit.xml file: ... I can run this just fine in my application, no problems. Now if I take the do action=admin.footer / for example out of the fuseaction list and delete and put it under the postfuseaction and then view the list or delete fuseaction, my server hangs as it's eating up the CPU (goes on longer then 2 minutes before I restart the server). You're creating an infinite loop. If your postfuseaction is admin.footer, that will go to circuit admin (this one) and run footer followed by postfuseaction... which will try to run admin.footer again. You'll need a separate circuit containing the header / footer stuff so that your admin circuit can do those actions. This is a good reason for following MVC-like principles of separating presentation from business logic and even separately the bulk of your presentation code from the layout level (in other words, splitting UI into presentation logic and presentation layout). -- Sean A Corfield -- http://www.corfield.org/ Team Fusebox -- http://www.fusebox.org/ Breeze Me! -- http://www.corfield.org/breezeme Got Gmail? -- I have 6 invites to give away! If you're not annoying somebody, you're not really alive. -- Margaret Atwood ~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188970 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54