Component af:inputfile, create the file if it does not exist

Hello

I have a requirement in my project where I need to export the data to display in the xml file. To do this, I use af:inputfile component so that the user can select the file where the data should be exported. My requirement is that if the file name that the user entered in file dialog box does not exist, I need to create a file with this name, and select the same. I get no clues how to achieve this. Currently, if I type name that does not exist I get error on the component af:inputfile "file not found. Please check the gave the correct file name.

Is there a way I can solve this problem.

Kind regards
Alya

application/xml

Tags: Java

Similar Questions

  • Cannot remove illustrates file listed in the file Explorer Vista - does not exist?

    I managed to create a zero-byte file "bomadvice11.cycs" from a coded application that appears in the Explorer of files, but when you try to remove it receives the message "unable to find this article. It is not located in... Check the location of the item and try again. Also can not delete it from the command prompt. File is also crashing the synchronization software. Have you tried a check disk to reboot to clear it but no luck. File is not in a folder protected etc.

    SystemsEng,
    Try the following to try to remove the directory that the file is in.  If this does not work, I recommend looking into a third-party file removal tool.

    Open a command prompt
    * Go to the drive where the file undeletable. For example, C:
    * If you are type c:
    * Go to the folder where, in my case it was located in C:\_cache\delete\ folder problem
    * The folder I could not remove called him "happy tree friends" (friend of tree C:\_cache\delete\happy) then I typed:

    C:
    _cache CD
    removal of CD
    (as you can see I do not open the folder problem itself)
    * Type: dir /x. Directory listing is displayed containing the 8.3 names of folders and files, in my case it showed: happyt ~ 1
    * And then type: rd happyt ~ 1 (replace happyt ~ 1 with the name of the folder see you)
    * The folder is deleted.

    Mike Microsoft responds to the technical support engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Error when changing the name of the folders-"file or folder does not exist.

    Original title: I can't rename my files
    I can't rename my folder in windows vista. "It gives me this error" the file or folder does not exist "and I can't cut/past this files.

    I do not use any unillgel characters such as. and / and...

    Hello

    Run the diagnostic tool for the article mentioned below to resolve this issue:

    "The file or folder does not exist" error in Windows Vista:
    http://support.Microsoft.com/kb/949109

    Kind regards
    Afzal Taher - Microsoft technical support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Packer of creative cloud in creating a package that I can install do not.  He goes through the motions, download all updates, create setup file, but it does not work despite the fact that there are no errors in the log files

    Packer of creative cloud in creating a package that I can install do not.  He goes through the motions, download all updates, create setup file, but it does not work despite the fact that there are no errors in the log files

    After hitting my head against the desk to repeatedly create packages, try on different computers I have finally found a solution.

    These packages have been copied on an external drive, if I try and install from the external drive, which is a common practice, it fails.

    If I then copy this file pkg from the outside, to the computer I install, then run it, it will to and moved very well.

    That is mind-boggling stupid, because it's rare that you have to copy the file into any computer, it is less always installed off the coast of externally, and many people in the company are pushing on the network and the management of the suites so there is a serious problem in Adobe package manager if this is the case where it cannot manage the Middle installed offshore.

    I hope that if anyone else is having problems so it suits.

  • Media Player error play 3gp: the player might not support the file type or does not support the codec used to compress the file.

    The problem is that Windows Media Player cannot play the file. The error that says"the player might not support the file type or does not support the codec used to compress the file.

    The properties of the file are:

    3GP.PNG

    Hyper Text Transfer Protocol

    TYPE: A PNG Image

    How can I fix?

    The problem is that Windows Media Player cannot play the file. The error that says"the player might not support the file type or does not support the codec used to compress the file.

    The properties of the file are:

    3GP.PNG

    Hyper Text Transfer Protocol

    TYPE: A PNG Image

    How can I fix?

    Windows gives you integrated programs to open the image as png files.

    In Vista, use Windows Photo Gallery to open png files.

    In Windows 7, if you use it, you can use Windows Photo Viewer to open png files.

    If you have installed Windows Live Essentials, you can use Windows live Photo Gallery to open png files.

  • Error "Windows Media Player cannot play the file. The player might not support the file type or does not support the codec used to compress the file' when try to play wav or midi files.

    Original title: WMP "can't play wav or midi.

    Using WMP 11 on Windows XP SP3.

    Windows Media Player has somehow forgotten how to play wav or midi files. Doubleclicking either of these file types give an error "Windows Media Player cannot play the file. The player might not support the file type or does not support the codec used to compress the file. " There is a button 'Close' and 'Web Help' which still informs me, "you met the C00D1199 error message... ". ». Following the advice given nothing less than useful.

    I can easily play these files with RealPlayer or VLC so I don't think it's a driver problem, and it wasn't a corruption right after installing the other players. WMP seems to work OK when playing music or AVI. And there is no harm to hear a sound (wav or midi) in Windows for various system events. Have already uninstalled/reinstalled WMP without result.

    Thanks for your reply.

    I have since determeined the problem comes from an updated codec package I installed a few weeks ago. These codecs were from Shark007 which I believe is a Microsoft MVP. Use the codecs from this site for a number of years without any problems so I did not initially suspect it was the source of the problem. I uninstalled the codec pack and installed K-light package and everything seems to be Ok now. Now, I'll be in contact with the members of this forum.

  • "The file is maybe damaged. The file header checksum does not match the checksum calculated. »

    Hello

    I work with a HP Pavilion a6030n PC with Vista OS base. I had problems with the computer recently when starting. He continues to work at some point during the process and crash, forcing a hard stop. I'm not too computer savvy, but can generally work through questions. I tried several (and probably useless) methods to try to get the computer to work, with a modicum of success. Today, I received this message: "the file is maybe damaged. The file header checksum does not match the checksum calculated. "Hmmm... I looked through the forums and found a lot of computer-speak, who basically told me that I'm over my head. I thought that I would try at least ask the question before resorting to what is the hard drive a person to fix if all goes well.
    I can get it working again, or is my HP to his last breath?
    Thank you!

    If warnings getting You ' r files are corrupted, which could indicate a problem with the hard drive (most likely) or the memory/RAM in the computer (a little less likely but a good possibility).  Your computer came with a disk diagnostic or diagnostic software you can run to test the components inside?  You can also download this software and run it to see if he can help you narrow the possibilities.  Otherwise, I recommend to find a local repairman good and trustworthy and have them check for you if you are not adept at hardware troubleshooting.  It can get very frustrating and very expensive, very quickly.

  • Cannot read iTunes from USB. Windows media player cannot play the file. The player might not support the file type or does not support the codec used to compress the file?

    Cannot read iTunes from USB. Windows media player cannot play the file. The player might not support the file type or does not support the codec used to compress the file?

    Ask the question in the Apple Forums:
    https://discussions.Apple.com/index.jspa

  • Toshiba satellite running Vista. The file is possibly corrupted. The file header checksum does not match the checksum calculated

    Toshiba satellite running Vista. The file is possibly corrupted. The file header checksum does not match the checksum calculated. Tried all posisible boots and no joy, continues to turn it back on! Frustration...

    Hey James,.

    I does no change, I didn't download a document from my email (from a sender of confidence). I tried to start in safe mode, just, it restarts and goes back to the corrupted checksum display... Last known good config was the same result! The only error message is one that is in the title of this post, not others. Another detail, that I forgot to add is that it does not get insofar as a logo windows before it fails, just the toshiba start screen, then either passes the corrupt message checksum or a blue screen and restarts before I can read the text on the blue screen. Thanks for your response! Any additional help would be excellent if you can. In the meantime, I'll try your methods. Thanks again
    OK, I have now managed a Startup Repair trying over and over again. Restore all settings and now looks very good, thanks for your help!
  • try to install 4 GB of ram. Get the error «the file header checksum does not checksum» calculated

    Microsoft online tech help recommended I install 4 GB of RAM on my Dell Vista Home computer. The first stick fine boots.

    When I add the second stick the computer poster "the file may be damaged. The file header checksum does not match to the

    checksum calculated. "I see that it is a common error message online search, but nothing specifically addresses

    the issue of the Ram. Any help out there? Thank you.

    Hello

    You can contact the manufacturer of your computer for support and check if it helps.

    http://support.Dell.com/support/topics/global.aspx/support/DellCare/contact_technical_support?c=us&CS=19&l=en&s=DHS& ~ CK = anavml

  • Unable to play the video file. Error: Windows Media Player cannot play the file. The player might not support the file type or does not support the codec used to compress the file.

    When I try to play a video file from youtube with youtube downloader in windows media player, I downloaded, it gives me the error message that Windows Media Player cannot play the file. The player might not support the file type or does not support the codec used to compress the file. I have x direct sdk installed and my os is vista.

    Problem solved, I downloaded the fix wmp and it worked

  • Windows Media Player is unable to read the file. The player might not support the file type or does not support the codec used to compress the file.

    original title: Media Player

    Windows Media Player cannot play the file. The player might not support the file type or does not support the codec used to compress the file. Need help trying to download music to my media and play, but he used... Someone help me find what kind of support I need for her... IM using kick * torrents to download music

    Hello

    you ask for problems downloading music through torrents like this is a good way to pick up malware

    You can try the 3rd party Codecs.

    http://www.SnapFiles.com/get/k-Lite-full.html

    for music issues repost in the Sub forum.

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-sound?page=1&tab=all

  • Error when you try to play the downloaded tracks: Windows Media Player cannot play the file. The player might not support the file type or does not support the codec used to compress the file.

    Windows Media Player cannot play the file. The player might not support the file type or does not support the codec used to compress the file. (((PLEASE HELP)))

    I understand that this has been a matter of repetition and I made the suggestions listed and nothing works. This just started happening, although downloading songs, and once they are finished I'm not able to play them with Windows Media Player. The initial message indicates that the file has an extension that is not recognized by Windows Media Player.


    I have a Dell Inspiron Laptop with Windows Vista Home. Any suggestions? What should I chahnge how I download and save music?

    Hey Taylor09,

    You may find that you are getting this message in Windows Media Player due to one of the following reasons.

    a. you try to play a file that is not supported by the player.

    b. you are trying to play a file that the player does not support, but the file was compressed by using a codec that is not supported by the player.

    Step 1:

    Confirm that you are trying to play a supported file type. The following article lists the types of files (formats) supported by Windows Media Player.

    Information on the types of media files that supports Windows Media Player

    Note that if you tried to play the file type is included in this table, the file might have been encoded with a codec that is not supported by Windows Media Player. If this is the case, Windows Media Player cannot play the file.

    Step 2:

    Download the necessary codec to play the file.

    For more information of Codec, see: Codecs: frequently asked questions

    Kind regards

    Shinmila H - Microsoft Support

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Windows media player 11 on downloaded videos error "cannot read drive file does not support the file type or does not take in charge the codec used to compress the file.

    • now that the full version of k'lite seems to stop what is happening why hasent windows incorporated something similar in the windows media player 11, or they have another type of codec full, we can use to make this.only so many people have the same problem .please can help you.

    Hi bbdunford,

    Windows Media Player cannot play the file. The player might not support the file type or does not support the codec used to compress the file.

     

    You may encounter this error message for the following reasons:

    (a) the file type is supported by the drive, but the file was compressed by using a codec that is not supported by the player.

    (b) the file might have been encoded with a codec that is not supported by Windows Media Player. If this is the case, Windows Media Player cannot play the file.

    Windows media player will play only the files and videos only if it supports this type of file.

    Method 1

    Check if the video file format is supported by Windows media player using the link below.

    Information on the types of media files that supports Windows Media Player

    http://support.Microsoft.com/kb/316992

    If the files are not supported by Windows media player, then you will need to use a few players from third party that supports this file format.

    Method 2

    See the link below for more information on the codec.

    Codecs: Frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/codecs-frequently-asked-questions

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • File error Windows Media Player mp4 "Windows Media Player cannot play the file. The player might not support the file type or does not support the codec used to compress the file"

    I got this error message when you try to play an MP4 video. Help please!

    Windows Media Player cannot play the file. The player might not support the file type or does not support the codec used to compress the file.

    You can try to download the http://www.microsoft.com/en-gb/download/details.aspx?id=507 Codec Installation Package

    If this does not work, you may need to get some third party software to convert MP4 video to the longer Windows Media Player video format supported like WMV, AVI in order to solve the problem

