How to extract text from forms marked with enctype:multipart/form-data(JSF 2.0)
问题 I have a JSF page that has a h:form that has some textfields and also an imageupload gadget from primefaces My question is: How can i get the text from the fields and assign them to some variable.(The objective is to separate the uploaded image/s from the text) -What should i do? -Do i need a filter, for that? -Is there any easy way to achieve it with primefaces fileupload tool? 回答1: This is not trivial with PrimeFaces 2.2.1. The PF 2 file upload handling is a bit an epic fail. Under the