I find that after user press the t:inputFileUpload
button, the managed bean setXXX method is not fired
even add immediate="true" attribute,
the setXXX method only fired when
the commandButton
<h:commandButton value="upload" action="#{uploadBean.upload}"/>
is pressed!!
but now I want to do something like GMail
attachment, that is only one attach button
(t:inputFileUpload button), each time user
press the t:inputFileUpload, the file
is stored in a vector<UploadedFile>, and
then when the user press the
<h:commandButton value="upload" action="#{uploadBean.upload}"/>
button, all attachment is upload PLUS
all information in the enclosing h:form is submitted,
how to implement such function?
is it no way for t:inputFileUpload fire the setXXX when
user press it? (don't wait until the user press
the commandButton button)
為了不斷提升Yahoo!
Mail,雅虎香港誠邀你參與意見調查。請前往http://surveylink.yahoo.com/wix/p5429076.aspx 發表你的意見!