I have a repeat structure:
<ui:repeat var="item" />
Inside it I print some fields. One of them is <p:fileUpload/>
So far so good. The problem is when it's time to do the action, when I click the save button it assigns all the fields in managebran minus the file field.
But if I remove the fileInput from within <ui:repeat>
it works.
In addition to not working, the attribute of my bean is null.
<h:form>
<ui:repeat var="item" value="#{bean.page.columns}">
<p:fileUpload mode="simple" value="#{bean.file}" />
</ui:repeat>
<p:commandButton ajax="false" action="#{bean.save}" value="#{msgs.save}"
update="growl" styleClass="btn button" />
</h:form>
This works, it associates the value in my bean .
<h:form>
<p:fileUpload mode="simple" value="#{bean.file}" />
<p:commandButton ajax="false" action="#{bean.save}" value="#{msgs.save}"
update="growl" styleClass="btn button" />
</h:form>