我无法让我actionListener进入<p:commandButton>对话框内.我已经尝试将其更改为操作,删除(),添加(),更改托管bean的范围,移动ajax语句,到目前为止没有任何帮助.一切顺利,直到我更新Netbeans,一切都坏了,不知何故一个库被删除,它是commons-fileupload jar.
只有在netbeans更新后,才会对代码进行任何更改.Netbeans 7.3,JSF2.2,Tomcat 7,jdk1.7,primefaces 4.0.我的tomcat管理器应用程序内部有一个工作版本,如果我可能检索到希望一切都恢复正常工作但我找不到任何关于从tomcat恢复文件的事情.所以我的问题是,为什么这不解雇?它是按钮中我的通话顺序吗?我无法理解为什么这不起作用.
编辑错误我在切换表单和对话位置后收到 -
Jul 10, 2014 11:50:48 AM com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException
SEVERE: Error Rendering View[/sampleExport.xhtml]
javax.faces.FacesException: Cannot find component with expression ":searchDialogID" referenced from "mainForm:j_idt22".
at org.primefaces.expression.SearchExpressionFacade.resolveComponentInternal(SearchExpressionFacade.java:271)
Run Code Online (Sandbox Code Playgroud)
编辑3修改Bean
@ManagedBean
@ViewScoped
public class SampleExportController implements Serializable {
//Variables used to show or hide panels on the webpage
private boolean _addTill = false;
private boolean _allowAddingExport;
private boolean _allowDelExport;
private boolean _allowModExport;
private boolean _allowReading;
private boolean _previousCrop;
private boolean …Run Code Online (Sandbox Code Playgroud)