File upload component problem

hi,
When i use fileupload component in my page, Turkish characters is not renderind and i see them as question mark. Changing page encoding is not working and solving my problem, too.
any suggestion would be appreciated.
Regards...

I got exact the same problem, but with Chinese characters display. Does that means we can only use upload with English characters? Any solutions in the future?
Thanks,

Similar Messages

  • File upload component and text area issue

    Hi guys,
    I have static text, text area and button on the same page. Text area binded to session bean value and all works fine (I can input text into text area and press button to save changes).
    After adding file upload component to the same page I have got a problem - now after page refreshing the non english characters inside text gets trashed.
    Other non english characters - inside static text components remains the same - the problem relates only to text area.
    It looks like file upload component code has an encoding related bug. Is that a known issue?
    And may be somebody have a workaround?
    Thanks.

    Hi Rom@n,
    I did some checking and this issue is currently logged as: 6442528. It is scheduled to be available in the next patch release. I'm sorry I don't have a time frame for the patch since it is still waiting for other fixes.
    Sorry for the inconvience.
    Lark
    Creator Team

  • Validator for file upload component is not working !!

    This validator method for a file upload component is throwing a java.lang.NullPointerException.
    public void fileUpload1_validate(FacesContext context, UIComponent component, Object value) {
    long size= fileUpload1.getUploadedFile().getSize();
    if (size>65535){
    throw new ValidatorException(new FacesMessage("Your image is too big!"));
    Any help to solve this problem is very much appreciated.
    Thanks.

    Hi i have a fileUpload in a pop-up and the methods are :
    public void fileUpload1_validate(FacesContext context, UIComponent component, Object value) {
    try {
    com.sun.rave.web.ui.model.UploadedFile uploadedFile = ((Upload)component).getUploadedFile();
    long l_filesize = uploadedFile.getSize();
    if ( l_filesize > 1000000)
    throw new ValidatorException(new FacesMessage("File Size should be less than 1000000 bytes! It is" + l_filesize));
    else {
    String tipo = uploadedFile.getContentType();
    if ( tipo.compareTo("application/word") == -1 )
    if ( tipo.compareTo("application/rtf") == -1 )
    if ( tipo.compareTo("application/pdf") == -1 )
    throw new ValidatorException(new FacesMessage("Error : los tipos de archivo aceptados son PDF, WORD y RTF"));
    } catch (Exception ex) {
    this.mauvaisFichier = true;
    error(ex.getMessage());
    public String botonValidar_action() {
    if ( !this.mauvaisFichier )
    if ( this.fileUpload1.getUploadedFile() != null )
    if ( this.fileUpload1.getUploadedFile().getSize() > 0 )
    try {
    this.getSessionBean1().getComunicacion().setArchivo( new javax.sql.rowset.serial.SerialBlob(this.fileUpload1.getUploadedFile().getBytes() ) );
    this.getSessionBean1().getComunicacion().setTipoArchivo( this.fileUpload1.getUploadedFile().getOriginalName().substring(this.fileUpload1.getUploadedFile().getOriginalName().length() - 3 ) );
    } catch(Exception e){
    e.getMessage();
    return null;
    I have to put a boolean value because the first time, validation code doesn't function ( the method botonValidar_action() is called ) correctly. The error message appears but empty.
    If I try next time then it's ok.
    Thx for any issue.

  • File Upload Component

    I can not find a function in the Upload class that will allow me to access the browse button
    child component nor can I see any mention of the file upload component in the
    master stylesheet of the defaulttheme jar.
    what am i missing here guys?

    Dear Manjunath Jayaram,
    You don't think it is a problem that one can not access the child of a
    composite component ???
    I am sorry if you don't appreciate the problem but I can not state it any more plainly.
    "I can not find a function in the Upload class that will allow me to access the browse button
    child component nor can I see any mention of the file upload component in the
    master stylesheet of the defaulttheme jar".

  • Myfaces's file upload component

    I used the myfaces's file upload component in my web application. But this component needs to set the form's enctype attribute to "multipart/form-data". But after I have set this attribute, my other components in the form seemed doesn't work anymore. Is there any way to solve this problem? Thank you

    Some people seem to be running into this. Doing these steps should fix the problem:
    Right click the component library node "Basic" and choose "Manage Component Libraries". That opens the Component Library Manager window. Verify that the "On Palette" property is checked for "File Upload".
    Hope it helps,
    Lark

  • How to use file upload component inside a portlet

    Hi
    Thank you for reading my post.
    does file upload works inside portlets ?
    can some one help me with a sample code , does it need some tricks ?
    Thank you

    any help is welcomeLegolas,
    You could try your own implementation. Someone was able to implement a file upload with Creator 2004Q4 and the O'Reilly Servlet. See http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=50186.
    You will have to configure O'Reilly Servlet's "MultiPart Filter" in your application. Creator 2 uses a same approach (a filter) to accomplish this. Given that the file upload component is not supported on portlets, this leads me to the following: I don't know anything about portlets and portlet containers, but I'd check first for some architechtural restriction in the portlet subsystem that avoids the use of a filter for a file upload. If think this could be the only thing that will restrict you to implement your own file upload.
    Hope this helps.
    Antonio

  • Screen hangs when user types in some text in file upload component

    Dear All
    I am using file upload component in webdynpro java in a custom application and added some validation logic on the file
    selected. This is being used to upload jpeg files to KM repository. Now the issue is if user types some text in the file
    upload input field and click on upload button the screen hangs and it goes to infinite loop. It seems that the framework is not able to accept and check the arbitrary value entered by user.
    Can anyone tell me how this can be sorted out?
    Thanks
    Sudip

    Hello Sudeep,
    I have also faced the same issue and to me it seems an issue with the UI element itself. Please follow the following threads for more information:
    [http://help.sap.com/saphelp_nw04s/helpdata/en/b3/be7941601b1d09e10000000a155106/frameset.htm]
    and
    [File Upload UI Element going in Infinite loop;
    [upload UI element;
    Hope this may be of some use.
    Regards,
    Gaurav

  • Hot to call processValueChange() method of the file upload component?

    When the value changes (when I choose a new file to upload) in the file upload component the processValueChange() method is not called.
    I am planing to show the preview of the image to be uploaded using the processValueChange().
    Thanks.

    Is there a bug connected with this issue?
    Thanks.

  • Irritating bugs in file upload component !!

    Bug 1
    During a postback operation the text (file path name) in the file upload component is cleared ! When a resubmit of a form is required, the user has to re-browse the file again.
    Bug 2
    The processValueChandge() method is never called when the value in the file upload component is changed (and the mouse is clicked outside the component).
    Any suggestions or workarounds are very much appreciated.
    Thanks.

    I can't answer to Bug 1. That is, I don't have any solutions. If you want to submit this, go to http://developers.sun.com/prodtech/javatools/jscreator/support/index.html and look at the section titled Bug Report /Feature Request
    Bug 2
    The processValueChandge() method is never called when
    the value in the file upload component is changed
    (and the mouse is clicked outside the component).This is not a bug.
    processValueChange methods are server side methods and do not get called until the page is submitted to the server. Clicking outside the component will not cause the page to get submitted. If you want a client-side action (such as when focus is lost) then you can add some JavaScript.
    The file upload does not have a process value change method, it is an action method and thus has a uploadFileButton_action method. This method gets called when the upload button is clicked.

  • Htmlb table - File upload component

    Hi all,
    Is it possible to use the file upload component in a table view (htmlb for java) column?
    Rgds,
    Subu

    Hi,
    Here is one thought, there is onCellClick event for the Tableview, use that for the required column and add the file upload component as the event handler method in the onCellClick method.
    Link on table view events:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/eb/220a415a47f06fe10000000a1550b0/content.htm">Table view attributes and events</a>
    Link on OnCellClick:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/37/3d8b41b4b3b25fe10000000a1550b0/content.htm">onCellClick</a>
    Check the following link:
    <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/63/9c0e41a346ef6fe10000000a1550b0/frameset.htm">File upload</a>
    Hope it helps.
    Regards,
    Vivekanadan
    Message was edited by: Vivekanandan

  • File upload component in JStudio Enterprise

    Dear all,
    I am not sure that File Upload Component is supported in JStudio Enterprise 8.1 or not. I see that Netbeans has one: http://www.netbeans.org/kb/55/vwp-about_components.html.
    So I thought JStudio Enterprise may have one similar. If so, can anyone tell me how to do that please?
    Regards,
    Kai

    FileUpload component is not supported in Java Studio Enterprise. The FileUpload is a component that conforms to the spec recognized by Java Studio Creator line of products (which is now Visual Web Pack) and will not work in JSE.
    You can use NetBeans 5.5 and install Visual web pack (for javafaces support), enterprise pack (which provides all capabilities of JSE) and uml on top of it. It would give you a single install with all add-ons.

  • File Upload element Problem

    Hello All,
    We have a problem regarding the File Upload button in Webdynpro.
    when we upload a file using this element and goto another view and comeback, the upload element is not showing any filename.
    But when debugged, the fileupload context node still has the data. Just it is not showing in the UI.
    Is it an existing problem with File Upload? Or do we have to do anything to make the filename visible.
    Thanks,
    Anand

    Hi,
    this works as designed, see the section on browser details <a href="http://help.sap.com/saphelp_nw70/helpdata/en/b3/be7941601b1d09e10000000a155106/frameset.htm">here</a>
    Regards, Heidi

  • File Upload demo problem

    Hi!, i have a problem with the File Upload Demo when it calls this line:
    hDirectoryObject := JFile.new(directory);
    and the error is: error 6508 "PL/SQL: could not find program unit being called"
    That's ok, but anybody knows why should the program couldnt find the routine ?
    And just one more thing...where can i look for JFile method description ??
    Thanks a lot :) !!
    Cristian.

    Is this 9i or 6i?
    JFile is an imported wrapper for a Java Class - it should be in the Demo form already - you could try a compile all on the file just in case.

  • File Upload / ENCTYPE Problem - Please HELP !!!!!!

    Please HELP !!!
    I have following config. MS Windows Server 2003 with
    Coldfusion 7. Everything is working fine.
    But now I want to upload a file, and there is the problem
    that I have the wrong content type on my action page, and so my
    form field "FileContents" is empty.
    On my action page i have got content_type
    "application/x-www-form-urlencoded" instead of
    "multipart/form-data".
    Here is the code:
    --------------------uploadfileform.cfm--------------------
    <cfoutput>
    <form enctype="multipart/form-data" method="post"
    action="uploadfileaction.cfm" name="uploadForm" id="uploadForm">
    <input name="FileContents" type="file"
    id="FileContents">
    <br>
    <input name="submit" type="submit" value="Upload File">
    </form>
    </cfoutput>
    --------------------uploadfileaction.cfm--------------------
    <cffile action="upload" fileField="FileContents"
    destination="e:\tempdir" nameConflict="MakeUnique">
    If there is anyone who can help me please be so kind and tell
    me the solution.
    Kind Regards!

    On my action page i have got content_type
    "application/x-www-form-urlencoded" instead of
    "multipart/form-data".
    There is no need for that sort of thing on the action page.
    On the action page the cffile tag is enough.
    Everything else seems to be all right, except one. The
    destination attribute should end with a back-slash. The correct
    value is
    destination="e:\tempdir\".

  • File Upload -- MultipartRequest Problem

    I use com.oreilly.servlet.MultipartRequest to upload files through a servlet.
    This works fine, but when the size of a file exceeds the maximum size,
    I need to handle the IOException but it doesn't work.
    here is the code:
    try {
    if (file != null) {
    File outputFile = new File(fullPath,fileName);
    FileInputStream inFile = new FileInputStream(file);
    FileOutputStream outFile = new FileOutputStream(outputFile);
    while (inFile.available()>0) {
    outFile.write(inFile.read());
    inFile.close();
    outFile.close();
    return (fileName);
    catch( java.io.IOException e ) {
    System.out.println("DiskFileUpload write failed" + e.toString());
    return (null);
    catch ( java.lang.Exception le) {
    System.out.println("DiskFileUpload write failed" + le.toString());
    response.sendRedirect("error.html");

    What is the problem you are getting?
    Are you getting Page Cannot displayed Browser page?

Maybe you are looking for

  • Installing Mountain Lion on MacBook Pro i5 Early 2011

    Hi! I have a MacBook Pro early 2011 i5 13" with 4GB RAM. I'm still running it on Snow Leopard. I'm just wondering if anyone has installed Mountain Lion on a similar machine and can fill me in on the performance after installing Mountain Lion. Is it o

  • Solved IOS 6 issue with headphone remote

    Upgraded my Iphone 4S to IOS 6 and my Klipsch headphone remot would not work.  Volume buttons worked, and the center button would start playing music, but it would not stop or pause the songs.  I tried my original Apple earbugs with the remote and di

  • GTK Theme :: X-Forwarding :: gnome-settings-daemon

    Just wondering if anyone else has come across an error like this.  Every GTK application I run using X-Forwarding looks really bad (small fonts, old boxy gnome 2.0 theme).  When I attempt to start gnome-appearance properties (also over ssh, as there

  • Transaction goes to display mode after an error message / POPUP - Urgent

    Hi All,     We have a requirement that, in the Service order transaction IW31/ IW32 in the components tab ,  based on the material numbers entered by the user we need to call a Popup and inform user to fill in the correct value for special stock indi

  • Setting sequence for inspectable component paramters?

    I have been searching everywhere to try to figure this out, maybe someone can help me. I have a swc component with a parameter and I can't figure out when the parameter is actually getting set. I read somewhere that it doesn't get called as part of t