Renderizar Modal

Fala Feras

estou fazendo um Modal que o usuário digita algumas informações e envia as informações para um 2º Modal acontece que quando e enviado essas informações para o

2º Modal não aparece as informações mais se eu fechar e abrir novamente o 2º Modal ai sim as informações aparecem estou tentando usar o reRender para resolver

esse problema mais não esta funcionando segue o codigo

<a4j:commandButton value="Enviar" action="#{chatDelegate.chat}" styleClass="button" reRender="panelAtendimento" oncomplete="#{rich:component('panel')}.hide();#{rich:component('panelAtendimento')}.show()"></a4j:commandButton>

aqui esta o 2º Modal

<rich:modalPanel id="panelAtendimento" minHeight="500" minWidth="450">  
			         	<fieldset class="popUp">
							<legend>Atendimento On-Line:</legend> 
						    <table border="0" cellpadding="0" cellspacing="0" align="left" id="tbpanel">
								<tr>
									<td align="left" height="100px">
										<h:inputTextarea value="#{chatDelegate.nome}" id="nick" style="width: 400px; height: 270px; scrolling:yes">
										</h:inputTextarea>
									</td>
								</tr>
								<tr>
									<td>
										<rich:spacer height="20px"></rich:spacer>
									</td>
								</tr>
							</table>
							<table align="left">
								<tr>
									<td>
							            <a4j:commandButton value="Sair" styleClass="button" onclick="#{rich:component('panelAtendimento')}.hide()" ></a4j:commandButton>
									</td>
								</tr>
							</table>
						</fieldset>	
				</rich:modalPanel>

OBS. os Modal estão dentro de tags form

tipo…
tenta por um

<a4j:outputPanel id="meuPanel"> <rich:..../></a4j:outputPanel>

e da o rerender no output panel em vez do rich…

se nao der certo tenho outro truque pra esse problema… huahuahua

Requena cara não funcionou essa alternativa

quando eu clico para abrir o modal não abre segue a alteração

<a4j:commandButton value="Enviar" action="#{chatDelegate.chat}" styleClass="button" reRender="panelAtendimento" oncomplete="#{rich:component('panel')}.hide();#{rich:component('panelAtendimento')}.show()"></a4j:commandButton>

2º Modal


<a4j:outputPanel id="panelAtendimento" styleClass="testeModal"> 
			         	<fieldset class="popUp">
							<legend>Atendimento On-Line:</legend> 
						    <table border="0" cellpadding="0" cellspacing="0" align="left" id="tbpanel">
								<tr>
									<td align="left" height="100px">
										<h:inputTextarea value="#{chatDelegate.nome}" id="nick" style="width: 400px; height: 270px; scrolling:yes">
										</h:inputTextarea>
									</td>
								</tr>
								<tr>
									<td>
										<rich:spacer height="20px"></rich:spacer>
									</td>
								</tr>
							</table>
							<table align="left">
								<tr>
									<td>
							            <a4j:commandButton value="Sair" styleClass="button" onclick="#{rich:component('panelAtendimento')}.hide()" ></a4j:commandButton>
									</td>
								</tr>
							</table>
						</fieldset>	
				</a4j:outputPanel>

Vc entendeu errado… fazz asssim…

<a4j:commandButton value="Enviar" action="#{chatDelegate.chat}" styleClass="button" reRender="outputPanelAtendimento" oncomplete="#{rich:component('panel')}.hide();#{rich:component('panelAtendimento')}.show()"></a4j:commandButton>

2º Modal

<a4j:outputPanel id="outputPanelAtendimento">
<rich:modalPanel id="panelAtendimento" minHeight="500" minWidth="450">  
			         	<fieldset class="popUp">
							<legend>Atendimento On-Line:</legend> 
						    <table border="0" cellpadding="0" cellspacing="0" align="left" id="tbpanel">
								<tr>
									<td align="left" height="100px">
										<h:inputTextarea value="#{chatDelegate.nome}" id="nick" style="width: 400px; height: 270px; scrolling:yes">
										</h:inputTextarea>
									</td>
								</tr>
								<tr>
									<td>
										<rich:spacer height="20px"></rich:spacer>
									</td>
								</tr>
							</table>
							<table align="left">
								<tr>
									<td>
							            <a4j:commandButton value="Sair" styleClass="button" onclick="#{rich:component('panelAtendimento')}.hide()" ></a4j:commandButton>
									</td>
								</tr>
							</table>
						</fieldset>	
				</rich:modalPanel>
</a4j:outputPanel>

Requena agora fiz conforme vc falou mais não deu certo ainda ele esta com o mesmo problema de quando estava na primeira forma

que avia feito, tem aquela outra sugestão que vc avia mencionado

Consegui resolver e irei postar para futuras duvidas

SOLUÇÃO:

criei um a4j:form dentro da tag rich:modalPanel e resolveu meu problema

valeus