hi all
i'm facing a litte problem with primefaces and facelets
here's the problem: i got a template file, that will be my base for all my screens.
<p:growl id="cadastroMessages" />
<p:panel header="#{header}">
<h:form id="#{formId}">
<h:panelGrid columns="4">
<p:commandButton value="#{msg.novo}" action="#{managed.novo}"
image="../imagens/user_business_32.png" type="image"
update="#{formId}" />
<p:commandButton value="#{msg.salvar}" action="#{managed.salvar}"
update="cadastroMessages, #{formId}" type="image"
image="../imagens/user_business_add_32.png" />
<p:commandButton value="#{msg.excluir}" action="#{managed.excluir}"
type="image" image="../imagens/user_business_close_32.png"
update="cadastroMessages, #{formId}" />
<p:commandButton value="#{msg.procurar}"
onclick="#{modalConsulta}.show();" type="button" ajax="false" />
</h:panelGrid>
<ui:insert name="conteudo" />
</h:form>
</p:panel>
and my file that uses this template:
<ui:define name="conteudo">
<h:panelGrid columns="2">
<h:outputText value="#{msg.nome}" />
<h:inputText id="nome" value="#{managedAluno.aluno.nome}" required="true" />
<h:outputText value="#{msg.datanascimento}" />
<p:calendar id="calendario" value="#{managedAluno.aluno.dataNascimento}" />
<h:outputText value="#{msg.responsavel}" />
<h:inputText id="resp" value="#{managedAluno.aluno.responsavel}" />
</h:panelGrid>
</ui:define>
on my index page, i got a , that, when clicked, will show a dialog for user insert some data, using the code above.
the dialog looks like this
<p:dialog widgetVar="dlg" modal="true">
<ui:include src="/cadastro/cadastroAluno.xhtml" />
</p:dialog>
using ui:include, two html tags are inserted on my index page, and the worst, the dialog DOESN'T show up!
if i change <ui:include>
for an h1 tag, works fine!
how can i get this work?
cheers