got a weird issue, i have a primefaces command button :
<p:commandButton action="#{userBean.buttonToUploadText}" value="Submit" icon ="ui-icon-arrowstop-1-n"/>
userBean.java
public String buttonToUploadText() {
System.out.println("buttonToUploadText invoked"); //testing to make sure it is called
return "/upload/uploadText.xhtml";
}
all this should do is simply take the user to the upload text page, it does this but whenever i have this button the fileupload does nothing, but the second i edit this command button out and use a normal one the file upload works perfect ? what am i doing wrong
EDIT:
have just found out when ajax is false it works perfectly, why is this ?