David, you should be able to accomplish this. Check out this tutorial on the dynamic creation of components.