ColdBox & Ajax In a Tree, K-I-S-S-I-N-G!!
ColdBox & Ajax In a Tree, K-I-S-S-I-N-G!!
It might be a short guide, but it sure is sweet!! Ok, enough with these corny references. Hope you enjoy it.
ColdBox & Ajax In a Tree, K-I-S-S-I-N-G!!
It might be a short guide, but it sure is sweet!! Ok, enough with these corny references. Hope you enjoy it.
I had typed "RequestContext", anyways, the zip has been updated with this small correction. Please download if you are getting weird behavior on case sensitive OS's.
So download the latest bits to resolve these issues.
You can find more information about the current patches by going to the roadmap in the Trac Site.
I had typed "RequestContext", anyways, the zip has been updated with this small correction. Please download if you are getting weird behavior on case sensitive OS's.
Sorry for the inconvenience.
Luis off to Cf.Objective()
Below I describe all the changes for this release, and thank to GOD for helping me get this release in time.
Below I describe some of the major changes for this release. However, you can go to the Milestone Page at the trac site to get a full listing of the 56 issues that were solved for this release.
- Over 120 pages of documentation and growing are now available via the Trac site with tons of examples, guides, and external tutorials.
- Framework License change to Apache 2
- Dashboard Application 2.0.0 included, it is a separate entity and does not encompass the Apache 2 license. It is a separate license and the application is provided in compiled form.
- New RequestContext bus. This is in order to enable caching and encapsulation of the request collection. Please see the compatibility guide. Your 1.1.0 and below code will have to be modified slightly to accommodate this. All event handler methods receive the requestContext bus object as an argument called 'event'.The object is also called 'event',for the layouts/views.
Addition of new Application Settings:
- ReinitPassword: used to protect the fwreinit flag.
- onInvalidEvent: write the event to execute when an invalid event is detected.
- HandlerCaching: The framework will now cache your event handlers in the coldbox cache.
- IOCFramework: You can now declare which framework you are using: coldspring or lightwire.
- IOCDefinitionFile: Here is where you declare the configuration file to load onAppInit in conjunction with the IOCFramework declared.
- IOCObjectCaching: The ability to cache via the IoC Plugin the objects created by the IoC frameworks.
- AppMapping setting is now optional, coldbox detects its paths.
- Addition of Complex Settings for Arrays and Structures with simple syntax.
- Addition of datasource aliases.
Core Framework
- Addition of two new implicit methods for execution within event handlers: preHandler and postHandler.
- Addition of a 'getHash()' method to handlers and plugins. This retrieves the unique UUID of the created instance.
ColdBox OCM (Object Cache Manager)
A facility for in-memory caching. This facility caches your event handlers, plugins, custom plugins and anything you want. Look at API for usage. The framework has a reap frequency in which once every cycle,the framework will remove objects from the cache that have expired. This way, reaping is not performed on every request. A great way to balance cache access and reaping.
- Metadata settings for caching for custom plugins and handlers via the cfcomponent tag:
The cachetimeout is in minutes. The cache flag is by default set to true if not set. So if you do not set it explicitly to false, the framework will cache it at the default framework's timeout. Cache settings override via config.xml.cfm, please see wiki config guide.
Plugins
- Beanfactory.cfc - Addition of the populateBean method. It can now populate a named or instantiated bean from the request collection. Great for setting a bean with form data. It follows the bean contract, thanks to Sanah Ullah. Great for Transfer Object population.
- FileUtilities.cfc - new methods: getJVMFreeMemory(), getJVMTotalMemory(), isCFUUID()
- IOC.cfc - Added Inversion Of Control support via coldspring or lightwire. Coldspring is the only one supported now. Lightwire will be added in the next version. (Peter, please help with lightwire??)
- sessionstorage.cfc - New facade plugin to use session scope for permanent values
- renderer.cfc: renderExternalview(). Will render an external view. Any type of view: js,gif,etc.
- queryHelper.cfc - New plugin to help you sort and filter queries.
- timer.cfc - New plugin to help you time your code.
New argument to plugin factory: NewInstance it will create a new instance of the specified plugin.
New Debugging Panel
- The new debugging panel now includes the cache panel and monitor for monitoring AJAX Applications. This will blow your mind.
Handler Packages
- The framework now supports multi-package handler layout. you can now define packages for all your handlers due to ColdBox's new event registration system.
Miscellaneous
- The framework now supports for compiled code execution. Event multi-package compiled layouts.
- New eclipse snippets.
- Refactoring and code optimization.
- New ANT scripts for creating new applications and more.
- Addition of the framework pre-compiled: compiled_system. You now have a pre-compiled source for the framework.
Well, I believe this is a major major release and not all the little changes are here, for that check the Trac site. I hope you enjoy it, please send me your feedback via the usual channels and help support this project with your donations.
Luis
A complete guide of interacting with coldspring from coldbox, how to use it, sample code and features.
An informative guide of how to trace custom and dynamic messages to the coldbox debugging panel.
Enjoy this two new great guides. More will be posted soon. The 2.0.0 release is reaching its maturity and most likely will be launching by next weekend. I have had a tremendous response with this release and the framework has matured considerable since its 1.1.0 release. The framework is solid, powerful, extensible and faster than ever. The introduction of the coldbox dashboard as a companion application is amazing and it lets you configure your framework installation with ease, learn about your framework, learn about updates and actually report bugs. Future plans for this dashboard include application generators, external tool additions, extensibility, log viewer, etc. So stay tuned as these great tools are in development.
As always, I ask for your contribution to this great project. If you want to contribute with code, ideas, bugs, enhancements, please do so by the following manners:
* ColdBox IRC channel on DALNet: #coldbox
Thanks again for your support and stay tuned for more updates to come as development continues. A great place to do live chat's with me and other of the collaborators is on the IRC channel. So please stop by and chat with us as this framework grows.
Actually all java.lang.Object inerit a toString() method as you can read in the java docs.
Below is the actual info:
toString
public String toString()
Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.
The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
Returns:
a string representation of the object.
As you can see, this method can be very useful. So how do I use it in Coldfusion? Very easily, jeje. look below:
//Create a structure
myStruct = structNew();
myStruct.today = now();
myStruct.name = "luis majano";
myStruct.url = "www.luismajano.com";
//Convert to string
And there you go ladies and gentleman!! Enjoy this quick tip!!
I just got confirmed on my trip to the conference and I am exciting out of my socks!! I printed out the schedule and created what could be my schedule for the conference:
Friday May 4, 2007
Saturday May 5, 2007
Sunday May 6, 2007
PS: I will also be taking some ColdBox CD's for anyone interested. (Final 2.0.0 Version)
Sean Corfield has blogged about ColdBox, over at http://corfield.org/blog/index.cfm/do/blog.entry/entry/ColdBox and does a mini-review on it. He also asks ColdBox users to give their opinions on why they chose Coldbox? Why they like it? etc?
Some people have already made their comments. So if you still have not commented, please head over there and submit your comments.
Thanks.
Luis
This channel is to promote more live responses from the ColdBox community. You will be able to ask me any questions about ColdBox and more of the veteran ColdBox users will also log in and share their ColdBox experiences. So you veteran masters out there, please try to contribute by logging in and sharing your experiences. I will also try to spend more time in the channel on Saturdays to help out anybody wanting to try out ColdBox or just find out more information about this great framework.
Some of the software that you can use to log in to IRC are the following:
So remember: IRC on DALNET
Channel: #coldbox
You can also download the latest build of ColdBox (RC1) here.
See you there...