Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Maybe a bug in FW/1
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alex Purice  
View profile  
 More options May 8 2012, 6:17 pm
From: Alex Purice <alexei.pur...@gmail.com>
Date: Tue, 8 May 2012 15:17:51 -0700 (PDT)
Local: Tues, May 8 2012 6:17 pm
Subject: Maybe a bug in FW/1
Hello,

I found a very strange behavior in FW/1. Please use Hello3 example to
reproduce it.
#1. Add following file
hello3/views/main/myView.cfm, with following content
-------------------------------
This is my view.
-------------------------------

#2. In hello3/controllers/main.cfc, in default method, after
"name.default" service call, add following lines:
-------------------------------
variables.fw.setView("main.myView");
myVariable = myUndeclaredVariable;
-------------------------------

#3. Go do hello3/?reload=true , page will load OK (line myVariable =
myUndeclaredVariable was disregarded) and you will see "This is my
view." on the screen.

#4. Comments out variables.fw.setView("main.myView"); line and reload
the page. Now, as expected, you are getting an undeclared variable
error (after you will add error.cfm view).

So, basically, if you call setView framework method and have an
exception after the method call, this exception is completely hidden.

Can somebody explain me why it is happening...? It seems completely
weird. I took a look at setView function, it is pretty simple, just 3
lines of the code...

This is v2.

Thank you.

Alex


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sean Corfield  
View profile  
 More options May 8 2012, 7:09 pm
From: Sean Corfield <seancorfi...@gmail.com>
Date: Tue, 8 May 2012 16:09:41 -0700
Local: Tues, May 8 2012 7:09 pm
Subject: Re: [framework-one] Maybe a bug in FW/1
Sounds like the error view is overridden in the presence of setView().
Bug. Please create an issue on github with repro details.

Thank you!

Sean


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alex Purice  
View profile  
 More options May 8 2012, 7:45 pm
From: Alex Purice <alexei.pur...@gmail.com>
Date: Tue, 8 May 2012 16:45:28 -0700 (PDT)
Local: Tues, May 8 2012 7:45 pm
Subject: Re: Maybe a bug in FW/1
Done. https://github.com/seancorfield/fw1/issues/124

Not sure why formatting is screwed up, I just created account at
github, so no much experience with github.

BTW. I'm trying to find time to write "FW/1 for Fusebox developers"
article in a form of framework comparison and series of "How tos". But
I'm not sure on ETA.

On May 8, 4:09 pm, Sean Corfield <seancorfi...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Mohler  
View profile  
 More options May 14 2012, 2:20 am
From: James Mohler <james.moh...@mac.com>
Date: Sun, 13 May 2012 23:20:00 -0700 (PDT)
Subject: Re: Maybe a bug in FW/1

> BTW. I'm trying to find time to write "FW/1 for Fusebox developers"
> article in a form of framework comparison and series of "How tos". But
> I'm not sure on ETA.

I did some initial stuff on that topic about a year ago. Feel free to use
it if it helps.

IMHO, the biggest difference between FW/1 and Fusebox, is FW/1 really wants
you to do things in a certain way where as Fusebox is more free form. As a
result, if you have everything in the right spot, it just works. in the
Fusebox world, there is a lot more spelling things out.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »