Entries Tagged as "model-glue"
A few people have asked me to post my presentations, and I should have done so anyway straight after the conferences, but of course, since I did three presentations + a Mystery Theatre at cfobjective and four presentations at Scotch on the Road I have been falling behind normal work and blog postings.
So, here for your delectation are all the presentations for you to download... (apart from the Mystery Theatre 3000 since that has a naughty picture in it)
So I was getting my head round Andrew Powell's CF_EHCache so that I can write an interface for it that Model-Glue can use, which should be simple enough since it already uses a SimpleTimedCache, when I come across a very odd thing, with the code out of the box I got the following error:
The system has attempted to use an undefined value, which usually indicates a programming error, either in your code or some system code.
Null Pointers are another name for undefined values.
So I started dumping my way through it, so to speak, but it would work...
var mBeanServer = createObject('java','java.lang.management.ManagementFactory').getPlatformMBeanServer();
variables.manager = createObject('java','net.sf.ehcache.CacheManager');
variables.cacheName = arguments.cacheName;
The above is the constructor code, I have split it out a bit so that you can see what is happening, but if call the above code without the cfdump, I get an error, but if remove it, it crashes.
I have never seen something like this before.
This morning, writing this post, I realised that in the third line I had forgotten to add the .init() to the CacheManager. Go figure! Seems that cfdump does the init for you eh?
- 2 years minimum ColdFusion (obviously)
- Experience of Frameworks especially Model-Glue and ColdSpring are a massive plus
- SQL Server knowledge
- XML (generating and parsing)
- Subversion and Trac knowledge is also a plus
Posted by Mark Drew in model-glue on August 17, 2007
<a href="#CGI.SCRIPT_NAME#?event=my.event">My Event </a>But what happens if you change the event key to something else (you can do that in the ModelGlue configuration section in the ColdSpring.xml file, see the property for "eventValue") such as "go" or "action"? You would have to change every view. A simple way round this is to put at the top of each view the following:
<cfset myself = ViewState.getValue('myself')>And then change your links to:
<a href="#myself#my.event">My Event </a>What do you think?