Reply To: Problem with h:inputFile

Splash Forums Rewrite Users Problem with h:inputFile Reply To: Problem with h:inputFile

#25096

Hey, I just gave your application a try. I deployed it to Wildfly Alpha4. Unfortunately the upload doesn’t seem to work at all. Even if I completely remove PrettyFaces from the application. I added an action method which doesn’t ever get executed if I click the button.


<h:form enctype="multipart/form-data">
    <h:inputFile value="#{fileAction.file}" />
    <h:commandButton value="Upload" action="#{fileAction.action}" />
</h:form>

It seems to have something to do with h:inputFile. If I use this code instead, the action method gets executed fine:

<h:form>
    <h:commandButton value="Upload" action="#{fileAction.action}" />
</h:form>

Any idea? Which container did you use?