Gents,

I was wondering, what would be the best place for generating HTML? It
can either be in Velocity templates or by overriding the
Control#render(HtmlStringBuffer) and Control#getTag() methods.

What do you normally do?

For example, I have a UserList extending a Panel, which shows a list of
users from my system. The HTML is just a simple DIV containing a
title-DIV and a UL/LI of users. So will it be a Velocity template with a
#foreach, or should I go and create custom controls and generate HTML on
the fly?

Cheers,

WarnerJan

Reply via email to