Don´t show label "Update..." when uploading a file

Hi all,
I have the next situation. I made a functionality to upload and stores images in the db. I use an inputFile, and a commandButton which calls a bean method like this:
<af:gridCell marginStart="5px" marginEnd="5px" width="330px" id="gc10" inlineStyle="text-align:right;">
<af:inputFile label="Search image" id="if1" value="#{ImageBean.file}"
partialTriggers="cb6"/>
</af:gridCell>
<af:gridCell marginStart="5px" marginEnd="5px" width="100px;" id="gc8">
<af:commandButton text="Add image" id="cb6" action="#{ImageBean.uploadImage}"
inlineStyle="text-align:left;" disabled="false" />
</af:gridCell>
I do all the logic in the uploadImage method, and everything works fine (create the new row, insert the blob in that row, commit, display it on the screen, etc), but the thing is that when it returns, the inputFile shows a button "Update..." and I don´t want to show it because I already made the upload.
I want to show the inputFile just like it was to allow adding more images.
I'm using JDev 11.1.2.3.0.
I appreciate if anyone can suggest something.
Thanks.

Hi,
the easiest way is to set the value of ImageBean > "file" property to null so that the component does not have a value reference to the uploaded file.
Frank

Similar Messages

  • Code doesn't update when uploading new files to website.

    code doesn't update when uploading new files to website.   I was using an old DW version for a long time then forced to upgrade when I bought my MacBook Pro. Now when I make changes to my pages and link to new files etc on my harddrive, when i upload the pages it won't image because the code still points to harddrive (this did not used to be a problem)... I manually changed the code on the web host site to point to the site and it loaded fine. But now my files on my harddrive also point to the web host files and now don't image on my computer. I never had to worry about this so far and wonder if the new version has a setting I'm supposed to be aware of so that I can design on my hardrive and upload and it knows that the files are being uploaded with it?  Ugh hpe this makes sense - I'm NOT a webs designer and the new DW is way more than I use in it's technology.

    Hi
    This sounds like you have not defined your site in the site definition.
    Follow the steps in these 2 tutorials to set-up your site locally and for the remote server -
    http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html
    http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt6.html
    PZ

  • Edited images in lightroom don't show up edited when uploaded.

    I'm new to lightroom; I've only started using it these past few weeks.
    I would edit some light work on my images and then export it into a folder. It would look fine and have all the features that I edited.
    Whenever I upload it to other places, it wouldn't take the edits I made and it shows up as the orginal image or maybe a darkened version of it (I'm not sure).
    The only place that actually takes my edited images as edited, is 500px.
    For facebook, there were times when I uploaded and it didn't take my edits, but when I exported the image again to a higher resolution of Jpeg, facebook would take the edits.
    I'm not sure why this is happening. I wanted to print some photos so I uploaded them to costco or shutterfly, but the images are not the way I edited in Lightroom.

    Have a look here: http://tv.adobe.com/show/the-complete-picture-with-julieanne-kost/ you will find videos that cearly explain what you want plus you will learn much, much more at the same time.

  • Apps icon shows 3 update, when I tap on update it is blank page.

    Apps icon shows 3 update, when I tap on update it is blank page. Already reboot my iPad and still the same. Please help. I know I can always restore it, but I don't want to loose everything I worked on. Help please:(

    Hi, Sly101.
    I would recommend closing any open applications in multitasking and restarting the device.  If unfamiliar with multitasking, I have included a screenshot on how to process an application close.  Test the results after processing these steps.
    If the issue persists, see the section labeled Troubleshooting on an iPhone, iPad, or iPod touch in the article below. 
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Cheers,
    Jason H. 

  • How do I get Firefox to display the information bar when a pop up is blocked I accidentally clicked on "Don't show this message when pop-ups are blocked" when a pop up was blocked. How do I get this message to reappear again when a pop up is blocked?

    I just updated Firefox but can't get it to display the message when a pop-up is blocked. Most times I want them blocked but sometimes I need them enabled.

    You can see a pop-up block icon in the right corner of the Status Bar if you have chosen to hide the information bar at the top.
    You can left-click that pop-up block icon on the Status Bar and remove the check mark from "Don't show info message when pop-ups are blocked"
    You can look at these prefs on the '''about:config''' page and reset them via the right-click context menu:
    Status bar icon: browser.popups.showPopupBlocker
    Info bar at the top: privacy.popups.showBrowserMessage
    To open the ''about:config'' page, type '''about:config''' in the location (address) bar and press the Enter key, just like you type the url of a website to open a website.
    If you see a warning then you can confirm that you want to access that page.

  • Mac App Store don't show me updates...

    When the Mac App Store is closed, it don't show me that there're updates. I have to start the Mac App Store to show me the updates... How I solve that problem to view the updates without start the Mac App Store??

    No, I have one Apple account and two sessions in my mac. Logicaly, I have the same apps for all de users accounts in my mac and all the apps was downloaded with one Apple account in my "A" session. When I start my mac and run my session, the MAS don't show me updates in the dock icon. Without start the MAS, I go to the loggin windows and start another session and the MAS show me updates without start the app... and I don't understand why it doesn't show me updates in my session...

  • HT5312 my last account activate free and when i activate it show my choose None Now this choose don't show to me when i activate new account in app store

    my last account activate free and when i activate it show my choose None Now this choose don't show to me when i activate new account in app store
    please support me and help
    or back me last account
    i'm create new account because i can't remember answer the question and when i'm create my old account in app store i don't write any rescues mail
    please help me
    send my link to rest my old account question and answer in my mail i use it for APPLE ID
    really i need your support
    help my Boss
    to rest my question and answer because i can't use the app store in this time
    you can help me iknow that please
    <E-mails Edited by Host>

    We are fellow users here on these user-to-user forums, you're not talking to iTunes Support nor Apple - I've asked the hosts to remove your email addresses from your post (it's not a good idea to post personal info on any public forum).
    If you don't have a rescue email address (you won't be able to add one until you can answer your questions) then you will need to contact Support in the country where you and your iTunes account are to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312

  • How do I change the default folder that opens when uploading a file to the internet from my mac? (at the moment it automatically defaults to 'Downloads' folder)

    How do I change the default folder that opens when uploading a file to the internet from my mac? (at the moment it automatically defaults to 'Downloads' folder)
    For example...
    I am on a webiste and wish to upload a photo.
    I click on select file on the website
    Finder opens and defaults to 'Downloads' folder (it happens with all wesbites)
    How do I change this?

    I am on a webiste and wish to upload a photo.
    I click on select file on the website
    You are attempting to download the picture to your computer not uploading photo to the website if I am understanding you correctly.
    To change the download direction, you must do so through your browser's Preferences.  If you are using Safari, hopefully, someone who uses Safari will help you and/or post over in their forums.  I do not use Safari.
    If using Firefox>Preferences>General>Save Files to:

  • My iPad says I don't need an update when I do.What's up?

    My iPad is crashing constantly. It says I don't need an update even though it is older - 5.1.1. I can't find a way to upload a newer version to see if that's the issue. Diagnostics at crash is telling me it's low on memory. Any suggestions as to the issue? The fix?

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.1.3. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
    Tip 2 - If you're updating via wifi, place your iPad close to your router to preclude getting a corrupted download.
    If you are low on storage space, you need to delete apps or files.
    How much space is used by your Other? You may be able to reduce.
    How Do I Get Rid Of The “Other” Data Stored On My iPad Or iPhone?
    http://tinyurl.com/85w6xwn
    With an iOS device, the “Other” space in iTunes is used to store things like documents, settings, caches, and a few other important items. If you sync lots of documents to apps like GoodReader, DropCopy, or anything else that reads external files, your storage use can skyrocket. With iOS 5/6, you can see exactly which applications are taking up the most space. Just head to Settings > General > Usage, and tap the button labeled Show All Apps. The storage section will show you the app and how much storage space it is taking up. Tap on the app name to get a description of the additional storage space being used by the app’s documents and data. You can remove the storage-hogging application and all of its data directly from this screen, or manually remove the data by opening the app. Some applications, especially those designed by Apple, will allow you to remove stored data by swiping from left to right on the item to reveal a Delete button.
     Cheers, Tom

  • HT4623 what about is don't show the update? what should i do?to show the update....

    Please hlep me this qestion it dont show the Update ?

    Doesn't show what update? Your product list shows your iPad is running iOS 6.1.3 which is the latest version currently available.

  • Showing Not Updated when reinstall the Same versio...

    Hi,
    After reinstall the Same version of N96's firmware using Nokia Software Updater, press *#0000#, and then Device Manager is opened, but I found the Latest Update in Device Manager shows Not Updated.
    Is this normal? whether the NSU updating normal or not?
    Thanks.
    ============
    RM-247 12.043
    Nokia N96
    Main in Thinland

    Even though the iPod shows as been connected, it might not have actually received a valid IP address via DHCP from your Wi-Fi access point or router.  Head to Settings -> Wi-Fi and tap the > next to the network you are connected. If 169.xxx.xxx.xxx is listed for an IP Address, then your iPod did not receive a valid IP address.  To correct this you can reboot your router by unplugging it from power for about 30 seconds.
    It wouldn't hurt to also reset your iPod.  To do this, press and hold both the Sleep/Wake and Home buttons together long enough for the Apple logo to appear.
    See here for more troubleshooting assistance.
    iOS: Troubleshooting Wi-Fi networks and connections
    B-rock

  • A strange problem when uploading a file in Struts

    When i upload a file, the other elements in the form of the jsp cannot be got by the ActionForm, instead, the getters show that they are "null"s. But when i upload no file, everthing is ok.
    Moreover, the problem happens when i update an article which can have an picture with it, but when i add a new article, the problem does not appear, instead, the file can be uploaded and other element can also be got.
    i think i might be a problem of the volume of the request , because i put more information to update than to add.
    Hope someboby can help me with the problem.

    When i upload a file, the other elements in the form of the jsp cannot be got by the ActionForm, instead, the getters show that they are "null"s. But when i upload no file, everthing is ok.
    Moreover, the problem happens when i update an article which can have an picture with it, but when i add a new article, the problem does not appear, instead, the file can be uploaded and other element can also be got.
    i think i might be a problem of the volume of the request , because i put more information to update than to add.
    Hope someboby can help me with the problem.

  • SystemManager.as : 'should never get here' when uploading multiple files

    I have a code for uploading multiple files. The code works so that when complete event from the first upload is received, the second upload is started. The code works fine on Flash Player 9, but now when I changed my compiler settings to require version 10, the program no longer works.
    Also this only seems to occur when I execute the code from the Flash Builder. I have compiled the code with ant requiring FP version 10. This swf is bundled inside a war and can executed without any problems. I actually set the ant compiler to require FP 10 some time ago already.
    I get error 2174, which is for trying to upload multiple files at the same time. Although, I don't understand why I get this, since the uploads should not be done simultaneously as I explained above.
    The interesting thing here is when I try to debug it. At some point when stepping in the code, I get the following error thrown. It's thrown by the code pasted at the end. Interesting is the else block that throws the error, the comment says 'should never get here'.
    A bug in the framework or in Flex Builder?
    Using IE 8 with FP 10.0.32.18 (on Win XP if that matters).
    Thanks.
    Error
         at mx.managers::SystemManager/updateLastActiveForm()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:5087]
         at mx.managers::SystemManager/activateForm()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2352]
         at mx.managers::SystemManager/activate()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\SystemManager.as:2307]
         at mx.managers::FocusManager/creationCompleteHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\FocusManager.as:1592]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298]
         at mx.core::UIComponent/set initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1169]
         at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718]
         at Function/http://adobe.com/AS3/2006/builtin::apply()
         at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
         at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]
         private function updateLastActiveForm():void
              // find "form" in the forms array and move that entry to
              // the end of the array.
              var n:int = forms.length;
              if (n < 2)
                 return;     // zero or one forms, no need to update
              var index:int = -1;
              for (var i:int = 0; i < n; i++)
                 if (areFormsEqual(form, forms[i]))
                      index = i;
                      break;
              if (index >= 0)
                 forms.splice(index, 1);
                 forms.push(form);
              else
                 throw new Error();     // should never get here

    Thanks for the reply Alex.
    In both cases the URL is http. The only difference is that in one case everything is on server inside a war running on Tomcat to which I make connection via browser. In the other case the server side stuff is running on local computer on Tomcat and the Flex code is not bundled inside the war.
    In both cases the URL is in form of http://... When running locally, the URL is http://localhost:8080/myAppName. I don't know how the network card driver translates this URL, but what you said might have something to do with it.

  • Error when uploading a file to an e-mail

    When I try upload a file to send with email ( transaction SO00 )the next error occurs:
    "Include file in PC application. Try again?".
    I don´t know what is the problem, because the the file is not in use by another application, can someone help to me?
    (I have another 2 systems and I haven´t this problem in this 2 other systems...)
    Thank you

    Hello,
    I have finded the error. It was in OAC0 transaction in where for SOFFDB repository the storage type was wrong, because it was selected 06 RFC archive instead of 03 R/3 database.
    Thanks you

  • Firefox crashes when uploading/downloading files from/to 'desktop folder'

    Hello
    I'm hoping, that you can help me!
    I'm using Firefox 28.0 on MacBook Pro Mavericks 10.9.2
    Firefox crashes/freezes when I try to upload/download files from/to my 'desktop folder'.
    I't only happens, when I use this folder. Download to 'download folder' or any other folder works fine.
    Download to 'desktop folder' when using Safari also works fine.
    I't only happens when desktop and firefox tries to communicate.
    It's very annoying when I accidentally forget, that the bugs is there, and I have to force quit and start all over again. And sometimes I don't even have a choice, because 'desktop' randomly opens as default folder, when I try to upload things.
    Thank you so much in advance!
    Kind regards Elizabeth

    Hi ESwan,
    I am not a Mac user so not the best person to attempt to assist but here goes.
    I am presuming that info such as
    PID: 1695 Event: cpu usage (microstackshots only)
    Relate to the Mac OS X crash & event logging and reporting.
    What we need are the ones that Firefox itself generates and submits for processing by Mozilla Firefox
    * See [[Firefox crashes - Troubleshoot, prevent and get help fixing crashes#w_get-help-fixing-this-crash]]'''#w_get-help-fixing-this-crash'''
    From what you say the crashes occur after a certain action and I am hoping that you will be able to use the easy method as in the article linked above. Navigate to about:crashes by keying ''about:crashes'' into the address bar. You are loolking for the ones starting wth ''bp-'' Paste two or three of those into your next post. Include the bp- part but not any link information before that. After they are pasted into the forum the forum software changed them to be links.

Maybe you are looking for