This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSF and the fly likes Image caching question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Image caching question" Watch "Image caching question" New topic
Author

Image caching question

Darrin Smith
Ranch Hand

Joined: Aug 04, 2003
Posts: 276
In my app I have two sets of images.

The top set is contolled by an upper listbox selection and the bottom set is controlled by a lower listbox selection.

The way I would like it to work is that when the user selects an item form the upper listbox, only the images in the top section are refreshed from the server, and when the bottom listbox is selected only the bottom set of images is refreshed from the server.

The way it works now is that both top and bottom image sets get refreshed from the server when either the upper or lower listbox item is changed.

I am thinking that there should be an easy way to cache the images so both sets do not need to be refreshed each time one of the listboxes gets changed.

I don't see any way to just keep an array of additional buttons they hold my images) around to fill up the buttons on the page as the setValue method takes a URL...not an actual image.

So, what is the suggested way to do this?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Image caching question
 
Similar Threads
SelectManyListBox is acting really weird
[struts] using html:form across multiple divs
Any way to see if an image is null?
Param passing in link, prepopulation and javascript
Image is not getting loaded in applet