Most data driven applications have a requirement to be able to sort data. Most of the time this can be accomplished at the data access layer by sorting the data when it is retrieved via SQL query, or by using JavaScript or some other scripting language to sort the data in the view layer. However, there are also times when it is convenient to sort a collection of POJOs in the business layer. (more…)
Archive for May, 2009
Sorting data in Java using Apache BeanUtils
Thursday, May 21st, 2009Cross browser issues with utility functions in Prototype
Thursday, May 7th, 2009When using utility functions in Prototype library (e.g., F$), the element name must be surrounded by quotes. Firefox requires it to not include quotes, but IE does not.
This example does not work:
$F(sample); //DOES NOT WORK!!
This example does work:
$F(‘sample’); //DOES WORK!
This was tested with Firefox 3 and IE7 using Prototype 1.5.1.
