However straight after i got a new error:
Code: Select all
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
javax.faces.application.ViewExpiredException: viewId:/ui/msgUpload.jsf - View /ui/msgUpload.jsf could not be restored.
at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:212)
Edit:
I also tried with the latest beta version but yet the same problem. Only thing is that on the form itself it doesn't display a error but in the logs i can see it generating a ViewExpiredException.
the solution as provided in http://primefaces.prime.com.tr/forum/vi ... ion#p16868 didnt work either. Also if i try it in Internet Explorer it doesnt work.
Code: Select all
<h:form>
<h:commandLink action="uploadFiles" >
<h:outputText value="Upload your files" />
</h:commandLink>>
</h:form>
Code: Select all
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.prime.com.tr/ui"
template="../template/messageStore.xhtml">
<ui:define name="content">
<div class="msgstore_msgHeader ui-widget-header">
<h:outputText value="Upload EDI files." />
</div>
<div class="msgstore_content">
<h:form class="content">
<p:fileUpload fileUploadListener="#{FileUploadController.uploadFile}" multiple="true" label="Choose" description="Files"/>
</h:form>
</div>
</ui:define>
</ui:composition>
Code: Select all
public class FileUploadController {
private Logger logger = Logger.getLogger(FileUploadController.class.getName());
public void uploadFile( FileUploadEvent event) {
logger.log(Level.INFO, "Uploaded: {0}", event.getFile().getFileName());
}
}