inputFile 1 « IceFaces « JSF Q&A





1. Icefaces InputFile component loses appearence    stackoverflow.com

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    coderanch.com

4. InputFile problem after upgrade to 1.7.2    icefaces.org

java.lang.NullPointerException: FacesContext -> null at javax.faces.component.ValueBindingValueExpressionAdapter.getValue(ValueBindingValueExpressionAdapter.java:98) at com.icesoft.faces.component.style.OutputStyle.getHref(OutputStyle.java:87) at com.icesoft.faces.component.inputfile.InputFile.renderIFrame(InputFile.java:341) at com.icesoft.faces.webapp.http.core.UploadServer$2$1.writeTo(UploadServer.java:97) at com.icesoft.faces.webapp.http.common.standard.StreamingContentHandler.respond(StreamingContentHandler.java:24) at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.respondWith(ServletRequestResponse.java:167) at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet$ThreadBlockingRequestResponse.respondWith(ThreadBlockingAdaptingServlet.java:36) at com.icesoft.faces.webapp.http.core.UploadServer$2.servlet(UploadServer.java:95) at com.icesoft.faces.webapp.http.servlet.ServletRequestResponse.detectEnvironment(ServletRequestResponse.java:228) at com.icesoft.faces.webapp.http.core.UploadServer.service(UploadServer.java:50) at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24) at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:38) at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19) at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:55) at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23) at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:91) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496) at ...

5. Suggestion about InputFile progress render behavior    icefaces.org

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    icefaces.org

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    icefaces.org

8. ice:inputFile issue    icefaces.org

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)    icefaces.org

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)    icefaces.org

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    icefaces.org

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    icefaces.org





17.  component problem    icefaces.org

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>    icefaces.org

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 http://www.icefaces.org/JForum/posts/list/12348.page See also ICE-1800 The problem typically occurs if the file being read must be ...

19. ice:inputFile + beans    icefaces.org

20. ice:inputFile error    icefaces.org

Hi, my problem is that I created the tag

21. Change the value of inputFile    icefaces.org

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

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    icefaces.org

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    icefaces.org

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    icefaces.org

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    icefaces.org

28. http 400 on InputFile component    icefaces.org

30. help with inputfile v.1.7.0    icefaces.org

32. InputFile not showing on Safari 4    icefaces.org

34. inputFile fileNamePattern    icefaces.org

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

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    icefaces.org

38. problema inputFile    icefaces.org

42. inputfile move down    icefaces.org

43. ice:inputFile upload problem    icefaces.org

44. Problema con     icefaces.org

47. Inputfile in datatable    icefaces.org

48. ice:inputFile does not work    icefaces.org

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    icefaces.org

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 UploadServer.java 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     icefaces.org

Hello All, Iam new to IceFaces and my current requirement is to allow the user to upload multiple files. I have modified the InputFile.java 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?    icefaces.org

54. inputFile can not work(solved)    icefaces.org

55. ice:inputFile    icefaces.org

56. inputFile - check file size    icefaces.org

58. Doubt on     icefaces.org

59. Error in ice:inputFile    icefaces.org

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    icefaces.org

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

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 ?    icefaces.org

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    icefaces.org

68. Problem with inputfile    icefaces.org

69. InputFile removed, not deprecated    icefaces.org

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    icefaces.org

71. Need Help with InputFile    icefaces.org

73. InputFile + OutputPogress    icefaces.org

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    icefaces.org

76. HELP WITH ice:inputFile!!!    icefaces.org

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    icefaces.org

79. Question about inputFile    icefaces.org

80. inputFolder like inputFile ?    icefaces.org

81. InputFile - How to reset after an error    icefaces.org

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    icefaces.org

83. InputFile Suggestion    icefaces.org

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    icefaces.org

85. inputFile and fileNamePattern (nice info)    icefaces.org

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    icefaces.org

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    icefaces.org

91. inputFile and file uploads    icefaces.org

92. InputFile problems    icefaces.org

93. ice:inputFile problem    icefaces.org

96. Problem with ice:inputFile component    icefaces.org

98. InputFile and popup    icefaces.org