ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old March 9th, 2005, 12:02 AM
jdang jdang is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: OC, CA
Posts: 49 jdang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 15 m
Reputation Power: 4
fusebox not working correctly

Hi everyone,

I'm trying to apply the fusebox methodology to this new project and it seems to work partially only

this is my index.cfm file, it has the default fuseaction=main so if there's nothing passed, it will load the main.cfm file, that works fine. In the Main.cfm file there is a link like this
<a href="index.cfm?fuseaction=label">Make A Prescription Label</a>

The problem is: when that link is clicked, the label.cfm page does not load, but instead, the main.cfm page is reloaded because it is the default fuseaction.

I've tried comparing the code line by line to the examples in the FuseBox Tutorial but it seems that the case statement isn't processing the fuseaction or something. Please Help . Thanks

index.cfm content:
<cfparam name="attributes.fuseaction" default="main">

<cfswitch expression="#attributes.fuseaction#">
<cfcase value="main">
<cfinclude template="main.cfm">
</cfcase>

<cfcase value="label">
<cfinclude template="label.cfm">
</cfcase>

<cfcase value="test">
<cfinclude template="test.cfm">
</cfcase>

</cfswitch>

Reply With Quote
  #2  
Old March 9th, 2005, 07:35 AM
fortunato fortunato is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2005
Posts: 33 fortunato User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 36 m 52 sec
Reputation Power: 4
What version of fusebox are you employing?
Fusebox 3 uses an fbx_switch.cfm file where the case statement would be, and index.cfm just includes a fusebox core file. With FB3 apps, I setup my default fuse in the fbx_settings.cfm file. If you are using fusebox, you should use the core files. They also take care of the form and url scope transformation to the "attributes" scope, which could be why your label link is not working.

Reply With Quote
  #3  
Old March 9th, 2005, 08:22 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,618 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 9 h 44 m 33 sec
Reputation Power: 53
Also, Fusebox 3 and 4 both require a fully-qualified fuseaction, meaning that you must supply a circuit name and a fuseaction name, like this: "fuseaction=users.showallusers"

I'd highly recommend learning Fusebox 4.1 as it is the latest version and has been refined a great deal since previous versions.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #4  
Old March 9th, 2005, 10:21 AM
jdang jdang is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: OC, CA
Posts: 49 jdang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 h 15 m
Reputation Power: 4
I'm actually following a book called Fusebox - Methodology and Techniques by Steve Nelson and Craig Girand (ISBN 0-9673447-6) It doesn't seem to mention which version it is using, but it's published in 2000, so that's prolly pretty old. I'm gonna have to look into the new one then. Thnx for clarifying

Reply With Quote
  #5  
Old March 9th, 2005, 10:44 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,618 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 9 h 44 m 33 sec
Reputation Power: 53
Yes, that is what was known as "Fusebox 2". It is totally outdated. Go to www.fusebox.org and download Fusebox 4.1 along with some of the sample apps. That should get you started.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > fusebox not working correctly


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway