I have two t:form embedded components defined in my java class with the good ids. And in my template file I have defined them also, but each one surrounded by a t:if, and at the page launch only one of the these t:if will be true, so only one of my two embedded forms will be rendered.
When I tried to launch that I got this message error : "Embedded component(s) sendFilesClientForm, sendFilesCollaboratorForm are defined within component class atos.smt.livraison.pages.EnvoiFichiers (or a super-class of EnvoiFichiers), but are not present in the component template (classpath:atos/smt/livraison/pages/EnvoiFichiers.tml)." So it seems that embedded components search for the corresponding template definition after rendering preparation, then How could I achieve what I want : Define two forms embedded components, but only one will be rendered on display ?