6.1 Dialog Framework

UI Components for JSF
Post Reply
jdubicki
Posts: 11
Joined: 17 Jan 2018, 15:19

02 Feb 2018, 17:26

Can someone please give me a working example of the the Dialog Framework for version 6.1. The Example in the showcase does not work. The line

Code: Select all

PrimeFaces.current().dialog.openDynamic("viewCars", options, null);
is not correct, not to mention that the Class PrimeFaces does not exist. I have also tried

Code: Select all

RequestContext.getCurrentInstance().openDialog("viewCars", options, null);
and this does not work either. Please help.

RueKow
Posts: 330
Joined: 21 Jun 2011, 23:34
Location: Germany - Wiesbaden

06 Feb 2018, 15:18

Did you register the required listener and handlers in faces config?

Code: Select all

<application>
	<action-listener>
		org.primefaces.application.DialogActionListener
	</action-listener>
	<navigation-handler>
		org.primefaces.application.DialogNavigationHandler
	</navigation-handler>
	<view-handler>
		org.primefaces.application.DialogViewHandler
	</view-handler>
</application>
Rüdiger

PrimeFaces 7.0 | Ultima 2.0
Mojarra 2.3 | Tomcat 8/9 | Win7/10 | OS X 10.14

jdubicki
Posts: 11
Joined: 17 Jan 2018, 15:19

06 Feb 2018, 17:11

I am using Netbeans 8.2. When I create a project the faces config file is not created. I am not sure where to place it. Furthermore I am using JSF 2.2 and am under the impression that this file is not needed. I don't know.

jdubicki
Posts: 11
Joined: 17 Jan 2018, 15:19

06 Feb 2018, 17:53

I was able to get it working.

Thanks

Daric
Posts: 7
Joined: 08 Jun 2018, 10:39

22 Jul 2018, 20:41

Hello,

I had the same issue, solution is to add the missing '()' after dialog. This will work like a charm :

PrimeFaces.current().dialog().openDynamic("viewCars", options, null);

Best regards to all...

Daric
PrimeFaces : 6.2
JSF : 2.2.17
Server : Tomcat 9.0.8
Java : 1.0.8_171
Eclipse : Photon Release Candidate 1 (4.8.0RC1)

seetharaman43
Posts: 18
Joined: 24 Jan 2019, 11:56

16 Apr 2019, 13:17

jdubicki wrote:
06 Feb 2018, 17:53
I was able to get it working.

Thanks
Could you please let me know what have you done to make it work?. I have the same code but it is not working.
PrimeFaces.current().dialog().openDynamic("viewCars", options, null);

Primefaces 7.0
Netbeans 8.2
JSF 2.2

User avatar
Melloware
Posts: 1152
Joined: 22 Apr 2013, 15:48

17 Apr 2019, 13:12

I answered in your other thread.
PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 7.0.4 / PF Extensions 7.0.1

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests