dialog-framework

Primefaces dialog framework not working while using ajax listener

我只是一个虾纸丫 提交于 2019-12-12 10:54:27
问题 I'm trying to open dialog using Primefaces 4 dialog framework, public void openDialog(String viewName) { RequestContext.getCurrentInstance().openDialog(viewName); } This works: <p:commandButton value="Click" action="#{impaktDialogBean.openDialog('/popup/test2')}"/> This doesn't: <p:commandButton value="Click"> <p:ajax event="click" listener="#{impaktDialogBean.openDialog('/popup/test2')}" ></p:ajax> </p:commandButton> So, Primefaces dialog framework only works with action & actionListener????

Primefaces Dialog Framework - Not Working

蹲街弑〆低调 提交于 2019-12-11 02:03:54
问题 Primefaces Dialog Framework v 4 is not working, I have googled to solve the problem as I have added the following code to faces config but all went in vain. Please find the code below: Index page: <p:commandButton value="View" icon="ui-icon-extlink" actionListener="#{dialogBean.viewCars}" /> Bean Code: public void viewCars() { RequestContext.getCurrentInstance().openDialog("viewCars"); } faces config: <application> <action-listener>org.primefaces.application.DialogActionListener</action

primefaces dialog using dialog framework not popping up

那年仲夏 提交于 2019-12-10 18:10:04
问题 I'm trying to use primefaces dialog framework to simplify my code. I've followed the example in the primefaces 4.0 user guide and it's not working. I copied the example pretty much verbatim creating three files: a file with the dialog in it, a file that calls the dialog and a backing bean file. The dialog file is named "dialog.xhtml", is in the "/Test" folder and contains: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui"> <h