p:dialog freezes and cannot close

UI Components for JSF
Post Reply
vasouv
Posts: 13
Joined: 10 Aug 2014, 12:00
Location: Greece
Contact:

30 Apr 2016, 10:02

Good morning everyone, I have a somewhat peculiar problem.

I'm implementing the Basic Selection Datatable from the Showcase. When clicking the View button, the dialog pops up and show the info but then it doesn't respond. The dialog goes blue (meaning it lost focus?) just like the rest of the page.

I'm using almost identical code to the showcase, I've changed little.

My dialog code is this:

Code: Select all

<p:dialog header="Album Info" widgetVar="albumDialog" modal="true" showEffect="fade" hideEffect="fade" resizable="false">
	<p:outputPanel id="albumDetail" style="text-align:center;">
		<p:panelGrid  columns="2" rendered="#{not empty store.selectedAlbum}" columnClasses="label,value">
			<f:facet name="header">
				<p:graphicImage library="images" name="covers/deceiverofthegods.jpg" height="50" width="50" /> 
			</f:facet>

			<h:outputText value="#{store.selectedAlbum.albumtitle}"/>
			<h:outputText value="#{store.selectedAlbum.price}"/>
			
		</p:panelGrid>
	</p:outputPanel>
</p:dialog>
And a quick video so you see exactly what's happening:
https://youtu.be/eAulRXj4QXY
Netbeans 8.2 - Primefaces 6.1 - Payara Full 4.1

Torsten
Posts: 27
Joined: 29 Oct 2015, 11:49

02 May 2016, 11:41

Screen is completely blocked - do you have a BlockUI in there?

http://www.primefaces.org/showcase/ui/m ... ckUI.xhtml
I never finish anyth..

vasouv
Posts: 13
Joined: 10 Aug 2014, 12:00
Location: Greece
Contact:

31 Aug 2016, 20:41

This is embarrassing, I'm really sorry for not responding. I guess I forgot because I used a separate page instead of the dialog.

To answer your question (even after 3 months), no I don't have any BlockUIs. The code was identical to the showcase, and even today I tried it again with PF 6.0 and it still freezes.

Not sure if any dimensions of the elements are to big and force the close button out of the browser view.

This case is of no importance now, I have a workaround that I prefer actually so I won't bother with the dialog for now. Maybe later at another project.
Netbeans 8.2 - Primefaces 6.1 - Payara Full 4.1

smokeybandit
Posts: 277
Joined: 08 Jul 2013, 17:53

01 Sep 2016, 15:37

Was it truly "freezing" or was there a javascript error that prevented any additional events from firing?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests