inputFile 1 « IceFaces « JSF Q&A

1. Icefaces InputFile component loses appearence

I am using Icefaces Inputfile component for uploading files to a server. The submit event works successfully without any errors, but the component loses the previous rendered appearence. It appears line the components ...

2. icefaces inputFile error

4. InputFile problem after upgrade to 1.7.2

java.lang.NullPointerException: FacesContext -> null at javax.faces.component.ValueBindingValueExpressionAdapter.getValue( at at com.icesoft.faces.component.inputfile.InputFile.renderIFrame( at com.icesoft.faces.webapp.http.core.UploadServer$2$1.writeTo( at com.icesoft.faces.webapp.http.common.standard.StreamingContentHandler.respond( at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith( at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith( at com.icesoft.faces.webapp.http.core.UploadServer$2.servlet( at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.detectEnvironment( at com.icesoft.faces.webapp.http.core.UploadServer.service( at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service( at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service( at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service( at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service( at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service( at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service( at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service( at com.icesoft.faces.webapp.http.servlet.MainServlet.service( at javax.servlet.http.HttpServlet.service( at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service( at weblogic.servlet.internal.StubSecurityHelper$ at weblogic.servlet.internal.StubSecurityHelper.invokeServlet( at weblogic.servlet.internal.ServletStubImpl.execute( at weblogic.servlet.internal.TailFilter.doFilter( at weblogic.servlet.internal.FilterChainImpl.doFilter( at weblogic.servlet.internal.RequestEventsFilter.doFilter( at weblogic.servlet.internal.FilterChainImpl.doFilter( at weblogic.servlet.internal.WebAppServletContext$ at ...

5. Suggestion about InputFile progress render behavior

I am using an inputFile with an outputProgress component and property progressRender="true". I have discovered a somewhat strange behaviour of the progress renderer: The first time progressListener is called after Upload button is clicked (when a new upload starts), a call to inputFile.getStatus() inside the progressListener returns the last status that resulted from the previous upload process. The correct status (InputFile.UPLOADING ...

6. [InputFile] How to retrieve 'old' file location

Hi, When using the InputFile component, a user either enters the location of a file in a textbox or selects a file via the 'browse' button. After selection, this file is uploaded and I can retrieve the new file location (upload location) via the component. But I was wondering: if I would like to retrieve the value in the original textbox ...

7. inputFile problem

8. ice:inputFile issue

hi, We are using the icefaces 1.7.1 componets how can i use separate command button instead of UPLOAD button wich is default for fileInput .the problem is when i browse the file and click on any external commandbutton if i try to get File on inputfile id it is giving null. i am also facing problem with ice:outputProgress component.progress indicator is ...

9. inputFile reset the values of other components in the page (icefaces vers =1.7)

I am working with 1.7 version of icefaces and I still see this bug. I have the component and a dataTable, which has one row for every file that is uploaded. Every row has the name of the file, an inputTextarea and inputText and other features. I can enter some arbitrary strings in the inputTextare. When I upload a ...

10. Using actionlistener in ice:inputFile (Icefaces 1.6.2)

Hi, I am using Icefaces 1.6.2 for my project. I have a page where some text inputs will be accepted and a file will be uploaded. When the file gets uploaded, i want to give an ackowledgement that the file got uploaded and u can save the form. But when i add actionListener with ice:inputFile for this purpose, it disables rest ...

11. ice:inputFile

Have you uploaded the jars without looking at the latest component-showcase (for an example of how to use fileupload---it has been evolving each subsequent release). If you are using 1.7.2.SP1 (latest release), most definitely view the example in component-showcase as it will probably tell you all you need to know. (new properties like progressRender="true"/"false" and submitOnUpload.... That's assuming that you are ...

15. inputFile 1.8.0-RC1

17.  component problem

My jspx code My beancode public class FileUploadManagedBean { private String imageSrc = "/sharedimages/add.gif"; public FileUploadManagedBean() { } // private InputFileData currentFile; public void uploadFile(ActionEvent event) { InputFile inputFile = (InputFile) event.getSource(); if (inputFile.getStatus() == InputFile.SAVED) { // reference our newly updated file for display purposes and // added it to our history file ...

18. Issues with <ice:inputFile>

Although there have been lots of recent improvements in the (really appreciated), in my opinion there are still some things wrong: 1) If a progressListener is specified, then the action listener returns InputFile.INVALID after some 100 kBytes of uploading. The timing and amount varies, see See also ICE-1800 The problem typically occurs if the file being read must be ...

19. ice:inputFile + beans

20. ice:inputFile error

Hi, my problem is that I created the tag

21. Change the value of inputFile

22. 1.8 - inputFile requires you to click browse twice in IE 7

I have an inputFile on a page, when viewing in IE 7 you click browse, pick your file and then either double click the file or click OK and the file does not show up in the filename + path box. You must click browse again, choose your file and then the 2nd time it appears. Browsing the same application in ...

24. InputFile Not considering any validations

I am using IceFaces1.7.1v and i am facing one problem with InputFile Component. My form had some components(InputText,Select One Menu..)along with InputFile. I written some validations in my backing bean for the inputText's and select one menu's when i passed value for input file and not for the remaining components then it is not doing any validations while submitting the form, ...

25. InputFile actionlistner is not calling

hi i am using the ICEFaces 1.8.1.when i am trying to upload a file i am getting the following exception 11:49:48,044 INFO [STDOUT] *********** In Side Progress Listener *************8 11:49:48,045 INFO [STDOUT] inputFileComponentcom.icesoft.faces.component.inputfile.InputFile@25303 11:49:48,045 INFO [STDOUT] inputFileComponent.getFileInfo()FileInfo: { percent=0, preUpload=false, postUpload=false, exception=null, fileName=null, file=null, physicalPath=null, contentType=null, size=0, status=1 } 11:49:48,045 INFO [STDOUT] percent0 11:49:48,104 INFO [STDOUT] percentafterRender0 11:49:48,105 INFO [STDOUT] ---------------End ...

26. inputFile problem with actionListener

If you want seam-specific solutions addressed, you may want to post in the jboss-seam integration part of this forum. As for this component, it has undergone evolution with each ICEfaces release -and been tested using seam-comp-showcase each time. Did you refer to this example to see how to use this component with Seam?

27. inputFile: save to memory, not disk

28. http 400 on InputFile component

30. help with inputfile v.1.7.0

32. InputFile not showing on Safari 4

34. inputFile fileNamePattern

35. Using multiple ice:inputFile components on a page.

I have a page with 10 ice:inputFile components used for uploading photos. Upload works well, but here's my problem. So far I've been using the id of each ice:inputFile component in my actionListener to determine which of the 10 components it was that uploaded the file. This works ok right now because I have actually hard-coded a different id along with ...

37. inputFile

38. problema inputFile

42. inputfile move down

43. ice:inputFile upload problem

44. Problema con

47. Inputfile in datatable

48. ice:inputFile does not work

I have problem with uploadFile component. I can select file , but after click "upload" , component dissappears and actionListener is not called. public void uploadActionListener(ActionEvent actionEvent) { try{ log.debug("start"); InputFile inputFile = (InputFile) actionEvent.getSource(); currentFile = inputFile.getFileInfo(); log.debug("stop"); }catch (Exception e){ log.error("error : " ,e); } }

50. ice:inputFile --> problem with multiple deployments

Hello, I'm using ice:inputFile in two web apps and it works nicely on both of them.. but when the two apps are deployed on Tomcat (no separation of system properties) the incput file throws a null pointer exception from line 81: view.installThreadLocals(); I am deploying only one application at a time until you tell me how to solve the problem ...

51. Ability to load Multiple files using

Hello All, Iam new to IceFaces and my current requirement is to allow the user to upload multiple files. I have modified the file to have an file element which will dynamically create other input files with the selected file. I am also creating a corresponding textbox for each selected file so that user can give a nick name for ...

52. ice:inputFile in Beta1 not working?

54. inputFile can not work(solved)

55. ice:inputFile

56. inputFile - check file size

58. Doubt on

59. Error in ice:inputFile

I'm using ice:inputFile and it doesn't get the actionListener. I'm working with iceFaces 1.8.2 in a facelet like this:
. . .

62. Where is the class InputFile

63. ice inputfile no carga automaticamente un archivo (ice inputfile not automatically load a file)

thank you for the reply!. the property autoUpload is initialized to true and when refresh the browser or press enter or any action I see the image. the configuration in my web.xml is this: com.icesoft.faces.synchronousUpdate false and the file upload Servlet is: uploadServlet com.icesoft.faces.component.inputfile.FileUploadServlet 1 I have to change anything?

64. 2.0 support for com.icesoft.faces.component.inputfile.InputFile ?

From the release notes: The following ICEfaces 1.8.2 Component Suite components are deprecated for ICEfaces 2.0 and are not present in ICEfaces 2: * ice:inputFile (use ace:fileEntry instead) * ice:outputDeclaration (use Facelets standard approach / "" instead) * ice:outputBody (use h:body instead) * ice:outputHead (use h:head instead) * ice:outputHtml (use tag instead)

66. InputFile max upload size

68. Problem with inputfile

69. InputFile removed, not deprecated

Hi, Yes, you are correct. Unfortunately, the engineering investment that would have been required to adapt the complex ice:inputFile component for JSF2/ICEfaces2 was deemed excessive, since we already had plans to replace it with a new component in the Advanced Components. So, please adopt the new ace:fileEntry component in your application in lieu of the ice:inputFile from 1.x. Regards, Ken

70. inputFile special characters

71. Need Help with InputFile

73. InputFile + OutputPogress

I write little english. excuses I do a InputFile with OutputProgress, when the first file upload progress bar does its normal load from the second file the progress bar stays at 100 and does not zero to its normal charge. I can not return the progress bar to zero after the first uploaded file. Class of Example: ------------------------------------------------------------------------------------- import com.icesoft.faces.component.inputfile.InputFile; import ...

75. inputFile Component error

76. HELP WITH ice:inputFile!!!

Hi, I'm suffering from an issue that when I click upload button then the file uploaded immediately without going through actionlistener code, but I need to check if the file is exists already or not first, and check something else to determine if I need to upload it or not but it seems it will always upload first. Can anyone help ...

77. problems with inputFile

79. Question about inputFile

80. inputFolder like inputFile ?

81. InputFile - How to reset after an error

We have a simple page that has an ice:inputFile, a reset button, and a continue button. It seems to work fine as long as you always pick valid files. In our case, excel files are the only valid type. If you try to import a file that doesn't exist or is not an excel file, an exception is thrown, which is ...

82. inputFile uniqueFolder

83. InputFile Suggestion

The input file component is worth having a look at in terms of it "real world" usability. Here is what I'd like to see as far as capabilities: 1. If a user uploads a file that's beyond my configured max size, I want to immediately bail out with an error messages displaying that the file exceeds maximum allowed size. - This ...

84. problem with ice:inputFile

85. inputFile and fileNamePattern (nice info)

sorry, but doesn't work for me. I'v tested it with a .flv file.. Without fileNamePattern everything works fine, but I only want to upload these three content types. Is there a another solution ? I've read something about filters, defined in the web.xml with MyFaces.. EDIT : oh, it works with : fileNamePattern=".+\.(flv|mp4|mp3)$" sorry, I'm ...

87. InputFile shows wrong Filename when error occurs

Hi there ! The scenario is the following: I have an inputFile control and a h:messages. I upload a file (a correct one) and everything is ok. Now I press again on upload (with an empty string for the file name) and inputFile.getStatus reports the error, but the framework generates the Error message (in the Facesmessage list) 'File_name' is not a ...

90. old/new inputFile problem

91. inputFile and file uploads

92. InputFile problems

93. ice:inputFile problem

96. Problem with ice:inputFile component

98. InputFile and popup