2 Replies Latest reply on Nov 20, 2009 9:19 AM by TV Ramprasadh

    Context Menu not working properly when migrating from 3.2.1

    TV Ramprasadh Newbie

      Hi Ilya

      Request your help for the following issue.This is critial for us as we need to decide whether to go live with the 3.3.2 RF jar as this issue does not come in 3.2.1 jar

      Appreciate your help.

      We are migrating from 3.2.1 to 3.3.2 RF. As part of this we face a peculiar issue in context menu in lists ( data table). Context menu breaks, i.e. the options below the second disabled context menu will be shown above or below the list ( data table) as part of the main page.

      Please see code snippet.

      <a:richContextMenu attached="false" id="ShowAllMenuForEvent" submitMode="ajax">
      <a:richMenuItem value="#{text['AddItems']}" action="#{manageSLBean.doAddItems}" ajaxSingle="true">
      <a4j:actionparam assignTo="#{manageSLBean.rowkey}" value="{rowkey}"/>
      </a:richMenuItem >
      <a:richMenuItem value="#{text['ViewItems']}" action="#{manageSLBean.doViewItems}" ajaxSingle="true">
      <a4j:actionparam assignTo="#{manageSLBean.rowkey}" value="{rowkey}"/>
      </a:richMenuItem >
      <a:richMenuItem value="#{text['AddBuyers']}" action="#{manageSLBean.doAddBuyers}" ajaxSingle="true" disabled="#{!manageSLBean.listAudience}">
      <a4j:actionparam assignTo="#{manageSLBean.rowkey}" value="{rowkey}"/>
      </a:richMenuItem >
      <a:richMenuItem value="#{text['ViewBuyers']}" action="#{manageSLBean.doViewBuyers}" ajaxSingle="true" disabled="#{!manageSLBean.listAudience}">
      <a4j:actionparam assignTo="#{manageSLBean.rowkey}" value="{rowkey}"/>
      </a:richMenuItem >


      ----------------------
      The below menu items breaks and comes above the data table itself
      -------------------------

      <a:richMenuItem value="#{text['ListParameters']}" action="#{manageSLBean.doEditList}" ajaxSingle="true">
      <a4j:actionparam assignTo="#{manageSLBean.rowkey}" value="{rowkey}"/>
      </a:richMenuItem >
      <a:richMenuItem value="#{text['Copy_Text']}" action="#{manageSLBean.doCopyList}" ajaxSingle="true">
      <a4j:actionparam assignTo="#{manageSLBean.rowkey}" value="{rowkey}"/>
      </a:richMenuItem >
      <a:richMenuItem value="#{text['Cancel']}" action="#{manageSLBean.doCancel}" ajaxSingle="true">
      <a4j:actionparam assignTo="#{manageSLBean.rowkey}" value="{rowkey}"/>
      </a:richMenuItem >
      <a:richMenuItem value="#{text['ExportToPortal']}" action="#{manageSLBean.doExportToPortal}" disabled="#{!manageSLBean.exportToPortal}" ajaxSingle="true">
      <a4j:actionparam assignTo="#{manageSLBean.rowkey}" value="{rowkey}"/>
      </a:richMenuItem >
      <a:richMenuItem value="#{text['DownloadPDF']}" onclick="javascript:downloadPdf('{rowkey}');"/>
      </a:richContextMenu>