Data are erased when using Dialog framework minimized

UI Components for JSF
Post Reply
Geodis-de-dev-fac
Posts: 2
Joined: 19 Oct 2021, 09:42

30 Mar 2023, 10:58

Hello,

We have a bug while using the component "Dialog framework" with the property "Minimizable". When we minimize the dialog, all the data inside it are erased.

If you click on the button, it reloads the entire iframe, losing previous data. idem, then by clicking on the button to restore.

When loading the iframe, if for example in the xhtml you have a bean with scope @viewscope, it destroys it and loads a new one.
if there is a @PostConstruct, it is executed every time the "minimizable" button is clicked.
so all the data populated in the xhtml is destroyed.

the problem seems to be:
PrimeFaces.widget.Dialog.dock
line: this.jq.appendTo(zone).css('position', 'static');

PrimeFaces.widget.Dialog.removeMinimize
líne: this.jq.appendTo(this.parent).removeClass('ui-dialog-minimized').css({'position':'fixed', 'float':'none'});

if those lines are removed, this does NOT happen, the iframe is NOT reloaded.

Note : dialog opened with "PrimeFaces.current().dialog().openDynamic(url, options, params);"

We still are in Primefaces V8.0.13. Someone know this bug and if it's resolved in Primefaces V10 or more ?

Regards,

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 38 guests