You've got two separate problems here:
1) choosing which component to render at runtime without a fixed list of
possibilities
2) pulling the template from the database
The first problem is addressed by Michael Henderson's DynamicBlock:
http://www.behindthesite.com/blog/C1931765677/E1630021481/
Hi,
I'm planning on writing a content management system in Tapestry.
The plan is that the users should be able to write and design their own html
pages, and then with a simple tapestry reference (with all the properties
set in a page specification) get all the dynamic content entered into their
htm