CookXml BeanShell Extension

Introduction

This extension basically adds a tag, which supports BeanShell in CookXml. Each time this tag is used, a new instance of Interpreter is created. Objects created using XML can be referenced using their id. This extension requires the cookxml.common package.

Personally I am not a big fan of scripting inside XML, since excessive use of scripts instead of actual Java code is meaningless in terms of developemental efforts and performance. However, from time to time I do find myself wishing to have extra flexibilities in designing certain aspects of GUI using XML. See the demo offered below to see what I mean.

Demo

Try the Java Web Start demo for some simple demos. The frame code was also written in BeanShell.