Maybe you are looking for

  • Do not connect my iPhone and my iMac by continuity

    Hello My iPhone and my iMac connect properly through continuity, so I can't pick up on my iMac I do on my iPhone and vice versa. I can not make calls from my iMac via my iPhone. I have an iMac, a MacBook Pro and an iPhone, and all of them are defined

  • After the update, it seems to be in. - ups all the time. Who expected or have I a problem?

    Currently the pop-ups get opening work from home websites and identify windows problems. Add also appear on the screens of the sites I opened. I do not have this problem before the last update, but would like to know that this is not a Firefox proble

  • Network drivers wireless XP and Satellite A505

    HelloI recently bought a Satellite A505-S6986 and I can't seem to find a driver for the wireless network card. Can you please help me locate THE display drivers that will install successfully on my system? (I don't mind if they are legacy/old). Thank

  • Foglight is not show recently created LDAP groups

    Hello I recently integrated Foglight with our Active Directory architecture. I noticed all the new groups I have add Active Directory our not appearing is not in the list of groups to add groups to Foglight under LDAP - user management & Security - A

  • Art of color scanned in Sketch?

    Hi - I recently bought an iPad Pro and Apple pencil I can use sketches to color for my graphic novel pages. I normally draw on paper and in the scanner and colour it in Photoshop with a Wacom tablet, but it's long and laborious and I hoped to be able