ADF: how can client pick up photos from cache instead of calling servlet

I have a jspx whose page definition has a viewobject exposing photo ids. I want to display those photos using af:panelForm. The panelForm has navigation buttons, first, previous, next and last. In the panelForm, i use af:objectImage component whose source attribute gets its value from an image rendering servlet to whom we pass viewobject's ImageId bound attribute. Given the passed in ImageId, servlet would then fetch the photo blob from database and streams it back to requesting client.
As I press navigation buttons to view photos, I notice photos are being cached in the client browser. However, if I keep navigating between same previously viewed photos, I was expecting the cached photos to be picked from browser cache instead of calling the servlet over and over to display the same previously viewed photos. However, cached photos dont seem to be taken advantage of and they are not picked and the servlet is always getting called. I want to not have the servlet called for previously viewed photos and instead cached photos to be used so images can be displayed faster and faster otherwise servlet will always go to database and fetch same blobs and render them which is expensive.
After lots of investigation, it seems that pressing any of the navigation buttons results in a submit of the form and on submit of the form, cached photos don't get picked. what should i do with those buttons so they don't perform submit and so that cached photos get picked without bothering the servlet ?
Please help.
<af:panelForm>
<af:panelHorizontal halign="center">
     <af:objectImage
     source="ImageRenderingServlet?imgId=#{bindings.ImageId.inputValue}"/>
</af:panelHorizontal>
<af:panelHorizontal halign="center">
<af:panelButtonBar>
     <af:commandButton
     text="first"
     actionListener="#{bindings.First.execute}"
     disabled="#{!bindings.First.enabled}"/>
     <af:commandButton
     text="previous"
     actionListener="#{bindings.Previous.execute}"
     disabled="#{!bindings.Previous.enabled}"/>
     <af:commandButton
     text="next"
     actionListener="#{bindings.Next.execute}"
     disabled="#{!bindings.Next.enabled}"/>
     <af:commandButton
     text="last"
     actionListener="#{bindings.Last.execute}"
     disabled="#{!bindings.Last.enabled}"/>
</af:panelButtonBar>
</af:panelHorizontal>
</af:panelForm>
Message was edited by:
samsam
Message was edited by:
samsam
Message was edited by:
samsam

Hi,
there is no API available to read from the browser cache. The way the browser cache works is that it retrieves the content itself if a image is referenced by a known URL. If the servlet streams an image then cache usage is not an option at all. If the servlet returns an image URL to a static image then it should do
Frank

