I think, you can use facelets in this case.
And it isn't possible with CDK now.
Thank you for your responses. I was looking at facelets but am not really familiar with them at present. Knowing that this is not possible with CDK is very helpful.
I appreciate your help. Thanks