您好我有一些功能的基礎上,該功能有一定條件的託管bean我喜歡叫一個對話框調用Primefaces對話框
Managed Bean的功能都按
public String editStudent(){
setReadOnly(false);
setButton(true, true, true, false, true, true,true);
LockItem lItem;
if(selectStudent !=null){
lItem = (LockItem) services.getbyId("LockItem", condition);
if (lItem == null){
System.out.println("Student Avalibale for process :::");
studentRedirect();
return "studentEdit.jsf?faces-redirect=true";
} else {
//To show dialog from here
System.out.println("Student Not Avalibale : Locked By " + lItem.getLockedBy());
}
} else {
FacesMessage msg;
msg = new FacesMessage("Please select the record.");
FacesContext.getCurrentInstance().addMessage(null, msg);
return show("menu");
}
}
是否有任何方法可以使用我們可以從這種管理功能調用對話框
我正在使用primefaces 3.5 ..它在那裏也可用...... – Nitin
這個例子完全可以和pf 3.5一起工作 –
也許你應該明白在'execute()'你必須引用widgetVar名字 – dasLort