Viewing Entries For August 2009  [clear date selection]

Mach-II 1.8 Beta Available


Team Mach-II is proud to announce that Mach-II 1.8 beta, code named "Simplicity," is now available for download.

New features in Mach-II 1.8 include:

  • Form Tag Library with Data Binding
    Create and populate HTML forms with the new Mach-II custom tag library for forms. All HTML form inputs are available, including radio and checkbox groups, and you can easily bind data to form input values.
  • View Tag Library
    Handy view-related functionality bundled up in easy-to-use custom tags for URL routes, JavaScript, CSS, and even color flipping.
  • Environment Property
    Configure and manage environment-specific settings for easy deployment to development, staging, and production servers.
  • HTML Helper Property
    Allows you to more easily manage the HTML facets of your Mach-II requests, such as including necessary JavaScript and CSS files, adding meta information to the view, specify character sets, and more.
  • View Loaders
    Automatically generates the <page-views> section of the mach-ii.xml configuration file based on simple yet highly flexible ANT-style pattern matching.
  • Call Method Command
    Allows for the calling of a method in a service object directly and placing data returned in the event object, as opposed to having to create a listener method that simply calls a service method.
  • Enhanced Redirect Functionality
    Announce redirects from within listeners, filters, and plugins with the new redirectEvent() and redirectEventInModule() methods.
  • Individual Object Reload
    The Mach-II Dashboard now allows you to reload individual objects in your application with a simple click, so you no longer need to reload the entire application when cached objects change.
  • Toolkit Enhancements
    New CFCs in Mach-II support assertions and both simple and ANT-style pattern matching.
  • Additional Enhancements
    Additional enhancements include the copyToScope() helper method, a more configurable email logger, and many more. We've also made numerous performance improvements under the hood.


Bug fixes in Mach-II 1.8 include:

  • HTMLHeadElement and HTTPHeader callbacks failed to be removed from EventContext (bug #305)
  • Method checking fails when extending a logger due to failure to walk inheritance tree (bug #303)
  • View context throws an ambiguous exception appending view content on to a complex event-arg (bug #263)
  • BuildUrl() and related methods orders args randomly (bug #264)

For complete details on Mach-II 1.8 please see the "What's New in Mach-II 1.8" page on the Mach-II wiki.

With Mach-II 1.8 we have also laid the groundwork for Mach-II 1.9 and 2.0, and we've already started on those releases. As we've stated before, we're going to start pushing for smaller, more rapid release cycles, so you can expect Mach-II 1.9 before the end of the year!

So what are you waiting for? Go grab Mach-II 1.8 beta now, put it through its paces, and let us know what you think!

0 Comments  |  Announcements, Mach-II 1.8  |  Send
Posted 8/12/09 @ 4:30 PM by Matt Woodward

Removing Event-Handlers Programmatically


In a recent application of mine, I have a large collection of test event-handlers that we use to test certain application functionality (such as javascript).  While very useful for us when developing the application, we do not want to deploy these event-handlers when the application is deployed to our production environment.  So what are the options?

  • Manually comment out the event-handlers when deploying (very messy, error prone, possible security concern if forgotten)
  • Programmatically remove the event-handlers when the application is deployed to a production environment (best solution because a computer does it for us)

I thought it would nice to share this code with other Mach-II users so I wrote up a short wiki entry that demonstrates how we did it. It even includes a working sample code that you can use and shows off some nifty new features in Mach-II Simplicity (1.8), so read Removing Event-Handlers for Security Purposes wiki entry now.  You never know when you'll need this bit of code.

0 Comments  |  0 Trackbacks  |  Articles, Mach-II 1.8  |  Send
Posted 8/11/09 @ 3:50 PM by Peter J. Farrell