Is it possible to share this template in multipile components in same scope? I got an error because of duplicated ID, but I need this ID for updating / processing form, also for displaying messages
<ui:define name="content">
<h:form id="contentForm"
prependId="false"
enctype="multipart/form-data">
<p:messages showDetail="true"
closable="true">
<p:autoUpdate/>
</p:messages>
<ui:insert name="formContent" />
</h:form>
</ui:define>