0 Replies Latest reply on Oct 15, 2008 4:01 PM by Charls Cross

    Open a rich:contextMenu link on a popup window

    Charls Cross Newbie
      Hello!
      I've got a rich:contextmenu attached to a datatable, and I want to open the link on a popup window, such as I do with s:link.

      I'm trying this:
      `
      <rich:contextMenu event="oncontextmenu" attachTo="imagen" submitMode="ajax">
      <rich:menuItem value="Alarms"      
                       target="jsWinId"
                       oncomplete="window.open(null, 'jsWinId', 'windth=200,height=200')"
                   id="menuAlarms"  action="#{alarmsBean.seeAlarms(img.hostId)}">
                </rich:menuItem>
      </rich:contextMenu>                                                 

                                                                


      `
      Or this:

      `
      <rich:contextMenu event="oncontextmenu" attachTo="imagen" submitMode="ajax">
      <rich:menuItem>
         <f:facet name="label">
           <s:link value="Alarms"      
                       target="jsWinId"
                       oncomplete="window.open(null, 'jsWinId', 'windth=200,height=200')"
                   id="menuAlarmas"  action="#{alarmsBean.seeAlarms(img.hostId)}">
               </s:link>
         </f:facet>
        </rich:menuItem>
      </rich:contextMenu>                                                 

                                                                


      `
      But no one works. Any suggestions please???