Boa noite!!
Tenho uma aplicação JSF que utiliza o Hibernate. Eu tenho um Objeto chamado Implantação e dentro desse objeto tenho uma lista de objetos do tipo ItemImplantação. Estou alimentando tudo certinho. Porém, na hora de salvar só salva o objeto Implantação a lista de objetos (ItemImplantação) não é salva.
Abaixo o código da minha página de cadastro.<?xml version="1.0" encoding="UTF-8"?>
<!--
Document : home
Created on : 12/06/2009, 10:07:38
Author : JDassa
-->
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
version="2.0">
<ui:composition template="/template/template.xhtml">
<ui:define name="conteudo">
<a4j:keepAlive beanName="implantacaoBean" />
<table width="100%">
<tr>
<td>
<h:form>
<rich:toolBar>
<font size="3"> Implantação </font>
</rich:toolBar>
<rich:toolBar>
<h:commandButton image="/imagens/salvar.png" action="#{implantacaoBean.inserirOuAtualizar}" title="Salvar"/>
<a href="/painelcontrole/implantacao/pesquisa.jsf"><img src="/imagens/cancelar.png" style="cursor: pointer" alt="Voltar" title="Voltar" border="0"/></a>
<rich:messages/>
</rich:toolBar>
<rich:spacer height="1" />
<!-- DADOS PRINCIPAIS -->
<rich:toolBar style="border:0;">
Dados Principais
</rich:toolBar>
<table width="100%">
<tr>
<td bgcolor="#D9E8ED" align="right">
<h:outputText value="Cliente:"/>
</td>
<td bgcolor="#E9F1F3" colspan="3">
<h:selectOneMenu id="cliente" value="#{implantacaoBean.implantacao.idCliente}" converter="simpleEntityConverter"
required="false" requiredMessage="Valor obrigatório">
<f:selectItem itemValue="" itemLabel="Selecione um cliente"/>
<f:selectItems value="#{funcoesBean.clientes}" />
</h:selectOneMenu>
<rich:message for="cliente" showSummary="false" showDetail="false">
<f:facet name="errorMarker">
<h:graphicImage value="/imagens/error.gif" />
</f:facet>
</rich:message>
</td>
</tr>
<tr>
<td bgcolor="#D9E8ED" align="right" width="110">
<h:outputText value="Sistema:"/>
</td>
<td bgcolor="#E9F1F3" width="200">
<h:selectOneMenu value="#{implantacaoBean.implantacao.idSistema}" converter="simpleEntityConverter">
<f:selectItem itemLabel="Selecione um sistema" itemValue=""/>
<f:selectItems value="#{funcoesBean.sistemas}" />
</h:selectOneMenu>
</td>
<td bgcolor="#E9F1F3">
</td>
</tr>
<tr>
<td bgcolor="#D9E8ED" align="right">
<h:outputText value="Cliente:"/>
</td>
<td bgcolor="#E9F1F3" colspan="3">
<h:selectOneMenu id="modulo" value="#{implantacaoBean.implantacao.idModulo}" converter="simpleEntityConverter"
required="false" requiredMessage="Valor obrigatório">
<f:selectItem itemValue="" itemLabel="Selecione um Módulo"/>
<f:selectItems value="#{funcoesBean.modulos}" />
<a4j:support event="onchange" action="#{implantacaoBean.atualizaPassos}" reRender="tableItensImplantacao"/>
</h:selectOneMenu>
<rich:message for="modulo" showSummary="false" showDetail="false">
<f:facet name="errorMarker">
<h:graphicImage value="/imagens/error.gif" />
</f:facet>
</rich:message>
</td>
</tr>
<tr>
<td bgcolor="#D9E8ED" align="right" width="50">
<h:inputHidden value="#{implantacaoBean.implantacao.id}"/>
<h:inputHidden value="#{implantacaoBean.implantacao.status}"/>
<h:outputText value="Descrição:"/>
</td>
<td bgcolor="#E9F1F3">
<h:inputText id="textDescricao" value="#{implantacaoBean.implantacao.descricao}" size="90"/>
</td>
<td bgcolor="#E9F1F3">
<rich:message for="textDescricao" showSummary="false" showDetail="false">
<f:facet name="errorMarker">
<h:graphicImage value="/imagens/error.gif" />
</f:facet>
</rich:message>
</td>
</tr>
</table>
<!-- FIM DADOS PRINCIPAIS -->
<!-- PASSOS IMPLANTAÇÃO -->
<rich:toolBar style="border:0;">
Passos para implantação
</rich:toolBar>
<rich:dataTable onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
onRowMouseOut="this.style.backgroundColor='#FFFFFF'"
cellpadding="0" cellspacing="0" width="100%"
rows="10" var="itens" value="#{implantacaoBean.implantacao.itemImplantacaoList}"
id="tableItensImplantacao">
<rich:column sortBy="#{itens.descricao}" width="200" filterBy="#{itens.descricao}" filterEvent="onkeyup">
<f:facet name="header">
<h:outputText value="Descrição"/>
</f:facet>
<h:outputText value="#{itens.descricao}"/>
</rich:column>
<rich:column width="30">
<f:facet name="header">
<h:outputText value="Concluído"/>
</f:facet>
<center>
<h:selectBooleanCheckbox value="#{itens.concluido}" />
</center>
</rich:column>
<f:facet name="footer">
<rich:datascroller for="tableItensImplantacao" />
</f:facet>
</rich:dataTable>
</h:form>
</td>
</tr>
</table>
</ui:define>
</ui:composition>
</jsp:root>
Alguém poderia me ajudar?
