The uploadFile is working fine in another page with similar code, so i refuse the configuration way.
I select a person to expand his asociated interview in another table, that i will show in another page. To make this, i redirect the page as:
<p:commandLink id="btnIrNtr" action="path/page.xtml?faces-redirect=true"
actionListener="#{usuarioBean
.getUsuarioTabla(obj.codPersona, false)}" >
<h:graphicImage value="#{msj.imgEntrevista}"
styleClass="imgCentro"/>
</p:commandLink>
This is the code inside my page:
// more code
<p:dialog id="dlgImgNtr" header="#{msj.tImgNtr}" widgetVar="wdgImgNtr"
closable="false" resizable="false" appendTo="@(body)">
<h:form id="formImgNtr" enctype="multipart/form-data">
<p:panel id="panelImgNtr">
<p:fileUpload mode="simple" value="#{entrevistaBean.auxNtr.archivo}"
styleClass="marginTop10" id="fuEditarImgNtr">
<f:validator validatorId="#{msj.urlValidatorArchivo}"/>
</p:fileUpload>
<p:outputLabel id="opObservImg" value="#{msj.fObservacion}" />
<p:inputTextarea id="ipObservImg" maxlength="500"
value="#{entrevistaBean.auxNtr.observacionesImg}"
autoResize="false" styleClass="width100" />
<h:panelGrid id="btnInfImgNtr" styleClass="marginTop10" columns="2">
<p:commandButton id="btnImgNtr" value="#{msj.btnGuardar}"
process="@this"
action="#{entrevistaBean.editarNtr}"
ajax="false" />
<p:commandButton id="btnImgNtrCerrar" value="#{msj.btnCancelar}"
actionListener="#{entrevistaBean.reset('formImgNtr')}"
oncomplete="cerrarComponente('wdgImgNtr')"
immediate="true" />
</h:panelGrid>
</p:panel>
</h:form>
</p:dialog>
If I delete the fileUpload component and the type in the form, it works fine.
I think that the problem could be located when the pages reload and how it make the upload file, any idea will be wellcome!