Dialog Framework: Widget not available error

UI Components for JSF
Post Reply
lewis.graham@jtel.de
Posts: 3
Joined: 20 Oct 2019, 14:04

01 Jun 2023, 12:54

I am using Primefaces 12.0.4 and when using the dialog framework, I am getting errors.

The Dialog is created with this code called from a p:commandButton

Code: Select all

	public String openNewDialog() {
		DialogFrameworkOptions options = DialogFrameworkOptions.builder()
												 .widgetVar( "newPopup_" + schemaDefName )
												 .modal( true )
												 .closeOnEscape( true )
												 .blockScroll( true )
												 .position( "center" )
												 .width( "90%" )
												 .resizable( false )
												 .fitViewport( true )
												 .build();
		PrimeFaces.current().dialog().openDynamic( "/pages/config/popups/newPopup", options, null );
		return "";
	}
When I open the dialog, then close it and then open it a second time, I get an error in Javascript on opening the second time (and all subsequent times):

Code: Select all

core.js.xhtml?ln=primefaces&v=12.0.4&e=12.0.7:16 Widget for var 'newPopup_AcdGroups' not available!
error @ core.js.xhtml?ln=primefaces&v=12.0.4&e=12.0.7:16
widgetNotAvailable @ core.js.xhtml?ln=primefaces&v=12.0.4&e=12.0.7:16
PF @ core.js.xhtml?ln=primefaces&v=12.0.4&e=12.0.7:33
destroyDetachedWidgets @ core.js.xhtml?ln=primefaces&v=12.0.4&e=12.0.7:65
handle @ core.js.xhtml?ln=primefaces&v=12.0.4&e=12.0.7:63
(anonym) @ core.js.xhtml?ln=primefaces&v=12.0.4&e=12.0.7:56
c @ jquery.js.xhtml?ln=primefaces&v=12.0.4&e=12.0.7:2
fireWith @ jquery.js.xhtml?ln=primefaces&v=12.0.4&e=12.0.7:2
l @ jquery.js.xhtml?ln=primefaces&v=12.0.4&e=12.0.7:2
(anonym) @ jquery.js.xhtml?ln=primefaces&v=12.0.4&e=12.0.7:2
load (async)
send @ jquery.js.xhtml?ln=primefaces&v=12.0.4&e=12.0.7:2
ajax @ jquery.js.xhtml?ln=primefaces&v=12.0.4&e=12.0.7:2
send @ core.js.xhtml?ln=primefaces&v=12.0.4&e=12.0.7:55
offer @ core.js.xhtml?ln=primefaces&v=12.0.4&e=12.0.7:44
handle @ core.js.xhtml?ln=primefaces&v=12.0.4&e=12.0.7:45
PrimeFaces.ajax.PrimeFaces.ab @ core.js.xhtml?ln=primefaces&v=12.0.4&e=12.0.7:38
onclick @ AcdGroups.xhtml?jfwid=901b0:242
The actual dialog seems to be fine.
Can this error be ignored, or is it more critical than it looks?

Thanks

Lewis

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 28 guests