jsf 2 primefaces openDialog无法正常工作吗? [英] jsf 2 primefaces openDialog not working?
问题描述
我正在尝试使用Primefaces的对话框框架,但是我已经停留在设置上了:
http://www.primefaces.org/showcase/ui/dialogFrameworkBasic.jsf >
这里摘录:
Map<String,Object> options = new HashMap<String, Object>();
options.put("modal", true);
options.put("draggable", false);
options.put("resizable", false);
options.put("contentHeight", 320);
RequestContext.getCurrentInstance().openDialog("showBundle", options, null);
似乎"opendialog(...)"方法根本不存在.
有人可以帮忙吗?如何在页面上显示模式XHTML页面(jsf)?
我想显示一个向导"来更新数据库中的某些数据(例如名称,第一页的地址,第二页的图片和工作等);所以我认为模式对话框可以解决该问题(使用下一步"按钮).这是正确的方法还是有更好的方法?
最诚挚的问候
在faces-config.xml中添加了
<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>
i am trying to use the Dialog-Framework of Primefaces, but I already stuck at the setting-up:
http://www.primefaces.org/showcase/ui/dialogFrameworkBasic.jsf
Here an excerpt:
Map<String,Object> options = new HashMap<String, Object>();
options.put("modal", true);
options.put("draggable", false);
options.put("resizable", false);
options.put("contentHeight", 320);
RequestContext.getCurrentInstance().openDialog("showBundle", options, null);
it seems, that the method "opendialog(...)" does not exist at all.
can anyone help? How can I show up a modal xhtml-page (jsf) on a page?
I want to show a 'wizard' to update some data in a database (e.g. name, adress on first page, picture and job at second page, etc.); so i thought a modal dialog would solve that (with a "next" button). is this the right way or is there a better approach?
best regards
In faces-config.xml added:
<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>
这篇关于jsf 2 primefaces openDialog无法正常工作吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!