0

I'm opening dialog from a backing bean like this:

Map options = new HashMap(); options.put("resizable", true); options.put("width", 1400); options.put("contentWidth", "100%"); options.put("height", 800);
options.put("minimizable", true);
options.put("maximizable", true);

PrimeFaces.current().dialog().openDynamic("pageName", options, null); 

How can I set the dialog id?

I tried to put it like an option, but it didn't help:

options.put("id", "someId"); 

My Primefaces version is 6.2

WhatsThePoint
  • 3,395
  • 8
  • 31
  • 53

1 Answers1

0

It should be

Map<String, Object> options = new HashMap<>();

Also check this: https://www.logicbig.com/tutorials/misc/primefaces/programmatic-dialog.html

azer-p
  • 304
  • 1
  • 12