2 Replies Latest reply on Nov 11, 2009 8:17 AM by BJorn T Johansen

    contextMenu with componentControl doesn't work together with

    BJorn T Johansen Newbie

      Is this a known limitation?

      If I use the following code..:

      <rich:dataTable var="price" ...>
       <f:facet name="header">
       <rich:columnGroup style="background: lightsteelblue">
       <rich:column>
       <h:outputText value="#{msgs.supplier_number}"/>
       </rich:column>
       </rich:columnGroup>
       </f:facet>
       <rich:columnGroup rendered="#{price.showSupplier}">
       <rich:column>
       <h:outputText value="#{price.leverandor.levNummer}"/>
       </rich:column>
       </rich:columnGroup>
       <rich:componentControl event="onRowContextMenu" for="contextmenu" operation="show">
       <f:param value="#{price.id}" name="rowId"/>
       </rich:componentControl>
      </rich:dataTable >
      <rich:contextMenu attached="false" submitMode="ajax" id="contextmenu" disableDefaultMenu="true">
      ....
      </rich:contextMenu>
      


      then no context menu appears (I have also tried moving the componentControl tag inside the columnGroup tag with the same result)

      But if I remove the columnGroup and just displays the column values, then the context menu appear.. Is this a known problem or am I doing something wrong?


      Regards,

      BTJ