Similar Messages

  • How can I sync specific photos from folders instead of syncing the whole folder to my iPad?(1 gen)

    So I recently synced a few folders from my PC to my iPad 1 and there was a few photos I did not want on my iPad, so when I tapped the photo, the trash button wasn't there. I looked up why that was happening and discovered it was because synced photos can't be deleted from the photo library. So I ask my question, how can I sync specific photos from folders instead of the whole folder? from iTunes to my iPad. If there is not a way for me to sync specific photos from folders, how can I delete the photos I don't want from my iPad?

    As King_Penguin has already explained, this isn't possible with the stock Photos app.
    As far as photo syncing is concerned, I also recommend PhotoSync, which is an excellent photo (and video!) synchronization tool, should you want to stick with the stock Photos app on the iPad. Should you want something better (Photos is a pretty limited app without sorting, EXIF displaying etc. capabilities and with HUGE storage usage), you'll need to take a look at third-party apps. I too recommend Photo Manager Pro, it's IMHO the best tool. There's a complete roundup of image viewers for iOS at http://www.iphonelife.com/blog/87/all-one-photo-viewer-roundup-70-price-drop-bes t-image-viewer ; you might want to read it.

  • How can I get all photos from iPhoto to automatically back up to iCloud from my Mac OSX Version 10.6.8 operating system.  Not enough memory to upgrade.

    How can I get all photos from iPhoto to automatically back up to iCloud from my Mac OSX Version 10.6.8 operating system.  Not enough memory to upgrade.

    You can't.  iCloud is not for general file backup from a Mac. It's for backup up and syncing data between mobile devices and and Macs and  The following is from this Apple document: iCloud: Backup and restore overview.
    iCloud automatically backs up the most important data on your (mobile) device using iOS 5 or later. Once you have enabled Backup on your iPhone, iPad, or iPod touch .....
    What is backed up
    You get unlimited free storage for:
    Purchased music, movies, TV shows, apps, and books
    Notes: Backup of purchased music is not available in all countries. Backups of purchased movies and TV shows are U.S. only. Previous purchases may not be restored if they are no longer in the iTunes Store, App Store, or iBookstore.
    Some previously purchased movies may not be available in iTunes in the Cloud. These movies will indicate that they are not available in iTunes in the Cloud on their product details page in the iTunes Store. Previous purchases may be unavailable if they have been refunded or are no longer available in the iTunes Store, App Store, or iBookstore.
    You get 5 GB of free iCloud storage for:
    Photos and videos in the Camera Roll
    Device settings (for example: Phone Favorites, Wallpaper, and Mail, Contacts, Calendar accounts)
    App data
    Home screen and app organization
    Messages (iMessage, SMS, and MMS)
    Ringtones
    Visual Voicemails
    But not from a Mac.  If you want to backup your photos and other important files I suggest you get an external hard drive and use  it with Time Machine.
    OT

  • How can I get all photos from the camera roll onto the photo stream so they will share between iphone and ipad?

    How can I get all photos from the camera roll, and all new pictures taken, to get on the photostream so they can share between iphone and ipad?

    When turning PhotoStream on with photos available in the Camera Roll, only photos captured by the iPhone or saved on the iPhone are placed in the PhotoStream.
    For all photos that were in the Camera Roll prior to turning PhotoStream on, import the photos with your computer and add the photos to your PhotoStream on your computer.

  • How can I transfer some photos from PE11 to be saved on my new IPad?

    How can I transfer some photos from PE11 to be saved on my new IPad? I know I can use Adobe Revel but that relies on an Internet connection. The person I wish to show the photos do not have internet connection.

    You can use iTunes on your local computer to transfer photos:
    http://www.howstuffworks.com/tablets/transfer-pictures-to-ipad.htm

  • How can I use a photo from my files as a screen saver?

    I have an LG monitor about 10" high and 16" wide.  How can I send a photo from my Adobe files to my desktop as a screen saver.  Because of the odd dimensions of this monitor, the one I have as a screensaver now does not show the entire photo. I need instructions how to choose one of my photos, send it to the monitor as a screen saver, and make it the correct size to show the entire photo.

    You'll need to download the song from your cd to your my music folder, then open Itunes files add files or folder to the library then you find your song from your my music folder.   Then you will have to create the ringtone:
    http://http://www.ehow.com/how_2160460_custom-iphone-ringtones-free.html
    follow the instruction to create then sync the ringtones.

  • How can I use the photos from iphoto to display in contacts?

    Contacts has a space for a photo.  At one time I knew how to populate this space with photos from iPhoto. Currently my choices are to use an icon or take a pic with the camera.
    How can I add the photos from iPhoto to the choices for populating the "Contacts" image space for individual cards?

    See this Discussion...
    https://discussions.apple.com/message/19082703#19082703

  • How can I pass the photos from one iphone to another?

    how can I pass the photos from one iphone to another?

    Use the Beaming feature. See the info at the ? In iPhoto for iOS.

  • How can I move a photo from one project to another

    How can I move a photo from one project to another without creating a duplicate so I have the same photo in two projects.
    I seems to me in the past when I moved the photo from project 1 to project 2, I would get a number showing the # of photos being moved and you could drag and drop in the 2nd folder and the photos would disappear from project 1 and show up in project 2. is there a setting I am missing.  Now when I drag and drop the photo no red # shows up and the photo stays in project 1 and also shows up in project 2 apparently creating a duplicate.
    Any suggestion?

    Now when I drag and drop the photo no red # shows up and the photo stays in project 1 and also shows up in project 2 apparently creating a duplicate.
    The projects are the basic containers.  Each image and all its versions are in exactly one project.
    You can use an image in many albums, without duplicating it, also in many products like books, screensaver, slideshows.  But the projects are the basic structure of the library and you cannot have the same image in two different project, without duplicating it by storing the same original image files twice. Use albums to organize your library thematically.
    Sorry, I misread your question.   Dragging an image file between projects should move the image and all its versions to the other project.  Aperture should only duplicate the image, if you hold down the alt/options key while dragging and move the image otherwise.
    Which Aperture version are you using? And which MacOS X version?  Is your profile signature "MacBook Pro with Retina display, Mac OS 9.2.x, Aperture 3.5.1" still valid?
    In Aperture 3.6 on MacOS X 10.10.1 dragging between projects is still working as expected:

  • How can I find a photo from the backup file in my pc?

    How can I find a photo from the backup file in my pc?
    I have accidentally erased a photo. It happened after the backup.

    I am not aware you can extract a single photo or a single app's content from the backup, you can either restore the whole backup to your phone or not restore. If you restore your last backup to your phone then any content that is currently on your phone will be replaced with what was on it at the time that the backup was made - so if you do decide to restore, first copy off any purchases to your computer's iTunes via File > Transfer Purchases, and copy any documents/files that you've udpated on the phone since the backup.

  • How can I remove all photos from my iphone?

    How can I remove all photos from my iphone?

    Hi pjdemeo,
    I understand you want to delete all of the photos from your iPhone.  As a precaution, I would suggest importing the photos and videos from your iPhone into your computer.  This will give you a backup for the images, and after import you will be asked if you want to delete the photos.
    Import photos and videos from your iPhone, iPad, or iPod touch to your Mac or Windows PC - Apple Support
    https://support.apple.com/en-us/HT201302
    The iPhone User Guide has instructions for deleting photos directly from the device:
    Organize photos and videos - iPhone
    http://help.apple.com/iphone/8/#/iphf14943e
    Delete a photo or video from Photos. Tap the Photos tab, tap the photo or video, tap , then tap Delete Photo or Delete Video. Deleted photos and videos are kept in the Recently Deleted album on iPhone, with a badge showing the remaining days until the item is permanently removed from iPhone. To delete the photo or video permanently before the days expire, tap the item, tap Delete, then tap Delete Photo or Delete Video. If you use iCloud Photo Library beta, deleted photos and videos are permanently removed from all iOS 8.1 devices that use iCloud Photo Library beta with the same Apple ID.
    Cheers,
    - Judy

  • How can I copy a photo from iphoto to PReview to make it smaller for uploading to a site that requires a smaller image?

    How can I copy a photo from iphoto to PReview to make it smaller for uploading to a site that requires a smaller image?

    I don't think you need Preview.
    Select the image and use File->export and you have full control over the size and compression.

  • I added a photo from camera roll to a created album,how can I delete that photo from camera roll and still keep photo in album

    I added a photo from camera roll to a created album, how can I delete that photo from camera roll and still keep same photo in album?

    You can't. It doesn't work that way.
    the new album that you created doesn't contain a copy of the actual photo. It contains a pointer to that photo. If you delete it from the camera roll, you will delete it from the album that you created as well. Albums that you create on the iPad in the Photos app are for local organization only and cannot be transfer or imported to your computer, because there really are no photos in those albums

  • How can I attach a photo from iPhoto to mail as a file and not just put it on the email itself?

    How can I attach a photo from iPhoto to mail as a file and not just put it on the email itself?

    Souvent eu ce problème,
    Je cree un dossier sur le bureau et glisse les photos à partir d'Iphoto dans ce dossier. Ce geste a pour effet de creer des copies dans le dossier.
    Il ne reste plus qu'à selectionner ces photos pour les envoyer en pièces jointes.

  • How can I get the photos from iPhoto copied to a disk in the order I want?

    How can I get the photos from iPhoto copied to a disk in the order I want??

    To ensure a custom ordering, sort the files in an album and rename the files with a sequentially numbered filename.
    File > Export > Version/Originals
    Then use "Filename > Sequential"
    or "Filename > Album name with index"

