Hello,
Look at this thread I wrote a few weeks ago: Creating custom components and manage component reinstantiation
Regards