Archive for February, 2011

Introducing Cache support in Spring 3.1 M1

Introducing Cache support in Spring 3.1 M1
Spring 3.1 M1 is out with some very useful features. One of the coolest feature in the latest release is comprehensive Caching support!Spring Framework provides support for transparently adding caching into an existing Spring application. Similar to the transaction support, the caching abstraction allows consistent use of various caching solutions with minimal impact ...

Create a Clearable TextBox with jQuery

Create a Clearable TextBox with jQuery
Recently I came across a wonderful article by David Walsh on Clearable Textboxes with Dojo Toolkit . This is a simple implementation where a clear button (x) added in a textbox which lets user to clear the content of the textbox. I have seen this simple feature in many websites and feel its very ...

Oracle 11G new feature: Virtual Column

Oracle 11g introduced the concept of 'Virtual Column' within a table. Virtual Columns are similar to normal table's columns but with the following differences:They are defined by an expression. The result of evaluation of this expression becomes the value of the column. The values of the virtual column are not stored in the database. Rather, it's computed ...

Spring Roo: Customizing Web MVC UI Forms

Spring Roo: Customizing Web MVC UI Forms
There are many features that I like from Spring Roo:The shell is very effective for constructing projects -with a helpful tab completion- Round-trip is essential to keep the code in sync Code generation without "unnecessary abstractions" is refreshing -although version 1.1.2 might bring some of them back- just to mention a few.At the top of the list, I am ...

jQuery: Get the Text of Element without Child Element

While writing code in jQuery, I often use .text() method to get the content of any element from DOM. This function is straight forward, it strips off all the html element from a selected element and returns the remaining text.So for below element the .text() method will return "A quick brown fox".<div id="foo"> A quick brown fox </div> <script> $("#foo").text(); ...

Spring Roo: Saving/Retreving BLOB object in Spring Roo

Spring Roo: Saving/Retreving BLOB object in Spring Roo
After reading the excellent article titled Saving/Retreving BLOB object in Spring MVC/Hibernate immediately came to my mind:How would it be the process of recreating the same example but using Spring Roo. What would it be the similarities/differences in the projects source code.The article assumes the Reader is a Developer with some familiarity with Spring Roo. For introductory information about Spring ...