I am using PrimeFaces <p:fileUpload > with <h:inputText> inside. The problem which i am facing is when i upload image and add the title for the image, the images are uploaded but the inputText values will contains null,doesn’t mapping to the bean.
Jsf Page for Image Upload:
<p:fileUpload id="imaload" fileUploadListener="#{ngoPhotoUpload.photoUpload}"
mode="advanced" multiple="true"
update="messages"
allowTypes="/(\.|\/)(gif|jpe?g|png)$/">
<h:inputText value="#{ngoPhotoBean.description}"/>
</p:fileUpload>
When i upload the ngoPhotoBean.description contains null. I am using primefaces 3.0 and jsf 2.0. How can I solve it?
In that primefaces p:remotecommand tag is there.. You can pass the argument using that tag.This link can help you..
how to pass the parameter during file upload in primefaces