I am using the PrimeFaces 3.5 in my application.
- I have made some changes in my code and I started using Dynamic Context Menu using server side code instead on static simple context menu of primefaces.
sample code
MenuItem menu1= new MenuItem();
menu1.setValue(Label);
menu1.setActionExpression(expFact.createMethodExpression(elCtx, "#{classname.methodname}", Void.class, new Class[0]));
menu1.setOncomplete("Dialog1.show()");
model.addMenuItem(menu1);
- this dynamic menu is working fine.
- In this context menu on oncomplete event a Dialog is popup-ed. I am using another simple context menu for this dialog. Earlier I was able to handle context menu on Dialog box but as I have changed dynamic context menu on my main xhtml page. The context menu is not appearing on dialog box now.
I am not getting any exception or error on browser so I am unable to trace the cause why my simple context menu is lost or what extra I need to do to handle simple context menu on dialog now?
Please help me and thanks in advance.