3 Replies Latest reply on Apr 27, 2009 5:27 AM by Ruediger xxx

    how to use componentControl+contextMenu

    Ruediger xxx Newbie


      what is the best way to get the selected element (=table row) in the backing bean when the context menu is called?

      with buttons inside the table i use this code:

      FacesContext ctx = FacesContext.getCurrentInstance();
      myObject x = (myObject) ctx.getExternalContext().getRequestMap().get("elem");

      where "elem" is the variable used by my rich:dataTable.

      what is the easiest way to get this object when using a componentControl and a context menu?