Popup + <rich:modalPanel>

0 respostas
nandobgi

Pessoal estou utilizando um componente <rich:modalPanel> como Popup de pesquisa.
Estou com problemas para mostrar o componente, quando faço a chamada ele abre e fecha o Popup.

Segue abaixo código da chamada e do componente:

&lt;h:outputLink value="#" id="link"&gt;
     &lt;rich:componentControl for="popFuncao" attachTo="link" operation="show" event="onclick"/&gt;
    &lt;h:graphicImage value="images/lupa.gif" styleClass="images"/&gt;
&lt;/h:outputLink&gt;

PopUp

&lt;rich:modalPanel id="popFuncao" width="450" height="350"&gt;
        				&lt;f:facet name="header"&gt;
            				&lt;h:panelGroup&gt;
                				&lt;h:outputText value="Consulta"&gt;&lt;/h:outputText&gt;
            				&lt;/h:panelGroup&gt;	
        				&lt;/f:facet&gt;	

        				&lt;f:facet name="controls"&gt;
            				&lt;h:panelGroup&gt;
                				&lt;h:graphicImage value="/images/close.png" style="cursor:pointer" id="hidelink"/&gt;
                					&lt;rich:componentControl for="popFuncao" attachTo="hidelink" operation="hide" event="onclick"/&gt;
					        &lt;/h:panelGroup&gt;
        				&lt;/f:facet&gt;
        				
        				&lt;rich:panelBar width="100%" styleClass="panel" id="panelId" headerClass="pagControl"&gt;
        				&lt;h:form id="formPopFuncao"&gt;
        				&lt;rich:dataTable id="dataFuncao" value="#{usuarioHandler.funcoes}" var="funcao"&gt;
            				&lt;f:facet name="header"&gt;
				            	&lt;rich:columnGroup&gt;
				                	&lt;rich:column breakBefore="true" styleClass="colsmall"&gt;
				                    	&lt;h:outputText value="Codigo"/&gt;
				                    &lt;/rich:column&gt;
				                    
				                    &lt;rich:column styleClass="col" colspan="2"&gt;
				                    	&lt;h:outputText value="Funcao"/&gt;
				                    &lt;/rich:column&gt;
				                &lt;/rich:columnGroup&gt;
							&lt;/f:facet&gt;
							
				            &lt;rich:column filterBy="#{funcao.codigo_funcao}" filterEvent="onkeyup" styleClass="colsmall" &gt;
                				&lt;f:facet name="header"&gt;
                    				&lt;h:outputText value=" " title="Hack due to bug. Shuold be remoevd till release"&gt;&lt;/h:outputText&gt;
                				&lt;/f:facet&gt;
                				
                				&lt;h:outputText value="#{funcao.codigo_funcao}"/&gt;
           					 &lt;/rich:column&gt; 
				            
				            &lt;rich:column filterBy="#{funcao.descricao}" filterEvent="onkeyup" styleClass="col"&gt;
                				&lt;h:outputText value="#{funcao.descricao}"/&gt; 
	       					&lt;/rich:column&gt;
	       					 
	       					&lt;rich:column&gt;
	       						
	       						&lt;h:commandLink value="Selecionar"&gt;  
            						&lt;f:param id="idParam" value="#{funcao.codigo_funcao}" /&gt;
            					&lt;/h:commandLink&gt;
            					
	       					&lt;/rich:column&gt; 
	       					   
	       					 
        				&lt;/rich:dataTable&gt;
        				&lt;/h:form&gt;
        				&lt;/rich:panelBar&gt;
    				&lt;/rich:modalPanel&gt;

Alguém já passou por isso?

Obrigado

Criado 30 de julho de 2008
Respostas 0
Participantes 1