Duvida RichFaces - Message Box (modalPanel)

0 respostas
T

Olá pessoal!
Tenho uma duvida q deve ser bem basica sobre richfaces...
Estou tentando fazer um modalPanel para dar um status de inserção dos dados na DB...
A msg retorna para a pagina em uma rich:modalPanel...

Só que nao estou sabendo como fazer para aparecer a modalPanel... nao sei que evento capturar...
os exemplos que tenho visto por ai funcionam clicando em algum link... tipo event="onclick"

Meu codigo esta assim...:

<f:view>
					<h:form id="frmPermissao">
						<jsp:include page="./menu.jsp"></jsp:include>
						<a4j:status >
							<f:facet name="start">
								<h:graphicImage value="./img/carregando.gif"></h:graphicImage>
							</f:facet>
						</a4j:status>
							
					    <h:outputLink value="#" id="link">
					        Show Modal Panel 
					        <rich:componentControl for="panel" attachTo="link" operation="show" event="onclick"/>
					    </h:outputLink>
					
					
		
							<rich:modalPanel id="panel" width="350" height="100">
						        <f:facet name="header">
						            <h:panelGroup>
						                <h:outputText value="Modal Panel"></h:outputText>
						            </h:panelGroup>
						        </f:facet>
						        <f:facet name="controls">
						            <h:panelGroup>
						                <h:commandButton value="Ok" styleClass="hidelink" id="hidelink"/>
						                <rich:componentControl for="panel" attachTo="hidelink" operation="hide" event="onclick"/>
						            </h:panelGroup>
						        </f:facet>
						        <h:outputText value="This panel is called using Component Control Component"></h:outputText>
						        <br/>
						        <h:outputText value="Closure link (X) works also through Component Control"></h:outputText>
						    </rich:modalPanel>
							
							
						
						<a4j:outputPanel rendered="true">
							  <h:messages/>		
						</a4j:outputPanel>
						

					</h:form> 
					
				</f:view>
essa parte
<a4j:outputPanel rendered="true">
							  <h:messages/>		
						</a4j:outputPanel>
ja esta funcionando de boas... salvo o objeto e aparece a msg na tela... acho q eu teria q pegar o evento dessa msg de alguma forma.. quando ela for carregada

estou usando spring...

Tks pela ajuda!

Criado 20 de outubro de 2009
Respostas 0
Participantes 1