Problem in Chrome

UI Components for JSF
Post Reply
frioux
Posts: 21
Joined: 02 Nov 2015, 23:32

18 Feb 2019, 16:40

I have a button like that:
<p:commandButton id="closeVisitButton" action="#{editVisitBean.returnURL()}" icon="fa fa-close" immediate="true"/>

In Chrome, if I click the button before the page finished rendering, nothing happen. Then when it is finished rendering, when I click, a new editVisitBean is recreated and my @PostConstruct is called breaking my code.

Any workaround?

Primefaces 6.2

frioux
Posts: 21
Joined: 02 Nov 2015, 23:32

18 Feb 2019, 16:44

Here is my ugly workaround, putting: onstart="if ( !jQuery.isReady ) return false" everywhere.

Melloware
Posts: 3717
Joined: 22 Apr 2013, 15:48

19 Feb 2019, 14:34

I think what you are reporting is this issue: https://github.com/primefaces/primefaces/issues/3425
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 42 guests