CommandButton = '_blank' ajax=false does not work within Dialog Primefaces 10

Post Reply
Posts: 5
Joined: 05 Sep 2017, 05:20

14 May 2021, 13:20

I am upgrading Primefaces 8.0, mojarra 2.3.13, to PrimeFaces 10.0.0, however I came across an error, the CommandButton command stopped working. Version downloaded on Maven:

Code: Select all

However, when disabling the CommandButton AJAX within the Dialog, to open a report with JasperReports in a new tab, nothing is performed:

Code: Select all

<p:dialog widgetVar="dlgReport" header="Report" showEffect="fade" 
                  resizable="true" draggable="true"  maximizable="false" 
                  responsive="true" closeOnEscape="true" >           
            <h:form id="formReport">
                <div class="p-grid p-formgrid ">                    
                    <div class="p-col-12 p-mt-2 p-right">                       
                        <p:splitButton value="Print" icon="fas fa-print" class="b-m-r"
                                       oncomplete="if(args.success == true);" 
                                       onclick=" = '_blank'" ajax="false" >                               
The same command onclick = " = '_blank'" ajax = "false"
executed outside the Dialog component, opens normally.

Posts: 204
Joined: 29 Jul 2019, 13:57

14 May 2021, 22:29


If the issue persists when you try it without a Mirage theme, please see the migration guide or get help from the PrimeFaces forum. Thank you for your understanding.
PrimeFaces Forum: viewforum.php?f=3
Migration Guide: ... ide/10_0_0

Best Regards,

Post Reply

Return to “Mirage - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests