středa 14. července 2010

ZK - Converting Null Values

A common problem in database programming is to display some meaningful labels instead of NULL values in the list of database rows. Fortunately, ZK Web Framework, offers a comfortable TypeConverter class to address this issue. I have created a general type converter NullToLabelConverter to convert NULL values into any localised text. Hope, someone else may find it useful, see http://sites.google.com/site/xmedeko/code/zk-web-framework/nulltolabelconverter.

Žádné komentáře: