[jboss-user] [JBoss Seam] - Re: Simplest <s:fileUpload> usage

evl123 do-not-reply at jboss.com
Wed May 30 18:20:21 EDT 2007


"shane.bryzak at jboss.com" wrote : 
  | We recommend that you don't use the Tomahawk components.  If you use the file upload control provided by Seam then you get all the things you mentioned (file name, content type, etc).

Shane,
Sorry but could you detail a bit more about file upload control provided by Seam?
Do you mean something like this:
<s:fileUpload data="#{uploadAction.uploadedFile}" />
(..where uploadedFile is component of type org.apache.myfaces.custom.fileupload.UploadedFile)

I tried this but the result is the same - null uploadedFile inside non-null uploadBean.

However, if I specify uploadedFile to be byte[], it will work because it uploads byte stream instead of UploadedFile class type.
With byte[], I can only get the content and the size but not other meta attributes of the file.

Is there an example of how to use Seam's upload somewhere that I can take a look?

Thanks,
landrew


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4049933#4049933

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4049933



More information about the jboss-user mailing list