Details
Description
The following markup was inspired by the ICEfaces inputFile tutorial, found here: http://facestutorials.icefaces.org/tutorial/inputFile-tutorial.html
Which shows that you can bind the "file" attribute of the <ice:inputFile/> component to a bean property:
<ice:inputFile
id="inputFile1" action="#{MyBean.action}" actionListener="#{MyBean.actionListener}"
binding="#{MyBean.inputFile}" buttonClass="my-inputfile" file="#{MyBean.file}"
label="#{MyMsgs.uploadResume}"
progressListener="#{MyBean.progressListener}" styleClass="my-inputfile"/>
However, the value binding on the "file" and "fileInfo" attributes are not setup right, because the bean's setFile() method is not called. Although I don't show "fileInfo" attribute in this example, I strongly suspect that a setFileInfo() bean method would not get called either.
Neil
Which shows that you can bind the "file" attribute of the <ice:inputFile/> component to a bean property:
<ice:inputFile
id="inputFile1" action="#{MyBean.action}" actionListener="#{MyBean.actionListener}"
binding="#{MyBean.inputFile}" buttonClass="my-inputfile" file="#{MyBean.file}"
label="#{MyMsgs.uploadResume}"
progressListener="#{MyBean.progressListener}" styleClass="my-inputfile"/>
However, the value binding on the "file" and "fileInfo" attributes are not setup right, because the bean's setFile() method is not called. Although I don't show "fileInfo" attribute in this example, I strongly suspect that a setFileInfo() bean method would not get called either.
Neil
I added some example code of using the file attribute into the component-showcase. This is much after this Jira was fixed though, so this is on the trunk, in time for ICEfaces 1.7 DR3.
Subversion 15240
icefaces\samples\component-showcase\src\com\icesoft\icefaces\samples\showcase\components\fileUpload\InputFileBean.java
icefaces\samples\component-showcase\web\inc\components\inputFile.jspx