-
1. Re: Richface fileupload, fill information for file
nbelaevski Feb 23, 2009 11:03 AM (in response to richface_number1)Hello,
Can you please clarify how the file information will be entered? -
2. Re: Richface fileupload, fill information for file
richface_number1 Feb 23, 2009 9:43 PM (in response to richface_number1)i drew my way to use file upload , you can view image
http://farm4.static.flickr.com/3574/3305596382_efe6f324d9_o.jpg .
Can i do like image prototype? [/url] -
3. Re: Richface fileupload, fill information for file
andrei_exadel Feb 24, 2009 11:02 AM (in response to richface_number1)Hi,
You can use onadd event to create inputs for addtional info for each file item.
These inputs will be processed with form submit.
But fileUpload component does not allow to move Upload button to another place.
You can try manually through JS make upload button div absolutely positioned and move it anythere. -
4. Re: Richface fileupload, fill information for file
richface_number1 Feb 24, 2009 9:26 PM (in response to richface_number1)Thank for reply. But i dont know how to use onadd. Please help me. the follow jsp code :
<h:form> <h:inputText value ="#{contentBean.name1}"/> <h:inputText value ="#{contentBean.name2}"/> <rich:fileUpload uploadData="#{contentBean.uploadItems}" onadd="???" maxFilesQuantity="5" id="rf_upload_items_id" fileUploadListener="#{contentBean.listener}" acceptedTypes="jpg, gif, png, bmp" listHeight="160"> </rich:fileUpload> </h:form>
-
5. Re: Richface fileupload, fill information for file
andrei_exadel Feb 25, 2009 4:23 AM (in response to richface_number1)<script> youFunctionName (entries) { for (var i=0; i<entries.length; i++) { var fileName = entries[ i ].fileName; // The properties below are available only in Flash mode var creator= entries[ i ].creator; var creationDate= entries[ i ].creationDate; var modificationDate= entries[ i ].modificationDate; var type= entries[ i ].type; var size= entries[ i ].size; // TODO: function body } } </script> <rich:fileUpload onadd='youFunctionName(event.memo.entries)' allowFlash="true">
-
6. Re: Richface fileupload, fill information for file
richface_number1 Feb 25, 2009 10:28 AM (in response to richface_number1)Thank you so much, you show me new feature of fileupload but the feature is not thing i need.
You can read http://www.jboss.org/index.html?module=bb&op=viewtopic&t=144597
I want to submit to server other inputs when click upload and dont need any commandbutton.