2 Replies Latest reply on May 30, 2008 10:00 AM by eklam

    3.2.1 Ga ContextMenu problem

    eklam Newbie

      Hi,

      I got this code, and it was wokirn in 3.2.0 GA, now I've updated it and contextmenu isn't shown anymore =(

      <a4j:outputPanel id="arqOutPne" layout="block">
      
       <a4j:mediaOutput id="pic" element="img" mimeType="image/jpeg"
       createContent="#{funcoes.paint}" value="#{item}"
       style="width:128px; height:128px;"/>
       <br />
       <rich:spacer height="5px" />
       <h:outputText value="#{item.titulo}"/>
      
      
      
       <div style="text-align: left">
       <rich:contextMenu event="oncontextmenu" attachTo="arq" submitMode="ajax">
       <rich:menuItem id="enviarPara" value="Enviar para..." action="#{arquivoMB.selecionaIArquivo}" reRender="arquivos" ajaxSingle="true">
       <rich:componentControl for="mp" attachTo="enviarPara" operation="show" event="onclick"/>
       <a4j:actionparam name="idIArquivo" value="#{item.id}" />
       </rich:menuItem>
       <rich:menuSeparator />
       <rich:menuItem id="abrirPasta" value="Abrir" reRender="arquivos" action="#{arquivoMB.abrirPasta}" ajaxSingle="true">
       <a4j:actionparam name="idPasta" value="#{item.id}" />
       </rich:menuItem>
       <rich:menuSeparator />
       <rich:menuItem id="recortarArquivo" value="Recortar" reRender="arquivos" action="#{arquivoMB.recortarArquivo}" ajaxSingle="true">
       <a4j:actionparam name="idIArquivo" value="#{item.id}" />
       </rich:menuItem>
       <rich:menuItem id="copiarArquivo" value="Copiar" reRender="arquivos" action="#{arquivoMB.copiarArquivo}" ajaxSingle="true">
       <a4j:actionparam name="idIArquivo" value="#{item.id}" />
       </rich:menuItem>
       <rich:menuItem id="colarArquivo" value="Colar" reRender="arquivos" action="#{arquivoMB.colarArquivo}" ajaxSingle="true">
       <a4j:actionparam name="idNovoContainer" value="#{item.id}" />
       </rich:menuItem>
       <rich:menuSeparator />
       <rich:menuItem id="renomearArquivo" value="Renomear" reRender="arquivos" ajaxSingle="true">
       <rich:componentControl for="mpEditIArquivo" attachTo="renomearArquivo" operation="show" event="onclick"/>
       <a4j:actionparam name="idIArquivo" value="#{item.id}" />
       </rich:menuItem>
       <rich:menuItem id="excluirArquivo" value="Exluir" reRender="arquivos" action="#{arquivoMB.exluirArquivo}" ajaxSingle="true">
       <a4j:actionparam name="idIArquivo" value="#{item.id}" />
       </rich:menuItem>
       </rich:contextMenu>
       </div>
      
       <rich:dragSupport
       id="dragsIArquivo"
       dragIndicator=":indicatorArquivo"
       dragType="iarquivo">
       <rich:dndParam id="dragDnDParam" name="label" value="#{item.titulo}" />
       <a4j:actionparam id="dragActionParam" value="#{item.id}" name="draggedArquivoId"/>
       </rich:dragSupport>
      
       <rich:dropSupport
       id="dropSupportArquivo"
       acceptedTypes="#{item.tipoAceito}"
       dropListener="#{arquivoMB.processDropArquivo}"
       reRender="gridArquivos">
       <a4j:actionparam id="dropActionparam" value="#{item.id}" name="droppedPastaId"/>
       </rich:dropSupport>
      
       </a4j:outputPanel>