|
JMesa_2_4
The next release of JMesa is mostly going to be about rolling out the JMesa JavaScript file as a jQuery plugin. That is also the main motivation for moving up to a 2.4 release...just to reflect that this is a fairly big change. Although I really do not expect any breaking changes. One big thing you might have noticed is that with each release more and more code is being contributed to JMesa. I really enjoy getting code contributions from developers. I think its interesting when either bugs are discovered or new features are implemented because of working with JMesa tables in a way I had not thought of. Here is the current list of changes:
Expression Evaluation ExampleAll three of these code snippets do the same thing...putting the first and last name together using JavaScript notation. Even though this example is in JavaScript all the popular scripting languages are supported through the Apache Bean Scripting Framework. In addition there is support for doing EL expressions as well. CellEditor lastNameCellEditor
= new ExpressionCellEditorFactoryImpl().createCellEditor(new Expression(Language.JAVASCRIPT, "item", "item.name.lastName + ', ' + item.name.firstName"));
lastName.getCellRenderer().setCellEditor(lastNameCellEditor);or CellEditor lastNameCellEditor = new BsfExpressionCellEditor(new Expression(Language.JAVASCRIPT, "item", "item.name.lastName + ', ' + item.name.firstName")); lastName.getCellRenderer().setCellEditor(lastNameCellEditor); or CellEditor lastNameCellEditor = new BsfExpressionCellEditor(Language.JAVASCRIPT, "item", "item.name.lastName + ', ' + item.name.firstName"); lastName.getCellRenderer().setCellEditor(lastNameCellEditor); |