Usando richfaces 4 mais não aparece panel ?não da erro?

Olá.

pode estar acontecendo pois não aparece panel
estou usando windows 7,tomcat 7,java 6,jsf 2.0,richfaces 4

jar :

jar usados:
richfaces-components-api-4.0.0.20110209-M6.jar
richfaces-components-ui-4.0.0.20110209-M6.jar
richfaces-core-api-4.0.0.20110209-M6.jar
richfaces-core-impl-4.0.0.20110209-M6.jar

alguém pode me ajudar …agradeço…

abs


<ui:composition 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:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">

	<script>
         function getRightTop(ref) {
           var position = new Object();
           position.top = 0; //ref.offsetTop;
           position.left =0; // ref.offsetLeft+ref.clientWidth+6;
           return position;
         }
        </script>
	<rich:message></rich:message>

	<h:commandButton value="Call the popup">
		<rich:componentControl target="popup" operation="show" />
	</h:commandButton>
	
	<rich:popupPanel id="popup" modal="true" resizeable="true"
		onmaskclick="#{rich:component('popup')}.hide()">
		<f:facet name="header">
			<h:outputText value="Simple popup panel" />
		</f:facet>
		<f:facet name="controls">
			<h:outputLink value="#"
				onclick="#{rich:component('popup')}.hide(); return false;">
               X
           </h:outputLink>
		</f:facet>
		<p>Additionally there you could check how to handle the clicks
		outside the panel.</p>
		<p>In this sample the click outside - closes the panel as well as
		clicking hide control in the header</p>
	&lt;/rich:popupPanel&gt;


&lt;/ui:composition&gt;

só aparece o botão ao clicar nele não faz nada…

abs

desisto vou usar Primefaces…

peguei esse exemplo abaixo e está funcionando…


&lt;?xml version='1.0' encoding='UTF-8' ?&gt;
&lt;html 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:p="http://primefaces.prime.com.tr/ui"&gt;
    &lt;h:head&gt;
        &lt;title&gt;Facelet Title&lt;/title&gt;
    &lt;/h:head&gt;
    &lt;h:body&gt;
        &lt;p:layout fullPage="true"&gt;


            &lt;p:layoutUnit position="left" width="200"&gt;
                &lt;h:outputText value="Letf text"/&gt;
            &lt;/p:layoutUnit&gt;

            &lt;p:layoutUnit position="center" scrollable="true"&gt;
                &lt;p:commandButton value="Basic" onclick="dlg1.show();" type="button"/&gt;
                &lt;p:commandButton value="Modal" onclick="dlg2.show();" type="button"/&gt;
                &lt;p:commandButton value="Effects" onclick="dlg3.show();" type="button"/&gt;


                &lt;p:dialog header="Basic Dialog" widgetVar="dlg1"&gt;
                    &lt;h:outputText value="Resistance to PrimeFaces is futile!" /&gt;
                &lt;/p:dialog&gt;

                &lt;p:dialog header="Modal Dialog" widgetVar="dlg2" modal="true" height="200"&gt;
                    &lt;h:outputText value="This is a Modal Dialog." /&gt;
                    &lt;p:commandButton value="Saida" onclick="dlg2.show();" type="button"/&gt;
                &lt;/p:dialog&gt;

                &lt;p:dialog header="Effect Dialog" widgetVar="dlg3" showEffect="bounce" hideEffect="explode" height="200"&gt;
                    &lt;h:outputText value="This dialog has cool effects." /&gt;
                &lt;/p:dialog&gt;
            &lt;/p:layoutUnit&gt;

        &lt;/p:layout&gt;
    &lt;/h:body&gt;
&lt;/html&gt; 

tambem estou com o mesmo problema, apenas não posso mudar o richfaces pois o projeto todo já esta em richfaces, que funcionava certinho no jsf 1.2 e richfaces 3.3.3

ainda estou tentando :wink:

Eu estava com um problema semelhante. O popupPanel não aparecia quando eu utilizava o atributo binding ou rendered. Só funcionou quando utilizei o show e atribui um boolean de um bean…

<rich:popupPanel id="messagesPopupPanel"
				show="#{registerMB.renderMessagesPopupPanel}" 
				modal="false"
				autosized="true" resizeable="false">
				<f:facet name="header">
					<h:outputText value="Preencha corretamente..." />					
				</f:facet>
				<f:facet name="controls">
					<h:outputLink value="#" onclick="#{rich:component('messagesPopupPanel')}.hide(); return false;"><h:graphicImage value="/resources/images/icons/close.png" styleClass="hidelink" id="hidelink"/></h:outputLink>
				</f:facet>
				<h:messages />
			</rich:popupPanel>