Maybe you are looking for

  • Error: While Creating Employee in Tutorial Lesson5

    Hi, Can anybody tell me why this error is coming. This error is coming after i click the createemployee button. Error Details: 1.No method with signature - No method with signature - init() 2.listOfValues not specified for messageLovInput 3.Attribute

  • Adobe create suite 64-bit related queries

    Hi, I have following couple of questions related to 64-bit support in Adobe Products. 1. Would like to know Adobe Illustrator CS3,CS4 and CS5 support 64-bit? 2. Would like to know Adobe Photoshop CS3,CS4 and CS5 support 64-bit? 3. Heard that CS5 woul

  • Adding link to .pdf

    My question is how to create a blue clickable link in a pdf created by publishing a document in WP to pdf.  I have Adobe Reader but not Acrobat.  Can I create the link with the Reader?  or must it be done in WP?  If in WP what web address should I go

  • 2ndgen shuffle cuts out all the time

    My shuffle worked great for a month. But now, while I'm running, either the sound cuts out or the unit stops playing - I haven't been able to figure out which. When this first started happening, I could get it to play again by pressing the play butto

  • Kodo runtime requires serp.jar  Is it intension?

    kodo runtime requires serp.jar Is it intension? ava Web Start 1.2-beta Console, started Mon Jul 22 18:31:48 EDT 2002 Java 2 Runtime Environment: Version 1.4.0_01 by Sun Microsystems Inc. java.lang.NoClassDefFoundError: serp/util/Localizer at com.sola