Erro nas mensagens richfaces

1 resposta
D

Galera,
É o seguinte, tenho no meu projeto um jsf de mensagens que todas as telas acessam, o que acontece as vezes é que a popup aparece mas a mensagem de confirmacao nao chegam e tambem o botao ok fica desabilitato quando isso acontece, estou usando jboss 4.2.3, deimoselle e richfaces, abaixo vai o codigo fonte da mensagem

<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns:h=“<a href="http://java.sun.com/jsf/html">http://java.sun.com/jsf/html</a>”

xmlns:f=“<a href="http://java.sun.com/jsf/core">http://java.sun.com/jsf/core</a>”

xmlns:ui=“<a href="http://java.sun.com/jsf/facelets">http://java.sun.com/jsf/facelets</a>”

xmlns:rich=“<a href="http://richfaces.org/rich">http://richfaces.org/rich</a>”

xmlns:a4j=“<a href="http://richfaces.org/a4j">http://richfaces.org/a4j</a>”

xmlns:t=“<a href="http://myfaces.apache.org/tomahawk">http://myfaces.apache.org/tomahawk</a>”>

<a4j:outputPanel ajaxRendered=“true” id=“messages”>

<rich:modalPanel id=“popupMensagens” showWhenRendered="#{facesContext.maximumSeverity != null}" moveable=“true” autosized=“true” width=“400” minHeight=“125” headerClass=“align-left” style=“background-color: #F7F3F7;”>

<f:facet name=“header”>

<h:outputText value="#{label.titulo_alerta}" />

</f:facet>

<f:facet name=“controls”>

<h:graphicImage value="#{label.imagem_operacao_fechar}" style=“cursor: pointer;” onclick=“Richfaces.hideModalPanel(‘popupMensagens’)” alt="#{label.rotulo_operacao_fechar}" title="#{label.dica_operacao_fechar}" />

</f:facet>
<a4j:form>	
			<rich:spacer height="0" />
		
	<!-- 		<a4j:outputPanel layout="block" align="left">
				<t:fieldset style="width: 100% height: auto; align: left;"> -->
					<rich:messages layout="list" showSummary="false" showDetail="true" infoClass="metas-mensagem-sucesso" warnClass="metas-mensagem-advertencia" errorClass="metas-mensagem-falha" fatalClass="metas-mensagem-fatalidade">
						<f:facet name="infoMarker">
							<h:graphicImage value="#{label.imagem_icone_sucesso}" width="36" height="26" />
						</f:facet>
						<f:facet name="warnMarker">
							<h:graphicImage value="#{label.imagem_icone_advertencia}" width="36" height="26" />
						</f:facet>
						<f:facet name="errorMarker">
							<h:graphicImage value="#{label.imagem_icone_falha}" width="36" height="26" />
						</f:facet>
						<f:facet name="fatalMarker">
							<h:graphicImage value="#{label.imagem_icone_fatalidade}" width="36" height="26" />
						</f:facet>
					</rich:messages>
			<!-- 	</t:fieldset>
			</a4j:outputPanel> -->
				
			<rich:spacer height="10" />

			<a4j:outputPanel layout="block" align="center">
<a4j:commandLink reRender="popupMensagens" disabled="false" onclick="Richfaces.hideModalPanel('popupMensagens');" ajaxSingle="true">
					<h:graphicImage value="#{label.imagem_OK}" style="cursor: pointer;" styleClass="imagemSemBorda" alt="OK" title="OK" onclick="Richfaces.hideModalPanel('popupMensagens')" />
	<!--					<h:graphicImage value="#{label.imagem_OK}" style="cursor: pointer;" styleClass="imagemSemBorda" alt="OK" title="OK" />-->
				</a4j:commandLink>
			</a4j:outputPanel>

			<rich:spacer height="10" />
		</a4j:form>
	</rich:modalPanel>
</a4j:outputPanel>

</ui:composition>

1 Resposta

D

up

Criado 30 de março de 2012
Ultima resposta 30 de mar. de 2012
Respostas 1
Participantes 1