Closed haylo75 closed 13 years ago
It works fine for me. Did you ?reload=true after updating to 0.1.6?
What CFML engine are you using? What exact version? What O/S etc?
Yes, in fact I restarted CF to be sure. I'm on ACF9.0.1 developer install, WinXP. I'll try again to be triple sure.
Ok, I restarted CF again, ensured ?reload=true was in my query string (overkill), cleaned out template and component caches, and still see userService as undefined. getBeanInfo doesn't show the setter in beaninfo.productservice.metadata.setters either.
Note: I made one change to application.cfc, which was to the extension point for the framework from org.corfield.framework to the local directory, where I placed a copy of framework.cfc from the 2.0beta FW/1 commit.
https://github.com/seancorfield/fw1/commit/5e03a0ae6d7762e81bed565ecf91753cbda2ec9d
I confirmed the same results on another ACF9.0.1 install, this box not having any flavor of either DI/1 or FW/1 on it before the test was conducted.
OK, I'll fire up ACF9.0.1 and see why it behaves differently to Railo...
Hmm, repro'd... odd... I'll investigate later today...
Tested and verified fixed on my end, thanks!
Thanx for the confirmation!
I'm referencing the sample app distributed with DI/1 0.1.6. /model/services/product.cfc has implicit setters enabled, so the userService property should be autowired a reference to /services/user.cfc. The example page dumps bf.getBean('userfish').product.getUserService() as undefined.