jsf - p:fileUpload not working inside p:dialog -
this question has answer here:
i'm getting wrong or what, same code p:fileupload works fine, when put p:fileupload p:dialog, not working.
<p:dialog id="confirmdialog" appendtobody="true" header="maj fichier fmd" widgetvar="confirmation"> <h:form enctype="multipart/form-data" > <h:panelgrid columns="1" cellpadding="5"> <p:fileupload auto="true" fileuploadlistener="#{parserxls.handlefileuploadfmd()}" sizelimit="2097152" label="choose" allowtypes="/(\.|\/)(pdf)$/" description="images"/> <p:commandbutton id="ok" value="ok" onclick="confirmation.hide()" type="button" /> </h:panelgrid> </h:form> </p:dialog>
what problem here?
the situation looks nested forms problem - if so, remove inner form , try again.
Comments
Post a Comment