I hope this helps: http://www.stonemind.net/blog/2007/11/29/adding-custom-renderers-to-html_quickerform/